1 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
3 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
6 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
8 PR rtl-optimization/68349
9 * lra-eliminations.c (move_plus_up): New function.
10 (lra_eliminate_regs_1): Use the function.
12 2015-12-04 Nathan Sidwell <nathan@acm.org>
14 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New,
16 (init_output_initializer): ... this.
17 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
18 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
19 nvptx_assemble_decl_begin.
21 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
24 * Makefile.in (OBJS): Add sancov.o.
25 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
26 * passes.def (sancov_pass): Add.
27 * tree-pass.h (sancov_pass): Add.
28 * common.opt (-fsanitize-coverage=trace-pc): Add.
29 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
30 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
31 flag_sanitize_coverage.
33 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
36 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
37 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
38 * config/arm/arm.md (probe_stack_range): Adjust.
39 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
40 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
41 (probe_stack_range_<PTR:mode>): Adjust.
43 2015-12-04 David Malcolm <dmalcolm@redhat.com>
45 * convert.c (convert_to_real_1): When converting from a
46 REAL_TYPE, preserve the location of EXPR in the result.
47 * tree.c (get_pure_location): Make non-static.
48 (set_source_range): Return the resulting location_t.
49 (make_location): New function.
50 * tree.h (get_pure_location): New decl.
51 (get_finish): New inline function.
52 (set_source_range): Convert return type from void to location_t.
53 (make_location): New decl.
55 2015-12-04 Jakub Jelinek <jakub@redhat.com>
58 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
59 input_location to inform.
60 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
61 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
62 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
64 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
66 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
67 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
68 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
69 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
70 comdat and non-comdat.
71 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
72 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
75 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
77 * (cstore<mode>4_unsigned): Use gpc_reg_operand instead of
78 register_operand. Remove empty constraints. Use std::swap.
79 (cstore_si_as_di, cstore<mode>4_signed_imm,
80 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
81 gpc_reg_operand instead of register_operand.
82 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
83 register_operand. Remove empty constraints.
85 2015-12-04 Nick Clifton <nickc@redhat.com>
87 * config.gcc (extra_gcc_objs): Define for MSP430.
88 * common/config/msp430/msp430-common.c (msp430_handle_option):
89 Pass both -mmcu and -mcpu on to the back end if they are both
91 * config/msp430/msp430.c (hwmult_name): New function.
92 (msp430_option_override): If an unrecognised MCU name is
93 detected only warn if the user has not provided suitable
94 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
95 warning messages. Generate warnings about conflicts between
96 -mmcu and -mcpu and -mhwmult options.
97 If neither -mcpu nor -mmcu have been specified but -mhwmult=
98 f5series has the select the 430X isa.
99 (msp430_no_hwmult): If -mmcu has not been specified and
100 msp430_hwmult_type is AUTO then return true.
101 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
102 (LIB_SPEC): Add hardware multiply library selection.
103 * config/msp430/t-msp430: Delete hardware multiply multilibs.
104 Add rule to build driver-msp430.o
105 * config/msp430/driver-msp430.c: New file.
106 * config/msp430/msp430.opt (warn-mcu): New option.
107 * doc/invoke.texi: Update description of -mhwmult=auto.
108 Document -mwarn-mcu option.
110 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
112 * (cstore<mode>4_signed): New expander.
113 (cstore<mode>4): Call it.
115 2015-12-04 Jakub Jelinek <jakub@redhat.com>
117 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
119 PR tree-optimization/68680
120 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
121 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
124 PR tree-optimization/68671
125 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
126 blocks starting with the successor of first bb we've modified
127 and ending with last_bb call reset_flow_sensitive_info_in_bb.
129 2015-12-04 Jeff Law <law@redhat.com>
131 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
132 indicating if a gimple conditional was optimized to true/false.
133 (reassociate_bb): Bubble up return value from
134 maybe_optimize_range_tests.
135 (do_reassoc): Similarly, but for reassociate_bb.
136 (execute_reassoc): Return TODO_cleanup_cfg as needed.
138 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
140 * config/aarch64/aarch64.c (aarch64_override_options_internal):
141 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
142 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
143 does not affect the assembler directives.
145 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
147 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
148 emit .machine and .machinemode to the top of the assembler file.
149 (TARGET_ASM_FILE_START): Provide target hook.
150 (s390_asm_output_machine_for_arch): Protect with
151 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
153 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
155 * config/s390/s390.opt (s390_arch_string): Remove.
156 (s390_tune_string): Likewise.
157 (s390_cost_pointer): Add Variable.
158 (s390_tune_flags): Add TargetVariable.
159 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
160 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
161 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
162 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
163 (mwarn-framesize=): Save option.
164 (mno-stack-guard, mno-stack-guard): New option.
165 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
166 (mwarn-framesize=): Convert to UInteger (negative values are rejected
168 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
169 macros changeable through the GCC target pragma into a separate
171 (s390_cpu_cpp_builtins): Likewise.
172 (s390_pragma_target_parse): New function, implement GCC target pragma
174 (s390_register_target_pragmas): Register s390_pragma_target_parse if
176 * common/config/s390/s390-common.c (s390_handle_option):
178 Move setting s390_arch_flags to s390.c.
179 Remove s390_tune_flags.
180 Allow 0 as argument to -mstack-size (switch to default value).
181 Allow 0 as argument to -mstack-guard (switch off).
182 Remove now unnecessary explicit parsing code for -mwarn-framesize.
183 * config/s390/s390-protos.h (s390_handle_option): Export.
184 (s390_valid_target_attribute_tree): Export.
185 (s390_reset_previous_fndecl): Export.
186 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
187 and end of HTM and VX builtins.
188 (s390_asm_output_function_prefix): Declare hook.
189 (s390_asm_declare_function_size): Likewise.
190 * config/s390/s390-builtins.h (B_GROUP): Use macro.
191 * config/s390/s390-opts.h: Add comment about processor_type usage.
192 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
193 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
194 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
195 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
196 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
197 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
198 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
199 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
200 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
201 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
202 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
203 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
204 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
205 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
207 (vec_all_nan): Rewrite as macro using statement expressions to avoid
208 that the vector keyword needs to be defined when including the file.
209 (vec_all_numeric): Likewise.
210 (vec_any_nan): Likewise.
211 (vec_any_numeric): Likewise.
212 * config/s390/s390.c (s390_previous_fndecl): New static variable.
213 (s390_set_current_function): New function.
214 (s390_cost): Wrapper macro to allow defining the cost table pointer in
216 (processor_table): Table for march= and mtune= parsing.
217 (s390_init_builtins): Enable all builtins and types unconditionally.
218 (s390_expand_builtin): Generate an error message if builtin is not
219 supported by current options.
220 Correct an error message.
221 (s390_function_specific_restore): New function to set s390_cost.
222 (s390_asm_output_machine_for_arch): New function for emitting .machine
223 and .machinmode directives to the assembler file.
224 (s390_asm_output_function_prefix): Likewise.
225 (s390_asm_declare_function_size): Likewise.
226 (s390_asm_output_function_label): Add mdebug output for feature testing.
227 (s390_option_override): Move implementation into internal function.
228 (s390_option_override_internal): Likewise.
229 Implement option overriding based on current options.
230 (s390_valid_target_attribute_inner_p): New function implementing target
232 (s390_valid_target_attribute_tree): Likewise.
233 (s390_valid_target_attribute_p): Likewise.
234 (s390_reset_previous_fndecl): Likewise.
235 (s390_set_current_function): Likewise.
236 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
237 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
238 (TARGET_OPTION_RESTORE): Likewise.
239 * doc/extend.texi: S390: Document target attribute and pragma.
240 * config.in: Regenerated.
241 * configure: Regenerated.
242 * configure.ac: S390: Check for .machinemode and .machine in gas.
243 S390: Check for architecture modifiers support in gas.
245 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
247 * doc/extend.texi ("simd"): Describe new flags.
249 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
251 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
252 operand checked for alignment.
254 2015-12-04 Nathan Sidwell <nathan@acm.org>
256 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
257 emission too. Change 'no_arg_types' to 'prototyped'.
258 (write_fn_proto): Use write_one_arg for stdarg, static chain &
260 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
262 2015-12-04 Richard Biener <rguenther@suse.de>
264 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
265 member and initialize it.
266 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
268 (sccvn_dom_walker::before_dom_children): If unreachable_dom
269 is set BB is not reachable either. Set unreachable_dom
270 if not set and BB is unreachable.
272 2015-12-04 Richard Biener <rguenther@suse.de>
274 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
275 query with GATHER_STATISTICS.
277 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
280 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
281 fields, add keep_stack and reorder them.
282 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
283 set it to false. Do not insert a stack save/restore pair if it has
284 been set to true by the gimplification of the statements.
285 Restore it to the saved value on exit if it is still false.
286 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
287 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
288 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
289 * doc/extend.texi (Variable Length): Document new behavior.
290 * doc/generic.texi (Blocks): Document new handling of VLAs.
292 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
293 Tristan Gingold <gingold@adacore.com>
296 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
298 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
299 UNSPEC_PROBE_STACK_RANGE.
300 (blockage): New instruction.
301 (probe_stack_range_<PTR:mode>): Likewise.
302 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
304 (aarch64_output_probe_stack_range): Likewise.
305 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
306 static builtin stack checking is enabled.
307 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
310 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
313 * config/arm/arm.md (*call_mem): Delete pattern.
314 (*call_value_mem): Likewise.
315 * config/arm/arm.c (output_call_mem): Delete.
316 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
318 2015-12-04 Bin Cheng <bin.cheng@arm.com>
320 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
321 aarch64_sync_memory_operand.
323 2015-12-04 Jakub Jelinek <jakub@redhat.com>
326 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
327 (expand_vec_perm_1): Use it and recurse if everything else
328 failed. Use nd.perm instead of perm2.
329 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
330 instead of gen_lowpart for the target.
331 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
332 and recurse if everything else failed.
334 2015-12-04 Richard Biener <rguenther@suse.de>
337 * builtins.c (get_pointer_alignment_1): Take care of byte to
338 bit alignment computation overflow.
340 2015-12-04 Richard Biener <rguenther@suse.de>
343 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
344 a constant with single_use.
346 2015-12-04 Bin Cheng <bin.cheng@arm.com>
347 Jiong Wang <jiong.wang@arm.com>
349 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
350 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
352 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
354 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
355 Add short circuit for !flag_strict_aliasing
356 (get_alias_set): Remove flag_strict_aliasing check.
357 (new_alias_set): Likewise.
359 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
361 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
362 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
363 (exynosm1_regmove_cost): Likewise.
364 (exynosm1_vector_cost): Likewise.
365 (exynosm1_tunings): Likewise.
366 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
367 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
369 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
370 Richard Biener <richard.guenther@gmail.com>
372 * cfgexpand.c (pass_expand::execute): Replace call to
373 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
374 * tree-ssa.c (delete_tree_ssa): Likewise.
375 * function.c (set_cfun): Call redirect_edge_var_map_empty.
376 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
377 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
378 (redirect_edge_var_map_empty): New.
379 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
380 (redirect_edge_var_map_empty): New.
382 2015-12-03 Jeff Law <law@redhat.com>
384 PR tree-optimization/68599
385 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
386 in call to loop_optimizer_init.
387 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
388 optimization to drop the assumptions/infinite notations if
389 the loop has a single exit.
391 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
393 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
394 the pattern cannot FAIL.
395 (vec_store_lanes@var{m}@var{n}): Likewise.
396 (maskload@var{m}@var{n}): Likewise.
397 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
398 in the name of the pattern.
399 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
400 floating-point mode and that all operands have that mode.
401 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
403 (sqrt@var{m}2): Document that mode m must be a scalar or vector
404 floating-point mode, that all operands have that mode, and that
405 the patterns cannot FAIL. Remove previous documentation referring
406 to @code{double} and @code{float}.
407 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
408 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
409 (copysign@var{m}3): Likewise.
410 (exp@var{m}2): Likewise. Explicitly state the base.
411 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
412 (btrunc@var{m}2, rint@var{m}2): Likewise.
413 (round@var{m}2): Likewise. Fix incorrect description of rounding
415 (ceil@var{m}2): As for round@var{m}2.
416 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
417 the instruction must not raise an inexact condition.
418 (scalb@var{m}3): Document previously-undocumented pattern
419 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
420 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
421 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
422 (significand@var{m}2): Likewise.
423 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
424 mode m and operand 0 is defined more freely. Document that @var{m}
425 can be a scalar or vector integer mode and that the pattern is not
427 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
428 (clrsb@var{m}2): Likewise, except that the description of the
429 mode was missing in this case.
431 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
433 * internal-fn.def (RSQRT): New function.
434 * optabs.def (rsqrt_optab): New optab.
435 * doc/md.texi (rsqrtM2): Document.
436 * target.def (builtin_reciprocal): Replace gcall argument with
437 a function decl. Restrict hook to machine functions.
438 * doc/tm.texi: Regenerate.
439 * targhooks.h (default_builtin_reciprocal): Update prototype.
440 * targhooks.c (default_builtin_reciprocal): Likewise.
441 * tree-ssa-math-opts.c: Include internal-fn.h.
442 (internal_fn_reciprocal): New function.
443 (pass_cse_reciprocals::execute): Call it, and build a call to an
444 internal function on success. Only call targetm.builtin_reciprocal
445 for machine functions.
446 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
448 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
449 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
450 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
452 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
453 (aarch64_builtin_reciprocal): Replace gcall argument with a
454 function decl. Use use_rsqrt_p. Remove optimize_size check.
455 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
456 (aarch64_optab_supported_p): New function.
457 (TARGET_OPTAB_SUPPORTED_P): Define.
458 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
459 (rsqrt<mode>2): ...this.
460 * config/i386/i386.c (use_rsqrt_p): New function.
461 (ix86_builtin_reciprocal): Replace gcall argument with a
462 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
463 check. Only handle machine functions.
464 (ix86_optab_supported_p): Handle rsqrt_optab.
465 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
466 (rs6000_builtin_reciprocal): Replace gcall argument with a
467 function decl. Remove optimize_insn_for_size_p check.
468 Only handle machine functions.
469 (rs6000_optab_supported_p): New function.
471 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
475 * config/i386/i386.c (ix86_mitigate_rop): Don't call
476 compute_bb_for_insn again. Call df_insn_rescan_all.
477 * config/i386/i386.md (set_got_rex64): Override modrm_class.
479 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
481 2015-12-03 Nathan Sidwell <nathan@acm.org>
483 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
484 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
485 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
486 (nvptx_option_override): Set data ares for worker vars.
487 (nvptx_addr_space_from_sym): Delete.
488 (nvptx_encode_section_info): New.
489 (section_for_sym, section_for_decl): New.
490 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol
492 (nvptx_section_from_addr_space): Delete.
493 (nvptx_section_for_decl): Delete.
494 (nvptx_output_aligned, nvptx_declare_object_name,
495 nvptx_assemble_undefined_decl): Use section_for_decl, remove
497 (nvptx_print_operand): Add 'D', adjust 'A'.
498 (nvptx_expand_worker_addr): Adjust unspec generation.
499 (TARGET_ENCODE_SECTION_INFO): Override.
500 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
501 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
502 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
503 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
504 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
505 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
506 (UNSPEC_TO_GENERIC): New.
507 (nvptx_register_or_symbolic_operand): Delete.
508 (cvt_code, cvt_name, cvt_str): Delete.
509 (convaddr_<cvt_name><mode> [P]): Delete.
510 (convaddr_<mode> [P]): New.
512 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
514 PR rtl-optimization/68624
515 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
516 blocks if they exist and simplify the logic choosing the order to emit
519 2015-12-03 Richard Biener <rguenther@suse.de>
521 PR tree-optimization/66051
522 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
523 on load group size. Do not pass in vectorization_factor.
524 (vect_transform_slp_perm_load): Do not require any permute support.
525 (vect_build_slp_tree): Do not pass in vectorization factor.
526 (vect_analyze_slp_instance): Do not compute vectorization
527 factor estimate. Use vector size instead of vectorization factor
528 estimate to split store groups for BB vectorization.
530 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
532 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
533 DECL as return value is allowed to have NULL bounds.
535 2015-12-03 Tom de Vries <tom@codesourcery.com>
537 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
538 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
539 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
541 2015-12-03 Richard Biener <rguenther@suse.de>
543 PR tree-optimization/67800
544 PR tree-optimization/68333
545 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
546 restriction to reduction contexts but allow SLP reductions as well.
547 (vect_recog_sad_pattern): Likewise.
548 (vect_recog_widen_sum_pattern): Likewise.
550 2015-12-03 Richard Biener <rguenther@suse.de>
552 PR tree-optimization/68639
553 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
554 belonging to different loops.
555 (vect_analyze_data_ref_accesses): Likewise.
557 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
559 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
560 Remove "prefix_extra".
561 (define_insn "vec_extract_hi_<mode>_mask"): New.
562 (define_insn "vec_extract_hi_<mode>"): Remove masking.
564 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
566 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
567 (propagate_pure_const): Use it; fix comments and optimize loops.
569 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
571 * ipa-pure-const.c (ignore_edge): Rename to ...
572 (ignore_edge_for_nothrow) ... this one; also ignore eges to
573 interposable functions or ones that can not throw.
574 (propagate_nothrow): Fix handling of availability.
576 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
579 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
581 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
582 Sebastian Pop <s.pop@samsung.com>
584 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle isl_ast_op_zdiv_r.
585 (gcc_expression_from_isl_expr_op): Same.
587 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
588 Sebastian Pop <s.pop@samsung.com>
590 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
591 that insertion point is still in the region.
593 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
594 Sebastian Pop <s.pop@samsung.com>
596 PR tree-optimization/68550
597 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
598 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
601 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
603 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
604 * configure: Regenerate.
605 * config.in: Regenerate.
606 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
608 (rs6000_output_function_prologue): Use it instead of checking
609 cfun->machine->r2_setup_needed. Use internal labels instead of
610 GNU as local label extension. Handle ELFv2 large code model.
611 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
612 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
614 2015-12-02 Jakub Jelinek <jakub@redhat.com>
617 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
619 (expand_unop): Use them.
621 2015-12-02 Marek Polacek <polacek@redhat.com>
624 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
626 2015-12-02 Nathan Sidwell <nathan@acm.org>
628 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
630 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
632 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
633 Sebastian Pop <s.pop@samsung.com>
635 * graphite-dependences.c (scop_get_reads): Add extra dumps.
636 (scop_get_must_writes): Same.
637 (scop_get_may_writes): Same.
638 (compute_deps): Same.
639 * graphite-sese-to-poly.c (bounds_are_valid): New.
640 (pdr_add_data_dimensions): Call bounds_are_valid.
642 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
643 Sebastian Pop <s.pop@samsung.com>
645 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
646 * graphite-poly.c (apply_poly_transforms): Same.
647 * graphite.c (gate_graphite_transforms): Same.
648 * toplev.c (process_options): Same.
650 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
652 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
653 (mips_output_probe_stack_range): Rotate the loop and simplify.
655 2015-12-02 David Sherwood <david.sherwood@arm.com>
657 * config/aarch64/aarch64.md: New pattern.
658 * config/aarch64/aarch64-simd.md: Likewise.
659 * config/aarch64/iterators.md: New unspecs, iterators.
661 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
663 * dwarf2out.c (dwar2out_var_location): In addition to notes,
664 process indirect calls whose target is compile-time known.
665 Enhance pattern matching to get the SYMBOL_REF they embed.
666 (gen_subprogram_die): Handle such calls.
667 * final.c (final_scan_insn): For call instructions, invoke the
668 var_location debug hook only after the call has been emitted.
670 2015-12-02 Tom de Vries <tom@codesourcery.com>
672 * gimplify.c (enum gimplify_omp_var_data): Add enum value
674 (oacc_default_clause): Fix default for scalars in oacc kernels.
675 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
677 2015-12-02 Tom de Vries <tom@codesourcery.com>
679 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
680 parameter base_pointers_restrict.
681 (omp_target_base_pointers_restrict_p): New function.
682 (scan_omp_target): Call scan_sharing_clauses with base_pointers_restrict
685 2015-12-02 Nathan Sidwell <nathan@acm.org>
687 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
688 (nvptx_underlying_object_mode): Delete.
689 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
691 (nvptx_declare_function_name): Use output_reg. Remove punning
693 (nvptx_output_mov_insn): New.
694 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
695 Use output_reg. Merge 't' and 'u' handling.
696 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
697 (struct machine_function): Remvoe punning_buffer_size.
698 (REGISTER_NAMES): Remove %punbuffer.
699 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
700 UNSPEC_CPLX_HIGHPART): Delete.
701 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
702 nvptx_output_mov_insn.
703 (*mov<mode>_insn [SDFM): Reorder constraints to match integer
704 moc. Use nvptx_output_mov_insn.
705 (highpartscsf2, set_highpartscsf2, lowpartscsf2,
706 set_lowpartscsf2): Delete.
707 (mov<mode> [SDCM]): Delete.
709 2015-12-02 Richard Biener <rguenther@suse.de>
711 * tree.h (tree_invariant_p): Declare.
712 * tree.c (tree_invariant_p): Export.
713 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
714 create SAVE_EXPRs but reject patterns if we would need to.
716 2015-12-02 Tom de Vries <tom@codesourcery.com>
718 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
719 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
721 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
723 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
724 (cstore<mode>4): Use it.
726 2015-12-02 Richard Biener <rguenther@suse.de>
728 PR tree-optimization/68625
729 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
730 cleanup_control_flow_bb.
731 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
732 on all BBs, then cleanup_tree_cfg_bb and finally iterate
733 over the worklist doing both.
735 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
737 PR tree-optimization/68432
738 * coretypes.h (optimization_type): New enum.
739 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
740 * doc/tm.texi: Regenerate.
741 * target.def (optab_supported_p): New hook.
742 * targhooks.h (default_optab_supported_p): Declare.
743 * targhooks.c (default_optab_supported_p): New function.
744 * predict.h (function_optimization_type): Declare.
745 (bb_optimization_type): Likewise.
746 * predict.c (function_optimization_type): New function.
747 (bb_optimization_type): Likewise.
748 * optabs-query.h (convert_optab_handler): Define an overload
749 that takes an optimization type.
750 (direct_optab_handler): Likewise.
751 * optabs-query.c (convert_optab_handler): Likewise.
752 (direct_optab_handler): Likewise.
753 * internal-fn.h (direct_internal_fn_supported_p): Take an
754 optimization_type argument.
755 * internal-fn.c (direct_optab_supported_p): Likewise.
756 (multi_vector_optab_supported_p): Likewise.
757 (direct_internal_fn_supported_p): Likewise.
758 * builtins.c (replacement_internal_fn): Update call to
759 direct_internal_fn_supported_p.
760 * gimple-match-head.c (build_call_internal): Likewise.
761 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
762 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
763 * tree.c (maybe_build_call_expr_loc): Likewise.
764 * config/i386/i386.c (ix86_optab_supported_p): New function.
765 (TARGET_OPTAB_SUPPORTED_P): Define.
766 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
767 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
768 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
769 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
770 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
771 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
773 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
775 * Makefile.in (GENSUPPORT_H): New macro.
776 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
777 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
778 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
779 (build/genconstants.o, build/genextract.o, build/genflags.o)
780 (build/gentarget-def.o): Use it.
781 (build/genemit.o): Likewise. Depend on internal-fn.def.
782 * genopinit.c: Move block comment to optabs.def.
783 (optab_tag, optab_def): Move to gensupport.h
784 (pattern): Likewise, renaming to optab_pattern.
785 (match_pattern): Move to gensupport.c
786 (gen_insn): Use find_optab.
787 (patterns, pattern_cmp): Replace pattern with optab_pattern.
788 (main): Likewise. Use num_optabs.
789 * optabs.def: Add comment that was previously in genopinit.c.
790 * gensupport.h (optab_tag): Moved from genopinit.c
791 (optab_def): Likewise, expanding commentary.
792 (optab_pattern): Likewise, after renaming from pattern.
793 (optabs, num_optabs, find_optab): Declare.
794 * gensupport.c (optabs): Moved from genopinit.c.
795 (num_optabs): New variable.
796 (match_pattern): Moved from genopinit.c.
797 (find_optab): New function, extracted from genopinit.c:gen_insn.
798 * genemit.c (nofail_optabs): New variable.
799 (emit_c_code): New function.
800 (gen_expand): Check whether the instruction is an optab that isn't
801 allowed to fail. Call emit_c_code.
802 (gen_split): Call emit_c_code here too.
803 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
805 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
807 * config/s390/predicates.md (const_mask_operand): New predicate.
808 * config/s390/s390-builtins.def: Set a smaller bitmask for a few builtins.
809 * config/s390/vector.md: Change predicate from immediate_operand
810 to either const_int_operand or const_mask_operand. Add special
811 insn conditions on patterns which have to exclude certain values.
812 * config/s390/vx-builtins.md: Likewise.
814 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
816 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
819 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
821 * config/s390/s390-builtin-types.def: New builtin types added.
822 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
823 * config/s390/s390.c (s390_expand_builtin): Always truncate
824 constants to the mode in the pattern.
825 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
826 respective builtin __builtin_s390_vec_splat_*.
828 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
830 * config/s390/s390-builtin-types.def: Sort builtin types.
832 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
834 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
835 condition for the RT flag.
837 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
839 * config/s390/constraints.md ("jKK"): New constraint.
840 * config/s390/s390.c (tm-constrs.h): Include for
841 satisfies_constraint_*.
842 (s390_legitimate_constant_p): Allow jKK constants. Use
843 satisfies_constraint_* also for the others.
844 (legitimate_reload_vector_constant_p): Likewise.
845 (print_operand): Allow h output modifier on vectors.
846 * config/s390/vector.md ("mov<mode>"): Add vrepi.
848 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
850 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
853 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
855 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and
857 ("bswaphi2"): New pattern.
858 New splitter for HI reg-reg bswap.
860 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
863 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
864 if it is the first parameter.
866 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
868 PR tree-optimization/68577
869 * tree-vect-stmts.c (simple_integer_narrowing): New function.
870 (vectorizable_call): Restrict internal function handling
871 to NONE and NARROW cases, using simple_integer_narrowing
872 to test for the latter. Add cost of narrowing operation
873 and insert it where necessary.
875 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
877 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
878 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
879 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
881 2015-12-01 Nathan Sidwell <nathan@acm.org>
883 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
884 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
885 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
886 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
887 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
888 (init_output_initializer): Call write_var_marker.
889 (nvptx_output_aligned_decl): New.
890 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
892 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
894 * c-common.c (parse_optimize_options): Do not silently ignore
895 -fstrict-aliasing changes.
897 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
899 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
900 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
901 stream TYPE_ALIAS_SET.
902 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
903 stream TYPE_ALIAS_SET.
905 2015-12-01 Nathan Sidwell <nathan@acm.org>
907 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
910 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
912 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
913 indirection for large and small code models.
914 (adjust_vperm): Likewise.
916 2015-12-01 Julian Brown <julian@codesourcery.com>
917 Cesar Philippidis <cesar@codesourcery.com>
918 James Norris <James_Norris@mentor.com>
920 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
922 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
923 (is_gimple_omp_oacc): Add support for above.
924 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
925 (omp_notice_variable): Diagnose undefined implicit uses of
926 use_device variables in offloaded regions.
927 (gimplify_scan_omp_clauses): Add host_data, use_device
928 support. Diagnose undefined mapping of use_device variables in
930 (gimplify_omp_workshare): Add host_data support.
931 (gimplify_expr): Likewise.
932 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
933 * omp-low.c (lookup_decl_in_outer_ctx)
934 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
936 (scan_sharing_clauses): Support use_device.
937 (check_omp_nesting_restrictions): Support host_data.
938 (expand_omp_target): Support host_data.
939 (lower_omp_target): Skip over outer host_data regions when looking
940 up decls. Support use_device.
941 (make_gimple_omp_edges): Support host_data.
942 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
945 2015-12-01 Marek Polacek <polacek@redhat.com>
948 * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
951 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
953 PR tree-optimization/68474
954 * tree-call-cdce.c (use_internal_fn): Protect call to
955 gen_shrink_wrap_conditions.
957 2015-12-01 Christian Bruel <christian.bruel@st.com>
960 * config/arm/arm.opt (unaligned_access): Save.
961 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
962 * config/arm/arm.c (arm_option_override): Move unaligned_access setting
963 (arm_option_override_internal): ... here.
964 * config/arm/arm.h (TARGET_32BIT_P): New macro.
966 2015-12-01 Richard Biener <rguenther@suse.de>
968 PR tree-optimization/68379
969 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
970 always base loads on the first used DR of a group.
971 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
972 Compute alignment of the first scalar element unconditionally.
974 2015-12-01 Richard Biener <rguenther@suse.de>
977 * genmatch.c (struct capture_info): Add match_use_count.
978 (capture_info::walk_match): Increment match_use_count.
979 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
980 replacements in a save_expr if they occur more often than
981 in the original expression.
983 2015-12-01 Richard Biener <rguenther@suse.de>
986 * ipa-split.c (split_function): Handle main part not returning.
988 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
991 * tree-vect-stmts.c (vect_init_vector): Cast boolean
992 scalars to a proper value before building a vector.
994 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
996 * genattrtab.c (check_attr_test): Take an attr_desc instead of
997 an is_const flag. Put the file_location argument first.
998 Update recursive calls. Improve error messages.
999 (check_attr_value): Take a file location and use it instead
1000 of attr->loc. Improve error messages. Update calls to
1002 (check_defs): Update call to check_attr_value.
1003 (make_canonical): Likewise.
1004 (gen_attr): Likewise.
1006 (gen_insn_reserv): Update call to check_attr_test.
1008 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1010 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
1012 2015-12-01 Richard Biener <rguenther@suse.de>
1015 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
1017 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1019 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
1020 odr_type_p): Move to ...
1021 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
1022 odr_type_p): here; miscro-optimize.
1024 2015-12-01 Bin Cheng <bin.cheng@arm.com>
1026 PR tree-optimization/68529
1027 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
1028 Compute no-overflow information for control iv.
1029 (number_of_iterations_lt, number_of_iterations_le): Add new param.
1030 (number_of_iterations_cond): Pass new argument to above functions.
1032 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
1034 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
1035 inlining -fno-strict-aliasing into -fstrict-aliasing body.
1037 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1038 Sebastian Pop <s.pop@samsung.com>
1040 PR tree-optimization/68565
1041 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
1042 codegen_error. Fail when rhs of division operations is integer_zerop.
1043 (ternary_op_to_tree): Early return on codegen_error.
1044 (unary_op_to_tree): Same.
1045 (nary_op_to_tree): Same.
1046 (gcc_expression_from_isl_expr_op): Same.
1047 (gcc_expression_from_isl_expression): Same.
1048 (graphite_create_new_loop): On codegen_error continue generating
1050 (graphite_create_new_loop_guard): Same.
1051 (build_iv_mapping): Same.
1052 (graphite_create_new_guard): Same.
1054 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1055 Sebastian Pop <s.pop@samsung.com>
1057 * graphite-isl-ast-to-gimple.c: Fix dump messages.
1058 * graphite-scop-detection.c: Same.
1059 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
1061 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
1063 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
1064 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
1065 (convert_local_omp_clauses): Likewise.
1067 2015-11-30 Tom de Vries <tom@codesourcery.com>
1069 PR tree-optimization/46032
1070 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
1072 (find_func_aliases_for_call): ... here.
1073 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
1074 BUILT_IN_GOMP_PARALLEL.
1075 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
1078 2015-11-30 Jakub Jelinek <jakub@redhat.com>
1080 PR tree-optimization/68501
1081 * target.def (builtin_reciprocal): Replace the 3 arguments with
1082 a gcall * one, adjust description.
1083 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
1085 * targhooks.c (default_builtin_reciprocal): Likewise.
1086 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
1087 targetm.builtin_reciprocal even on internal functions, adjust
1088 the arguments and allow replacing an internal function with normal
1090 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
1091 with a gcall * one. Handle internal fns too.
1092 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
1093 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1094 * doc/tm.texi (builtin_reciprocal): Document.
1096 2015-11-30 Richard Biener <rguenther@suse.de>
1098 PR tree-optimization/68592
1099 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
1100 on the pattern def sequence.
1102 2015-11-30 Nathan Sidwell <nathan@acm.org>
1104 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1105 (write_one_arg): Reorder parms, add 'sep' param.
1106 (nvptx_write_function_decl): Rename to ...
1107 (write_fn_proto): ... here. Do name replacement. Emit linaer
1108 comment marker. Deal with both decls and defns. Simplify argument
1110 (write_function_decl_and_comment): Delete.
1111 (write_func_decl_from_insn): Rename to ...
1112 (write_fn_proto_from_insn): ... here. Don't do name replacement.
1113 (nvptx_record_fndecl): Call write_fn_proto.
1114 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1115 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1116 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1118 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
1120 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1121 (define_insn "*k<logic><mode>"): Use new iterator.
1123 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1126 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1127 (sparc_adjust_cost): Add missing space.
1129 2015-11-30 Richard Biener <rguenther@suse.de>
1132 * dwarf2out.c (gen_type_die_with_usage): Keep variant types
1135 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1137 * tree-if-conv.c (struct ifc_dr): Add new tree
1138 base_predicate field.
1139 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1140 base ref, DR pairs and store base_predicate for write type DRs.
1141 (ifcvt_memrefs_wont_trap): Guard checks with
1142 -ftree-loop-if-convert-stores flag.
1144 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1146 * cgraph.c (cgraph_node::make_local): No name is unique during
1147 incremental linking.
1148 * cgraph.h (can_be_discarded_p): Update comment; also common and
1149 WEAK in named sections can be discarded; when doing incremental
1150 link do not rely on resolution being the final one.
1151 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1152 When symbol can be discarded, do not rely on resolution info.
1153 * symtab.c (symtab_node::nonzero_address): Take into account that
1154 symbol can be discarded.
1155 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1156 definition correctly.
1157 (function_and_variable_visibility): Do not set unique_name when
1158 incrementally linking.
1160 2015-11-29 Nathan Sidwell <nathan@acm.org>
1162 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1163 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1164 (ctrap<mode>): Use const0_operand.
1166 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1168 * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
1171 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
1174 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1175 recog_memoized test for insn and check recog_memoized for dep_insn.
1177 2015-11-28 Nathan Sidwell <nathan@acm.org>
1179 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1180 (FRAME_POINTER_CFA_OFFSET): Define.
1181 (struct nvptx_args): Use 'tree' type.
1182 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1184 2015-11-28 Tom de Vries <tom@codesourcery.com>
1186 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1188 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
1190 * doc/invoke.texi (Option Summary): Use negative form of
1191 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1192 sort alphabetically and re-justify.
1194 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
1196 PR rtl-optimization/68536
1197 * lra.c (lra_emit_add): Add code for null base.
1198 * lra-constraints.c (curr_insn_transform): Skip operators for
1201 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1204 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1206 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1208 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1209 are not modified by the final modified insns in the basic blocks.
1211 2015-11-27 Nathan Sidwell <nathan@acm.org>
1213 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1215 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1216 (nvptx_maybe_convert_symbolic_operand): Simplify.
1217 (nvptx_addr_space_from_address): Delete.
1218 (nvptx_print_operand): Adjust 'A' case.
1220 2015-11-27 Richard Biener <rguenther@suse.de>
1222 PR tree-optimization/68559
1223 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1224 peeling for gap checks ...
1225 * tree-vect-stmts.c (vectorizable_load): ... here and relax
1227 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1228 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1230 2015-11-27 Nathan Sidwell <nathan@acm.org>
1232 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
1234 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1235 (nvptx_record_fndecl): Don't return value, remove force
1236 argument. Require fndecl.
1237 (nvptx_record_libfunc): New.
1238 (nvptx_record_needed_decl): Deteermine how to record decl here.
1239 (nvptx_maybe_record_fnsym): New.
1240 (nvptx_expand_call): Don't record libfuncs here,
1241 (nvptx_maybe_convert_symbolic_operand): Use
1242 nvptx_maye_record_fnsym.
1243 (nvptx_assemble_integer): Reimplement with single switch.
1244 (nvptx_output_call_insn): Register libfuncs here.
1245 (nvptx_file_end): Adjust nvptx_record_fndecl call.
1246 * config/nvptx/nvptx.md (expand_movdi): Don't call
1247 nvptx_record_needed_decl.
1249 2015-11-27 Richard Biener <rguenther@suse.de>
1251 PR tree-optimization/68553
1252 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1253 generation for 1:1 permutations.
1254 (vect_transform_slp_perm_load): Detect 1:1 permutations.
1256 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
1258 * gimple.h (nonbarrier_call_p): Declare.
1259 * gimple.c (nonbarrier_call_p): New function.
1260 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1261 Also increment call phase for ASMs with vdef and potential barrier
1264 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1266 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1268 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1269 are not modified by the final modified insns in the basic blocks.
1271 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1273 PR rtl-optimization/68506
1274 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1275 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
1278 2015-11-27 Martin Liska <mliska@suse.cz>
1281 * vec.h (release_vec_vec): New function.
1283 2015-11-27 Jakub Jelinek <jakub@redhat.com>
1285 PR tree-optimization/68552
1286 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1287 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
1288 or whether v0 == v1.
1290 2015-11-27 Martin Liska <mliska@suse.cz>
1292 * tree-ssa-uninit.c: Fix whitespaces in the source file.
1293 The change is just automatical.
1295 2015-11-27 Martin Liska <mliska@suse.cz>
1297 * tree-chkp.c (chkp_make_static_bounds): Release buffer
1300 2015-11-27 Martin Liska <mliska@suse.cz>
1302 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1303 Do not release memory for comp_alias_ddrs.
1304 * tree-vect-loop.c (destroy_loop_vec_info): Release
1305 the memory for all loop_vec_info.
1307 2015-11-27 Martin Liska <mliska@suse.cz>
1309 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1310 of a local-scope vec.
1311 (struct final_warning_record): Use auto_vec instead
1314 2015-11-27 Richard Biener <rguenther@suse.de>
1316 PR tree-optimization/68553
1317 * tree-vect-slp.c (vect_get_mask_element): Remove.
1318 (vect_transform_slp_perm_load): Implement in a simpler way.
1320 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
1322 PR rtl-optimization/67753
1323 PR rtl-optimization/64164
1324 * function.c (assign_parm_setup_block): Right-shift
1325 upward-padded big-endian args when bypassing the stack slot.
1327 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
1329 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1330 `-mcompact-branches='.
1331 (MIPS Options): Likewise.
1333 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1335 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1337 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
1339 * doc/install.texi (Prerequisites): Increase ISL requirement to
1342 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1344 * config/aarch64/arm_neon.h
1345 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1346 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1347 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1348 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1349 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1350 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1351 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1352 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1353 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1354 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1355 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1356 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1358 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1360 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1361 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1362 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1363 (vqrdmlshq_s16, vqrdmlshq_s32): New.
1365 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1367 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1370 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
1373 * tree-nested.c (finalize_nesting_tree_1): Append a field to
1374 hold the frame base address.
1375 * dwarf2out.c (gen_subprogram_die): Generate for
1376 DW_AT_static_link a location description that computes the value
1379 2015-11-26 Tom de Vries <tom@codesourcery.com>
1382 2015-11-25 Tom de Vries <tom@codesourcery.com>
1384 * cfgloop.c (find_single_latch): New function, factored out of ...
1385 (flow_loops_find): ... here.
1386 (verify_loop_structure): Improve verification of loop->latch.
1387 * cfgloop.h (find_single_latch): Declare.
1388 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1390 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1392 * config/aarch64/aarch64-simd-builtins.def:
1393 Add missing changes from r230962.
1395 2015-11-26 Nathan Sidwell <nathan@acm.org>
1397 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1398 arg with name. Don't deal with split regs. Tweak formatting.
1399 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1400 (nvptx_output_call_insn): Don't deal with split regs here.
1402 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1404 * config/aarch64/aarch64-simd-builtins.def
1405 (sqrdmlah, sqrdmlsh): New.
1406 (sqrdmlah_lane, sqrdmlsh_lane): New.
1407 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1409 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1411 * config/aarch64/aarch64-simd.md
1412 (aarch64_sqmovun<mode>): Fix some white-space.
1413 (aarch64_<sur>qmovun<mode>): Likewise.
1414 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1415 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1416 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1417 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1418 (UNSPEC_SQRDMLSH): New.
1422 2015-11-26 Richard Biener <rguenther@suse.de>
1424 PR tree-optimization/66721
1425 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1426 iteration cost earlier. Re-do analysis without SLP when
1427 vectorization using SLP fails and without has a chance to succeed.
1429 2015-11-26 Richard Biener <rguenther@suse.de>
1431 * genmatch.c (dt_simplify::gen_1): For generic wrap all
1432 multi-result-use captures in a SAVE_EXPR.
1434 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1436 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1437 (TARGET_SIMD_RDMA): New.
1439 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1441 * combine.c (subst): Do not return clobber of zero in widening mult
1442 case. Just return x unchanged if it is a no-op substitution.
1444 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
1447 * config/i386/i386.h (enum reg_class): Add
1448 bounds registers to ALL_REGS.
1450 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1452 PR tree-optimization/68128
1453 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1454 * gimplify.c: Include gimple-walk.h.
1455 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1456 (omp_notice_variable): Set flags to n->value if n already
1457 exists in target region, but we need to jump to do_outer.
1458 (omp_shared_to_firstprivate_optimizable_decl_p,
1459 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1461 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1462 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1463 not modified in the body. Call omp_mark_stores for outer
1464 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1465 in the body or on OMP_CLAUSE_LASTPRIVATE.
1466 (gimplify_adjust_omp_clauses): Add body argument, call
1467 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1468 Set OMP_CLAUSE_SHARED_READONLY
1469 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1470 not modified in the body. Call omp_mark_stores for outer
1471 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1472 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1473 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1474 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1475 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1476 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1477 * tree-nested.c (convert_nonlocal_omp_clauses,
1478 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1479 non-local vars or local vars referenced from nested routines.
1480 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1481 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
1482 TREE_READONLY, don't call use_pointer_for_field with non-NULL
1483 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1485 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
1487 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1488 about signed left shift stronger and clarify the cases when they're
1491 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1492 Bernd Schmidt <bschmidt@redhat.com>
1494 PR rtl-optimization/67226
1495 * calls.c (store_one_arg): Take into account
1496 crtl->args.pretend_args_size when checking for overlap between
1497 arg->value and argblock + arg->locate.offset during sibcall
1500 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
1502 * config/aarch64/aarch64.md (cbranch<mode>4): Use
1503 aarch64_fp_compare_operand.
1504 (store_pairsf): Use aarch64_reg_or_fp_zero.
1505 (store_pairdf): Likewise.
1506 (cstore<mode>4): Use aarch64_fp_compare_operand.
1507 (cmov<mode>6): Likewise.
1508 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1510 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
1511 Sebastian Pop <s.pop@samsung.com>
1513 PR tree-optimization/68453
1514 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1515 not redirect edges already pointing to their destination.
1516 (translate_isl_ast_node_for): Split edges after loops to create
1517 basic blocks for close phi nodes. Save merge points at the end of
1519 (translate_isl_ast_node_if): Save merge points at the end of the
1521 (add_close_phis_to_outer_loops): New.
1522 (add_close_phis_to_merge_points): New.
1523 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1524 (copy_bb_and_scalar_dependences): Do not split basic blocks on
1525 loop close phi locations.
1527 2015-11-25 Jan Hubicka <jh@suse.cz>
1529 * ipa-visibility.c (cgraph_externally_visible_p,
1530 varpool_node::externally_visible_p): When doing incremental linking,
1531 hidden symbols may be still used later.
1532 (update_visibility_by_resolution_info): Do not drop weak during
1534 (function_and_variable_visibility): Fix formating.
1535 * flag-types.h (lto_linker_output): Declare.
1536 * common.opt 9flag_incremental_link): New flag.
1538 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
1540 * config/rs6000/constraints.md (wb constraint): New constraint for
1541 ISA 3.0 d-form scalar addressing.
1543 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
1544 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
1545 Altivec registers. Add wb constraint for Altivec registers with
1546 D-form addressing. If we have ISA 3.0 d-form support, undo
1547 secondary reload support for using FPR registers if we want to do
1549 (rs6000_debug_reg_global): Likewise.
1550 (rs6000_setup_reg_addr_masks): Likewise.
1551 (rs6000_init_hard_regno_mode_ok): Likewise.
1552 (rs6000_secondary_reload): Likewise.
1553 (rs6000_preferred_reload_class): Likewise.
1554 (rs6000_secondary_reload_class): Likewise.
1556 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
1559 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
1560 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
1561 (f32_lm2): Likewise.
1562 (f32_li2): Likewise.
1563 (f32_sr2): Likewise.
1564 (f32_sm2): Likewise.
1565 (f32_si2): Likewise.
1567 (extendsfdf2_fpr): Likewise.
1568 (mov<mode>_hardfloat): Likewise.
1569 (mov<mode>_hardfloat32): Likewise.
1570 (mov<mode>_hardfloat64): Likewise.
1572 * doc/md.texi (RS/6000 constraints): Document wb constraint.
1573 Fixup we constraint documentation.
1575 2015-11-25 Tom de Vries <tom@codesourcery.com>
1577 * omp-low.c (pass_expand_omp_ssa::clone): New function.
1578 * passes.def: Add pass_oacc_kernels pass group.
1579 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
1581 2015-11-25 Tom de Vries <tom@codesourcery.com>
1583 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
1585 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
1586 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
1587 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
1588 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
1590 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1592 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
1593 TV_IPA_LTO_OUTPUT): New.
1594 * lto-compress.c: Include timevar.h
1595 (lto_end_compression, lto_end_uncompression): Add timers.
1596 * langhooks.c: Include timevar.h
1597 (lhd_append_data): Add timer.
1599 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1601 * varasm.c (default_elf_asm_output_limited_string,
1602 default_elf_asm_output_ascii): Replace fprintf by putc.
1604 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
1606 PR rtl-optimization/67954
1607 * lra-constraints.c (curr_insn_transform): Add check on scratch
1608 pseudo when change class to NO_REGS. Add an assert.
1610 2015-11-25 Nathan Sidwell <nathan@acm.org>
1612 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
1614 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
1616 (nvptx_write_function_decl): Number args from 0.
1617 (nvptx_declare_function_name): Likewise.
1618 (nvptx_function_incoming_arg): Likewise.
1619 (nvptx_output_call_insn): Correct formatting.
1621 2015-11-25 David Sherwood <david.sherwood@arm.com>
1623 * optabs.def: Add new optabs fmax_optab/fmin_optab.
1624 * internal-fn.def: Add new fmax/fmin internal functions.
1625 * doc/md.texi: Add fmin and fmax patterns.
1627 2015-11-25 Jason Merrill <jason@redhat.com>
1630 * tree.c (integer_zerop, integer_onep, integer_each_onep)
1631 (integer_all_onesp, integer_minus_onep, integer_pow2p)
1632 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
1633 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
1635 2015-11-25 Richard Biener <rguenther@suse.de>
1638 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
1639 on stripped operands.
1641 2015-11-25 Nathan Sidwell <nathan@acm.org>
1643 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
1644 (nvptx_declare_function_name): Move assignments next to register
1645 declarations, and process params here.
1647 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
1649 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
1650 both the symbol and the "dot" symbol for function descriptors. Fix
1651 inversion for rename of symbols with dollar sign.
1653 2015-11-25 Tom de Vries <tom@codesourcery.com>
1655 * cfgloop.c (find_single_latch): New function, factored out of ...
1656 (flow_loops_find): ... here.
1657 (verify_loop_structure): Improve verification of loop->latch.
1658 * cfgloop.h (find_single_latch): Declare.
1659 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1661 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1663 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
1664 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
1665 (STARTFILE_SPEC): Use %(startfile_vtv).
1666 (ENDFILE_SPEC): Use %(endfile_vtv).
1667 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
1670 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
1672 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
1674 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
1675 noce_can_store_speculate): Delete.
1676 (noce_process_if_block): Don't try to handle single MEM stores.
1677 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
1678 * alias.c (memory_must_be_modified_in_insn_p): Delete.
1680 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1682 PR rtl-optimization/68435
1683 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
1684 for conflicts between a, b and the set destinations.
1686 2015-11-25 Richard Biener <rguenther@suse.de>
1688 PR tree-optimization/68517
1689 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
1690 Properly handle zero-sized types.
1692 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1694 * ipa-inline-analysis.c: Include gimplify.h
1695 (set_cond_stmt_execution_predicate,
1696 set_switch_stmt_execution_predicate): Be sure to not leak locations
1699 2015-11-25 Jakub Jelinek <jakub@redhat.com>
1702 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
1703 match_uaddsub_overflow): New functions.
1704 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
1706 2015-11-25 Richard Biener <rguenther@suse.de>
1708 PR tree-optimization/68492
1709 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
1710 op from scalars after operand swapping.
1712 2015-11-25 Richard Biener <rguenther@suse.de>
1714 PR tree-optimization/68502
1715 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
1716 check that the step is a multiple of the type size.
1718 2015-11-24 Michael Collison <michael.collison@linaro.org>
1720 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
1721 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
1722 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
1724 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
1726 * frame-header-opt.c (gate): Check for optimize > 0.
1727 (has_inlined_assembly): New function.
1728 (needs_frame_header_p): Remove is_leaf_function check,
1729 add argument type check.
1730 (callees_functions_use_frame_header): Add is_leaf_function
1731 and has_inlined_assembly calls..
1732 (set_callers_may_not_allocate_frame): New function.
1733 (frame_header_opt): Add is_leaf_function call, add
1734 set_callers_may_not_allocate_frame call.
1735 * config/mips/mips.c (mips_compute_frame_info): Add check
1736 to see if callee saved regs can be put in frame header.
1737 (mips_expand_prologue): Add check to see if step1 is zero,
1738 fix cfa restores when using frame header to store regs.
1739 (mips_can_use_return_insn): Check to see if registers are
1740 stored in frame header.
1741 * config/mips/mips.h (machine_function): Add
1742 callers_may_not_allocate_frame and
1743 use_frame_header_for_callee_saved_regs fields.
1745 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1747 PR rtl-optimization/68520
1748 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
1749 its bit was already set in BB_WITH.
1751 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1753 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
1754 double check that type is main variant.
1755 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
1757 (verify_type_variant): Verify that variants have no
1758 TYPE_ALIAS_SET_KNOWN_P set
1759 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
1760 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
1761 only for main variants; stream TYPE_ALIAS_SET as a bit.
1762 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
1765 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1767 * tree.c (make_vector_type): Properly compute canonical type of the
1769 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
1772 2015-11-24 Nathan Sidwell <nathan@acm.org>
1774 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
1775 VOIDmode, don't alter incoming mode.
1776 (nvptx_split_reg_p): Delete.
1777 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
1778 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
1779 maybe_split_mode calls.
1780 (nvptx_print_operand): Use maybe_split_mode.
1782 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1784 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
1785 only for types where LTO sets them.
1786 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
1787 (make_vector_type): Likewise.
1788 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
1789 * tree.h (canonical_type_used_p): New inline.
1790 * alias.c (get_alias_set): Handle structural equality for all
1791 types that pass canonical_type_used_p.
1792 (record_component_aliases): Look through all types with
1793 record_component_aliases for possible pointers; sanity check that
1794 the alias sets match.
1796 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1798 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
1800 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1802 * tree.c (free_node): New function.
1803 (type_hash_canon): Use it.
1804 * tree.h (free_node): Declare.
1806 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
1807 Michael Meissner <meissner@linux.vnet.ibm.com>
1809 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
1810 (Fv2): New mode attribute to be used when ISA 2.07 instructions
1811 are used on SF values, and ISA 2.06 instructions on DF values.
1812 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
1813 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
1814 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
1815 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
1816 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
1817 (fre<Fs>): Use <Fv2> instead of <Fv>.
1818 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
1819 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
1820 (xsrdpi<mode>): Add support for the lround function.
1821 (lround<mode>di2): Likewise.
1822 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1823 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1824 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1825 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1827 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1828 Sebastian Pop <s.pop@samsung.com>
1830 PR tree-optimization/67984
1831 * graphite-isl-ast-to-gimple.c (is_constant): New.
1832 (get_rename): Call is_constant.
1833 (get_new_name): Same.
1835 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1836 Sebastian Pop <s.pop@samsung.com>
1838 * graphite-dependences.c: Only include graphite.h.
1839 * graphite-isl-ast-to-gimple.c: Same.
1840 * graphite-optimize-isl.c: Same.
1841 * graphite-poly.c: Same.
1842 * graphite-scop-detection.c: Same.
1843 * graphite-sese-to-poly.c: Same.
1845 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
1846 * graphite-poly.h: Same.
1847 * graphite-scop-detection.h: Same.
1850 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
1852 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
1853 DW_TAG_namespace for IMPORTED_DECL declarations. Call
1854 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
1855 function already takes care of checking what it can emit.
1857 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1859 * doc/invoke.texi (-fpic): Add the AArch64 limit.
1860 (-fPIC): Add AArch64.
1862 2015-11-24 Tom de Vries <tom@codesourcery.com>
1864 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
1865 (pass_lim::execute): Allow to run outside pass_tree_loop.
1867 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
1869 * config/aarch64/aarch64.md (add<mode>3):
1870 Block early expansion into 2 add instructions.
1871 (add<mode>3_pluslong): New pattern to combine complex
1872 immediates into 2 additions.
1874 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1879 * config/rs6000/predicates.md (and_operand): Check that the operand
1880 is a const_int before calling rs6000_is_valid_and_mask.
1882 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1884 * config/aarch64/aarch64.md (*condjump): Rename to...
1885 (condjump): ... This.
1886 (*compare_condjump<mode>): New define_insn_and_split.
1887 (*compare_cstore<mode>_insn): Likewise.
1888 (*cstore<mode>_insn): Rename to...
1889 (cstore<mode>_insn): ... This.
1890 * config/aarch64/iterators.md (CMP): Handle ne code.
1891 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
1893 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
1896 * config/i386/i386.c (output_387_binary_op): Fix assertion for
1899 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1901 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
1902 (val_ssa_equiv_hash_traits::remove): Likewise.
1903 (pass_uncprop::execute): Adjust.
1905 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1907 * hash-map-traits.h (simple_hashmap_traits ::remove): call
1908 destructors on values that are being removed.
1909 * mem-stats.h (hash_map): Pass type of values to
1910 simple_hashmap_traits.
1911 * tree-sra.c (sra_deinitialize): Remove work around for hash
1912 maps not destructing values.
1913 * genmatch.c (sinfo_hashmap_traits): Adjust.
1914 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
1916 2015-11-24 Richard Biener <rguenther@suse.de>
1917 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1920 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
1923 2015-11-24 Jakub Jelinek <jakub@redhat.com>
1926 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
1927 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
1929 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
1930 whenever first is nelt or above. Don't mask expected with
1933 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
1936 * gimple-fold.c: Include ipa-chkp.h.
1937 (gimple_fold_builtin_memory_op): Don't fold call if we
1938 are going to instrument it and it may copy pointers.
1940 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
1941 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1943 PR rtl-optimization/68194
1944 PR rtl-optimization/68328
1945 PR rtl-optimization/68185
1946 * ree.c (combine_reaching_defs): Reject copy_needed case if
1947 copies_list is not empty.
1949 2015-11-24 Richard Biener <rguenther@suse.de>
1952 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
1955 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1957 PR rtl-optimization/68381
1958 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
1961 2015-11-23 Nick Clifton <nickc@redhat.com>
1962 Jeff Law <law@redhat.com>
1964 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
1965 the source/dest of the target extension require a different number of
1967 (combine_set_extension): Remove #if 0 code.
1969 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1970 Sebastian Pop <s.pop@samsung.com>
1972 PR tree-optimization/68314
1973 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
1974 * graphite-poly.c (new_scop): Remove original_schedule.
1976 * graphite-poly.h (struct scop): Same.
1977 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
1978 (build_pbb_scattering_polyhedrons): Add back.
1979 (build_scop_minimal_scattering): Remove.
1980 (build_scop_scattering): Add back.
1981 (build_scop_original_schedule): Remove.
1982 (build_poly_scop): Revert to only call build_scop_scattering.
1984 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1985 Sebastian Pop <s.pop@samsung.com>
1987 PR tree-optimization/68493
1988 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
1989 missing early return when codegen_error is set.
1991 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1992 Sebastian Pop <s.pop@samsung.com>
1994 PR tree-optimization/68279
1995 * graphite-poly.c (new_scop): Remove poly_scop_p.
1996 * graphite-poly.h (struct scop): Same.
1997 (build_poly_scop): Declare.
1998 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
1999 (cleanup_loop_iter_dom): New.
2000 (build_loop_iteration_domains): Early return when scev analysis fails.
2001 (create_pw_aff_from_tree): Same.
2002 (add_condition_to_pbb): Same.
2003 (add_conditions_to_domain): Same.
2004 (add_conditions_to_constraints): Same.
2005 (build_scop_iteration_domain): Same.
2006 (build_poly_scop): Same. Do not initialize poly_scop_p.
2007 * graphite-sese-to-poly.h: Remove.
2008 * graphite.c: Do not include graphite-sese-to-poly.h.
2009 (graphite_transform_loops): Stop before code generation when
2010 build_poly_scop fails.
2011 * sese.c (scalar_evolution_in_region): Add fixme note about scev
2014 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2015 Sebastian Pop <s.pop@samsung.com>
2017 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2018 Remove call to update_ssa.
2019 * sese.c (sese_insert_phis_for_liveouts): Same.
2021 2015-11-23 Marek Polacek <polacek@redhat.com>
2023 PR tree-optimization/68455
2024 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
2025 extract_range_from_multiplicative_op_1 on symbolic ranges.
2027 2015-11-23 Richard Henderson <rth@redhat.com>
2029 * optabs.def (uaddv4_optab, usubv4_optab): New.
2030 * internal-fn.c (expand_addsub_overflow): Use them.
2031 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
2033 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
2034 to reversed operands.
2035 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
2036 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
2037 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
2038 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
2039 (*add<SWI>3_cconly_overflow_2): New.
2040 (*add<SWI>3_cc_overflow_2): New.
2041 (*addsi3_zext_cc_overflow_2): New.
2043 2015-11-23 Richard Biener <rguenther@suse.de>
2045 PR tree-optimization/68465
2046 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
2047 Also record equalities from multiple predecessor blocks if
2048 only one non-backedge exists.
2050 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2053 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
2054 that are not INSN_P.
2056 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
2058 * config/aarch64/aarch64-builtins.c
2059 (aarch64_gimple_fold_builtin): Fold FMULX.
2061 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
2063 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
2064 * graphite-dependences.c: Define USES_ISL. Include ISL header files
2065 after GCC header files and before graphite header files.
2066 * graphite-dependences.c: Same.
2067 * graphite-isl-ast-to-gimple.c: Same.
2068 * graphite-optimize-isl.c: Same.
2069 * graphite-poly.c: Same.
2070 * graphite-scop-detection.c: Same.
2071 * graphite-sese-to-poly.c: Same.
2074 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
2075 Jiong Wang <jiong.wang@arm.com>
2077 PR tree-optimization/68317
2078 PR tree-optimization/68326
2079 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
2080 final min and max are not infinity.
2082 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2083 Richard Biener <rguenther@suse.de>
2085 PR tree-optimization/68327
2086 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2087 compute vectype for non-relevant mask producers.
2088 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
2091 2015-11-23 Tom de Vries <tom@codesourcery.com>
2093 PR tree-optimization/68460
2094 * tree-parloops.c (gather_scalar_reductions): Also call
2095 free_stmt_vec_info_vec if simple_loop_info == NULL.
2097 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2099 * opts.c (finish_options): Allow -fsanitize-recover=address for
2100 userspace sanitization.
2101 * asan.c (asan_expand_check_ifn): Redefine recover_p.
2102 * doc/invoke.texi (fsanitize-recover): Update documentation.
2104 2015-11-23 Tom de Vries <tom@codesourcery.com>
2106 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2108 2015-11-23 Richard Biener <rguenther@suse.de>
2110 PR tree-optimization/68445
2111 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2112 two different strides.
2114 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
2116 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2117 * config/s390/s390.c (s390_check_symref_alignment): Use new
2118 symref flags, early abort on wrong alignment
2119 (s390_secondary_reload): Use new symref flags.
2120 (s390_encode_section_info): Likewise.
2121 * config/s390/predicates.md: Likewise.
2123 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2126 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2127 for indirect function call.
2129 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
2131 * config/aarch64/aarch64-simd.md
2132 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2133 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2134 (*aarch64_mulx_elt_to_64v2df): Likewise.
2135 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2136 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2137 (vmulx_lane_f64): Likewise.
2138 (vmulxq_lane_f32): Refactored & moved.
2139 (vmulxq_lane_f64): Likewise.
2140 (vmulx_laneq_f32): New.
2141 (vmulx_laneq_f64): Likewise.
2142 (vmulxq_laneq_f32): Likewise.
2143 (vmulxq_laneq_f64): Likewise.
2144 (vmulxs_lane_f32): Likewise.
2145 (vmulxs_laneq_f32): Likewise.
2146 (vmulxd_lane_f64): Likewise.
2147 (vmulxd_laneq_f64): Likewise.
2149 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
2151 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2152 In LTO we do not compute TYPE_CANONICAL of pointers.
2153 (gimple_canonical_types_compatible_p): Improve coments; sanity check
2154 that pointers do not have canonical type that would make us believe
2156 * alias.c (get_alias_set): Do structural type equality on pointers;
2157 enable pointer path for LTO; also glob pointer to vector with pointer
2158 to vector element; glob pointers and references for LTO; do more strict
2159 sanity checking about build_pointer_type returning the canonical type
2160 which is also the main variant.
2161 (record_component_aliases): When component type is pointer and we
2162 do LTO; record void_type_node alias set.
2164 2015-11-21 Nathan Sidwell <nathan@acm.org>
2166 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2168 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2170 (write_func_decl_from_insn): Likewise.
2171 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2172 (nvptx_file_end): Likewise.
2173 (nvptx_function_end): Undent output.
2174 (nvptx_expand_call): Fix formatting.
2175 (nvptx_output_call_insn): Indent output.
2176 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2177 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2179 2015-11-21 Jakub Jelinek <jakub@redhat.com>
2182 * tree-inline.c (copy_debug_stmt): If
2183 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2184 in decl_debug_args, don't call remap_gimple_op_r on it.
2186 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2188 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2189 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2190 Check that all record types are complete.
2191 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2192 compare alias sets for types w/o alias sets.
2194 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2196 * config/sparc/sparc.md (umulxhi_vis): Move around.
2197 (*umulxhi_sp64): Likewise.
2198 (umulxhi_v8plus): Likewise.
2199 (xmulx_vis): Likewise.
2200 (*xmulx_sp64): Likewise.
2201 (xmulx_v8plus): Likewise.
2202 (xmulxhi_vis): Likewise.
2203 (*xmulxhi_sp64): Likewise.
2204 (xmulxhi_v8plus): Likewise.
2206 2015-11-20 David Malcolm <dmalcolm@redhat.com>
2209 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2210 (class layout): Update comment
2211 (layout::print_any_fixits): New method.
2212 (layout::move_to_column): New method.
2213 (diagnostic_show_locus): Add call to layout.print_any_fixits.
2215 2015-11-20 Jakub Jelinek <jakub@redhat.com>
2218 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2219 has non-zero bias, subtract it in integer type instead of
2220 pointer plus of negated bias.
2223 * omp-low.c (expand_simd_clones): Call node->get_body () before
2224 allocating stuff in GC.
2226 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
2228 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2230 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
2232 * config/aarch64/aarch64.md (predicated): Copy attribute from
2234 * config/arm/arm.md (predicated): Added description.
2236 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2238 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2239 for unaligned_access.
2240 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2241 from matching condition.
2242 (unaligned_loadhis): Likewise.
2243 (unaligned_loadhiu): Likewise.
2244 (unaligned_storesi): Likewise.
2245 (unaligned_storehi): Likewise.
2247 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2250 * config/arm/arm.md (unaligned_loaddi): Delete.
2251 (unaligned_storedi): Likewise.
2252 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2253 unaligned DImode memory ops. Instead perform two back-to-back
2254 unaligned SImode ops.
2256 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
2257 James Norris <jnorris@codesourcery.com>
2259 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2260 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2262 2015-11-20 Alan Hayward <alan.hayward@arm.com>
2264 PR tree-optimization/68413
2265 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2267 (vectorizable_reduction): Use cached base
2269 2015-11-20 Tom de Vries <tom@codesourcery.com>
2271 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2273 (try_create_reduction_list): Same. Fix typo in dump-file string.
2275 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2277 * doc/md.texi (Standard Names): Move entry for addptr3 around,
2278 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2279 glitch in entries for cbranch4 and jump.
2281 2015-11-20 Tom de Vries <tom@codesourcery.com>
2283 PR tree-optimization/68373
2284 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2286 (scev_const_prop): ... here.
2287 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2288 * tree-parloops.c (try_create_reduction_list): Call
2289 final_value_replacement_loop.
2291 2015-11-20 Bin Cheng <bin.cheng@arm.com>
2293 PR tree-optimization/52272
2294 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2295 (struct iv_common_cand_hasher): New struct.
2296 (iv_common_cand_hasher::hash): New function.
2297 (iv_common_cand_hasher::equal): New function.
2298 (struct ivopts_data): New fields, iv_common_cand_tab and
2300 (tree_ssa_iv_optimize_init): Initialize above fields.
2301 (record_common_cand, common_cand_cmp): New functions.
2302 (add_iv_candidate_derived_from_uses): New function.
2303 (add_iv_candidate_for_use): Record iv_common_cands derived from
2304 iv use in hash table, instead of adding candidates directly.
2305 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2306 (record_important_candidates): Add important candidates to iv uses'
2307 related_cands. Always keep related_cands for future use.
2308 (try_add_cand_for): Use iv uses' related_cands.
2309 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2310 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2312 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2314 * config/s390/s390.md ("bswaphi2"): New pattern.
2316 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
2318 * config/s390/s390.md (GPR1_REGNUM): New constant.
2319 ("*trunc<BFP:mode><DFP_ALL:mode>2")
2320 ("*trunc<DFP_ALL:mode><BFP:mode>2")
2321 ("trunc<BFP:mode><DFP_ALL:mode>2")
2322 ("trunc<DFP_ALL:mode><BFP:mode>2")
2323 ("*extend<BFP:mode><DFP_ALL:mode>2")
2324 ("*extend<DFP_ALL:mode><BFP:mode>2")
2325 ("extend<BFP:mode><DFP_ALL:mode>2")
2326 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2328 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2329 Sebastian Pop <s.pop@samsung.com>
2331 PR tree-optimization/68428
2332 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2333 over basic blocks outside the scop.
2335 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2336 Sebastian Pop <s.pop@samsung.com>
2338 PR tree-optimization/68341
2339 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2340 gcc_unreachable and safely fail codegen.
2341 (copy_loop_close_phi_args): Do not insert merge phis in a basic
2342 block with loop phi nodes.
2343 (edge_for_new_close_phis): New.
2344 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2346 2015-11-19 Nathan Sidwell <nathan@acm.org>
2348 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2349 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2350 (nvptx_declare_objec_name): Likewise.
2352 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2354 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2355 (get_false_edge_from_guard_bb): Move...
2356 * sese.c (get_false_edge_from_guard_bb)
2357 (get_true_edge_from_guard_bb): ... here.
2359 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
2362 2015-11-18 Alan Modra <amodra@gmail.com>
2364 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2365 type-limits warning.
2368 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2370 * tree.h (desired_pro_or_demotion_p): New function.
2371 * tree-vrp.c (simplify_cond_using_ranges): Call it.
2373 2015-11-19 Michael Matz <matz@suse.de>
2375 * fwprop.c (update_uses): Use flag_checking instead of
2376 gcc_checking_assert.
2378 2015-11-19 David Malcolm <dmalcolm@redhat.com>
2380 * doc/gty.texi (Support for inheritance): Fix missing
2381 parentheses in example.
2383 2015-11-19 Marek Polacek <polacek@redhat.com>
2385 PR tree-optimization/68431
2386 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2388 2015-11-19 Nathan Sidwell <nathan@acm.org>
2390 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2391 atomic_exchange<mode>): Input values can be immediates.
2393 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2396 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2398 * configure: Regenerate.
2400 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2403 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2404 (DTORS_SECTION_ASM_OP): Likewise.
2406 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2408 PR rtl-optimization/68376
2409 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2410 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2412 2015-11-19 Richard Biener <rguenther@suse.de>
2415 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2416 redirect_edge_var_map_destroy.
2418 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2421 * config/i386/i386.md (simple_return): Disable if
2422 ix86_static_chain_on_stack is true.
2424 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
2427 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2430 2015-11-18 Jeff Law <law@redhat.com>
2432 PR tree-optimization/68198
2433 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2434 between threading a multi-way branch and a thread path that contains
2435 a multi-way branch. Disallow the case where a path contains a
2436 multi-way branch and does not thread a multi-way branch.
2437 (thread_through_all_blocks): Update comment.
2439 2015-11-18 Joseph Myers <joseph@codesourcery.com>
2442 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2443 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2444 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2445 functions before defining as macros.
2447 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2449 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2450 (nvptx_record_offload_symbol): Remove code compensating for lack
2451 of default dimension handling.
2452 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2454 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2456 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2457 type to bool for early exit.
2458 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2460 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2461 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2462 predecessor dominates the other.
2463 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2464 element is not found it returns -1.
2465 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2466 out early when codegen fails.
2467 (graphite_regenerate_ast_isl): Remove codegen region when pending
2468 phis could not be generated.
2470 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2472 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2474 (class translate_isl_ast_to_gimple): Indentation.
2475 (translate_pending_phi_nodes): Comment.
2476 (add_parameters_to_ivs_params): Moved from sese.c inside class
2477 translate_isl_ast_to_gimple.
2478 (get_max_schedule_dimensions): Same.
2479 (generate_isl_context): Same.
2480 (extend_schedule): Same.
2481 (generate_isl_schedule): Same.
2482 (set_options): Same.
2483 (scop_to_isl_ast): Same.
2484 (is_valid_rename): Same.
2486 (get_rename_from_scev): Same.
2487 (get_def_bb_for_const): Same.
2488 (get_new_name): Same.
2489 (collect_all_ssa_names): Same.
2490 (copy_loop_phi_args): Same.
2491 (copy_loop_phi_nodes): Same.
2492 (copy_loop_close_phi_args): Same.
2493 (copy_loop_close_phi_nodes): Same.
2494 (copy_cond_phi_args): Same.
2495 (copy_cond_phi_nodes): Same.
2496 (graphite_copy_stmts_from_block): Same.
2497 (copy_bb_and_scalar_dependences): Same.
2498 (add_phi_arg_for_new_expr): Same.
2499 (rename_uses): Same.
2501 (set_rename_for_each_def): Same.
2502 (gsi_insert_earliest): Same.
2503 (rename_all_uses): Same.
2504 (codegen_error_p): Same.
2505 (print_isl_ast_node): Same.
2506 (translate_isl_ast_for_loop): Call function codegen_error_p.
2507 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2508 (translate_isl_ast_node_user): Make nb_loops const and release
2510 (get_true_edge_from_guard_bb): Move all free-functions early.
2511 (get_false_edge_from_guard_bb): Same.
2512 (bb_contains_loop_close_phi_nodes): Same.
2513 (bb_contains_loop_phi_nodes): Same.
2514 (is_loop_closed_ssa_use): Same.
2515 (number_of_phi_nodes): Same.
2516 (phi_uses_name): Same.
2517 (later_of_the_two): Same.
2518 (substitute_ssa_name):
2521 (get_loop_init_value): Same.
2522 (find_init_value): Same.
2523 (find_init_value_close_phi): Same.
2524 (ast_build_before_for): Same.
2525 (graphite_regenerate_ast_isl): Formatting changes.
2526 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2527 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2529 (gsi_insert_earliest): Same.
2530 (collect_all_ssa_names): Same.
2531 (rename_all_uses): Same.
2532 (rename_uses): Same.
2533 (get_def_bb_for_const): Same.
2534 (copy_loop_phi_nodes): Same.
2535 (copy_loop_close_phi_args): Same.
2536 (copy_loop_close_phi_nodes): Same.
2537 (copy_cond_phi_args): Same.
2538 (copy_cond_phi_nodes): Same.
2539 (set_rename_for_each_def): Same.
2540 (graphite_copy_stmts_from_block): Same.
2541 (copy_bb_and_scalar_dependences): Same.
2542 (if_region_set_false_region): Same.
2543 (scev_analyzable_p): Same.
2544 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
2546 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
2548 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
2549 commit from r125920 for FreeBSD.
2551 2015-11-18 Jason Merrill <jason@redhat.com>
2553 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
2555 (add_finalizer): Split out from ggc_internal_alloc.
2556 (ggc_handle_finalizers): Run finalizers for the current depth.
2557 (init_ggc, ggc_pch_read): Reserve space for finalizers.
2559 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
2562 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
2565 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2567 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
2568 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
2570 * doc/avr-mmcu.texi: Regenerate.
2572 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2574 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
2575 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
2576 (struct bb_sese): New struct.
2577 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
2578 (BB_GET_SESE, BB_SET_SESE): Define.
2579 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
2580 (nvptx_find_sese): New.
2581 (nvptx_neuter_pars): Find SESE regions when optimizing.
2583 2015-11-18 Alan Modra <amodra@gmail.com>
2585 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2586 type-limits warning.
2588 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
2591 * hash-set.h (hash_set::traverse): Expand Key typedef.
2593 2015-11-18 Martin Liska <mliska@suse.cz>
2595 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
2598 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2600 * config/nvptx/nvptx.c (global_lock_var): New.
2601 (nvptx_global_lock_addr): New.
2602 (nvptx_lockless_update): Recomment and adjust for clarity.
2603 (nvptx_lockfull_update): New.
2604 (nvptx_reduction_update): New.
2605 (nvptx_goacc_reduction_fini): Call it.
2607 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
2609 * regrename.h (struct du_head): Add target_data_1 and target_data_2
2611 * regrename.c (create_new_chain): Clear entire struct after allocating.
2613 * config/i386/i386.opt (mmitigate-rop): New option.
2614 * doc/invoke.texi (mmitigate-rop): Document.
2615 * config/i386/i386.c: Include "regrename.h".
2616 (ix86_rop_should_change_byte_p, reg_encoded_number,
2617 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
2619 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
2620 * config/i386/i386.md (attr "modrm_class"): New.
2621 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
2622 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
2623 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
2625 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2628 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
2630 2015-11-18 Jakub Jelinek <jakub@redhat.com>
2632 PR tree-optimization/68157
2633 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
2634 pow_stmt or mul_stmt from stmt's uid.
2635 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
2637 2015-11-18 Martin Liska <mliska@suse.cz>
2639 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
2641 2015-11-18 Martin Liska <mliska@suse.cz>
2643 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2644 Fix GNU coding style.
2645 (find_def_preds): Use auto_vec.
2646 (destroy_predicate_vecs): Change signature of the function.
2647 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
2649 (simplify_preds_4): Use destroy_predicate_vecs instread of
2650 just releasing preds vector.
2651 (normalize_preds): Likewise.
2652 (is_use_properly_guarded): Use new signature of
2653 destroy_predicate_vecs.
2654 (find_uninit_use): Likewise.
2656 2015-11-18 Richard Biener <rguenther@suse.de>
2658 PR tree-optimization/67790
2659 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
2660 IL rewrite for MINUS_EXPR reductions, rename back to ...
2661 (vect_is_simple_reduction): ... this, removing the wrapper.
2662 (vect_force_simple_reduction): Adjust.
2663 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
2664 reductions and make use if reduc_index in all places. For
2665 the final reduction of MINUS_EXPR use PLUS_EXPR.
2667 2015-11-18 Alan Modra <amodra@gmail.com>
2669 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
2671 * configure: Regenerate.
2673 2015-11-17 Tom de Vries <tom@codesourcery.com>
2675 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
2677 2015-11-17 Tom de Vries <tom@codesourcery.com>
2679 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
2680 uses of ssa_name with constant.
2682 2015-11-17 Tom de Vries <tom@codesourcery.com>
2684 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
2687 2015-11-17 Tom de Vries <tom@codesourcery.com>
2689 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
2690 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
2691 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
2693 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
2695 * regrename.c (regrename_find_superclass): New function, code moved
2697 (rename_chains): ... here. Call it.
2698 * regrename.h (regrename_find_superclass): Declare.
2700 * regrename.c (record_out_operands): Terminate earlyclobbered
2704 * regrename.c (record_operand_use): Keep track of failed operands
2705 and stop appending if we see any.
2706 * regrename.h (struct operand_rr_info): Add a failed field and shrink
2709 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2712 * doc/extend.texi (Common Function Attributes) [visibility]:
2713 Add cross-references to matching variable and type attributes.
2714 (Common Variable Attributes) [visibility]: Add missing entry.
2716 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2718 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
2719 entries that map directly to optabs.
2721 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2723 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
2724 entries that map directly to optabs.
2726 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2728 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
2729 * internal-fn.c (direct_internal_fn_array): Update accordingly.
2730 * tree-vectorizer.h (vectorizable_function): Delete.
2731 * tree-vect-stmts.c: Include internal-fn.h.
2732 (vectorizable_internal_function): New function.
2733 (vectorizable_function): Inline into...
2734 (vectorizable_call): ...here. Explicitly reject calls that read
2735 from or write to memory. Try using an internal function before
2736 falling back on the old vectorizable_function behavior.
2738 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2740 * target.def (builtin_vectorized_function): Take a combined_fn (in
2741 the form of an unsigned int) rather than a function decl.
2742 (builtin_md_vectorized_function): New.
2743 * targhooks.h (default_builtin_vectorized_function): Replace the
2744 fndecl argument with an unsigned int.
2745 (default_builtin_md_vectorized_function): Declare.
2746 * targhooks.c (default_builtin_vectorized_function): Replace the
2747 fndecl argument with an unsigned int.
2748 (default_builtin_md_vectorized_function): New function.
2749 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
2751 * doc/tm.texi: Regenerate.
2752 * tree-vect-stmts.c (vectorizable_function): Update call to
2753 builtin_vectorized_function, also passing internal functions.
2754 Call builtin_md_vectorized_function for target-specific builtins.
2755 * config/aarch64/aarch64-protos.h
2756 (aarch64_builtin_vectorized_function): Replace fndecl argument
2757 with an unsigned int.
2758 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
2759 (aarch64_builtin_vectorized_function): Update after above changes.
2761 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
2762 fndecl argument with an unsigned int.
2763 * config/arm/arm-builtins.c: Include case-cfn-macros.h
2764 (arm_builtin_vectorized_function): Update after above changes.
2766 * config/i386/i386.c: Include case-cfn-macros.h
2767 (ix86_veclib_handler): Take a combined_fn rather than a
2769 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
2770 mathfn_built_in rather than calling builtin_decl_implicit directly.
2771 (ix86_builtin_vectorized_function) Update after above changes.
2773 * config/rs6000/rs6000.c: Include case-cfn-macros.h
2774 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
2775 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
2776 than calling builtin_decl_implicit directly.
2777 (rs6000_builtin_vectorized_function): Update after above changes.
2778 Use CASE_CFN_*. Move BUILT_IN_MD to...
2779 (rs6000_builtin_md_vectorized_function): ...this new function.
2780 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
2782 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2784 * tree-vect-patterns.c: Include internal-fn.h.
2785 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
2787 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2789 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
2790 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
2792 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2794 * builtins.c (expand_errno_check, expand_builtin_mathfn)
2795 (expand_builtin_mathfn_2): Delete.
2796 (expand_builtin): Remove handling of functions with
2797 internal function equivalents.
2798 * internal-fn.def (SET_EDOM): New internal function.
2799 * internal-fn.h (set_edom_supported_p): Declare.
2800 * internal-fn.c (expand_SET_EDOM): New function.
2801 (set_edom_supported_p): Likewise.
2802 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
2803 Rewrite comment at head of file.
2804 (is_call_dce_candidate): Rename to...
2805 (can_test_argument_range): ...this. Don't check gimple_call_lhs
2806 or gimple_call_builtin_p here.
2807 (edom_only_function): New function.
2808 (shrink_wrap_one_built_in_call_with_conds): New function, split out
2810 (shrink_wrap_one_built_in_call): ...here.
2811 (can_use_internal_fn, use_internal_fn): New functions.
2812 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
2813 for calls that have an lhs.
2814 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
2815 (pass_call_cdce::execute): Skip blocks that are optimized for size.
2816 Check gimple_call_builtin_p here. Use can_use_internal_fn for
2818 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
2821 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2823 * builtins.h (called_as_built_in): Declare.
2824 * builtins.c (called_as_built_in): Make external.
2825 * internal-fn.h (expand_internal_call): Define a variant that
2826 specifies the internal function explicitly.
2827 * internal-fn.c (expand_load_lanes_optab_fn)
2828 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
2829 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
2830 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
2831 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
2832 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
2833 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
2834 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
2835 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
2836 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
2837 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
2838 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
2839 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
2840 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
2842 (internal_fn_expanders): Update prototype.
2843 (expand_internal_call): Define a variant that specifies the
2844 internal function explicitly. Use it to implement the previous
2846 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
2847 functions as calls to internal functions.
2849 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2851 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
2852 (generated_files): Likewise.
2853 (s-cfn-operators, cfn-operators.pd): New rules.
2854 (s-match): Depend on cfn-operators.pd.
2855 * gencfn-macros.c: Expand comment to describe -o behavior.
2856 (print_define_operator_list): New function.
2857 (main): Accept -o. Call print_define_operator_list.
2858 * genmatch.c (main): Add the current directory to the include path.
2859 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
2862 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2864 * doc/match-and-simplify.texi: Document the "null" identifier.
2865 * genmatch.c (id_base::NULL_ID): New kind.
2866 (null_id): New variable.
2867 (get_operator): Add a parameter that says whether null identifiers
2869 (contains_id): New function.
2870 (lower_for): Skip substitutions that would have a null_id in
2871 either the match or the result.
2872 (parser::parse_for): Allow the null identifier to be used.
2873 (parser::parse_operator_list): Likewise.
2874 (main): Initialize null_id.
2876 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2878 * match.pd: Use HYPOT and COS rather than hypot and cos.
2879 Use CASE_CFN_* macros. Guard log/exp folds with
2880 SCALAR_FLOAT_TYPE_P.
2881 * genmatch.c (internal_fn): New enum.
2882 (fn_id::fn): Change to an unsigned int.
2883 (fn_id::fn_id): Accept internal_fn too.
2884 (add_builtin): Rename to...
2885 (add_function): ...this and turn into a template.
2886 (get_operator): Only try one variation if the original name fails.
2887 Only add _EXPR if the original name was all lower case.
2888 Try converting internal and built-in function names to their
2890 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
2891 (dt_simplify::gen_1): Likewise.
2892 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
2893 and get_call_combined_fn for generic.
2894 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
2895 (decision_tree::gen): Likewise.
2896 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
2897 Use add_function rather than add_builtin. Register internal
2899 * generic-match-head.c: Include case-cfn-macros.h.
2900 * gimple-fold.c (replace_stmt_with_simplification): Use
2901 gimple_call_combined_fn to test whether we can keep an
2903 * gimple-match.h (code_helper): Replace built_in_function
2905 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
2906 and case-fn-macros.h.
2907 (gimple_resimplify1): Use fold_const_call.
2908 (gimple_resimplify2, gimple_resimplify3): Likewise.
2909 (build_call_internal, build_call): New functions.
2910 (maybe_push_res_to_seq): Use them.
2911 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
2912 rather than a built-in function.
2913 * tree.h (build_call_expr_internal_loc): Declare.
2914 (maybe_build_call_expr_loc): Likewise.
2915 * tree.c (build_call_expr_internal_loc_array): New function.
2916 (maybe_build_call_expr_loc): Likewise.
2918 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2920 * builtins.h (mathfn_built_in): Add a variant that takes
2922 * builtins.c: Include case-cfn-macros.h.
2923 (CASE_MATHFN): Use CASE_CFN_*.
2924 (CASE_MATHFN_REENT): Use CFN_ codes.
2925 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
2926 argument with a combined_fn.
2927 (mathfn_built_in): Add a variant that takes a combined_fn.
2928 (expand_builtin_int_roundingfn_2): Update callers accordingly.
2929 (fold_builtin_sincos, fold_builtin_classify): Likewise.
2931 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2933 * tree-vect-patterns.c: Include case-cfn-macros.h.
2934 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
2936 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2938 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
2939 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
2940 (pass_cse_sincos::execute): Likewise.
2942 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2944 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
2945 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
2946 (decrement_power, acceptable_pow_call): Likewise.
2947 (attempt_builtin_copysign): Likewise.
2949 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2951 * tree-vrp.c: Include case-cfn-macros.h.
2952 (extract_range_basic): Switch on combined_fn rather than handling
2953 built-in functions and internal functions separately.
2955 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2957 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
2958 than a built_in_function.
2959 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2961 (integer_valued_real_call_p): Likewise.
2962 * fold-const.c: Include case-cfn-macros.h
2963 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
2964 (negate_expr_p): Update accordingly.
2965 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2967 (integer_valued_real_call_p): Likewise.
2968 (tree_invalid_nonnegative_warnv_p): Update accordingly.
2969 (integer_valued_real_p): Likewise.
2970 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
2971 to tree_call_nonnegative_warnv_p.
2972 (gimple_call_integer_valued_real_p): Likewise
2973 integer_valued_real_call_p.
2974 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
2975 (backprop::process_builtin_call_use): Extend to combined_fn.
2976 (strip_sign_op_1): Likewise.
2977 (backprop::process_use): Don't check for built-in calls here.
2978 (backprop::execute): Likewise.
2979 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
2981 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2983 * fold-const-call.h (fold_const_call): Replace built_in_function
2984 arguments with combined_fn arguments.
2985 * fold-const-call.c: Include case-cfn-macros.h.
2986 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
2987 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
2988 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
2989 built_in_function arguments with combined_fn arguments.
2990 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
2991 (fold_builtin_3): Update calls to fold_const_call.
2993 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2995 * Makefile.in (HASH_TABLE_H): Add GGC_H.
2996 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
2997 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
2998 (build/gencfn-macros$(build_exeext): New rules.
2999 (genprogerr): Add cfn-macros.
3000 * hash-set.h (hash_set): Use the traits value_type as the key.
3001 * gencfn-macros.c: New file.
3003 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3005 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
3006 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
3007 * builtins.c (associated_internal_fn): Handle them.
3009 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3011 * builtins.h (associated_internal_fn): Declare.
3012 (replacement_internal_fn): Likewise.
3013 * builtins.c: Include internal-fn.h
3014 (associated_internal_fn, replacement_internal_fn): New functions.
3015 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
3016 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
3017 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
3018 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
3019 (LDEXP): New functions.
3020 * internal-fn.c: Include recog.h.
3021 (unary_direct, binary_direct): New macros.
3022 (expand_direct_optab_fn): New function.
3023 (expand_unary_optab_fn): New macro.
3024 (expand_binary_optab_fn): Likewise.
3025 (direct_unary_optab_supported_p): Likewise.
3026 (direct_binary_optab_supported_p): Likewise.
3028 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3030 * coretypes.h (tree_pair): New type.
3031 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
3032 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
3033 * internal-fn.h (direct_internal_fn_info): New structure.
3034 (direct_internal_fn_array): Declare.
3035 (direct_internal_fn_p, direct_internal_fn): New functions.
3036 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
3037 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
3038 (mask_store_direct, store_lanes_direct): New macros.
3039 (direct_internal_fn_array) New array.
3040 (get_multi_vector_move): Return the optab handler without asserting
3041 that it is available.
3042 (expand_LOAD_LANES): Rename to...
3043 (expand_load_lanes_optab_fn): ...this and add an optab argument.
3044 (expand_STORE_LANES): Rename to...
3045 (expand_store_lanes_optab_fn): ...this and add an optab argument.
3046 (expand_MASK_LOAD): Rename to...
3047 (expand_mask_load_optab_fn): ...this and add an optab argument.
3048 (expand_MASK_STORE): Rename to...
3049 (expand_mask_store_optab_fn): ...this and add an optab argument.
3050 (direct_internal_fn_types, direct_optab_supported_p)
3051 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
3052 (direct_internal_fn_supported_p): New functions.
3053 (direct_mask_load_optab_supported_p): New macro.
3054 (direct_load_lanes_optab_supported_p): Likewise.
3055 (direct_mask_store_optab_supported_p): Likewise.
3056 (direct_store_lanes_optab_supported_p): Likewise.
3058 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3060 * tree-core.h (internal_fn): Move immediately after the definition
3061 of built_in_function.
3062 (combined_fn): New enum.
3063 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
3064 (internal_fn_p, as_internal_fn): New functions.
3065 (get_call_combined_fn, combined_fn_name): Declare.
3066 * tree.c (get_call_combined_fn): New function.
3067 (combined_fn_name): Likewise.
3068 * gimple.h (gimple_call_combined_fn): Declare.
3069 * gimple.c (gimple_call_combined_fn): New function.
3071 2015-11-17 Martin Sebor <msebor@redhat.com>
3074 * cp/init.c (build_new_1): Check for expression constness
3077 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
3080 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
3082 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
3083 discussion of the Microsoft structure layout details here from
3084 its former home in extend.texi.
3085 * doc/extend.texi (x86 Variable Attributes): Replace detailed
3086 discussion with pointer to its new location. Add cross-reference
3087 to corresponding type attributes.
3088 (x86 Type Attributes): Add cross-references to command-line options
3089 and variable attributes.
3091 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3094 * targhooks.c (default_get_mask_mode): Filter out
3095 scalar modes returned by mode_for_vector.
3097 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3100 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
3101 offset from dstbase and use it appropriately in
3102 adjust_automodify_address.
3103 (arm_block_set_aligned_vect): Likewise.
3105 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
3107 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3108 (MULTILIB_DIRNAMES): Adjust accordingly.
3110 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
3112 * config/aarch64/aarch64-cores.def (cortex-a35): New.
3113 * config/aarch64/aarch64.c (cortexa35_tunings): New.
3114 * config/aarch64/aarch64-tune.md: Regenerate.
3115 * doc/invoke.texi (-mcpu): Add Cortex-A35
3117 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
3120 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3122 * config/i386/sse.md (*mov<mode>_internal): Always enable
3123 AVX and SSE unaligned moves for IAMCU.
3125 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3127 * tree-if-conv.c: Include varasm.h
3128 (ref_DR_map): Define.
3129 (baseref_DR_map): Like wise
3130 (struct ifc_dr): Add new tree predicate field.
3131 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3132 (memrefs_read_or_written_unconditionally): Remove.
3133 (write_memrefs_written_at_least_once): Remove.
3134 (ifcvt_memrefs_wont_trap): Use hash maps to query
3135 unconditional read/written information.
3136 (if_convertible_loop_p_1): Initialize hash maps and predicates
3137 before hashing data references and delete hashmaps at the end.
3139 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3142 * doc/invoke.texi (Optimize Options): Move @end table to the right
3145 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
3148 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3151 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
3153 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3154 128-bit types, just types that fit in a single vector.
3155 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3157 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
3159 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3160 in the user documentation.
3161 (define_peephole2, define_split): Similarly.
3163 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3165 * lto-streamer-out.c (write_global_references): Adjust integer type.
3166 (lto_output_decl_state_refs): Likewise.
3168 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3170 * config/arm/arm-cores.def (cortex-a35): New.
3171 * config/arm/arm.c (arm_cortex_a35_tune): New.
3172 * config/arm/arm-tables.opt: Regenerate.
3173 * config/arm/arm-tune.md: Regenerate.
3174 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3175 * config/arm/t-aprofile: Likewise.
3176 * doc/invoke.texi (-mcpu): Likewise.
3178 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
3180 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3181 and qdf24xx and xgene1 to match -march=armv8-a.
3183 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3185 PR rtl-optimization/68330
3186 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3187 of LSHIFTRT by a non-zero constant integer.
3189 2015-11-16 Richard Biener <rguenther@suse.de>
3191 PR tree-optimization/68306
3192 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3193 bogus copying from verify_data_ref_alignment and use continue
3196 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
3197 Kaz Kojima <kkojima@gcc.gnu.org>
3200 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3202 (*addsi3): Add another insn_and_split variant for reload.
3204 2015-11-16 Richard Biener <rguenther@suse.de>
3207 * cfgexpand.c (pass_expand::execute): Destroy the edge
3208 redirection var map before setting RTL CFG hooks.
3210 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
3212 * config/i386/sse.md (reduc_splus_v8df): Rename to...
3213 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3215 (reduc_splus_v4df): Rename to...
3216 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3218 (reduc_splus_v2df): Rename to...
3219 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3221 (reduc_splus_v16sf): Rename to...
3222 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3224 (reduc_splus_v8sf): Rename to...
3225 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3227 (reduc_splus_v4sf): Rename to...
3228 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3230 (reduc_<code>_<mode>, all 3 variants): Rename each to...
3231 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3233 (reduc_umin_v8hf): Rename to...
3234 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3236 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3238 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3239 without additional conditions.
3240 * doc/extend.texi (@item simd): New.
3242 2015-11-16 Tom de Vries <tom@codesourcery.com>
3244 * passes.c (first_pass_instance): Remove variable.
3245 (execute_todo): Remove setting of first_pass_instance.
3246 * tree-pass.h (first_pass_instance): Remove declaration.
3248 2015-11-16 Tom de Vries <tom@codesourcery.com>
3250 * passes.def: Add arg to pass_ccp pass instantiation.
3251 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
3252 instead of first_pass_instance.
3253 (do_ssa_ccp): Add and handle param nonzero_p.
3254 (pass_ccp::pass_ccp): Initialize nonzero_p.
3255 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
3256 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3257 (pass_ccp::nonzero_p): New private member.
3259 2015-11-16 Tom de Vries <tom@codesourcery.com>
3261 * passes.def: Add arg to pass_object_sizes pass instantiation.
3262 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3264 (pass_object_sizes::set_pass_param): New member function. Set
3266 (pass_object_sizes::insert_min_max_p): New private member.
3267 (pass_object_sizes::execute): Use insert_min_max_p instead of
3268 first_pass_instance.
3270 2015-11-16 Tom de Vries <tom@codesourcery.com>
3272 * passes.def: Add arg to pass_dominator pass instantiation.
3273 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3275 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3276 may_peel_loop_headers_p.
3277 (pass_dominator::set_pass_param): New member function. Set
3278 may_peel_loop_headers_p.
3279 (pass_dominator::may_peel_loop_headers_p): New private member.
3280 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3281 first_pass_instance.
3283 2015-11-16 Tom de Vries <tom@codesourcery.com>
3285 * passes.def: Add arg to pass_reassoc pass instantiation.
3286 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3287 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3288 of first_pass_instance.
3289 (execute_reassoc): Add and handle insert_powi_p parameter.
3290 (pass_reassoc::insert_powi_p): New private member.
3291 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3292 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
3293 (pass_reassoc::execute): Call execute_reassoc with extra arg.
3295 2015-11-16 Tom de Vries <tom@codesourcery.com>
3297 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3298 * gen-pass-instances.awk (handle_line): Same.
3299 * pass_manager.h (class pass_manager): Define and undefine
3301 * passes.c (opt_pass::set_pass_param): New function.
3302 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3303 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3304 * tree-pass.h (gimple_opt::set_pass_param): Declare.
3305 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3306 warn_array_bounds_p parameter.
3307 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3308 (pass_vrp::set_pass_param): New function.
3309 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3310 (pass_vrp::warn_array_bounds_p): New private member.
3312 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3314 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3315 (output_probe_stack_range): Rotate the loop and simplify.
3317 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3319 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3320 (output_probe_stack_range): Rotate the loop and simplify.
3322 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3324 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3325 an lea instruction when possible.
3326 (output_adjust_stack_and_probe): Rotate the loop and simplify.
3327 (ix86_emit_probe_stack_range): Adjust.
3328 (output_probe_stack_range): Rotate the loop and simplify.
3330 2015-11-16 Christian Bruel <christian.bruel@st.com>
3332 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3333 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3334 with appropriate pragma GCC target.
3336 2015-11-16 Christian Bruel <christian.bruel@st.com>
3339 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3340 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3342 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3344 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3345 (cortexa57_tunings): Use it.
3347 2015-11-16 Christian Bruel <christian.bruel@st.com>
3350 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3351 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3352 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3354 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3355 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3356 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3357 * doc/extend.texi (-mfpu=): Describe attribute.
3359 2015-11-16 Christian Bruel <christian.bruel@st.com>
3362 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3363 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3364 arm_init_neon_builtins.
3365 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3366 (arm_init_neon_builtins_internal)
3367 (arm_init_crypto_builtins_internal):
3368 Test and set neon_set_p, neon_crypto_set_p.
3369 (neon_set_p, neon_crypto_set_p): New static booleans.
3371 2015-11-16 Christian Bruel <christian.bruel@st.com>
3374 * config/arm/arm.c (arm_fpu_desc): Remove.
3375 (all_fpus): Make global.
3376 (arm_option_override): Use FPU TARGET accessors.
3377 (arm_declare_function_name): Likewise.
3378 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3379 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3380 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3381 (TARGET_NEON): Likewise.
3382 (all_fpus): Declare extern.
3383 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3384 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3386 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3389 * sdbout.c: Include emit-rtl.h and function.h.
3391 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
3393 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3394 Remove support for FreeBSD 5 and earlier.
3396 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3398 * configure: Regenerate.
3399 * configure.ac: Always define ENABLE_OFFLOADING.
3400 * cgraph.c (cgraph_node::create): Adjust.
3401 * gcc.c (process_command): Likewise.
3402 * omp-low.c (create_omp_child_function): Likewise.
3403 (expand_omp_target): Likewise.
3404 * varpool.c (varpool_node::get_create): Likewise.
3406 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3408 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3409 * df-scan.c (df_get_exit_block_use_set): Adjust.
3410 * except.c (expand_eh_return): Likewise.
3412 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3414 * config/i386/i386.h (TARGET_PECOFF): Remove define.
3415 * defaults.h (TARGET_PECOFF): New default definition.
3416 * varasm.c (handle_vtv_comdat_section): Adjust.
3418 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3420 * defaults.h: New definition of SDB_DEBUGGING_INFO.
3421 * doc/tm.texi: Regenerate.
3422 * doc/tm.texi.in: Adjust.
3423 * final.c (rest_of_clean_state): Remove check if
3424 SDB_DEBUGGING_INFO is defined.
3425 * function.c (number_blocks): Likewise.
3426 * output.h: Likewise.
3427 * sdbout.c: Likewise.
3428 * toplev.c (process_options): Likewise.
3430 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3432 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3433 (enum sdb_masks): Likewise.
3434 * sdbout.c (plain_type_1): Likewise.
3435 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3437 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3439 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3440 internal calls - 0 if ordered simd and 1 for ordered threads simd.
3441 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3442 argument is 1, replace it with GOMP_ordered_* call instead of removing
3445 2015-11-13 Rich Felker <dalias@libc.org>
3447 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3448 address loading hack for FDPIC targets.
3450 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
3451 Jeff Law <law@redhat.com>
3453 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3454 * common.opt (-fsplit-paths): New flag controlling path splitting.
3455 * doc/invoke.texi (fsplit-paths): Document.
3456 * opts.c (default_options_table): Add -fsplit-paths to -O2.
3457 * passes.def: Add split_paths pass.
3458 * timevar.def (TV_SPLIT_PATHS): New timevar.
3459 * tracer.c: Include "tracer.h"
3460 (ignore_bb_p): No longer static.
3461 (transform_duplicate): New function, broken out of tail_duplicate.
3462 (tail_duplicate): Use transform_duplicate.
3463 * tracer.h (ignore_bb_p): Declare
3464 (transform_duplicate): Likewise.
3465 * tree-pass.h (make_pass_split_paths): Declare.
3466 * gimple-ssa-split-paths.c: New file.
3468 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3469 Marek Polacek <polacek@redhat.com>
3470 Jason Merrill <jason@redhat.com>
3472 * convert.c (maybe_fold_build1_loc): New.
3473 (maybe_fold_build2_loc): New.
3474 (convert_to_pointer_1): Split out from convert_to_pointer.
3475 (convert_to_pointer_nofold): New.
3476 (convert_to_real_1): Split out from convert_to_real.
3477 (convert_to_real_nofold): New.
3478 (convert_to_integer_1): Split out from convert_to_integer.
3479 (convert_to_integer_nofold): New.
3480 (convert_to_complex_1): Split out from convert_to_complex.
3481 (convert_to_complex_nofold): New.
3482 * convert.h: Declare new functions.
3483 * tree-complex.c (create_one_component_var): Break up line to
3484 avoid sequence point issues.
3486 2015-11-13 Jason Merrill <jason@redhat.com>
3488 * fold-const.c (fold_convert_const): Fold changing cv-quals on
3491 * hash-map.h (hash_map::empty): New.
3493 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3495 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3496 (oacc_loop_fixed_partitions): Correct return type to bool.
3497 (oacc_loop_auto_partitions): New.
3498 (oacc_loop_partition): Take mask argument, call
3499 oacc_loop_auto_partitions.
3500 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3502 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3504 * config/rs6000/constraints.md (we constraint): New constraint for
3505 64-bit power9 vector support.
3506 (wL constraint): New constraint for the element in a vector that
3507 can be addressed by the MFVSRLD instruction.
3509 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3511 (convert_int_to_float128): Likewise.
3512 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3513 hardware support for IEEE 128-bit floating point.
3514 (rs6000_expand_float128_convert): Likewise.
3515 (convert_float128_to_int): Likewise.
3516 (convert_int_to_float128): Likewise.
3518 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3519 ISA 3.0 hardware IEEE 128-bit floating point.
3520 (UNSPEC_IEEE128_MOVE): Likewise.
3521 (UNSPEC_IEEE128_CONVERT): Likewise.
3522 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3523 (Ff): Add support for DImode.
3525 (any_fix code iterator): New and updated iterators for IEEE
3526 128-bit floating point hardware support.
3527 (any_float code iterator): Likewise.
3528 (s code attribute): Likewise.
3529 (su code attribute): Likewise.
3530 (az code attribute): Likewise.
3531 (uns code attribute): Likewise.
3532 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
3533 floating point hardware support.
3534 (abs<mode>2, FLOAT128 iterator): Likewise.
3535 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
3536 floating point hardware.
3537 (sub<mode>3, IEEE128 iterator): Likewise.
3538 (mul<mode>3, IEEE128 iterator): Likewise.
3539 (div<mode>3, IEEE128 iterator): Likewise.
3540 (copysign<mode>3, IEEE128 iterator): Likewise.
3541 (sqrt<mode>2, IEEE128 iterator): Likewise.
3542 (neg<mode>2, IEEE128 iterator): Likewise.
3543 (abs<mode>2, IEEE128 iterator): Likewise.
3544 (nabs<mode>2, IEEE128 iterator): Likewise.
3545 (fma<mode>4_hw, IEEE128 iterator): Likewise.
3546 (fms<mode>4_hw, IEEE128 iterator): Likewise.
3547 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
3548 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
3549 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
3550 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
3551 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
3552 (fix_fixuns code attribute): Likewise.
3553 (float_floatuns code attribute): Likewise.
3554 (fix<uns>_<mode>si2_hw): Likewise.
3555 (fix<uns>_<mode>di2_hw): Likewise.
3556 (float<uns>_<mode>si2_hw): Likewise.
3557 (float<uns>_<mode>di2_hw): Likewise.
3558 (xscvqp<su>wz_<mode>): Likewise.
3559 (xscvqp<su>dz_<mode>): Likewise.
3560 (xscv<su>dqp_<mode): Likewise.
3561 (ieee128_mfvsrd): Likewise.
3562 (ieee128_mfvsrwz): Likewise.
3563 (ieee128_mtvsrw): Likewise.
3564 (ieee128_mtvsrd): Likewise.
3565 (trunc<mode>df2_odd): Likewise.
3566 (cmp<mode>_h): Likewise.
3567 (128-bit GPR splitters): Don't split a 128-bit move that is a
3568 direct move between GPR and vector registers using ISA 3.0 direct
3570 (maddld4): Add support for the ISA 3.0 integer multiply-add
3573 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
3575 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
3576 constraint. Disable the VSX<->GPR direct move helpers if we have
3577 the MFVSRLD and MTVSRDD instructions.
3578 (rs6000_secondary_reload_simple_move): Add support for doing
3579 vector direct moves directly without additional scratch registers
3580 if we have ISA 3.0 instructions.
3581 (rs6000_secondary_reload_direct_move): Update comments.
3582 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
3585 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
3586 direct move instructions.
3587 (vsx_movti_64bit): Likewise.
3588 (vsx_extract_<mode>): Likewise.
3590 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
3591 macros for ISA 3.0 direct move instructions.
3592 (TARGET_DIRECT_MOVE_128): Likewise.
3593 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
3596 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
3597 constraints. Update wa documentation to say not to use %x<n> on
3598 instructions that only take Altivec registers.
3600 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3602 * Makefile.in (OBJS): Add gcc-rich-location.o.
3603 * diagnostic.c (diagnostic_append_note): Pass line_table to
3605 (emit_diagnostic): Likewise.
3607 (inform_n): Likewise.
3608 (warning): Likewise.
3609 (warning_at): Likewise.
3610 (warning_n): Likewise.
3611 (pedwarn): Likewise.
3612 (permerror): Likewise.
3614 (error_n): Likewise.
3615 (error_at): Likewise.
3617 (fatal_error): Likewise.
3618 (internal_error): Likewise.
3619 (internal_error_no_backtrace): Likewise.
3620 (source_range::debug): Likewise.
3621 * gcc-rich-location.c: New file.
3622 * gcc-rich-location.h: New file.
3623 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
3624 (warning_at): Likewise.
3625 * gimple.h (gimple_set_block): Use set_block function.
3626 * input.c (dump_line_table_statistics): Dump stats on how many
3627 ranges were optimized vs how many needed ad-hoc table.
3628 (write_digit_row): Add "map" param; use its range_bits
3629 to calculate the per-character offset.
3630 (dump_location_info): Print the range and column bits for each
3631 ordinary map. Use the range bits to calculate the per-character
3632 offset. Pass the map as a new param to the various calls to
3633 write_digit_row. Eliminate uses of
3634 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
3635 * print-tree.c (print_node): Print any source range information.
3636 * rtl-error.c (diagnostic_for_asm): Likewise.
3637 * toplev.c (general_init): Initialize line_table's
3639 * tree-cfg.c (move_block_to_fn): Likewise.
3640 (move_block_to_fn): Likewise.
3641 * tree-inline.c (copy_phis_for_bb): Likewise.
3642 * tree.c (tree_set_block): Likewise.
3643 (get_pure_location): New function.
3644 (set_source_range): New functions.
3645 (set_block): New function.
3646 (set_source_range): New functions.
3647 * tree.h (CAN_HAVE_RANGE_P): New.
3648 (EXPR_LOCATION_RANGE): New.
3649 (EXPR_HAS_RANGE): New.
3650 (get_expr_source_range): New inline function.
3651 (DECL_LOCATION_RANGE): New.
3652 (set_source_range): New decls.
3653 (get_decl_source_range): New inline function.
3655 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
3657 PR tree-optimization/67682
3658 * tree-vect-slp.c (vect_split_slp_store_group): New.
3659 (vect_analyze_slp_instance): During basic block SLP, recurse on
3660 subgroups if vect_build_slp_tree fails after 1st vector.
3662 2015-11-13 Christian Bruel <christian.bruel@st.com>
3665 * config/arm/arm.c (arm_option_override): Move NEON check...
3666 (arm_option_check_internal): here
3667 (arm_file_start): Move .fpu print...
3668 (arm_declare_function_name): here
3669 (arm_option_print): Dump current fpu name.
3670 * config/arm/arm.opt (arm_fpu_index): Mark Save.
3672 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
3673 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3675 * combine.c (subst): Don't substitute or simplify when
3676 handling register-wise widening multiply.
3677 (force_to_mode): Likewise.
3679 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
3681 PR tree-optimization/68264
3682 * tree-call-cdce.c (gen_one_condition): Update commentary.
3683 (gen_conditions_for_pow_int_base): Invert the sense of the tests
3684 passed to gen_one_condition.
3685 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
3686 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
3687 using EDGE_FALSE_VALUE for edges to the call block and
3688 EDGE_TRUE_VALUE for the others.
3690 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3692 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
3695 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3697 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
3699 2015-11-13 Tom de Vries <tom@codesourcery.com>
3701 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
3704 2015-11-13 Tom de Vries <tom@codesourcery.com>
3706 * gen-pass-instances.awk (handle_line): Add args_str variable.
3708 2015-11-13 Martin Liska <mliska@suse.cz>
3710 * graphite-poly.c (free_scop): Release scop->drs vector.
3711 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
3713 (try_generate_gimple_bb): Use vNULL as a default initialization
3716 2015-11-13 Martin Liska <mliska@suse.cz>
3719 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
3720 Replace array initialization (using a variable post-increment)
3721 that possible triggers multiple unsequenced modifications
3722 with a pair of pushes to a vector.
3724 2015-11-13 Richard Biener <rguenther@suse.de>
3726 PR tree-optimization/68306
3727 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
3728 loop related checks ...
3729 (vect_verify_datarefs_alignment): ... here.
3730 (vect_slp_analyze_and_verify_node_alignment): Compute and
3731 verify alignment of the single DR that it matters.
3732 * tree-vect-stmts.c (vectorizable_store): Add an assert.
3733 (vectorizable_load): Add a comment.
3734 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
3735 for determining load cost.
3737 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3739 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
3740 mix of boolean and integer vectors in a single statement.
3741 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
3742 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
3743 determine constant type.
3744 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
3745 for loop invariants.
3747 2015-11-13 Alan Hayward <alan.hayward@arm.com>
3749 PR tree-optimization/66558
3750 * tree-vect-loop.c (is_integer_induction):Add.
3751 (vectorizable_reduction): Add integer induction checks.
3753 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
3755 Revert [ARM] Remove neon-testgen.ml and generated tests.
3757 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3759 [ARM] Remove neon-testgen.ml and generated tests.
3761 * config/arm/neon-testgen.ml: Remove.
3763 2015-11-13 Richard Biener <rguenther@suse.de>
3765 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
3766 Signal fatal failure if early checks fail.
3767 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
3768 do not bother testing further vector sizes.
3770 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
3772 * config/i386/predicates.md (misaligned_operand): Return true if
3773 operand is aligned to less than its natural alignmnet.
3775 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3777 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
3778 (vec_cmpu@var{m}@var{n}): New item.
3779 (vcond@var{m}@var{n}): Specify comparison is signed.
3780 (vcondu@var{m}@var{n}): New item.
3781 (vcond_mask_@var{m}@var{n}): New item.
3782 (maskload@var{m}@var{n}): New item.
3783 (maskstore@var{m}@var{n}): New item.
3785 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3787 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3788 types of stored value and storage are compatible.
3790 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
3792 * gcc.c (POST_LINK_SPEC): Define if not already defined.
3793 (LINK_COMMAND_SPEC): Use post_link.
3794 (post_link_spec): New, initialize to POST_LINK_SPEC.
3795 (post_link): Initialize new static spec.
3796 * doc/tm.texi.in (POST_LINK_SPEC): Document.
3797 * doc/tm.texi: Regenerated.
3799 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3802 * Makefile.in (GCC_OBJS): Add spellcheck.o.
3803 (OBJS): Add spellcheck-tree.o.
3804 * gcc.c: Include "spellcheck.h".
3805 (suggest_option): New function.
3806 (driver::handle_unrecognized_options): Call suggest_option to
3807 provide a hint about misspelled options.
3808 * spellcheck.c: Update file comment.
3809 (levenshtein_distance): Convert 4-param implementation from static
3810 to extern scope. Remove note about unit tests from leading
3811 comment for const char * implementation. Move tree
3812 implementation to...
3813 * spellcheck-tree.c: New file.
3814 * spellcheck.h (levenshtein_distance): Add 4-param decl.
3816 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3818 * Makefile.in (OBJS): Add spellcheck.o.
3819 * spellcheck.c: New file.
3820 * spellcheck.h: New file.
3822 2015-11-13 James Bowman <james.bowman@ftdichip.com>
3824 * config/ft32/ft32.md (*sne): New insn pattern.
3826 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
3828 * cprop.c (is_too_expensive): Remove.
3830 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
3832 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
3833 * gcse.c (is_too_expensive): Rename to ...
3834 (gcse_or_cprop_is_too_expensive): ... this.
3835 Expand warning to add required size of max-gcse-memory.
3836 (one_pre_gcse_pass): Use it.
3837 (one_code_hoisting_pass): Use it.
3838 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
3840 2015-11-12 James Norris <jnorris@codesourcery.com>
3841 Joseph Myers <joseph@codesourcery.com>
3843 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
3844 GF_OMP_TARGET_KIND_OACC_DECLARE.
3845 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
3846 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3847 * gimplify.c (oacc_declare_returns): New.
3848 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
3849 (device_resident_p): New function.
3850 (oacc_default_clause): Handle device_resident clause.
3851 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
3852 (gimplify_expr): Handle OACC_DECLARE.
3853 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
3854 * omp-low.c (expand_omp_target): Handle
3855 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
3856 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
3857 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
3858 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
3859 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3860 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
3861 GOMP_MAP_DEVICE_RESIDENT.
3863 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3865 [ARM] Remove neon-testgen.ml and generated tests.
3867 * config/arm/neon-testgen.ml: Remove.
3869 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
3871 * config/aarch64/aarch64-cores.def (qdf24xx): New.
3872 * config/aarch64/aarch64-tune.md: Regenerated.
3873 * config/arm/arm-cores.def (qdf24xx): New.
3874 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
3875 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
3876 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
3877 (ARM Options/-mtune): Likewise.
3879 2015-11-12 Martin Liska <mliska@suse.cz>
3881 * config/i386/i386.c (ix86_valid_target_attribute_p):
3882 Finalize options at the of the function.
3883 * gcc.c (driver_get_configure_time_options): Call newly
3884 introduced init_opts_obstack.
3885 * lto-wrapper.c (main): Likewise.
3886 * opts.c (init_opts_obstack): New function.
3887 (init_options_struct): Call newly introduced init_opts_obstack.
3888 * opts.h (init_options_struct): Declare.
3890 2015-11-12 Martin Liska <mliska@suse.cz>
3893 * ipa-icf.c (void sem_item::set_hash): New function.
3894 (sem_function::get_hash): Use renamed m_hash member variable.
3895 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
3896 (sem_item::update_hash_by_local_refs): Likewise.
3897 (sem_variable::get_hash): Use renamed m_hash member variable.
3898 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
3899 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
3900 (sem_item_optimizer::build_graph): As the hash value of an item
3901 is lazy initialized, force the calculation.
3902 * ipa-icf.h (set_hash): Declare new function and rename hash member
3905 2015-11-12 Richard Biener <rguenther@suse.de>
3907 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
3908 Rename to vect_slp_analyze_instance_dependence.
3909 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3910 Remove WAR special-case.
3911 (vect_slp_analyze_node_dependences): Instead add more specific
3912 code here, not relying on other instances being vectorized.
3913 (vect_slp_analyze_instance_dependence): Adjust accordingly.
3914 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
3915 vertical space in dump files.
3916 (vect_print_slp_tree): Likewise.
3917 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
3918 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
3919 not vectorized stmts until after dependence analysis removed
3920 instances. Merge alignment and dependence checks.
3921 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
3924 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
3926 * config/aarch64/aarch64-protos.h (tune_params): Add new members
3927 "max_case_values" and "cache_line_size".
3928 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
3930 (aarch64_override_options_internal): Tune heuristics based on new
3931 members in "tune_params".
3932 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3934 2015-11-12 Richard Biener <rguenther@suse.de>
3936 PR tree-optimization/68306
3937 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
3938 relevant and vectorizable checks here.
3939 (vect_verify_datarefs_alignment): Add relevant check here.
3941 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
3943 * gimplify.c (oacc_default_clause): New.
3944 (omp_notice_variable): Call it.
3946 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3948 PR tree-optimization/68305
3949 * tree-vect-slp.c (vect_get_constant_vectors): Support
3950 COND_EXPR with SSA_NAME as a condition.
3952 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3954 * config/visium/visium-protos.h (notice_update_cc): Delete.
3955 (print_operand): Likewise.
3956 (print_operand_address): Likewise.
3958 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3960 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
3961 FUNCTION_VALUE_REGNO_P): Remove.
3962 * config/alpha/alpha-protos.h (function_value): Remove.
3963 * config/alpha/alpha.c (function_value): Rename to...
3964 (alpha_function_value_1): ... this. Make static.
3965 (alpha_function_value, alpha_libcall_value,
3966 alpha_function_value_regno_p): New functions.
3967 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3968 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3970 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3972 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3973 * config/alpha/alpha.c (alpha_memory_latency): Make static.
3974 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
3975 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3977 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3980 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
3981 assertion on the CFA register.
3983 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3985 * expr.c (do_store_flag): Expand vector comparison as
3986 VEC_COND_EXPR if vector comparison is not supported by target.
3988 2015-11-12 Renlin Li <renlin.li@arm.com>
3990 * config/arm/arm.md (addsi3_compare_op2): Make the order of
3991 assembly pattern consistent with constraint order.
3993 2015-11-12 Tom de Vries <tom@codesourcery.com>
3995 * gen-pass-instances.awk (handle_line): Simplify match regexp.
3997 2015-11-12 Tom de Vries <tom@codesourcery.com>
3999 * gen-pass-instances.awk (handle_line): Simplify init of
4002 2015-11-12 Tom de Vries <tom@codesourcery.com>
4004 * gen-pass-instances.awk (handle_line): Rename var where to
4007 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
4009 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
4010 do not expand to rtl.
4012 2015-11-12 Richard Biener <rguenther@suse.de>
4014 PR tree-optimization/58497
4015 * tree-vect-generic.c: Include gimplify.h.
4016 (tree_vec_extract): Lookup constant/constructor DEFs.
4017 (do_cond): Unshare cond.
4019 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4021 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
4022 combined insn if the alignment of vector mode memory operand
4023 is less than ssememalign.
4025 2015-11-12 Tom de Vries <tom@codesourcery.com>
4027 * gen-pass-instances.awk (handle_line): Print parentheses and
4028 pass_name explicitly.
4030 2015-11-12 Tom de Vries <tom@codesourcery.com>
4032 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
4035 2015-11-12 Tom de Vries <tom@codesourcery.com>
4037 * gen-pass-instances.awk (handle_line): Add comments.
4039 2015-11-12 Tom de Vries <tom@codesourcery.com>
4041 * gen-pass-instances.awk (handle_line): Rename len_of_end to
4044 2015-11-12 Tom de Vries <tom@codesourcery.com>
4046 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
4048 2015-11-12 Tom de Vries <tom@codesourcery.com>
4050 * gen-pass-instances.awk (handle_line): Restructure using early-out.
4052 2015-11-12 Tom de Vries <tom@codesourcery.com>
4054 * gen-pass-instances.awk (handle_line): Unify semicolon use.
4056 2015-11-12 Tom de Vries <tom@codesourcery.com>
4058 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
4060 2015-11-12 Tom de Vries <tom@codesourcery.com>
4062 * gen-pass-instances.awk: Add emacs indent setting.
4064 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4066 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
4068 Move Convert A/(B/C) to (A/B)*C to match.pd.
4069 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
4070 Move Optimize (X & (-A)) / A where A is a power of 2, to
4071 X >> log2(A) to match.pd.
4073 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
4074 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
4075 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
4077 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
4079 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
4081 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
4083 (neon_vst2_lane<mode>): Likewise.
4084 (neon_vld3_lane<mode>): Likewise.
4085 (neon_vst3_lane<mode>): Likewise.
4086 (neon_vld4_lane<mode>): Likewise.
4087 (neon_vst4_lane<mode>): Likewise.
4089 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
4090 Sebastian Pop <s.pop@samsung.com>
4092 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4093 New member codegen_error
4094 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
4096 (translate_isl_ast_node_user): Early return in case of error.
4097 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4098 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
4099 (add_parameters_to_ivs_params): Remove macro.
4100 (graphite_regenerate_ast_isl): Add if_region pointer to region.
4101 * graphite-poly.c (new_poly_dr): Remove macro.
4103 (new_gimple_poly_bb): Same.
4104 (free_gimple_poly_bb): Same.
4105 (print_scop_params): Same.
4106 * graphite-poly.h (struct poly_dr): Same.
4107 (struct poly_bb): Add new_bb.
4108 (gbb_from_bb): Remove dead code.
4109 (pbb_from_bb): Same.
4110 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4111 (parameter_index_in_region): Same.
4112 (find_scop_parameters): Same.
4113 (build_cross_bb_scalars_def): New.
4114 (build_cross_bb_scalars_use): New.
4115 (graphite_find_cross_bb_scalar_vars): New
4116 (try_generate_gimple_bb): Reads and Writes.
4117 (build_alias_set): Move.
4118 (gather_bbs::before_dom_children): Gather bbs visited.
4119 (build_scops): call build_alias_set.
4120 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4121 (remove_simple_copy_phi): Delete.
4122 (remove_invariant_phi): Delete.
4123 (simple_copy_phi_p): Delete.
4124 (reduction_phi_p): Delete.
4125 (isl_id_for_dr): Remove unused param.
4126 (parameter_index_in_region_1): Remove macro usage.
4127 (set_scop_parameter_dim): Same.
4128 (add_param_constraints): Same.
4129 (add_conditions_to_constraints): Same
4130 (build_scop_iteration_domain): Same.
4131 (pdr_add_alias_set): Comment.
4132 (add_scalar_version_numbers): New.
4133 (build_poly_dr): ISL id.
4134 (build_scop_drs): Move.
4135 (build_poly_sr_1): Same.
4136 (insert_stmts): Remove.
4137 (build_poly_sr): New.
4138 (new_pbb_from_pbb): Delete.
4139 (insert_out_of_ssa_copy_on_edge): Delete.
4140 (create_zero_dim_array): Delete.
4141 (scalar_close_phi_node_p): Delete.
4142 (propagate_expr_outside_region): Delete.
4143 (rewrite_close_phi_out_of_ssa): Delete.
4144 (rewrite_phi_out_of_ssa): Delete.
4145 (rewrite_degenerate_phi): Delete.
4146 (rewrite_reductions_out_of_ssa): Delete.
4147 (rewrite_cross_bb_scalar_dependence): Delete.
4148 (handle_scalar_deps_crossing_scop_limits):
4149 (rewrite_cross_bb_scalar_deps): Delete.
4150 (build_poly_scop): Remove calls to out-of-ssa functions.
4151 * graphite.c (graphite_transform_loops): Early return in case of
4153 * sese.c (debug_rename_map_1): Delete.
4154 (debug_rename_map): Delete.
4155 (sese_record_loop): Remove macro.
4156 (build_sese_loop_nests): Same.
4157 (new_sese_info): Same.
4158 (free_sese_info): Same.
4159 (sese_insert_phis_for_liveouts):
4160 (is_loop_closed_ssa_use): New.
4161 (number_of_phi_nodes): New.
4162 (bb_contains_loop_close_phi_nodes): New.
4163 (bb_contains_loop_phi_nodes): New.
4164 (phi_uses_name): New.
4166 (get_rename): Add old_bb and loop_phi for more precise matching of
4168 (set_rename): Pass region.
4169 (later_of_the_two): New.
4170 (gsi_insert_earliest): New.
4171 (collect_all_ssa_names): New.
4172 (substitute_ssa_name): New.
4173 (rename_all_uses): New.
4174 (get_rename_from_scev): New.
4175 (rename_uses): Pass old_bb for more precise matching of exprs.
4176 (get_def_bb_for_const): New.
4177 (get_new_name): New.
4180 (copy_loop_phi_args): New.
4181 (copy_loop_phi_nodes): New.
4182 (get_loop_init_value): New.
4183 (find_init_value): New.
4184 (find_init_value_close_phi): New.
4185 (copy_loop_close_phi_args): New.
4186 (copy_loop_close_phi_nodes): New.
4187 (add_phi_arg_for_new_expr): New.
4188 (copy_cond_phi_args): New.
4189 (copy_cond_phi_nodes): New.
4190 (copy_phi_nodes): New.
4191 (should_copy_to_new_region): New.
4192 (set_rename_for_each_def): New.
4193 (graphite_copy_stmts_from_block): Early return in case of error.
4194 (copy_bb_and_scalar_dependences): Same.
4195 * sese.h (vec_find): New.
4196 (SESE_PARAMS): Delete.
4197 (SESE_LOOPS): Delete.
4198 (SESE_LOOP_NEST): Delete.
4199 (sese_contains_loop): Remove macro usage.
4200 (sese_nb_params): Same.
4201 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4203 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4205 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4206 isl_union_map_add_map on every pbb->schedule.
4208 2015-11-11 Tom de Vries <tom@codesourcery.com>
4210 * tree-parloops.c (create_parallel_loop): Return void.
4212 2015-11-11 Tom de Vries <tom@codesourcery.com>
4214 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4215 block only when needed.
4217 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
4219 * config/alpha/alpha-protos.h (print_operand): Remove.
4220 (print_operand_address): Remove.
4221 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4222 (PRINT_OPERAND_ADDRESS): Remove.
4223 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4224 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4225 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4226 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4227 (print_operand_address): Rename to...
4228 (alpha_print_operand_address): ...this and make static.
4229 (print_operand): Rename to...
4230 (alpha_print_operand): ...this and make static.
4231 (alpha_print_operand_punct_valid_p): New static function.
4233 2015-11-11 Richard Biener <rguenther@suse.de>
4235 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4237 (vect_analyze_data_refs_alignment): Make loop vect specific.
4238 (vect_verify_datarefs_alignment): Likewise.
4239 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4240 Add missing continue.
4241 (vect_compute_data_ref_alignment): Export.
4242 (vect_compute_data_refs_alignment): Merge into...
4243 (vect_analyze_data_refs_alignment): ... this.
4244 (verify_data_ref_alignment): Split out from ...
4245 (vect_verify_datarefs_alignment): ... here.
4246 (vect_slp_analyze_and_verify_node_alignment): New function.
4247 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4248 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4249 misplaced checks on alignment.
4250 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
4251 alignment analysis after SLP discovery and do it per instance.
4252 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4253 bother to re-try using different vector sizes.
4255 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
4256 Cesar Philippidis <cesar@codesourcery.com>
4258 * gimplify.c (enum omp_region_type): Add ORT_ACC,
4259 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
4260 (gimple_add_tmp_var): Add ORT_ACC checks.
4261 (gimplify_var_or_parm_decl): Likewise.
4262 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4263 (omp_add_variable): Look in outer contexts for openacc and allow
4264 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4265 (omp_notice_variable, omp_is_private, omp_check_private): Add
4267 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4268 Permit private openacc reductions.
4269 (gimplify_oacc_cache): Specify ORT_ACC.
4270 (gimplify_omp_workshare): Adjust OpenACC region types.
4271 (gimplify_omp_target_update): Likewise.
4272 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4273 (lower-rec_input_clauses): Don't handle openacc firstprivate
4275 (lower_omp_target): Emit initializers for openacc firstprivate vars.
4277 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
4280 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4281 frame pointer for stack checking if non-call exceptions aren't used.
4282 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4284 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
4286 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4289 2015-11-11 Martin Liska <mliska@suse.cz>
4290 Richard Biener <rguenther@suse.de>
4292 PR rtl-optimization/68287
4293 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4296 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
4298 * config/mips/mips.c (mips_breakable_sequence_p): New function.
4299 (mips_break_sequence): New function.
4300 (mips_reorg_process_insns): Use them. Use compact branches in selected
4303 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
4305 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4307 2015-11-11 Jiong Wang <jiong.wang@arm.com>
4308 Jim Wilson <wilson@gcc.gnu.org>
4311 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4312 be true and eliminable registers mentioned.
4314 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
4316 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4318 * config/arc/arc-opts.h: Add ARCv2 CPUs.
4319 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4320 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4321 situation, and store instructions with large offsets.
4322 (arc_secondary_reload_conv): New function.
4323 (arc_init): Add ARCv2 options.
4324 (arc_conditional_register_usage): Select the proper register usage
4325 for ARCv2 processors.
4326 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4328 (arc_compute_function_type): Likewise.
4329 (arc_print_operand): Handle new ARCv2 punctuation characters.
4330 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4331 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4333 (arc_reorg, arc_hazard): Use it.
4334 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4335 (ASM_SPEC): Add ARCv2 options.
4336 (TARGET_NORM): ARC HS has norm instructions by default.
4337 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4338 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4339 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4340 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4342 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4343 (TARGET_LP_WR_INTERLOCK): Likewise.
4345 (commutative_binary_mult_comparison_result_used, movsicc_insn)
4346 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4347 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4348 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4350 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4351 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4352 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4353 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4354 (extzvsi): New pattern.
4355 * config/arc/arc.opt: New ARCv2 options.
4356 * config/arc/arcEM.md: New file.
4357 * config/arc/arcHS.md: Likewise.
4358 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4360 (Cm2): A signed 9-bit integer constant constraint.
4361 (C62): An unsigned 6-bit integer constant constraint.
4362 (C16): A signed 16-bit integer constant constraint.
4363 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4364 (short_const_int_operand): New predicate.
4365 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4366 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4367 -mcode-density and -mdiv-rem.
4369 2015-11-11 Julia Koval <julia.koval@intel.com>
4371 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4373 2015-11-11 Julia Koval <julia.koval@intel.com>
4375 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4377 2015-11-11 Martin Liska <mliska@suse.cz>
4379 * gimple-ssa-strength-reduction.c (create_phi_basis):
4381 * passes.c (release_dump_file_name): New function.
4382 (pass_init_dump_file): Used from this function.
4383 (pass_fini_dump_file): Likewise.
4384 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4385 * var-tracking.c (vt_initialize): Use pool_allocator.
4387 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
4388 Jiong Wang <jiong.wang@arm.com>
4390 PR tree-optimization/68234
4391 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4392 node which estimiated to be VR_VARYING initially.
4394 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
4396 * regname.c (scan_rtx_reg): Check the matching number of consecutive
4397 registers when tying chains.
4398 (build_def_use): Move terminated_this_insn earlier in the function.
4400 2015-11-10 Mike Frysinger <vapier@gentoo.org>
4402 * configure.ac: Use = with test and not ==.
4403 * configure: Regenerated.
4405 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
4407 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4408 machine asserts. Update defines for 64 bit.
4410 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4413 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4415 (neon_vst1_lane<mode>): Likewise.
4416 (neon_vld2_lane<mode>): Likewise.
4417 (neon_vst2_lane<mode>): Likewise.
4418 (neon_vld3_lane<mode>): Likewise.
4419 (neon_vst3_lane<mode>): Likewise.
4420 (neon_vld4_lane<mode>): Likewise.
4421 (neon_vst4_lane<mode>): Likewise.
4423 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4426 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4427 qualifier_struct_load_store_lane_index.
4428 (arm_storestruct_lane_qualifiers) Likewise.
4429 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4431 (neon_vst1_lane<mode>) Likewise.
4432 (neon_vld2_lane<mode>) Likewise.
4433 (neon_vst2_lane<mode>) Likewise.
4434 (neon_vld3_lane<mode>) Likewise.
4435 (neon_vst3_lane<mode>) Likewise.
4436 (neon_vld4_lane<mode>) Likewise.
4437 (neon_vst4_lane<mode>) Likewise.
4439 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4442 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4443 qualifier_struct_load_store_lane_index.
4444 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4445 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4446 argument qualifiers.
4447 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4448 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4450 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
4452 * config/nvptx/nvptx.opt (moptimize): New flag.
4453 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4455 (nvptx_optimize_inner): New.
4456 (nvptx_process_pars): Call it when optimizing.
4457 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4459 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4461 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4462 Remove redundant code.
4464 2015-11-10 Jeff Law <law@redhat.com>
4466 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4467 call to output_address.
4468 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4469 Add unnamed machine_mode argument.
4471 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4473 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4476 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4478 * config/i386/i386.md (*movabs<mode>_1): Add explicit
4479 size directives for -masm=intel.
4480 (*movabs<mode>_2): Ditto.
4482 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4484 * config/i386/i386.c (ix86_print_operand): Remove dead code that
4485 tried to avoid (%rip) for call operands.
4487 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4489 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4490 argument. Do not use RIP relative addressing when no_rip is set.
4491 (ix86_print_operand): Update call to ix86_print_operand_address_as.
4492 (ix86_print_operand_address): Ditto.
4493 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4494 absolute movabs operand 0. Add square braces for -masm=intel.
4495 (*movabs<mode>_2): Ditto for operand 1.
4497 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4499 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4500 combine_vcvtf2i pattern.
4502 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4504 * config/arm/arm.c (neon_valid_immediate): Remove integer
4505 CONST_DOUBLE handling. It should never occur.
4507 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
4509 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4510 (ATOMIC_LDOP): Likewise.
4511 (atomic_ldop): Likewise.
4512 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4513 (ATOMIC_LDOP): Likewise.
4514 (atomic_ldop): Likewise.
4516 2015-11-10 Martin Liska <mliska@suse.cz>
4518 * alloc-pool.h (allocate_raw): New function.
4519 (operator new (size_t, object_allocator<T> &a)): Use the
4520 function instead of object_allocator::allocate).
4522 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4524 * config/i386/sse.md (HALFMASKMODE): New attribute.
4525 (DOUBLEMASKMODE): New attribute.
4526 (vec_pack_trunc_qi): New.
4527 (vec_pack_trunc_<mode>): New.
4528 (vec_unpacks_lo_hi): New.
4529 (vec_unpacks_lo_si): New.
4530 (vec_unpacks_lo_di): New.
4531 (vec_unpacks_hi_hi): New.
4532 (vec_unpacks_hi_<mode>): New.
4534 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4536 * optabs.c (expand_binop_directly): Allow scalar mode for
4537 vec_pack_trunc_optab.
4538 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4539 boolean vector producers from pattern sequence when computing VF.
4540 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
4541 vect_recog_mask_conversion_pattern.
4542 (search_type_for_mask): Choose the smallest
4543 type if different size types are mixed.
4544 (build_mask_conversion): New.
4545 (vect_recog_mask_conversion_pattern): New.
4546 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
4547 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
4549 (vectorizable_conversion): Support boolean vectors.
4550 (free_stmt_vec_info): Allow patterns for statements with no lhs.
4551 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
4553 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4555 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
4556 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
4557 Cast mask to FP mode if required.
4558 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
4559 (vcond_mask_<mode><avx512fmaskmodelower>): New.
4560 (vcond_mask_<mode><sseintvecmodelower>): New.
4561 (vcond_mask_<mode><sseintvecmodelower>): New.
4562 (vcond_mask_v2div2di): New.
4563 (vcond_mask_<mode><sseintvecmodelower>): New.
4564 (vcond_mask_<mode><sseintvecmodelower>): New.
4566 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4568 * optabs-query.h (get_vcond_mask_icode): New.
4569 * optabs-tree.c (expand_vec_cond_expr_p): Use
4570 get_vcond_mask_icode for VEC_COND_EXPR with mask.
4571 * optabs.c (expand_vec_cond_mask_expr): New.
4572 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
4573 * optabs.def (vcond_mask_optab): New.
4574 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
4575 generate redundant comparison for COND_EXPR.
4576 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
4578 (vectorizable_condition): Likewise.
4579 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
4580 cond_exp with no embedded comparison.
4581 (vect_build_slp_tree_1): Likewise.
4583 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4585 * config/i386/sse.md (maskload<mode>): Rename to ...
4586 (maskload<mode><sseintvecmodelower>): ... this.
4587 (maskstore<mode>): Rename to ...
4588 (maskstore<mode><sseintvecmodelower>): ... this.
4589 (maskload<mode><avx512fmaskmodelower>): New.
4590 (maskstore<mode><avx512fmaskmodelower>): New.
4592 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4594 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
4595 (expand_MASK_STORE): Adjust to maskstore optab changes.
4596 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
4597 Adjust to maskload, maskstore optab changes.
4598 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
4599 * optabs.def (maskload_optab): Transform into convert optab.
4600 (maskstore_optab): Likewise.
4601 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
4602 can_vec_mask_load_store_p signature change.
4603 (predicate_mem_writes): Use boolean mask.
4604 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
4605 can_vec_mask_load_store_p signature change. Allow invariant masks.
4606 (vectorizable_operation): Ignore type precision for boolean vectors.
4608 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4610 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
4611 (const_vector_mask_from_tree): New.
4612 (const_vector_from_tree): Use const_vector_mask_from_tree
4613 for boolean vectors.
4614 * optabs-query.h (get_vec_cmp_icode): New.
4615 * optabs-tree.c (expand_vec_cmp_expr_p): New.
4616 * optabs-tree.h (expand_vec_cmp_expr_p): New.
4617 * optabs.c (vector_compare_rtx): Add OPNO arg.
4618 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
4619 (expand_vec_cmp_expr): New.
4620 * optabs.def (vec_cmp_optab): New.
4621 (vec_cmpu_optab): New.
4622 * optabs.h (expand_vec_cmp_expr): New.
4623 * tree-vect-generic.c (expand_vector_comparison): Add vector
4624 comparison optabs check.
4625 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
4626 operations for VF. Add mask type computation.
4627 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
4628 (vectorizable_comparison): New.
4629 (vect_analyze_stmt): Add vectorizable_comparison.
4630 (vect_transform_stmt): Likewise.
4631 (vect_init_vector): Support boolean vector invariants.
4632 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4633 (vectorizable_condition): Directly provide vectype for invariants
4635 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
4636 (enum vect_var_kind): Add vect_mask_var.
4637 (enum stmt_vec_info_type): Add comparison_vec_info_type.
4638 (vectorizable_comparison): New.
4639 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4640 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
4641 (vect_create_destination_var): Likewise.
4642 * tree-vect-patterns.c (check_bool_pattern): Check fails
4643 if we can vectorize comparison directly.
4644 (search_type_for_mask): New.
4645 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
4646 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
4647 comparison statements.
4648 (vect_get_constant_vectors): Support boolean vector constants.
4649 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
4650 (ix86_expand_int_vec_cmp): New.
4651 (ix86_expand_fp_vec_cmp): New.
4652 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
4653 op_true and op_false.
4654 (ix86_int_cmp_code_to_pcmp_immediate): New.
4655 (ix86_fp_cmp_code_to_pcmp_immediate): New.
4656 (ix86_cmp_code_to_pcmp_immediate): New.
4657 (ix86_expand_mask_vec_cmp): New.
4658 (ix86_expand_fp_vec_cmp): New.
4659 (ix86_expand_int_sse_cmp): New.
4660 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
4661 (ix86_expand_int_vec_cmp): New.
4662 (ix86_get_mask_mode): New.
4663 (TARGET_VECTORIZE_GET_MASK_MODE): New.
4664 * config/i386/sse.md (avx512fmaskmodelower): New.
4665 (vec_cmp<mode><avx512fmaskmodelower>): New.
4666 (vec_cmp<mode><sseintvecmodelower>): New.
4667 (vec_cmpv2div2di): New.
4668 (vec_cmpu<mode><avx512fmaskmodelower>): New.
4669 (vec_cmpu<mode><sseintvecmodelower>): New.
4670 (vec_cmpuv2div2di): New.
4672 2015-11-10 Richard Biener <rguenther@suse.de>
4674 PR tree-optimization/68240
4675 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
4677 (visit_phi): For PHIs with just a single executable edge
4678 take its value directly.
4679 (expressions_equal_p): Handle VN_TOP properly.
4681 2015-11-10 Richard Biener <rguenther@suse.de>
4683 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4684 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
4687 2015-11-10 Richard Biener <rguenther@suse.de>
4689 PR tree-optimization/56118
4690 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
4691 cost favor vectorized version.
4693 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4695 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
4696 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
4697 (neg_not_op): New code attribute.
4699 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4701 * ifcvt.c (noce_try_inverse_constants): New function.
4702 (noce_process_if_block): Call it.
4703 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
4704 * optabs.def (negcc_optab, notcc_optab): Declare.
4705 * optabs.c (emit_conditional_neg_or_complement): New function.
4706 * doc/tm.texi (Standard Names): Document negcc, notcc names.
4708 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4710 PR rtl-optimization/68236
4711 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
4712 if insn_queue doesn't exist.
4713 (haifa_sched_finish): Reset insn_queue to NULL.
4715 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
4717 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
4718 (build_def_use): Initialize terminated_this_insn.
4719 (find_best_rename_reg): Pick and check register from the tied chain.
4720 (regrename_do_replace): Mark head as renamed.
4721 (struct du_head *terminated_this_insn). New static variable.
4722 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
4723 * regrename.h (struct du_head): Add tied_chain, renamed members.
4725 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4728 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
4731 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4734 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
4735 not promote the mode for aggregate types.
4737 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4739 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
4740 * omp-low.c (build_oacc_routine_dims): New.
4742 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4744 * config/rs6000/constraints.md (wF constraint): New constraints
4745 for power9/toc fusion.
4746 (wG constraint): Likewise.
4748 * config/rs6000/predicates.md (u6bit_cint_operand): New
4749 predicate, recognize 0..63.
4750 (upper16_cint_operand): New predicate for power9 and toc fusion.
4751 (fpr_reg_operand): Likewise.
4752 (toc_fusion_or_p9_reg_operand): Likewise.
4753 (toc_fusion_mem_raw): Likewise.
4754 (toc_fusion_mem_wrapped): Likewise.
4755 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
4757 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
4759 (fusion_addis_mem_combo_load): Add support for power9 fusion of
4760 floating point loads, floating point stores, and gpr stores.
4761 (fusion_addis_mem_combo_store): Likewise.
4762 (fusion_offsettable_mem_operand): Likewise.
4764 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
4765 (emit_fusion_load_store): Likewise.
4766 (fusion_p9_p): Likewise.
4767 (expand_fusion_p9_load): Likewise.
4768 (expand_fusion_p9_store): Likewise.
4769 (emit_fusion_p9_load): Likewise.
4770 (emit_fusion_p9_store): Likewise.
4771 (fusion_wrap_memory_address): Likewise.
4773 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
4774 elements for power9 fusion.
4775 (rs6000_debug_print_mode): Rework debug information to print more
4776 information about fusion.
4777 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
4778 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
4779 offsettable memory address.
4780 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
4781 (emit_fusion_gpr_load): Move most of the code from
4782 emit_fusion_gpr_load into emit_fusion-addis that handles both
4783 power8 and power9 fusion.
4784 (emit_fusion_addis): Likewise.
4785 (emit_fusion_load_store): Likewise.
4786 (fusion_wrap_memory_address): Add support for TOC fusion.
4787 (fusion_split_address): Likewise.
4788 (fusion_p9_p): Add support for power9 fusion.
4789 (expand_fusion_p9_load): Likewise.
4790 (expand_fusion_p9_store): Likewise.
4791 (emit_fusion_p9_load): Likewise.
4792 (emit_fusion_p9_store): Likewise.
4794 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
4795 new instructions in ISA 3.0.
4796 (TARGET_CTZ): Likewise.
4797 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
4798 (TARGET_TOC_FUSION_FP): Likewise.
4800 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
4802 (UNSPEC_FUSION_ADDIS): Likewise.
4803 (QHSI mode iterator): New iterator for power9 fusion.
4804 (GPR_FUSION): Likewise.
4805 (FPR_FUSION): Likewise.
4806 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
4807 (umod<mode>3): Likewise.
4808 (divmod peephole): Likewise.
4809 (udivmod peephole): Likewise.
4810 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
4812 (ctz<mode>2_h): Likewise.
4813 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
4814 (ashdi3_extswsli_dot): Likewise.
4815 (ashdi3_extswsli_dot2): Likewise.
4816 (power9 fusion splitter): New power9/toc fusion support.
4817 (toc_fusionload_<mode>): Likewise.
4818 (toc_fusionload_di): Likewise.
4819 (fusion_gpr_load_<mode>): Update predicate function.
4820 (power9 fusion peephole2s): New power9/toc fusion support.
4821 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4822 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
4823 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4824 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4825 (fusion_p9_<mode>_constant): Likewise.
4827 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
4829 * optabs.c (prepare_libcall_arg): New function.
4830 (expand_fixed_convert): Add call to prepare_libcall_arg.
4832 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
4834 * sched-int.h (dump_rgn_dependencies_dot): Declare
4835 * sched-rgn.c (dump_rgn_dependencies_dot): New function
4836 * print-rtl.h (print_insn): Add prototype
4838 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
4839 * common.opt (-fsched-verbose): Set default value to 1.
4840 * invoke.texi (-fsched-verbose): Update the option's description.
4842 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4844 * config/visium/visium.h (PRINT_OPERAND): Delete.
4845 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4846 (PRINT_OPERAND_ADDRESS): Likewise.
4847 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
4849 (visium_print_operand_punct_valid_p): ...this. New function.
4850 (TARGET_PRINT_OPERAND): Define to...
4851 (print_operand): Rename to...
4852 (visium_print_operand): ...this.
4853 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
4854 (visium_output_address): Rename to...
4855 (visium_print_operand_address): ...this.
4856 (print_operand_address): Delete.
4858 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4861 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
4862 Check that the type of the first operand is an aggregate type.
4864 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4866 * omp-low.c: Fix some OpenACC comment typos.
4867 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
4868 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
4869 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
4871 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
4873 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
4875 2015-11-09 Jeff Law <law@redhat.com>
4877 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
4878 being in gimple/ssa form. Remove redundant check for SSA_NAME.
4881 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4882 Peter Bergner <bergner@vnet.ibm.com>
4884 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
4886 (-mpower9-vector): Likewise.
4887 (-mpower9-dform): Likewise.
4888 (-mpower9-minmax): Likewise.
4889 (-mtoc-fusion): Likewise.
4890 (-mmodulo): Likewise.
4891 (-mfloat128-hardware): Likewise.
4893 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
4894 mask for ISA 3.0 (power9).
4895 (POWERPC_MASKS): Add new ISA 3.0 switches.
4896 (power9 cpu): Add power9 cpu.
4898 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
4899 (ASM_CPU_SPEC): Likewise.
4900 (EXTRA_SPECS): Likewise.
4902 * config/rs6000/rs6000-opts.h (enum processor_type): Add
4905 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
4906 (rs6000_debug_reg_global): Add support for power9 fusion.
4907 (rs6000_setup_reg_addr_masks): Cache mode size.
4908 (rs6000_option_override_internal): Until real power9 tuning is
4909 added, use -mtune=power8 for -mcpu=power9.
4910 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
4911 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
4912 of Altivec registers.
4913 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
4914 (rs6000_loop_align): Add support for power9 cpu.
4915 (rs6000_file_start): Likewise.
4916 (rs6000_adjust_cost): Likewise.
4917 (rs6000_issue_rate): Likewise.
4918 (insn_must_be_first_in_group): Likewise.
4919 (insn_must_be_last_in_group): Likewise.
4920 (force_new_group): Likewise.
4921 (rs6000_register_move_cost): Likewise.
4922 (rs6000_opt_masks): Likewise.
4924 * config/rs6000/rs6000.md (cpu attribute): Add power9.
4925 * config/rs6000/rs6000-tables.opt: Regenerate.
4927 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4928 _ARCH_PWR9 if power9 support is available.
4930 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
4931 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
4933 * configure.ac: Determine if the assembler supports the ISA 3.0
4935 * config.in (HAVE_AS_POWER9): Likewise.
4936 * configure: Regenerate.
4938 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
4941 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4943 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
4944 Remove integer CONST_DOUBLE handling. It should never occur.
4946 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4949 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
4950 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
4951 Delete VOIDmode case. Assert that mode is not VOIDmode.
4952 * config/aarch64/predicates.md (const0_operand): Remove const_double
4955 2015-11-09 Martin Liska <mliska@suse.cz>
4957 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
4958 body_info release function.
4959 * ipa-prop.c (ipa_release_body_info): New function.
4960 (ipa_analyze_node): Call the function.
4961 (ipa_node_params::~ipa_node_params): Release known_csts.
4962 * ipa-prop.h (ipa_release_body_info): Declare.
4964 2015-11-09 Martin Liska <mliska@suse.cz>
4966 * gcc.c (record_temp_file): Release name string.
4967 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
4968 * lra-lives.c (free_live_range_list): Utilize
4969 lra_live_range_pool for allocation and deallocation.
4970 (create_live_range): Likewise.
4971 (copy_live_range): Likewise.
4972 (lra_merge_live_ranges): Likewise.
4973 (remove_some_program_points_and_update_live_ranges): Likewise.
4974 (lra_create_live_ranges_1): Release point_freq_vec that can
4975 be not freed from previous iteration of the function.
4976 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
4977 * tree-sra.c (sra_deinitialize): Release all vectors in
4979 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
4980 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4981 Release edge_info for a removed edge.
4982 (thread_through_all_blocks): Free region vector.
4983 * tree-ssa.h (free_dom_edge_info): Declare function extern.
4985 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
4987 * optabs.c (expand_vec_cond_expr): Always get sign from type.
4988 * tree.c (wide_int_to_tree): Support negative values for boolean.
4989 (build_nonstandard_boolean_type): Use signed type for booleans.
4991 2015-11-09 Richard Biener <rguenther@suse.de>
4993 PR tree-optimization/68248
4994 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
4996 2015-11-09 Richard Biener <rguenther@suse.de>
4998 PR tree-optimization/56118
4999 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
5000 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
5001 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
5003 (vect_slp_analyze_data_ref_dependences): Instead of computing
5004 all dependences of the region DRs just analyze the code motions
5005 SLP vectorization will perform. Remove SLP instances that
5006 cannot have their store/load motions applied.
5007 (vect_analyze_data_refs): Allow DRs without a vectype
5008 in BB vectorization.
5010 2015-11-09 Julian Brown <julian@codesourcery.com>
5012 * final.c (output_asm_insn): Pass VOIDmode to output_address.
5013 (output_address): Add MODE argument. Pass to print_operand_address
5015 * targhooks.c (default_print_operand_address): Add MODE argument.
5016 * targhooks.h (default_print_operand_address): Update prototype.
5017 * output.h (output_address): Update prototype.
5018 * target.def (print_operand_address): Add MODE argument.
5019 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
5021 (print_operand): Pass access mode to output_address.
5022 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
5024 (mcore_print_operand): Update calls to mcore_print_operand_address.
5025 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
5027 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
5029 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
5031 (tilegx_print_operand): Don't set above global. Update calls to
5033 (tilegx_print_operand_address): Add MODE argument. Use instead of
5034 output_memory_reference_mode global.
5035 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
5036 (frv_print_operand): Pass mode to frv_print_operand_address calls.
5037 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
5039 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
5040 (cris_print_operand): Pass mode to output_address calls.
5041 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
5042 * config/aarch64/aarch64.h (aarch64_print_operand)
5043 (aarch64_print_operand_address): Remove prototypes.
5044 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
5046 (aarch64_print_operand): Make static. Update calls to output_address.
5047 (aarch64_print_operand_address): Add MODE argument. Use instead of
5048 aarch64_memory_reference_mode global.
5049 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
5051 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5052 Delete macro definitions.
5053 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
5054 * config/xtensa/xtensa.c (print_operand): Pass mode in
5055 output_address calls.
5056 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
5058 (h83000_print_operand): Update calls to h8300_print_operand_address
5060 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
5061 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
5063 (tilepro_print_operand): Pass mode to output_address.
5064 (tilepro_print_operand_address): Add MODE argument. Use instead of
5065 output_memory_reference_mode.
5066 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
5067 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
5068 to output_address calls.
5069 (nvptx_print_operand_address): Add MODE argument.
5070 * config/alpha/alpha.c (print_operand): Pass mode argument in
5071 output_address calls.
5072 * config/m68k/m68k.c (print_operand): Pass mode argument in
5073 output_address call.
5074 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
5075 (avr_print_operand): Update calls to avr_print_operand_address.
5076 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
5077 argument. Update calls to output_address.
5078 (sparc_print_operand): Pass mode to output_address.
5079 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
5081 (iq2000_print_operand): Pass mode in output_address calls.
5082 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
5084 (xstormy16_print_operand): Pass mode to
5085 xstormy16_print_operand_address calls.
5086 * config/mips/mips.c (mips_print_operand): Update calls to
5088 (mips_print_operand_address): Add MODE argument.
5089 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
5091 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
5092 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
5094 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
5095 (rx_print_operand): Update calls to output_address,
5096 rx_print_operand_address.
5097 * config/nds32/nds32.c (nds32_print_operand): Update calls to
5099 (nds32_print_operand_address): Add MODE argument.
5100 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
5101 output_address calls.
5102 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
5103 output_address call.
5104 (c6x_print_address_operand): Update calls to output_address.
5105 (c6x_print_operand_address): Pass mode to above.
5106 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5107 (v850_print_operand): Pass mode to v850_print_operand_address,
5109 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5110 (mmix_print_operand): Pass mode in output_address calls.
5111 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5112 (sh_print_operand): Pass mem mode to output_address,
5113 sh_print_operand_address.
5114 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5115 (cr16_print_operand): Pass mode to output_address,
5116 cr16_print_operand_address.
5117 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5119 * config/microblaze/microblaze.c (print_operand): Pass mode to
5121 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5123 (nios2_print_operand_address): Add MODE argument. Update call to
5124 nios2_print_operand_address.
5125 * config/s390/s390.c (print_operand): Pass mode to output_address.
5126 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5127 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5129 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5130 Use instead of output_memory_reference_mode.
5131 (output_memory_reference_mode): Delete global.
5132 (arm_print_operand): Pass mem mode to output_address.
5133 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5134 (m32r_print_operand): Pass mode to output_address.
5135 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5137 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5138 * config/i386/i386.c (ix86_print_operand): Pass mode to
5139 output_address calls.
5140 (ix86_print_operand_address): Add MODE argument.
5142 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5145 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5146 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5147 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5148 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5150 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5152 PR rtl-optimization/67749
5153 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5154 case before emitting the two blocks. Instead modify the register
5155 in the corresponding final insn of the basic block.
5157 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5159 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5162 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5164 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5165 HAVE_INITFINI_ARRAY_SUPPORT.
5166 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5168 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5169 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5170 Don't check HAVE_AS_SPARC_NOBITS.
5171 Heed SECTION_NOTYPE.
5173 * configure: Regenerate.
5174 * config.in: Regenerate.
5176 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5179 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5181 2015-11-09 Richard Henderson <rth@redhat.com>
5183 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5184 __SEG_GS, __SEG_TLS.
5185 (ix86_register_pragmas): Register address spaces __seg_fs,
5186 __seg_gs, __seg_tls.
5187 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5188 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5189 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5190 * config/i386/i386.c (ix86_decompose_address): Likewise.
5191 (ix86_legitimate_address_p): Likewise.
5192 (memory_address_length): Likewise. Check mem address space too.
5193 (ix86_print_operand): Use ix86_print_operand_address_as.
5194 (ix86_print_operand_address_as): Rename from
5195 ix86_print_operand_address, add new addr_space_t parameter.
5196 Validate that either the parameter or the ix86_address segment
5197 is default address space. Handle ADDR_SPACE_SEG_TLS.
5198 (ix86_print_operand_address): New.
5199 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5200 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5201 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5202 (ix86_addr_space_zero_address_valid): New.
5203 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5204 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5205 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5206 * config/i386/predicates.md (address_no_seg_operand): Likewise.
5207 (vsib_address_operand): Likewise.
5208 (address_mpx_no_base_operand): Likewise.
5209 (address_mpx_no_index_operand): Likewise.
5210 * doc/extend.texi (x86 Named Address Spaces): New section.
5212 * config/i386/i386.c (ix86_check_no_addr_space): New.
5213 (decide_alg): Add have_as parameter.
5214 (alg_usable_p): Likewise; disable rep algorithms if set.
5215 (ix86_expand_set_or_movmem): Notice if either MEM has a
5216 non-default address space.
5217 (ix86_expand_strlen): Likewise.
5218 * config/i386/i386.md (strmov, strset): Likewise.
5219 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5220 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5221 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5222 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5223 *cmpstrnqi_1, *strlenqi_1): Likewise.
5225 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5226 (*movabs<mode>_2): Likewise.
5228 * dwarf2out.c (modified_type_die): Pass the address space number
5229 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5230 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5231 * targhooks.c (default_addr_space_debug): New.
5232 * targhooks.h (default_addr_space_debug): Declare.
5233 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5234 * doc/tm.texi: Rebuild.
5236 * gimple.c (check_loadstore): Return false when 0 is a valid address.
5237 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5238 null when 0 is valid in the source address space.
5239 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5240 * targhooks.c (default_addr_space_zero_address_valid): New.
5241 * targhooks.h (default_addr_space_zero_address_valid): Declare.
5242 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5243 * doc/tm.texi: Rebuild.
5245 * cselib.c (add_mem_for_addr): Compare address spaces when
5247 (cselib_lookup_mem): Likewise.
5248 * fold-const.c (operand_equal_p): Check address spaces of
5249 pointer types before checking integer constants.
5252 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5253 the correct type for the base.
5255 2015-11-09 Jeff Law <law@redhat.com>
5257 * tree-into-ssa.c (names_to_release): No longer static.
5258 * tree-into-ssa.h (names_to_release): Declare.
5259 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5260 (release_free_names_and_compact_live_names): New function extracted
5261 from pass_release_ssa_names::execute.
5262 (pass_release_ssa_names::execute): Use it.
5264 2015-11-09 Alan Modra <amodra@gmail.com>
5266 * gensupport.c (add_mnemonic_string): Make len param a size_t.
5267 (gen_mnemonic_setattr): Make "size" var a size_t. Use
5268 obstack_blank_fast to shrink obstack. Cast obstack_next_free
5271 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5273 PR rtl-optimization/68182
5274 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5275 branch with only one successor just like unconditional branches.
5277 2015-11-08 Jeff Law <law@redhat.com>
5279 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5280 non-FSM path has no edges marked with EDGE_DFS_BACK.
5281 (ssa_redirect_edges): No longer call mark_loop_for_removal.
5282 (thread_single_edge, def_split_header_continue_p): Remove.
5283 (bb_ends_with_multiway_branch): Likewise.
5284 (thread_through_loop_header): Remove cases of threading from
5285 latch through the header. Simplify knowing we won't thread
5287 (thread_through_all_blocks): Simplify knowing that only the FSM
5288 threader needs to handle backedges.
5290 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
5292 * doc/extend.texi (type attributes): Document scalar_storage_order.
5293 (Structure-Packing Pragmas): Rename into...
5294 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
5295 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5296 (Warnings): Document -Wno-scalar-storage-order.
5297 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5298 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5299 extract_bit_field and store_bit_field.
5300 (initialize_argument_information): Adjust call to store_expr.
5301 (load_register_parameters): Adjust call to extract_bit_field.
5302 * expmed.c (check_reverse_storage_order_support): New function.
5303 (check_reverse_float_storage_order_support): Likewise.
5304 (flip_storage_order): Likewise.
5305 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
5306 of the value if it is true. Pass REVERSE to recursive call after
5307 adjusting the target offset.
5308 Do not use extraction or movstrict instruction if REVERSE is true.
5309 Pass REVERSE to store_fixed_bit_field.
5310 (store_bit_field): Add REVERSE parameter and pass to it to above.
5311 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5312 store_split_bit_field and store_fixed_bit_field_1.
5313 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5314 order of the value if it is true and adjust the target offset.
5315 (store_split_bit_field): Add REVERSE parameter and pass it to
5316 store_fixed_bit_field. Adjust the target offset if it is true.
5317 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
5318 of the value if it is true. Pass REVERSE to recursive call after
5319 adjusting the target offset.
5320 Do not use extraction or subreg instruction if REVERSE is true.
5321 Pass REVERSE to extract_fixed_bit_field.
5322 (extract_bit_field): Add REVERSE parameter and pass to it to above.
5323 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5324 extract_split_bit_field and extract_fixed_bit_field_1.
5325 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5326 order of the value if it is true and adjust the target offset.
5327 (extract_split_bit_field): Add REVERSE parameter and pass it to
5328 extract_fixed_bit_field. Adjust the target offset if it is true.
5329 * expmed.h (flip_storage_order): Declare.
5330 (store_bit_field): Adjust prototype.
5331 (extract_bit_field): Likewise.
5332 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5333 (emit_group_store): Adjust call to store_bit_field.
5334 (copy_blkmode_from_reg): Likewise.
5335 (copy_blkmode_to_reg): Likewise.
5336 (write_complex_part): Likewise.
5337 (read_complex_part): Likewise.
5338 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
5339 that it isn't true if the target is a register.
5340 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5341 and flip the storage order of the value.
5342 <BIT_IOR_EXPR>: Flip the storage order of the value.
5343 (get_bit_range): Adjust call to get_inner_reference.
5344 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5345 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
5346 with reverse storage order.
5347 (store_expr_with_bounds): Add REVERSE parameter and pass it to
5348 recursive calls and call to store_bit_field. Force the value into a
5349 register if it is true and then flip the storage order of the value.
5350 (store_expr): Add REVERSE parameter and pass it to above.
5351 (categorize_ctor_elements_1): Adjust call to
5352 initializer_constant_valid_p.
5353 (store_constructor_field): Add REVERSE parameter and pass it to
5354 recursive calls and call to store_field.
5355 (store_constructor): Add REVERSE parameter and pass it to calls to
5356 store_constructor_field and store_expr. Set it to true for an
5357 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5358 (store_field): Add REVERSE parameter and pass it to recursive calls
5359 and calls to store_expr and store_bit_field. Temporarily flip the
5360 storage order of the value with record type and integral mode and
5361 adjust the shift if it is true.
5362 (get_inner_reference): Add PREVERSEP parameter and set it to true
5363 upon encoutering a reference with reverse storage order.
5364 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5365 (expand_constructor): Adjust call to store_constructor.
5366 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5367 of the union type to store_expr in the MEM case and assert that it
5368 isn't set in the REG case. Adjust call to store_field.
5369 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5370 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5371 get_inner_reference and extract_bit_field. Temporarily flip the
5372 storage order of the value with record type and integral mode and
5373 adjust the shift if it is true. Flip the storage order of the value
5374 at the end if it is true.
5375 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5376 get_inner_reference. Do not fetch an inner reference if it is true.
5377 * expr.h (store_expr_with_bounds): Ajust prototype.
5378 (store_expr): Likewise.
5379 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5380 REF_REVERSE_STORAGE_ORDER on the reference according to it.
5381 (optimize_bit_field_compare): Deal with reverse storage order.
5382 Adjust calls to get_inner_reference and make_bit_field_ref.
5383 (decode_field_reference): Add PREVERSEP parameter and adjust call to
5384 get_inner_reference.
5385 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
5386 to decode_field_reference and make_bit_field_ref.
5387 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5388 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5389 (fold_comparison): Adjust call to get_inner_reference.
5390 (split_address_to_core_and_offset): Adjust call to
5391 get_inner_reference.
5392 * gimple-expr.c (useless_type_conversion_p): Return false for array
5393 types with different TYPE_REVERSE_STORAGE_ORDER flag.
5394 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5395 REF_REVERSE_STORAGE_ORDER flag.
5396 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5397 * output.h (assemble_real): Adjust prototype.
5398 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5399 * stor-layout.c (finish_record_layout): Propagate the
5400 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5401 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5402 (TYPE_SATURATING): Adjust.
5403 (REF_REVERSE_STORAGE_ORDER): Document.
5404 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5405 set it to true upon encoutering a reference with reverse storage order.
5406 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5407 * tree-inline.c (remap_gimple_op_r): Propagate the
5408 REF_REVERSE_STORAGE_ORDER flag.
5409 (copy_tree_body_r): Likewise.
5410 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5412 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5413 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5414 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5415 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5416 REF_REVERSE_STORAGE_ORDER flag.
5417 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5418 (gimple_canonical_types_compatible_p): Likewise.
5419 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5420 (TYPE_SATURATING): Adjust.
5421 (REF_REVERSE_STORAGE_ORDER): New flag.
5422 (reverse_storage_order_for_component_p): New inline predicate.
5423 (storage_order_barrier_p): Likewise.
5424 (get_inner_reference): Adjust prototype.
5425 * varasm.c: Include expmed.h.
5426 (assemble_variable_contents): Adjust call to output_constant.
5427 (assemble_real): Add REVERSE parameter. Flip the storage
5428 order of the value if REVERSE is true.
5429 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5430 (assemble_constant_contents): Adjust call to output_constant.
5431 (output_constant_pool_2): Adjust call to assemble_real.
5432 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5433 TYPE_REVERSE_STORAGE_ORDER.
5434 (initializer_constant_valid_p): Add REVERSE parameter.
5435 (output_constant): Add REVERSE parameter.
5436 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5437 <REAL_TYPE>: Adjust call to assemble_real.
5438 <COMPLEX_TYPE>: Pass it to recursive calls.
5439 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
5440 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
5441 (struct oc_local_state): Add REVERSE field.
5442 (output_constructor_array_range): Adjust calls to output_constant.
5443 (output_constructor_regular_field): Likewise.
5444 (output_constructor_bitfield): Adjust call to output_constructor.
5445 Flip the storage order of the value if REVERSE is true.
5446 (output_constructor): Add REVERSE parameter. Set it to true for an
5447 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
5448 output_constructor_bitfield.
5449 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5450 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5451 * builtins.c (get_object_alignment_2): Likewise.
5452 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5453 and get_ref_base_and_extent.
5454 * dbxout.c (dbxout_expand_expr): Likewise.
5455 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5456 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5457 (loc_list_from_tree): Likewise.
5458 (fortran_common): Likewise.
5459 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5460 get_ref_base_and_extent.
5461 (get_base_constructor): Likewise.
5462 (fold_const_aggregate_ref_1): Likewise.
5463 * gimple-laddress.c (pass_laddress::execute): Adjust call to
5464 get_inner_reference.
5465 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5466 get_inner_reference and bail out on reverse storage order.
5467 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5468 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5469 build_ref_for_offset.
5470 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5471 get_ref_base_and_extent.
5472 (ipa_polymorphic_call_context): Likewise.
5473 (extr_type_from_vtbl_ptr_store): Likewise.
5474 (check_stmt_for_type_change): Likewise.
5475 (get_dynamic_type): Likewise.
5476 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5477 get_ref_base_and_extent.
5478 (compute_complex_assign_jump_func): Likewise.
5479 (get_ancestor_addr_info): Likewise.
5480 (compute_known_type_jump_func): Likewise.
5481 (determine_known_aggregate_parts): Likewise.
5482 (ipa_get_adjustment_candidate): Likewise.
5483 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5484 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5485 (build_ref_for_offset): Adjust prototype.
5486 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5487 get_inner_reference.
5488 * tree-affine.c (tree_to_aff_combination): Adjust call to
5489 get_inner_reference.
5490 (get_inner_reference_aff): Likewise.
5491 * tree-data-ref.c (split_constant_offset_1): Likewise.
5492 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
5493 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5494 get_inner_reference.
5495 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5496 (dump_access): Print new fields.
5497 (create_access): Adjust call to get_ref_base_and_extent and set the
5498 REVERSE flag according to the result.
5499 (completely_scalarize_record): Set the REVERSE flag.
5500 (scalarize_elem): Add REVERSE parameter.
5501 (build_access_from_expr_1): Preserve storage order barriers.
5502 (build_accesses_from_assign): Likewise.
5503 (build_ref_for_offset): Add REVERSE parameter and set the
5504 REF_REVERSE_STORAGE_ORDER flag accordingly.
5505 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5506 the REF_REVERSE_STORAGE_ORDER flag if there are components.
5507 (analyze_access_subtree): Likewise.
5508 (create_artificial_child_access): Set the REVERSE flag.
5509 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5510 (turn_representatives_into_adjustments): Propagate REVERSE flag.
5511 (ipa_sra_check_caller): Adjust call to get_inner_reference.
5512 * tree-ssa-alias.c (ao_ref_base): Adjust call to
5513 get_ref_base_and_extent.
5514 (aliasing_component_refs_p): Likewise.
5515 (stmt_kills_ref_p_1): Likewise.
5516 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5517 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5518 Return true if reverse storage order.
5519 <BIT_FIELD_REF>: Likewise.
5520 <COMPONENT_REF>: Likewise.
5521 <ARRAY_REF>: Likewise.
5522 <ARRAY_RANGE_REF>: Likewise.
5523 (split_address_cost): Likewise. Bail out if reverse storage order.
5524 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5525 get_inner_reference. Bail out if reverse storage order.
5526 (bswap_replace): Adjust call to get_inner_reference.
5527 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5528 the REF_REVERSE_STORAGE_ORDER flag.
5529 <BIT_FIELD_REF>: Likewise.
5530 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
5532 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
5533 to the REF_REVERSE_STORAGE_ORDER flag.
5534 <BIT_FIELD_REF>: Likewise.
5535 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
5536 (contains_storage_order_barrier_p): New predicate.
5537 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
5538 Punt on storage order barriers if necessary.
5539 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
5540 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
5541 call to get_ref_base_and_extent.
5542 (do_structure_copy): Likewise.
5543 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
5544 get_inner_reference.
5545 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
5546 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
5547 * ubsan.c (instrument_bool_enum_load): Likewise.
5548 (instrument_object_size): Likewise.
5549 * var-tracking.c (track_expr_p): Adjust call to
5550 get_ref_base_and_extent.
5551 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
5552 get_inner_reference.
5553 * config/s390/s390.c (s390_expand_atomic): Adjust call to
5555 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
5557 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5559 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
5561 * config/sparc/sparc.opt (mfix-at697f): Add final period.
5563 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5565 PR rtl-optimization/67864
5566 * common/config/i386/i386-common.c (ix86_option_optimization_table)
5567 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
5570 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5572 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
5575 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5577 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
5578 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
5580 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5582 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
5583 * internal-fn.c: Don't undef it here.
5584 * tree-core.h: Likewise.
5586 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5588 * builtins.c (fold_builtin_nan): Delete.
5589 (fold_builtin_memcmp): Remove case where both arguments are constant.
5590 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5591 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
5592 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
5593 * fold-const-call.c: Include fold-const.h.
5594 (host_size_t_cst_p): New function.
5595 (build_cmp_result, fold_const_builtin_nan): Likewise.
5596 (fold_const_call_1): New function, split out from...
5597 (fold_const_call): ...here (for all three interfaces). Handle
5598 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
5600 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5602 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
5603 (fold_builtin_1): Don't call them.
5604 * fold-const-call.c: Include tm.h.
5605 (fold_const_call_ss): New variant for integer-to-integer folds.
5606 (fold_const_call): Call it.
5608 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5610 * builtins.c (fold_builtin_classify): Move constant cases to...
5611 * fold-const-call.c (fold_const_call_ss): ...here.
5613 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5615 * builtins.h (c_getstr): Move to...
5616 * fold-const.h (c_getstr): ...here.
5617 * builtins.c (c_getstr): Move to...
5618 * fold-const.c (c_getstr): ...here.
5620 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5622 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
5623 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
5625 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5627 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
5628 the dominance info; free it if we can't.
5629 (pass_call_cdce::execute): Don't free the dominance info here.
5631 2015-11-06 Jeff Law <law@redhat.com>
5633 * tree-ssa-threadedge.c (dummy_simplify): Remove.
5634 (thread_around_empty_blocks): Remove backedge_seen_p argument.
5635 If we thread to a backedge, then return false. Update recursive
5636 call to eliminate backedge_seen_p argument.
5637 (thread_through_normal_block): Remove backedge_seen_p argument.
5638 Remove backedge_seen_p argument from calls to
5639 thread_around_empty_blocks. Remove checks on backedge_seen_p.
5640 If we thread to a backedge, then return 0.
5641 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
5642 pass it to thread_through_normal_block or thread_through_empty_blocks.
5643 For joiner handling, if we see a backedge, do not try normal
5646 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5648 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
5649 * graphite-poly.c (new_scop): Initialize original_schedule.
5650 (free_scop): Free original_schedule.
5651 * graphite-poly.h (struct scop): Add field original_schedule.
5652 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
5653 (build_poly_scop): Call build_scop_original_schedule.
5655 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5657 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5658 (build_pbb_minimal_scattering_polyhedrons): New.
5659 (build_scop_scattering): Remove.
5660 (build_scop_minimal_scattering): New.
5661 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
5662 (build_poly_scop): Call build_scop_minimal_scattering.
5664 2015-11-06 Jeff Law <law@redhat.com>
5666 * cfg-flags.def (IGNORE): New edge flag.
5667 * tree-vrp.c (identify_jump_threads): Mark and clear edges
5668 scheduled for removal with EDGE_IGNORE around call into
5669 jump threader. Do no thread across edges with EDGE_IGNORE,
5670 but do allow threading across those with EDGE_DFS_BACK.
5672 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
5674 * doc/md.texi (multi-alternative constraints): Don't document
5675 alternatives inherently tied to reload for the user documentation.
5677 2015-11-06 Michael Collison <michael.collison@linaro.org>
5678 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5681 2015-08-01 Michael Collison <michael.collison@linaro.org
5682 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5684 * config/arm/arm.md (*arm_smin_cmp): New pattern.
5685 (*arm_umin_cmp): Likewise.
5687 2015-11-06 Jakub Jelinek <jakub@redhat.com>
5689 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
5690 * omp-low.c (check_omp_nesting_restrictions): Update for the
5691 various new OpenMP 4.5 nesting restrictions, clarified
5692 nesting glossary, closely nested region relationship clarified
5693 to mean explicit or implicit parallel regions (target/teams),
5694 use %</%> or %qs where appropriate.
5696 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5697 Sebastian Pop <s.pop@samsung.com>
5699 * graphite-scop-detection.c (loop_is_valid_scop): Call
5700 optimize_loop_nest_for_speed_p.
5702 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5703 Sebastian Pop <s.pop@samsung.com>
5705 * graphite-optimize-isl.c (optimize_isl): Call
5706 isl_options_set_schedule_maximize_band_depth.
5708 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5709 Sebastian Pop <s.pop@samsung.com>
5711 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
5712 and exit edges should not be a part of irreducible loop.
5713 (scop_detection::can_represent_loop_1): Loops should not be
5715 (scop_detection::harmful_stmt_in_region): All the basic block
5716 should belong to reducible loops.
5718 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
5720 * config/aarch64/aarch64-simd-builtins.def: Update builtins
5721 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
5722 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
5723 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
5724 (aarch64_tbx4v8qi): Rename to...
5725 aarch64_tbx4<mode>): ... this.
5726 (aarch64_qtbl3<mode>): New pattern.
5727 (aarch64_qtbx3<mode>): New pattern.
5728 (aarch64_qtbl4<mode>): New pattern.
5729 (aarch64_qtbx4<mode>): New pattern.
5730 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
5731 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
5732 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
5733 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
5734 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
5735 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
5736 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
5737 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
5740 2015-11-06 Mike Stump <mikestump@comcast.net>
5743 * dwarf2out.c (get_full_len): Return a value based upon the actual
5744 precision needed for the value.
5745 (add_const_value_attribute): Use a maximal wide-int for
5746 CONST_WIDE_INTs, not VOIDmode.
5747 (output_die): Don't ever output NULL with printf.
5749 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
5750 BLKmode nor VOIDmode values.
5752 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5754 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
5756 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
5757 * diagnostic-core.h (warning_at_rich_loc): New declaration.
5758 (error_at_rich_loc): New declaration.
5759 (permerror_at_rich_loc): New declaration.
5760 (inform_at_rich_loc): New declaration.
5761 * diagnostic-show-locus.c (adjust_line): Delete.
5762 (struct point_state): New struct.
5763 (class colorizer): New class.
5764 (class layout_point): New class.
5765 (class layout_range): New class.
5766 (struct line_bounds): New.
5767 (class layout): New class.
5768 (colorizer::colorizer): New ctor.
5769 (colorizer::~colorizer): New dtor.
5770 (layout::layout): New ctor.
5771 (layout::print_source_line): New method.
5772 (layout::print_annotation_line): New method.
5773 (layout::get_state_at_point): New method.
5774 (layout::get_x_bound_for_row): New method.
5775 (diagnostic_show_locus): Reimplement in terms of class layout.
5776 (diagnostic_print_caret_line): Delete.
5777 * diagnostic.c (diagnostic_initialize): Replace
5778 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
5779 (diagnostic_set_info_translated): Convert param from location_t
5780 to rich_location *. Eliminate calls to set_location on the
5781 message in favor of storing the rich_location ptr there.
5782 (diagnostic_set_info): Convert param from location_t to
5784 (diagnostic_build_prefix): Break out array into...
5785 (diagnostic_kind_color): New variable.
5786 (diagnostic_get_color_for_kind): New function.
5787 (diagnostic_report_diagnostic): Colorize the option_text
5788 using the color for the severity.
5789 (diagnostic_append_note): Update for change in signature of
5790 diagnostic_set_info.
5791 (diagnostic_append_note_at_rich_loc): New function.
5792 (emit_diagnostic): Update for change in signature of
5793 diagnostic_set_info.
5795 (inform_at_rich_loc): New function.
5796 (inform_n): Update for change in signature of diagnostic_set_info.
5797 (warning): Likewise.
5798 (warning_at): Likewise.
5799 (warning_at_rich_loc): New function.
5800 (warning_n): Update for change in signature of diagnostic_set_info.
5801 (pedwarn): Likewise.
5802 (permerror): Likewise.
5803 (permerror_at_rich_loc): New function.
5804 (error): Update for change in signature of diagnostic_set_info.
5805 (error_n): Likewise.
5806 (error_at): Likewise.
5807 (error_at_rich_loc): New function.
5808 (sorry): Update for change in signature of diagnostic_set_info.
5809 (fatal_error): Likewise.
5810 (internal_error): Likewise.
5811 (internal_error_no_backtrace): Likewise.
5812 (source_range::debug): New function.
5813 * diagnostic.h (struct diagnostic_info): Eliminate field
5814 "override_column". Add field "richloc".
5815 (struct diagnostic_context): Add field "colorize_source_p".
5816 (diagnostic_override_column): Delete.
5817 (diagnostic_set_info): Convert param from location_t to
5819 (diagnostic_set_info_translated): Likewise.
5820 (diagnostic_append_note_at_rich_loc): New function.
5821 (diagnostic_num_locations): New function.
5822 (diagnostic_expand_location): Get the location from the
5824 (diagnostic_print_caret_line): Delete.
5825 (diagnostic_get_color_for_kind): New declaration.
5826 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
5827 (error_cb): Update for change in signature of "error" callback.
5828 (fatal_at): Likewise.
5829 (warning_at): Likewise.
5830 * input.c (linemap_client_expand_location_to_spelling_point): New.
5831 * pretty-print.c (text_info::set_range): New method.
5832 (text_info::get_location): New method.
5833 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
5834 (struct text_info): Eliminate "locations" array in favor of
5835 "m_richloc", a rich_location *.
5836 (textinfo::set_location): Add a "caret_p" param, and reimplement
5837 in terms of a call to set_range.
5838 (textinfo::get_location): Eliminate inline implementation in favor of
5839 an out-of-line reimplementation.
5840 (textinfo::set_range): New method.
5841 * rtl-error.c (diagnostic_for_asm): Update for change in signature
5842 of diagnostic_set_info.
5843 * tree-diagnostic.c (default_tree_printer): Update for new
5844 "caret_p" param for textinfo::set_location.
5845 * tree-pretty-print.c (percent_K_format): Likewise.
5847 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5850 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5851 * config/aarch64/aarch64.c
5852 (aarch64_can_use_per_function_literal_pools_p): New.
5853 (aarch64_use_blocks_for_constant_p): Adjust declaration
5854 and use aarch64_can_use_function_literal_pools_p.
5855 (aarch64_select_rtx_section): Update.
5857 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5859 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
5860 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
5861 (arm_output_multireg_pop): Likewise.
5862 (output_move_double): Likewise.
5863 (output_move_quad): Likewise.
5864 (output_return_instruction): Likewise.
5865 (arm_print_operand): Remove support for %( and %. print modifiers.
5866 (arm_output_shift): Make unified asm.
5867 (arm_declare_function_name): Likewise.
5868 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
5869 (ASM_APP_OFF): Adjust.
5870 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
5871 (ASM_OUTPUT_REG_POP): Likewise.
5872 * config/arm/arm.md: Adjust uses of %., %(, %)
5873 * config/arm/sync.md: Likewise.
5874 * config/arm/thumb2.md: Likewise.
5875 * config/arm/ldmstm.md: Regenerate.
5876 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
5877 * doc/invoke.texi (masm-unified-syntax): Update documentation.
5879 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5881 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
5883 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5885 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
5886 add OEP_MATCH_SIDE_EFFECTS.
5887 * fold-const.c (operand_equal_p): Update documentation; handle
5888 OEP_MATCH_SIDE_EFFECTS.
5889 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
5890 OEP_MATCH_SIDE_EFFECTS.
5892 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
5893 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5895 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
5896 * config/aarch64/aarch64-protos.h: Declare.
5897 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
5899 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
5900 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
5901 code when applicable.
5902 * config/aarch64/aarch64.md: Added enum entries.
5903 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
5905 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5909 * ipa-polymorphic-call.c
5910 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
5911 issue when offset is out of range.
5912 (contains_type_p): Fix out of range check, clear dynamic flag.
5914 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
5916 * config.gcc (e6500): Fix cpu_is_64bit typo.
5918 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
5920 * tree-sra.c (completely_scalarize): Properly handle negative array
5921 indices using offset_int.
5923 2015-11-06 Richard Biener <rguenther@suse.de>
5925 * alloc-pool.h (object_allocator::allocate): Default-initialize
5928 2015-11-06 Richard Biener <rguenther@suse.de>
5930 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
5931 * lra.c (init_reg_info): Truncate copy_vec instead of
5932 re-allocating a new one and leaking the old.
5933 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
5935 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
5936 * postreload-gcse.c (free_mem): Free modify_mem_list and
5937 canon_modify_mem_list.
5939 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
5941 PR tree-optimization/68145
5942 * tree-vect-stmts.c (vectorizable_operation): Fix
5943 determination for booleans.
5945 2015-11-06 Tom de Vries <tom@codesourcery.com>
5947 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
5948 cond_jump, instead of split after last nondebug insn before cond_jump.
5949 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
5952 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5955 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
5956 subregs from accumulator and make sure it's a register.
5958 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
5960 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
5962 (reduc_uplus_<mode>): Remove.
5963 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
5964 loongson_extract_lo_<mode>.
5965 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
5966 reduc_smax_<mode>, reduc_smax_<mode>, use vec
5967 loongson_extract_lo_<mode>.
5968 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
5970 2015-11-06 Richard Biener <rguenther@suse.de>
5972 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
5974 (vect_stmt_in_region_p): Declare.
5975 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
5976 (destroy_bb_vec_info): Likewise.
5977 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
5978 (vect_get_and_check_slp_defs): Likewise.
5979 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
5980 (vect_slp_bb): Likewise.
5981 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
5982 in terms of vect_stmt_in_region_p.
5983 (vect_pattern_recog): Iterate over the BB region.
5984 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
5985 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
5986 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
5987 * config/i386/i386.c: Include gimple-iterator.h.
5988 * config/aarch64/aarch64.c: Likewise.
5990 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
5992 PR rtl-optimization/67753
5993 PR rtl-optimization/64164
5994 * function.c (assign_parm_setup_block): Avoid allocating a
5995 stack slot if we don't have an ABI-reserved one. Emit the
5996 copy to target_reg in the conversion seq if the copy from
5997 entry_parm is in it too. Don't use the conversion seq to copy
5998 a PARALLEL to a REG or a CONCAT.
6000 2015-11-06 Richard Biener <rguenther@suse.de>
6002 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
6005 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
6006 Thomas Schwinge <thomas@codesourcery.com>
6007 James Norris <jnorris@codesourcery.com>
6010 * gimplify.c (gimplify_scan_omp_clauses): Add support for
6011 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
6012 (gimplify_adjust_omp_clauses): Likewise.
6013 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
6014 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
6015 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
6016 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
6017 (omp_clause_code_name): Likewise.
6018 (walk_tree_1): Handle OMP_CLAUSE_TILE.
6019 * tree.h (OMP_TILE_LIST): New macro.
6021 2015-11-05 Martin Sebor <msebor@redhat.com>
6024 * doc/invoke.texi (-Wplacement-new): Document new option.
6026 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
6028 PR tree-optimization/65963
6029 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
6030 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
6032 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
6034 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
6035 (noce_convert_multiple_sets): Likewise.
6036 (noce_process_if_block): Call them.
6038 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6040 * gimple-fold.c: Include omp-low.h.
6041 (fold_internal_goacc_dim): New.
6042 (gimple_fold_call): Call it.
6044 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6045 Ilya Verbin <ilya.verbin@intel.com>
6048 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
6049 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
6050 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6051 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
6052 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
6053 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
6054 (struct cgraph_simd_clone_arg): Adjust comment.
6055 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
6056 to GOMP_target_ext. Add num_teams and thread_limit arguments.
6057 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
6058 to GOMP_target_data_ext.
6059 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
6060 to GOMP_target_update_ext.
6061 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
6062 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
6063 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
6064 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
6065 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
6066 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
6067 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
6068 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
6069 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
6070 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
6071 * tree-core.h (enum omp_clause_schedule_kind): Add
6072 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
6073 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
6074 OMP_CLAUSE_SCHEDULE_LAST value.
6075 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
6076 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
6077 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
6078 OMP_FOR_CHECK. Remove comment.
6079 * tree-pretty-print.c (dump_omp_clause): Handle
6080 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
6081 Simplify. Print schedule clause modifiers.
6082 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6083 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
6085 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
6086 (omp_default_clause): Tweak for
6087 private/firstprivate/is_device_ptr variables on target
6088 construct and use_device_ptr on target data.
6089 (omp_check_private): Likewise.
6090 (omp_notice_variable): For references check whether what it refers
6091 to has mappable type, rather than the reference itself.
6092 (omp_is_private): Diagnose linear iteration variables on non-simd
6094 (omp_no_lastprivate): Return true only for Fortran.
6095 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
6096 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
6097 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
6098 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
6099 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
6100 lastprivate and linear when combined with distribute. Gimplify
6101 variable low-bound for array reduction. Look through
6102 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
6104 (gimplify_adjust_omp_clauses_1): For implicit references to
6105 variables with reference type and when not ref to scalar or
6106 ref to pointer, map what they refer to using tofrom and
6107 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6108 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6109 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6110 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
6111 Diagnose the same var on both firstprivate and lastprivate on
6112 distribute construct.
6113 (gimplify_omp_for): Fix up handling of predetermined
6114 lastprivate or linear iter vars when combined with distribute.
6115 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6117 (gimplify_omp_workshare): Call optimize_target_teams.
6118 * omp-low.c (struct omp_region): Add sched_modifiers field.
6119 (struct omp_for_data): Likewise.
6120 (omp_any_child_fn_dumped): New variable.
6121 (extract_omp_for_data): Fill in sched_modifiers, and mask out
6122 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6124 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6125 bits of OMP_CLAUSE_SCHED_KIND.
6126 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6127 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
6128 for array section reductions.
6129 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6130 for distribute parallel for, if there are lastprivate clauses on the
6132 (lower_rec_input_clauses): Handle non-zero low-bound on array
6134 (lower_reduction_clauses): Likewise.
6135 (lower_send_clauses): Look through POINTER_PLUS_EXPR
6136 for array section reductions.
6137 (expand_parallel_call): Use nonmonotonic entrypoints for
6138 nonmonotonic: dynamic/guided.
6139 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6140 child_fn if current_function_decl has assembler name set, but child_fn
6141 does not. Dump the header and IL of the child function when not in SSA
6143 (expand_omp_target): Likewise. Pass num_teams and thread_limit
6144 arguments to BUILT_IN_GOMP_TARGET.
6145 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6146 Initialize the extra _looptemp_ clause to fd->loop.n2.
6147 (expand_omp_for): Use nonmonotonic entrypoints for
6148 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
6149 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
6150 again if we have dumped any child functions.
6151 (lower_omp_for_lastprivate): Determine the right count variable
6152 for distribute simd, or distribute parallel for{, simd}.
6153 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6154 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
6156 (simd_clone_clauses_extract): Handle variable step
6157 for references and arguments passed by reference.
6158 (simd_clone_mangle): Mangle ref/uval/val variable steps.
6159 (simd_clone_adjust_argument_types): Handle
6160 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6161 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6162 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6163 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6164 (simd_clone_linear_addend): New function.
6165 (simd_clone_adjust): Handle variable step like similarly
6166 to constant step, use simd_clone_linear_addend to determine
6167 the actual step at runtime.
6169 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6171 * target.def (goacc.dim_limit): New hook.
6172 * targhooks.h (default_goacc_dim_limit): Declare.
6173 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6174 * doc/tm.texi: Rebuilt.
6175 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6176 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6177 (default_goacc_dim_limit): New.
6178 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6179 (nvptx_goacc_dim_limit) New.
6180 (TARGET_GOACC_DIM_LIMIT): Override.
6181 * tree-vrp.c: Include omp-low.h, target.h.
6182 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6185 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6187 * tree-vect-generic.c (do_compare): Use -1 for true
6188 result instead of 1.
6190 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6192 * config/aarch64/aarch64.c
6193 (aarch64_can_use_per_function_literal_pools_p): New.
6194 (aarch64_use_blocks_for_constant_p): Adjust declaration
6195 and use aarch64_can_use_function_literal_pools_p.
6196 (aarch64_select_rtx_section): Update.
6198 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6200 * targhooks.c (default_get_mask_mode): Use BLKmode in
6201 case target doesn't support required vector mode.
6202 * stor-layout.c (layout_type); Check for BLKmode.
6204 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6205 Sebastian Pop <s.pop@samsung.com>
6207 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6208 Remove use of parameter_rename_map.
6210 (copy_internal_parameters): Remove.
6211 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6212 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6213 (free_sese_info): Do not free parameter_rename_map.
6214 (set_rename): Do not use parameter_rename_map.
6215 (rename_uses): Update call to set_rename.
6216 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6217 * sese.h (parameter_rename_map_t): Remove.
6218 (struct sese_info_t): Remove field parameter_rename_map.
6220 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6221 Sebastian Pop <s.pop@samsung.com>
6223 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6224 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6225 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6226 anonymous namespace.
6227 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6228 (isl_id_for_pbb): Use a buffer of size 10.
6229 (isl_id_for_ssa_name): Same.
6230 * sese.c (set_rename): Add more dumps.
6232 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6234 * omp-low.c (struct omp_context): Remove reduction_map field.
6235 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6236 (new_omp_context, delete_omp_context, scan_omp_target): Remove
6237 reduction_map handling.
6238 (lower_omp_target): Remove obsolete openacc reduction handling.
6240 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6242 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6244 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6245 Cesar Philippidis <cesar@codesourcery.com>
6247 * config/nvptx/nvptx.c: Include gimple headers.
6248 (worker_red_size, worker_red_align, worker_red_name,
6249 worker_red_sym): New.
6250 (nvptx_option_override): Initialize worker reduction buffer.
6251 (nvptx_file_end): Write out worker reduction buffer var.
6252 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6253 nvptx_expand_cmp_swap): New builtin expanders.
6254 (enum nvptx_builtins): New.
6255 (nvptx_builtin_decls): New.
6256 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6257 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6258 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6259 nvptx_lockless_update): New helpers.
6260 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6261 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6262 (nvptx_goacc_reduction): New.
6263 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6264 TARGET_BUILTIN_DECL): Override.
6265 (TARGET_GOACC_REDUCTION): Override.
6267 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6268 Cesar Philippidis <cesar@codesourcery.com>
6270 * internal-fn.def (GOACC_REDUCTION): New.
6271 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6272 * internal-fn.c (expand_GOACC_REDUCTION): New.
6273 * target.def (goacc.reduction): New OpenACC hook.
6274 * targhooks.h (default_goacc_reduction): Declare.
6275 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6276 * doc/tm.texi: Rebuilt.
6277 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6278 scan_sharing_clauses): Remove oacc reduction handling here.
6279 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6280 (oacc_lower_reduction_var_helper): Delete.
6281 (lower_oacc_reductions): New.
6282 (lower_reduction_clauses): Don't handle OpenACC reductions here.
6283 (lower_oacc_head_tail): Call lower_oacc_reductions.
6284 (oacc_gimple_assign, oacc_init_reduction_array,
6285 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6286 oacc_process_reduction_data): Delete.
6287 (lower_omp_target): Remove old OpenACC reduction handling. Insert
6288 dummy OpenACC gang reduction for reductions at outer level.
6289 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6290 (default_goacc_reduction): New.
6291 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6293 2015-11-04 Martin Liska <mliska@suse.cz>
6295 * cgraphunit.c (cgraph_node::expand_thunk): Call
6296 allocate_struct_function before init_function_start.
6297 (cgraph_node::expand): Use push_cfun and pop_cfun.
6298 * config/i386/i386.c (ix86_code_end): Call
6299 allocate_struct_function before init_function_start.
6300 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6301 * function.c (init_function_start): Move preamble to all
6303 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6304 (execute_one_pass): Handle newly added TODO_discard_function.
6305 (execute_pass_list_1): Terminate if cfun equals to NULL.
6306 (execute_pass_list): Do not push and pop cfun, expect that
6308 * tree-pass.h (TODO_discard_function): Define.
6310 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
6312 * cfganal.c (inverted_post_order_compute): Remove conditional
6313 compilation, use flag_checking.
6314 * config.in: Regenerate.
6315 * configure: Regenerate.
6316 * configure.ac: Remove ENABLE_CHECKING.
6317 * genconditions.c: Do not #undef ENABLE_CHECKING.
6318 * sese.h (bb_in_region): Comment out broken check.
6319 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6320 conditional compilation, use flag_checking.
6322 2015-11-04 Tom de Vries <tom@codesourcery.com>
6324 PR tree-optimization/67742
6325 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6327 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6328 (create_variable_info_for_1): Add and handle handle_param parameter.
6329 Add restrict handling.
6330 (create_variable_info_for): Call create_variable_info_for_1 with extra
6332 (make_param_constraints): Drop restrict_name parameter. Ignore
6333 vi->only_restrict_pointers.
6334 (intra_create_variable_infos): Call create_variable_info_for_1 with
6335 extra arg. Remove restrict handling. Call make_param_constraints with
6338 2015-11-04 Tom de Vries <tom@codesourcery.com>
6340 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6343 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6345 * config/arm/coff.h: Remove.
6347 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
6349 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6350 check for aggregate types and beef up comment for mode check.
6352 2015-11-03 Richard Biener <rguenther@suse.de>
6354 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6355 data references here.
6356 * tree-vect-loop.c: Include cgraph.h.
6357 (vect_analyze_loop_2): Collect data references here.
6358 * tree-vect-slp.c (find_bb_location): Inline ...
6359 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
6360 Factor in vect_slp_transform_bb.
6361 (vect_slp_transform_bb): Removed.
6362 (vect_slp_analyze_bb_1): Collect data references here.
6363 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6365 * tree-vectorizer.h (vect_slp_bb): Declare.
6366 (vect_slp_analyze_bb): Remove.
6367 (vect_slp_transform_bb): Remove.
6368 (find_bb_location): Remove.
6369 (vect_analyze_data_refs): Remove stmt count reference parameter.
6371 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
6373 * multiple_target.c (create_dispatcher_calls): Add target check
6375 (create_target_clone): Change assembler name for versioned declarations.
6377 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
6378 Chung-Lin Tang <cltang@codesourcery.com>
6380 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6381 * omp-low.c (check_omp_nesting_restrictions): Allow
6382 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6385 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
6387 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6388 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6389 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6391 (vmulxq_f32): Likewise.
6393 (vmulxq_f64): Rewrite to call fmulx builtin.
6394 (vmulxs_f32): Likewise.
6395 (vmulxd_f64): Likewise.
6396 (vmulx_lane_f32): Remove.
6397 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6399 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
6401 * config/aarch64/aarch64.md (*movhf_aarch64): Use
6402 aarch64_reg_or_fp_zero for second operand.
6404 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
6406 * gimple-expr.c: Include hash-set.h and rtl.h.
6407 (mark_addressable_queue): New var.
6408 (mark_addressable): Factor actual marking into...
6409 (mark_addressable_1): ... this. Queue it up during expand.
6410 (mark_addressable_2): New.
6411 (flush_mark_addressable_queue): New.
6412 * gimple-expr.h (flush_mark_addressable_queue): Declare.
6413 * cfgexpand.c: Include gimple-expr.h.
6414 (pass_expand::execute): Flush mark_addressable queue.
6416 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
6418 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6419 bb_no_side_effects_p tests...
6420 (tree_ssa_ifcombine_bb): ... here.
6422 PR tree-optimization/68083
6423 * tree-ssa-ifcombine.c: Include tree-ssa.h.
6424 (bb_no_side_effects_p): Test for undefined uses too.
6425 * tree-ssa.c (gimple_uses_undefined_value_p): New.
6426 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6428 2015-11-02 Jeff Law <law@redhat.com>
6430 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6431 cases where the loop latch edge is in the middle of an FSM path.
6433 2015-11-03 Tom de Vries <tom@codesourcery.com>
6435 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6436 (make_param_constraints): ... this. Add and handle restrict_name
6437 parameter. Handle is_full_var case.
6438 (intra_create_variable_infos): Use make_param_constraints.
6440 2015-11-03 Tom de Vries <tom@codesourcery.com>
6442 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6443 make_copy_constraint call with make_constraint_from call.
6445 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
6447 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6450 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
6452 * builtins.h (fold_fma): Move to fold-const-call.h.
6453 * builtins.c: Include fold-const-call.h.
6454 (mathfn_built_in_2): New function, split out from...
6455 (mathfn_built_in_1): ...here.
6456 (do_real_to_int_conversion, fold_const_builtin_pow)
6457 (fold_const_builtin_logb, fold_const_builtin_significand)
6458 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6459 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6460 (fold_builtin_sincos): Use fold_const_call to handle constants.
6461 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6462 checks for ERROR_MARK. Use fold_const_call to handle constant
6463 folds for math functions.
6464 (fold_fma): Move to fold-const-call.c.
6465 * fold-const.c: Include fold-const-call.h.
6466 * Makefile.in (OBJS): Add fold-const-call.o.
6467 (PLUGIN_HEADERS): Add fold-const-call.h.
6468 * realmpfr.h (real_from_mpfr): Allow the format to be specified
6470 * realmpfr.c (real_from_mpfr): Likewise.
6471 * fold-const-call.h, fold-const-call.c: New files.
6473 2015-11-02 Julian Brown <julian@codesourcery.com>
6475 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6476 brackets and semicolon.
6478 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
6481 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6483 PR tree-optimization/65963
6484 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6485 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6487 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
6490 * fold-const.c: Include "md5.h".
6492 2015-11-01 Jeff Law <law@redhat.com>
6494 * vmsdbgout.c: Revert unused header file reduction patch.
6496 * config/mcore/mcore.c: Include regs.h.
6498 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6500 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6502 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6504 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6505 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6506 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6508 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
6510 * ggc-common.c: Restore needed header for checking=release.
6512 2015-10-31 Tom de Vries <tom@codesourcery.com>
6514 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6516 2015-10-31 Tom de Vries <tom@codesourcery.com>
6518 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6519 existing varinfo for arguments.
6521 2015-10-31 Tom de Vries <tom@codesourcery.com>
6523 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6524 create_function_info_for. Dump constraints generated during
6525 create_function_info_for. Move intra_create_variable_infos call and
6526 function-return-values-escape bit to ...
6527 (create_function_info_for): ... here, and merge
6528 intra_create_variable_infos call with argument loop. Add and handle
6529 nonlocal_p parameter.
6531 2015-10-31 Tom de Vries <tom@codesourcery.com>
6533 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
6534 updating is alap, and seperated from preceding code. Make sure
6535 insert_vi_for_tree is seperated from surrounding code.
6537 2015-10-31 Tom de Vries <tom@codesourcery.com>
6539 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
6541 2015-10-30 Jeff Law <law@redhat.com>
6542 Nathan Sidwell <nathan@acm.org>
6544 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
6546 (MOVE_MAX): Set to 8.
6548 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
6550 * cgraph.c: Include context.h for offloading.
6551 * varpool.c: Include context.h and omp-low.h.
6553 2015-10-30 Anatoly Sokolov <aesok@post.ru>
6555 * rtl.h (contains_symbol_ref_p): Declare.
6556 (SYMBOL_REF_P): Define.
6557 * rtlanal.c (contains_symbol_ref_p: New function.
6558 * lra-constraints.c (contains_symbol_ref_p): Remove.
6559 * var-tracking.c (contains_symbol_ref): Remove.
6560 (track_expr_p): Use contains_symbol_ref_p instead of
6561 contains_symbol_ref.
6563 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6565 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
6566 * fold-const.c (get_array_ctor_element_at_index): New.
6567 (fold): Remove binary-search through CONSTRUCTOR, call previous.
6569 * fold-const.h (get_array_ctor_element_at_index): New.
6571 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
6573 * Makefile.in (OBJS): Add multiple_target.o.
6574 * attrib.c (make_attribute): Moved from config/i386/i386.c
6575 * config/i386/i386.c (make_attribute): Deleted.
6576 * multiple_target.c (create_dispatcher_calls): New.
6577 (get_attr_len): Ditto.
6578 (get_attr_str): Ditto.
6579 (separate_attrs): Ditto.
6580 (is_valid_asm_symbol): Ditto.
6581 (create_new_asm_name): Ditto.
6582 (create_target_clone): Ditto.
6583 (expand_target_clones): Ditto.
6584 (ipa_target_clone): Ditto.
6585 (ipa_dispatcher_calls): Ditto.
6586 * passes.def (pass_target_clone): Two new ipa passes.
6587 * tree-pass.h (make_pass_target_clone): Ditto.
6588 * doc/extend.texi (target_clones): New attribute description.
6590 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
6592 PR rtl-optimization/68106
6593 * lra-remat.c (input_regno_present_p): Process hard regs
6594 explicitly present in machine description insns.
6595 (call_used_input_regno_present_p): Ditto.
6596 (calculate_gen_cands): Ditto.
6599 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
6601 * config/arm/neon-testgen.ml: Fix comment typo.
6603 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6605 * rtlanal.c (reg_set_p): Expand function comment.
6607 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
6609 * alias.c: Remove unused headers.
6611 * attribs.c: Likewise.
6612 * auto-inc-dec.c: Likewise.
6613 * auto-profile.c: Likewise.
6614 * bb-reorder.c: Likewise.
6615 * bitmap.c: Likewise.
6616 * bt-load.c: Likewise.
6617 * builtins.c: Likewise.
6618 * caller-save.c: Likewise.
6619 * calls.c: Likewise.
6622 * cfganal.c: Likewise.
6623 * cfgbuild.c: Likewise.
6624 * cfgcleanup.c: Likewise.
6625 * cfgexpand.c: Likewise.
6626 * cfghooks.c: Likewise.
6627 * cfgloop.c: Likewise.
6628 * cfgloopanal.c: Likewise.
6629 * cfgloopmanip.c: Likewise.
6630 * cfgrtl.c: Likewise.
6631 * cgraph.c: Likewise.
6632 * cgraphbuild.c: Likewise.
6633 * cgraphclones.c: Likewise.
6634 * cgraphunit.c: Likewise.
6635 * cilk-common.c: Likewise.
6636 * combine-stack-adj.c: Likewise.
6637 * combine.c: Likewise.
6638 * compare-elim.c: Likewise.
6639 * convert.c: Likewise.
6640 * coverage.c: Likewise.
6641 * cppbuiltin.c: Likewise.
6642 * cprop.c: Likewise.
6644 * cselib.c: Likewise.
6645 * data-streamer-in.c: Likewise.
6646 * data-streamer-out.c: Likewise.
6647 * data-streamer.c: Likewise.
6648 * dbxout.c: Likewise.
6651 * debug.c: Likewise.
6652 * df-core.c: Likewise.
6653 * df-problems.c: Likewise.
6654 * df-scan.c: Likewise.
6656 * dojump.c: Likewise.
6657 * dominance.c: Likewise.
6658 * domwalk.c: Likewise.
6659 * double-int.c: Likewise.
6661 * dumpfile.c: Likewise.
6662 * dwarf2asm.c: Likewise.
6663 * dwarf2cfi.c: Likewise.
6664 * dwarf2out.c: Likewise.
6665 * emit-rtl.c: Likewise.
6666 * except.c: Likewise.
6667 * explow.c: Likewise.
6668 * expmed.c: Likewise.
6670 * final.c: Likewise.
6671 * fixed-value.c: Likewise.
6672 * fold-const.c: Likewise.
6673 * function.c: Likewise.
6674 * fwprop.c: Likewise.
6676 * generic-match-head.c: Likewise.
6677 * ggc-common.c: Likewise.
6678 * gimple-builder.c: Likewise.
6679 * gimple-expr.c: Likewise.
6680 * gimple-fold.c: Likewise.
6681 * gimple-iterator.c: Likewise.
6682 * gimple-low.c: Likewise.
6683 * gimple-match-head.c: Likewise.
6684 * gimple-pretty-print.c: Likewise.
6685 * gimple-ssa-isolate-paths.c: Likewise.
6686 * gimple-ssa-strength-reduction.c: Likewise.
6687 * gimple-streamer-in.c: Likewise.
6688 * gimple-streamer-out.c: Likewise.
6689 * gimple-walk.c: Likewise.
6690 * gimple.c: Likewise.
6691 * gimplify-me.c: Likewise.
6692 * gimplify.c: Likewise.
6693 * godump.c: Likewise.
6694 * graph.c: Likewise.
6695 * graphds.c: Likewise.
6696 * haifa-sched.c: Likewise.
6697 * hw-doloop.c: Likewise.
6698 * ifcvt.c: Likewise.
6699 * init-regs.c: Likewise.
6700 * internal-fn.c: Likewise.
6701 * ipa-chkp.c: Likewise.
6702 * ipa-comdats.c: Likewise.
6703 * ipa-cp.c: Likewise.
6704 * ipa-devirt.c: Likewise.
6705 * ipa-icf-gimple.c: Likewise.
6706 * ipa-icf.c: Likewise.
6707 * ipa-inline-analysis.c: Likewise.
6708 * ipa-inline-transform.c: Likewise.
6709 * ipa-inline.c: Likewise.
6710 * ipa-polymorphic-call.c: Likewise.
6711 * ipa-profile.c: Likewise.
6712 * ipa-prop.c: Likewise.
6713 * ipa-pure-const.c: Likewise.
6714 * ipa-ref.c: Likewise.
6715 * ipa-reference.c: Likewise.
6716 * ipa-split.c: Likewise.
6717 * ipa-utils.c: Likewise.
6718 * ipa-visibility.c: Likewise.
6720 * ira-build.c: Likewise.
6721 * ira-color.c: Likewise.
6722 * ira-conflicts.c: Likewise.
6723 * ira-costs.c: Likewise.
6724 * ira-emit.c: Likewise.
6725 * ira-lives.c: Likewise.
6728 * langhooks.c: Likewise.
6730 * lists.c: Likewise.
6731 * loop-doloop.c: Likewise.
6732 * loop-init.c: Likewise.
6733 * loop-invariant.c: Likewise.
6734 * loop-iv.c: Likewise.
6735 * loop-unroll.c: Likewise.
6736 * lower-subreg.c: Likewise.
6737 * lra-assigns.c: Likewise.
6738 * lra-coalesce.c: Likewise.
6739 * lra-constraints.c: Likewise.
6740 * lra-eliminations.c: Likewise.
6741 * lra-lives.c: Likewise.
6742 * lra-remat.c: Likewise.
6743 * lra-spills.c: Likewise.
6745 * lto-cgraph.c: Likewise.
6746 * lto-compress.c: Likewise.
6747 * lto-opts.c: Likewise.
6748 * lto-section-in.c: Likewise.
6749 * lto-section-out.c: Likewise.
6750 * lto-streamer-in.c: Likewise.
6751 * lto-streamer-out.c: Likewise.
6752 * lto-streamer.c: Likewise.
6754 * mode-switching.c: Likewise.
6755 * modulo-sched.c: Likewise.
6756 * optabs.c: Likewise.
6757 * opts-global.c: Likewise.
6758 * passes.c: Likewise.
6759 * plugin.c: Likewise.
6760 * postreload-gcse.c: Likewise.
6761 * postreload.c: Likewise.
6762 * predict.c: Likewise.
6763 * print-tree.c: Likewise.
6764 * profile.c: Likewise.
6766 * realmpfr.c: Likewise.
6767 * recog.c: Likewise.
6769 * reg-stack.c: Likewise.
6770 * regcprop.c: Likewise.
6771 * reginfo.c: Likewise.
6772 * regrename.c: Likewise.
6773 * regstat.c: Likewise.
6774 * reload.c: Likewise.
6775 * reload1.c: Likewise.
6776 * reorg.c: Likewise.
6777 * resource.c: Likewise.
6778 * rtl-chkp.c: Likewise.
6779 * rtl-error.c: Likewise.
6780 * rtlanal.c: Likewise.
6781 * rtlhooks.c: Likewise.
6782 * sanopt.c: Likewise.
6783 * sched-deps.c: Likewise.
6784 * sched-ebb.c: Likewise.
6785 * sched-rgn.c: Likewise.
6786 * sdbout.c: Likewise.
6787 * sel-sched-dump.c: Likewise.
6788 * sel-sched-ir.c: Likewise.
6789 * sel-sched.c: Likewise.
6791 * shrink-wrap.c: Likewise.
6792 * simplify-rtx.c: Likewise.
6793 * stack-ptr-mod.c: Likewise.
6794 * statistics.c: Likewise.
6796 * stor-layout.c: Likewise.
6797 * store-motion.c: Likewise.
6798 * stringpool.c: Likewise.
6799 * symtab.c: Likewise.
6800 * target-globals.c: Likewise.
6801 * targhooks.c: Likewise.
6802 * toplev.c: Likewise.
6803 * tracer.c: Likewise.
6804 * trans-mem.c: Likewise.
6805 * tree-affine.c: Likewise.
6806 * tree-call-cdce.c: Likewise.
6807 * tree-cfg.c: Likewise.
6808 * tree-cfgcleanup.c: Likewise.
6809 * tree-chkp-opt.c: Likewise.
6810 * tree-chkp.c: Likewise.
6811 * tree-chrec.c: Likewise.
6812 * tree-complex.c: Likewise.
6813 * tree-data-ref.c: Likewise.
6814 * tree-dfa.c: Likewise.
6815 * tree-diagnostic.c: Likewise.
6816 * tree-dump.c: Likewise.
6817 * tree-eh.c: Likewise.
6818 * tree-emutls.c: Likewise.
6819 * tree-if-conv.c: Likewise.
6820 * tree-inline.c: Likewise.
6821 * tree-into-ssa.c: Likewise.
6822 * tree-iterator.c: Likewise.
6823 * tree-loop-distribution.c: Likewise.
6824 * tree-nested.c: Likewise.
6825 * tree-nrv.c: Likewise.
6826 * tree-object-size.c: Likewise.
6827 * tree-outof-ssa.c: Likewise.
6828 * tree-parloops.c: Likewise.
6829 * tree-phinodes.c: Likewise.
6830 * tree-predcom.c: Likewise.
6831 * tree-pretty-print.c: Likewise.
6832 * tree-profile.c: Likewise.
6833 * tree-scalar-evolution.c: Likewise.
6834 * tree-sra.c: Likewise.
6835 * tree-ssa-address.c: Likewise.
6836 * tree-ssa-alias.c: Likewise.
6837 * tree-ssa-ccp.c: Likewise.
6838 * tree-ssa-coalesce.c: Likewise.
6839 * tree-ssa-copy.c: Likewise.
6840 * tree-ssa-dce.c: Likewise.
6841 * tree-ssa-dse.c: Likewise.
6842 * tree-ssa-forwprop.c: Likewise.
6843 * tree-ssa-ifcombine.c: Likewise.
6844 * tree-ssa-live.c: Likewise.
6845 * tree-ssa-loop-ch.c: Likewise.
6846 * tree-ssa-loop-im.c: Likewise.
6847 * tree-ssa-loop-ivcanon.c: Likewise.
6848 * tree-ssa-loop-ivopts.c: Likewise.
6849 * tree-ssa-loop-manip.c: Likewise.
6850 * tree-ssa-loop-niter.c: Likewise.
6851 * tree-ssa-loop-prefetch.c: Likewise.
6852 * tree-ssa-loop-unswitch.c: Likewise.
6853 * tree-ssa-loop.c: Likewise.
6854 * tree-ssa-math-opts.c: Likewise.
6855 * tree-ssa-operands.c: Likewise.
6856 * tree-ssa-phiopt.c: Likewise.
6857 * tree-ssa-phiprop.c: Likewise.
6858 * tree-ssa-pre.c: Likewise.
6859 * tree-ssa-propagate.c: Likewise.
6860 * tree-ssa-reassoc.c: Likewise.
6861 * tree-ssa-scopedtables.c: Likewise.
6862 * tree-ssa-sink.c: Likewise.
6863 * tree-ssa-strlen.c: Likewise.
6864 * tree-ssa-structalias.c: Likewise.
6865 * tree-ssa-tail-merge.c: Likewise.
6866 * tree-ssa-ter.c: Likewise.
6867 * tree-ssa-threadupdate.c: Likewise.
6868 * tree-ssa-uncprop.c: Likewise.
6869 * tree-ssa-uninit.c: Likewise.
6870 * tree-ssa.c: Likewise.
6871 * tree-ssanames.c: Likewise.
6872 * tree-stdarg.c: Likewise.
6873 * tree-streamer-in.c: Likewise.
6874 * tree-streamer-out.c: Likewise.
6875 * tree-streamer.c: Likewise.
6876 * tree-switch-conversion.c: Likewise.
6877 * tree-tailcall.c: Likewise.
6878 * tree-vect-data-refs.c: Likewise.
6879 * tree-vect-generic.c: Likewise.
6880 * tree-vect-loop-manip.c: Likewise.
6881 * tree-vect-loop.c: Likewise.
6882 * tree-vect-patterns.c: Likewise.
6883 * tree-vect-slp.c: Likewise.
6884 * tree-vect-stmts.c: Likewise.
6885 * tree-vectorizer.c: Likewise.
6886 * tree-vrp.c: Likewise.
6889 * ubsan.c: Likewise.
6890 * value-prof.c: Likewise.
6891 * var-tracking.c: Likewise.
6892 * varasm.c: Likewise.
6893 * varpool.c: Likewise.
6894 * vmsdbgout.c: Likewise.
6895 * vtable-verify.c: Likewise.
6897 * wide-int-print.cc: Likewise.
6898 * wide-int.cc: Likewise.
6899 * xcoffout.c: Likewise.
6901 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
6903 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
6904 between pass numbering and execution order.
6906 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6908 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
6909 check for dependencies.
6911 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6913 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
6916 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6918 * real.h (format_helper): New.
6919 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
6920 (real_from_target, real_nan, real_2expN, real_value_truncate)
6921 (significand_size, real_from_string2, exact_real_inverse)
6922 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
6923 (real_round, real_isinteger, real_from_integer): Replace
6924 machine_mode arguments with format_helper arguments.
6925 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
6926 (real_from_integer, real_nan, real_2expN, real_convert)
6927 (real_value_truncate, exact_real_truncate, real_to_target)
6928 (real_from_target, significand_size, real_powi, real_trunc)
6929 (real_floor, real_ceil, real_round, real_isinteger): Replace
6930 machine_mode arguments with format_helper arguments.
6931 (real_to_target_fmt, real_from_target_fmt): Delete.
6932 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
6933 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
6934 argument with real_format.
6935 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
6937 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6939 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
6940 (fixed_to_decimal, fixed_convert_from_real)
6941 (real_convert_from_fixed): Fix mode arguments to real_2expN.
6943 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6945 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
6946 SCALAR_FLOAT_MODE_P.
6948 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6950 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
6951 (completely_scalarize): Comment zero-length arrays.
6952 (get_access_replacement): Correct comment re. precondition.
6954 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6956 * config/i386/i386.c (get_builtin_code_for_version): Set priority
6957 for PROCESSOR_ZNVER1.
6958 (enum processor_model): Add M_AMDFAM17H_znver1.
6959 (struct arch_names_table): Likewise.
6960 * doc/extend.texi: ADD znver1.
6962 2015-10-30 Richard Biener <rguenther@suse.de>
6964 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
6965 fold () on single RHSs. Allow CONSTRUCTORS with trailing
6966 zeros to be folded to VECTOR_CSTs.
6967 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
6968 * fold-const.c (fold): Use build_vector_from_ctor.
6970 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
6972 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
6973 "mov %0.h[0], %1.h[0] to "neon_move".
6974 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
6975 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
6977 (*cmovsi_insn_uxtw): Likewise.
6979 2015-10-30 Tom de Vries <tom@codesourcery.com>
6981 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
6982 unsigned, and initialize, and use initial value instead of hardcoded
6983 constant. Add generic constraints dumping section. Don't dump global
6984 initializers constraints dumping section if empty. Don't update
6985 variable from if unused.
6987 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6989 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
6990 flag_checking and/or CHECKING_P to eliminate conditional compilation
6992 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
6993 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6994 * config/i386/i386.c (ix86_print_operand_address): Likewise.
6995 (output_387_binary_op): Likewise.
6996 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
6997 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
6998 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
7000 * config/rs6000/rs6000.h: Likewise.
7001 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7003 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
7005 * config/sh/sh.opt (mfdpic): Add missing period.
7007 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7009 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7010 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
7011 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7012 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
7013 mcore_base_register_rtx_p, mcore_legitimate_index_p,
7014 mcore_legitimate_address_p): New functions.
7015 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7017 2015-10-29 Jeff Law <law@redhat.com>
7019 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
7021 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
7022 * tree-ssa-threadedge.c
7023 (record_temporary_equivalences_from_stmts_at_dest): Remove
7024 backedge_seen argument and associated code which invalidated
7025 equivalences based on the value of that argument.
7026 (thread_through_normal_block): Corresponding changes.
7028 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7030 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
7031 function earlier in the file.
7032 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
7033 df_regs_ever_live_p.
7035 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7037 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
7040 2015-10-29 Richard Henderson <rth@redhat.com>
7044 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7045 sse check to the exact conditions of PR 67609.
7047 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7049 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
7050 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
7051 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
7052 of the traditional names that TFmode uses for handling IEEE
7053 extended double. If -mfloat128, add KFmode functions for all of
7054 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
7055 make TFmode use the same emulation functions as KFmode.
7056 (init_float128_ibm): Likewise.
7057 (init_float128_ieee): Likewise.
7058 (rs6000_generate_compare): For IEEE 128-bit floating point
7059 comparisons, call the unordered comparison function instead of the
7060 ordered comparison function.
7061 (rs6000_expand_float128_convert): Deal with operands that are
7062 memory operands. Restructure the code to use a switch statement on
7063 the mode. Add support for TFmode defaulting to either IBM extended
7064 double or IEEE 128-bit floating point. If the underlying types are
7065 the same, use a move instead of a conversion function.
7066 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
7067 use for IEEE 128-bit floating point constants with -mfloat128.
7068 (rs6000_c_mode_for_suffix): Likewise.
7069 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
7070 128-bit floating point with IBM extended double floating point.
7071 (rs6000_invalid_binary_op): Likewise.
7072 (rs6000_gen_le_vsx_permute): On little endian systems generate a
7073 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
7074 types that can go in vector registers.
7075 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
7076 point types that can go in vector registers on little endian
7078 (mark_swaps_for_removal): Likewise.
7079 (rs6000_analyze_swaps): Likewise.
7080 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
7082 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
7083 rework IEEE 128-bit floating point insns to deal with TFmode being
7084 either IBM extended double or IEEE 128-bit floating point.
7086 (IBM128): Update iterator to add condition that the mode is IBM
7088 (IEEE128): New iterator for IEEE 128-bit floating point.
7089 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
7090 (FLOAT128): Likewise.
7091 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
7093 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
7094 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
7095 instead of hard coding TFmode or KFmode.
7096 (negtf2_internal): Likewise.
7097 (neg<mode>2_internal): Likewise.
7098 (abs<mode>2): Likewise.
7099 (abstf2_internal): Likewise.
7100 (abs<mode>2_internal): Likewise.
7101 (ieee_128bit_neg<mode>2): Likewise.
7102 (ieee_128bit_neg<mode>2_internal): Likewise.
7103 (ieee_128bit_abs<mode>2): Likewise.
7104 (ieee_128bit_abs<mode>2_internal): Likewise.
7105 (ieee_128bit_nabs<mode>2): Likewise.
7106 (ieee_128bit_nabs<mode>2_internal): Likewise.
7107 (extendiftf2): Add explicit conversions between 128-bit floating
7108 point types. Drop the old conversions that had become unwieldy.
7109 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7110 (extendifkf2): Likewise.
7111 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7112 (extendtfkf2): Likewise.
7113 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7114 (trunciftf2): Likewise.
7115 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7116 (truncifkf2): Likewise.
7117 (float<SDI:mode><IFKF:mode>2): Likewise.
7118 (trunckftf2): Likewise.
7119 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7120 (trunctfif2): Likewise.
7121 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7122 (extenddftf2): Rework 128-bit floating point conversions to
7123 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7124 KFmode expanders into one function.
7125 (extenddf<mode>2): Likewise.
7126 (extenddftf2_fprs): Likewise.
7127 (extenddf<mode>2_fprs): Likewise.
7128 (extenddftf2_vsx): Likewise.
7129 (extenddf<mode>2_vsx): Likewise.
7130 (extendsftf2): Likewise.
7131 (extendsf<mode>2): Likewise.
7132 (trunctfdf2): Likewise.
7133 (trunc<mode>df2): Likewise.
7134 (trunctfdf2_internal1): Likewise.
7135 (trunc<mode>df2_internal1): Likewise.
7136 (trunctfdf2_internal2): Likewise.
7137 (trunc<mode>df2_internal2): Likewise.
7138 (trunctfsf2): Likewise.
7139 (trunc<mode>sf2): Likewise.
7140 (trunctfsf2_fprs): Likewise.
7141 (trunc<mode>sf2_fprs): Likewise.
7142 (floatsit2f): Likewise.
7143 (floatsi<mode>2): Likewise.
7144 (fix_trunc_helper): Likewise.
7145 (fix_trunc_helper<mode>): Likewise.
7146 (fix_trunctfsi2): Likewise.
7147 (fix_trunc<mode>si2): Likewise.
7148 (fix_trunctfsi2_fprs): Likewise.
7149 (fix_trunc<mode>si2_fprs): Likewise.
7150 (fix_trunctfsi2_internal): Likewise.
7151 (fix_trunc<mode>si2_internal): Likewise.
7152 (fix_trunctfdi2): Likewise.
7153 (fix_trunc<mode>di2): Likewise.
7154 (fixuns_trunctf<mode>2): Likewise.
7155 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7156 (floatditf2): Likewise.
7157 (floatdi<mode>2): Likewise.
7158 (floatuns<mode>tf2): Likewise.
7159 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7160 (cmptf_internal1): Use a mode iterator to add support for both
7161 types (IFmode, TFmode) that support IBM extended double.
7162 (cmp<mode>_internal1): Likewise.
7163 (cmptf_internal2): Likewise.
7164 (cmp<mode>_internal2): Likewise.
7166 * doc/extend.texi (Floating Types): Document __ibm128 and
7167 __float128 on PowerPC.
7169 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7170 -mfloat128 and -mno-float128.
7172 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7174 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7175 floating point modes that can go in vector registers.
7176 (MODES_TIEABLE_P): Move tests for vector modes before tests for
7177 scalar floating point, so that IEEE 128-bit floating point that
7178 can go in vector registers bind with vectors and not FP.
7179 (struct rs6000_args): Add libcall field.
7181 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7182 and -mfloat128-software switches. Replace them with a binary
7184 (-mfloat128): Likewise.
7186 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7187 128-bit floating point types in GPRs, even if the appropriate
7188 option enabling the type was not used.
7189 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7191 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7192 pre-decrement on IEEE 128-bit floating point values.
7193 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7194 is IEEE 128-bit floating point.
7195 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7196 128-bit floating point types that can go in vector registers.
7197 (rs6000_option_override_internal): Change -mfloat128-none and
7198 -mfloat128-software to -mfloat128, and move code to be near other
7199 VSX option handling.
7200 (rs6000_option_override_internal): Disable -mfloat128 if we don't
7201 have the Altivec ABI.
7202 (rs6000_init_builtins): Don't make TFmode use either IFmode or
7203 KFmode floating point nodes. Instead, have three separate nodes.
7204 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7205 eventually moving the long double default to IEEE 128-bit floating
7207 (rs6000_opt_masks): Add -mfloat128.
7208 (struct rs6000_opt_var): Fix typo in comment.
7209 (init_cumulative_args): Initialize libcall field in
7211 (rs6000_function_arg): Treat library functions as if they had
7212 prototypes to prevent IEEE 128-bit support functions from passing
7213 arguments in both GPRs and vector registers.
7214 (rs6000_arg_partial_bytes): Likewise.
7216 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7217 an option that can be turned on via -mcpu=<xxx>.
7219 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7222 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7223 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7224 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7225 double is IBM extended double.
7227 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7230 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7232 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7233 * genconditions.c: Define CHECKING_P in the generated code.
7234 * genextract.c: Use flag_checking in insn_extract.
7235 * gengtype.c (main): Remove conditional compilation.
7236 * gengtype.h: Likewise.
7238 2015-10-29 Jeff Law <law@redhat.com>
7240 PR tree-optimization/67892
7241 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7243 (thread_through_normal_block): If we have seen a backedge, then
7244 do nothing. No longer call find_jump_threads_backwards here.
7245 (thread_across_edge): Use find_jump_threads_backwards to find
7246 jump threads if the old style threader was not successful.
7247 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7248 gsi_last_nondebug_bb. Return NULL if the block does not end
7249 with a control statement.
7250 (find_jump_threads_backwards): Setup code moved here from
7251 tree-ssa-threadedge.c::thread_through_normal_block. Accept
7252 single edge argument instead of name & block.
7253 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7256 2015-10-29 Tom de Vries <tom@codesourcery.com>
7258 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7261 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7263 * omp-low.c (lower_omp_target): Remove unreachable code & merge
7266 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
7268 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7270 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7272 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7273 guard_bb0 and use guard_bb throughout.
7275 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7277 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7280 2015-10-29 Richard Biener <rguenther@suse.de>
7283 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7286 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
7288 * alias.c: Reorder #include statements and remove duplicates.
7290 * attribs.c: Likewise.
7291 * auto-inc-dec.c: Likewise.
7292 * auto-profile.c: Likewise.
7293 * bb-reorder.c: Likewise.
7294 * bt-load.c: Likewise.
7295 * builtins.c: Likewise.
7296 * caller-save.c: Likewise.
7297 * calls.c: Likewise.
7300 * cfganal.c: Likewise.
7301 * cfgbuild.c: Likewise.
7302 * cfgcleanup.c: Likewise.
7303 * cfgexpand.c: Likewise.
7304 * cfghooks.c: Likewise.
7305 * cfgloop.c: Likewise.
7306 * cfgloopanal.c: Likewise.
7307 * cfgloopmanip.c: Likewise.
7308 * cfgrtl.c: Likewise.
7309 * cgraph.c: Likewise.
7310 * cgraphbuild.c: Likewise.
7311 * cgraphclones.c: Likewise.
7312 * cgraphunit.c: Likewise.
7313 * cilk-common.c: Likewise.
7314 * combine-stack-adj.c: Likewise.
7315 * combine.c: Likewise.
7316 * compare-elim.c: Likewise.
7317 * convert.c: Likewise.
7318 * coverage.c: Likewise.
7319 * cppbuiltin.c: Likewise.
7320 * cprop.c: Likewise.
7322 * cselib.c: Likewise.
7323 * data-streamer-in.c: Likewise.
7324 * data-streamer-out.c: Likewise.
7325 * data-streamer.c: Likewise.
7326 * dbxout.c: Likewise.
7329 * debug.c: Likewise.
7330 * df-core.c: Likewise.
7331 * df-problems.c: Likewise.
7332 * df-scan.c: Likewise.
7334 * dojump.c: Likewise.
7335 * dominance.c: Likewise.
7336 * double-int.c: Likewise.
7338 * dumpfile.c: Likewise.
7339 * dwarf2asm.c: Likewise.
7340 * dwarf2cfi.c: Likewise.
7341 * dwarf2out.c: Likewise.
7342 * emit-rtl.c: Likewise.
7343 * except.c: Likewise.
7344 * explow.c: Likewise.
7345 * expmed.c: Likewise.
7347 * final.c: Likewise.
7348 * fixed-value.c: Likewise.
7349 * fold-const.c: Likewise.
7350 * function.c: Likewise.
7351 * fwprop.c: Likewise.
7353 * generic-match-head.c: Likewise.
7354 * ggc-common.c: Likewise.
7355 * gimple-builder.c: Likewise.
7356 * gimple-expr.c: Likewise.
7357 * gimple-fold.c: Likewise.
7358 * gimple-iterator.c: Likewise.
7359 * gimple-low.c: Likewise.
7360 * gimple-match-head.c: Likewise.
7361 * gimple-pretty-print.c: Likewise.
7362 * gimple-ssa-isolate-paths.c: Likewise.
7363 * gimple-ssa-strength-reduction.c: Likewise.
7364 * gimple-streamer-in.c: Likewise.
7365 * gimple-streamer-out.c: Likewise.
7366 * gimple-walk.c: Likewise.
7367 * gimple.c: Likewise.
7368 * gimplify-me.c: Likewise.
7369 * gimplify.c: Likewise.
7370 * godump.c: Likewise.
7371 * graph.c: Likewise.
7372 * graphite-poly.c: Likewise.
7373 * haifa-sched.c: Likewise.
7374 * hw-doloop.c: Likewise.
7375 * ifcvt.c: Likewise.
7376 * incpath.c: Likewise.
7377 * init-regs.c: Likewise.
7378 * internal-fn.c: Likewise.
7379 * ipa-chkp.c: Likewise.
7380 * ipa-comdats.c: Likewise.
7381 * ipa-cp.c: Likewise.
7382 * ipa-devirt.c: Likewise.
7383 * ipa-icf-gimple.c: Likewise.
7384 * ipa-icf.c: Likewise.
7385 * ipa-inline-analysis.c: Likewise.
7386 * ipa-inline-transform.c: Likewise.
7387 * ipa-inline.c: Likewise.
7388 * ipa-polymorphic-call.c: Likewise.
7389 * ipa-profile.c: Likewise.
7390 * ipa-prop.c: Likewise.
7391 * ipa-pure-const.c: Likewise.
7392 * ipa-ref.c: Likewise.
7393 * ipa-reference.c: Likewise.
7394 * ipa-split.c: Likewise.
7395 * ipa-utils.c: Likewise.
7396 * ipa-visibility.c: Likewise.
7398 * ira-build.c: Likewise.
7399 * ira-color.c: Likewise.
7400 * ira-conflicts.c: Likewise.
7401 * ira-costs.c: Likewise.
7402 * ira-emit.c: Likewise.
7403 * ira-lives.c: Likewise.
7406 * langhooks.c: Likewise.
7408 * lists.c: Likewise.
7409 * loop-doloop.c: Likewise.
7410 * loop-init.c: Likewise.
7411 * loop-invariant.c: Likewise.
7412 * loop-iv.c: Likewise.
7413 * loop-unroll.c: Likewise.
7414 * lower-subreg.c: Likewise.
7415 * lra-assigns.c: Likewise.
7416 * lra-coalesce.c: Likewise.
7417 * lra-constraints.c: Likewise.
7418 * lra-eliminations.c: Likewise.
7419 * lra-lives.c: Likewise.
7420 * lra-remat.c: Likewise.
7421 * lra-spills.c: Likewise.
7423 * lto-cgraph.c: Likewise.
7424 * lto-compress.c: Likewise.
7425 * lto-opts.c: Likewise.
7426 * lto-section-in.c: Likewise.
7427 * lto-section-out.c: Likewise.
7428 * lto-streamer-in.c: Likewise.
7429 * lto-streamer-out.c: Likewise.
7430 * lto-streamer.c: Likewise.
7431 * mode-switching.c: Likewise.
7432 * modulo-sched.c: Likewise.
7433 * omp-low.c: Likewise.
7434 * optabs.c: Likewise.
7435 * opts-global.c: Likewise.
7436 * passes.c: Likewise.
7437 * plugin.c: Likewise.
7438 * postreload-gcse.c: Likewise.
7439 * postreload.c: Likewise.
7440 * predict.c: Likewise.
7441 * print-tree.c: Likewise.
7442 * profile.c: Likewise.
7444 * realmpfr.c: Likewise.
7445 * recog.c: Likewise.
7447 * reg-stack.c: Likewise.
7448 * regcprop.c: Likewise.
7449 * reginfo.c: Likewise.
7450 * regrename.c: Likewise.
7451 * regstat.c: Likewise.
7452 * reload.c: Likewise.
7453 * reload1.c: Likewise.
7454 * reorg.c: Likewise.
7455 * resource.c: Likewise.
7456 * rtl-chkp.c: Likewise.
7457 * rtl-error.c: Likewise.
7458 * rtlanal.c: Likewise.
7459 * rtlhooks.c: Likewise.
7460 * sanopt.c: Likewise.
7461 * sched-deps.c: Likewise.
7462 * sched-ebb.c: Likewise.
7463 * sched-rgn.c: Likewise.
7465 * shrink-wrap.c: Likewise.
7466 * simplify-rtx.c: Likewise.
7467 * stack-ptr-mod.c: Likewise.
7468 * statistics.c: Likewise.
7470 * stor-layout.c: Likewise.
7471 * store-motion.c: Likewise.
7472 * stringpool.c: Likewise.
7473 * symtab.c: Likewise.
7474 * target-globals.c: Likewise.
7475 * targhooks.c: Likewise.
7476 * toplev.c: Likewise.
7477 * tracer.c: Likewise.
7478 * trans-mem.c: Likewise.
7479 * tree-affine.c: Likewise.
7480 * tree-call-cdce.c: Likewise.
7481 * tree-cfg.c: Likewise.
7482 * tree-cfgcleanup.c: Likewise.
7483 * tree-chkp-opt.c: Likewise.
7484 * tree-chkp.c: Likewise.
7485 * tree-chrec.c: Likewise.
7486 * tree-complex.c: Likewise.
7487 * tree-data-ref.c: Likewise.
7488 * tree-dfa.c: Likewise.
7489 * tree-diagnostic.c: Likewise.
7490 * tree-dump.c: Likewise.
7491 * tree-eh.c: Likewise.
7492 * tree-emutls.c: Likewise.
7493 * tree-if-conv.c: Likewise.
7494 * tree-inline.c: Likewise.
7495 * tree-into-ssa.c: Likewise.
7496 * tree-iterator.c: Likewise.
7497 * tree-loop-distribution.c: Likewise.
7498 * tree-nested.c: Likewise.
7499 * tree-nrv.c: Likewise.
7500 * tree-object-size.c: Likewise.
7501 * tree-outof-ssa.c: Likewise.
7502 * tree-parloops.c: Likewise.
7503 * tree-phinodes.c: Likewise.
7504 * tree-predcom.c: Likewise.
7505 * tree-pretty-print.c: Likewise.
7506 * tree-profile.c: Likewise.
7507 * tree-scalar-evolution.c: Likewise.
7508 * tree-sra.c: Likewise.
7509 * tree-ssa-address.c: Likewise.
7510 * tree-ssa-alias.c: Likewise.
7511 * tree-ssa-ccp.c: Likewise.
7512 * tree-ssa-coalesce.c: Likewise.
7513 * tree-ssa-copy.c: Likewise.
7514 * tree-ssa-dce.c: Likewise.
7515 * tree-ssa-dom.c: Likewise.
7516 * tree-ssa-dse.c: Likewise.
7517 * tree-ssa-forwprop.c: Likewise.
7518 * tree-ssa-ifcombine.c: Likewise.
7519 * tree-ssa-live.c: Likewise.
7520 * tree-ssa-loop-ch.c: Likewise.
7521 * tree-ssa-loop-im.c: Likewise.
7522 * tree-ssa-loop-ivcanon.c: Likewise.
7523 * tree-ssa-loop-ivopts.c: Likewise.
7524 * tree-ssa-loop-manip.c: Likewise.
7525 * tree-ssa-loop-niter.c: Likewise.
7526 * tree-ssa-loop-prefetch.c: Likewise.
7527 * tree-ssa-loop-unswitch.c: Likewise.
7528 * tree-ssa-loop.c: Likewise.
7529 * tree-ssa-math-opts.c: Likewise.
7530 * tree-ssa-operands.c: Likewise.
7531 * tree-ssa-phiopt.c: Likewise.
7532 * tree-ssa-phiprop.c: Likewise.
7533 * tree-ssa-pre.c: Likewise.
7534 * tree-ssa-propagate.c: Likewise.
7535 * tree-ssa-reassoc.c: Likewise.
7536 * tree-ssa-sccvn.c: Likewise.
7537 * tree-ssa-scopedtables.c: Likewise.
7538 * tree-ssa-sink.c: Likewise.
7539 * tree-ssa-strlen.c: Likewise.
7540 * tree-ssa-structalias.c: Likewise.
7541 * tree-ssa-tail-merge.c: Likewise.
7542 * tree-ssa-ter.c: Likewise.
7543 * tree-ssa-threadedge.c: Likewise.
7544 * tree-ssa-threadupdate.c: Likewise.
7545 * tree-ssa-uncprop.c: Likewise.
7546 * tree-ssa-uninit.c: Likewise.
7547 * tree-ssa.c: Likewise.
7548 * tree-ssanames.c: Likewise.
7549 * tree-stdarg.c: Likewise.
7550 * tree-streamer-in.c: Likewise.
7551 * tree-streamer-out.c: Likewise.
7552 * tree-streamer.c: Likewise.
7553 * tree-switch-conversion.c: Likewise.
7554 * tree-tailcall.c: Likewise.
7555 * tree-vect-data-refs.c: Likewise.
7556 * tree-vect-generic.c: Likewise.
7557 * tree-vect-loop-manip.c: Likewise.
7558 * tree-vect-loop.c: Likewise.
7559 * tree-vect-patterns.c: Likewise.
7560 * tree-vect-slp.c: Likewise.
7561 * tree-vect-stmts.c: Likewise.
7562 * tree-vectorizer.c: Likewise.
7563 * tree-vrp.c: Likewise.
7566 * ubsan.c: Likewise.
7567 * value-prof.c: Likewise.
7568 * var-tracking.c: Likewise.
7569 * varasm.c: Likewise.
7570 * varpool.c: Likewise.
7571 * vtable-verify.c: Likewise.
7573 * wide-int-print.cc: Likewise.
7574 * wide-int.cc: Likewise.
7575 * xcoffout.c: Likewise.
7577 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
7579 * Makefile.in (NO_PIE_CFLAGS): New.
7580 (NO_PIE_FLAG): Likewise.
7581 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7582 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7583 (BUILD_NO_PIE_CFLAGS): Likewise.
7584 (BUILD_NO_PIE_FLAG): Likewise.
7585 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
7586 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
7587 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
7588 $(BUILD_NO_PIE_CFLAGS).
7589 (BUILD_CXXFLAGS): Likewise.
7590 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
7591 $(BUILD_NO_PIE_FLAG).
7592 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
7593 (BUILD_NO_PIE_FLAG): Likewise.
7594 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7595 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7596 * configure: Regenerated.
7598 2015-10-29 Richard Biener <rguenther@suse.de>
7601 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
7602 unsigned conditonal negation to ABS_EXPR.
7604 2015-10-29 Richard Biener <rguenther@suse.de>
7606 * gimple-match-head.c (gimple_simplify): Remove premature checking
7607 of builtin_decl_implicit of function calls we simplify.
7609 2015-10-29 Bin Cheng <bin.cheng@arm.com>
7611 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
7612 (get_computation_cost_at): Ditto.
7613 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
7616 2015-10-28 Tom de Vries <tom@codesourcery.com>
7618 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
7621 2015-10-28 Jason Merrill <jason@redhat.com>
7623 * Makefile.in (TAGS): Include libcpp and libiberty.
7625 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7627 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
7628 (extract_omp_for_data): Remove OpenACC special handling of
7631 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
7632 (struct parallel): Update comment.
7633 (nvptx_reorg): Likewise.
7634 (nvptx_neuter): Cleanup whitespace.
7636 2015-10-28 Richard Henderson <rth@redhat.com>
7638 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
7640 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7643 * config/avr/predicates.md (low_io_address_operand): Don't
7644 consider MODE when computing upper bound.
7645 (io_address_operand): Likewise.
7647 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
7649 * fold-const.c (operand_equal_p): Do not verify that types are
7650 compatible for MEM_REFs.
7652 2015-10-28 Richard Biener <rguenther@suse.de>
7654 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
7655 in simplifying VEC_COND_EXPR conditions.
7657 2015-10-28 Tom de Vries <tom@codesourcery.com>
7659 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
7660 into vi_next of a full_var.
7662 2015-10-28 Tom de Vries <tom@codesourcery.com>
7664 * tree-ssa-structalias.c (new_var_info, make_heapvar)
7665 (make_constraint_from_restrict, make_constraint_from_global_restrict)
7666 (create_function_info_for, create_variable_info_for_1)
7667 (create_variable_info_for): Add and handle add_id parameter.
7668 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
7669 (init_base_vars): Add extra argument to calls to new_var_info.
7670 (get_vi_for_tree): Add extra argument to call to
7671 create_variable_info_for.
7672 (process_constraint, do_deref, process_all_all_constraints): Add extra
7673 argument to calls to new_scalar_tmp_constraint_exp.
7674 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
7675 argument to calls to make_heapvar.
7676 (make_restrict_var_constraints): Add extra argument to call to
7677 make_constraint_from_global_restrict.
7678 (intra_create_variable_infos): Add extra argument to call to
7679 create_variable_info_for_1.
7680 (ipa_pta_execute): Add extra argument to call to
7681 create_function_info_for.
7683 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7685 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
7686 (sibcall_value): Likewise.
7688 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7690 * config/nvptx/nvptx.h (struct machine_function): Add
7692 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
7693 nvptx_expand_oacc_join): Declare.
7694 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
7695 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
7696 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
7697 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
7698 UNSPECV_JOINING, UNSPECV_JOIN): New.
7699 (BITS, BITD): New mode iterators.
7700 (br_true_uni, br_false_uni): New.
7701 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
7702 (oacc_dim_size, oacc_dim_pos): New.
7703 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
7704 (oacc_fork, oacc_join): New.
7705 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
7706 (worker_load<mode>, worker_store<mode>): New.
7707 (nvptx_barsync): New.
7708 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
7709 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
7710 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
7711 worker_bcast_sym): New.
7712 (nvptx_option_override): Initialize worker broadcast buffer.
7713 (nvptx_emit_forking, nvptx_emit_joining): New.
7714 (nvptx_init_axis_predicate): New.
7715 (nvptx_declare_function_name): Init axis predicates.
7716 (nvptx_expand_call): Add fork/join markers around routine call.
7717 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
7718 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
7719 (nvptx_gen_vcast): New.
7720 (struct wcast_data_t): New.
7721 (enum propagate_mask): New.
7722 (nvptx_gen_wcast): New.
7723 (nvptx_print_operand): Add 'S' case.
7724 (struct parallel): New.
7725 (parallel::parallel, parallel::~parallel): New.
7726 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
7727 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
7728 nvptx_find_par, nvptx_discover_pars): New.
7729 (nvptx_propagate): New.
7730 (vprop_gen, nvptx_vpropagate): New.
7731 (wprop_gen, nvptx_wpropagate): New.
7733 (nvptx_single, nvptx_skip_par): New.
7734 (nvptx_process_pars, nvptx_neuter_pars): New.
7735 (ntptx_reorg): Split blocks, generate parallel structure, apply
7737 (nvptx_cannot_copy_insn_p): New.
7738 (nvptx_file_end): Emit worker broadcast decl.
7739 (nvptx_goacc_fork_join): New.
7740 (TARGET_CANNOT_COPY_INSN_P): Override.
7741 (TARGET_GOACC_FORK_JOIN): Override.
7743 2015-10-28 Richard Biener <rguenther@suse.de>
7745 * fold-const.c (negate_expr_p): Adjust the division case to
7746 properly avoid introducing undefined overflow.
7747 (fold_negate_expr): Likewise.
7749 2015-10-28 Richard Biener <rguenther@suse.de>
7751 PR tree-optimization/65962
7752 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7753 Avoid creating loop carried dependences also for outer loops
7754 of the loop a use to replace is in.
7756 2015-10-28 Richard Biener <rguenther@suse.de>
7758 * common.opt (fchecking): New flag controlling flag_checking.
7759 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
7760 * timevar.c (timer::print): Adjust output.
7761 * doc/invoke.texi (fchecking): Document.
7763 2015-10-28 Richard Biener <rguenther@suse.de>
7766 * fold-const.c (negate_expr_p): We cannot negate plus or minus
7767 if overflow is not wrapping. Likewise multiplication unless
7768 one operand is constant and not power of two.
7769 (fold_negate_expr): Adjust accordingly.
7771 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7773 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
7775 (is_oacc_parallel, is_oacc_kernels): New.
7776 (enclosing_target_ctx): May return NULL.
7777 (ctx_in_oacc_kernels_region): New.
7778 (check_oacc_kernel_gwv): New.
7779 (oacc_loop_or_target_p): Delete.
7780 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
7781 operands. Strip reductions fro kernels.
7782 (scan_omp_target): Don't calculate gwv mask.
7783 (lower_oacc_head_mark, lower_oacc_loop_marker,
7784 lower_oacc_head_tail): New.
7785 (struct oacc_collapse): New.
7786 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
7787 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7788 Remove OpenACC handling.
7789 (expand_oacc_for): New.
7790 (expand_omp_for): Call expand_oacc_for.
7791 (lower_omp_for): Call lower_oacc_head_tail.
7793 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
7795 * attribs.c (check_attribute_tables): New function, broken out from...
7796 (init_attributes): Use it.
7797 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
7798 gcc_checking_assert and checking_* functions to eliminate
7799 ENABLE_CHECKING conditionals.
7800 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
7801 (pass_expand::execute): Likewise.
7802 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
7803 * cgraphunit.c (mark_functions_to_output): Likewise.
7804 (cgraph_node::expand_thunk): Likewise.
7805 (symbol_table::compile): Likewise.
7806 * ddg.c (add_cross_iteration_register_deps): Likewise.
7807 (create_ddg_all_sccs): Likewise.
7808 * df-core.c (df_finish_pass, df_analyze): Likewise.
7809 * diagnostic-core.h: Likewise.
7810 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
7811 * dominance.c (calculate_dominance_info): Likewise.
7812 * dwarf2out.c (add_AT_die_ref): Likewise.
7813 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
7814 (loc_list_from_tree, gen_lexical_block_die): Likewise.
7815 gen_type_die_with_usage, gen_type_die): Likewise.
7816 (dwarf2out_decl): Likewise.
7817 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
7818 * except.c (duplicate_eh_regions): Likewise.
7819 * fwprop.c (register_active_defs, update_df_init): Likewise.
7820 (fwprop_init, fwprop_done): Likewise.
7821 (update_uses): Likewise.
7822 * ggc-page.c (ggc_grow): Likewise.
7823 * gimplify.c (gimplify_body): Likewise.
7824 (gimplify_hasher::equal): Likewise.
7825 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
7826 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
7828 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
7829 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
7830 * hash-table.h (::find_empty_slot_for_expand): Likewise.
7831 * ifcvt.c (if_convert): Likewise.
7832 * ipa-cp.c (ipcp_propagate_stage): Likewise.
7833 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
7834 (odr_type_p, odr_types_equivalent_p): Likewise.
7835 (add_type_duplicate, get_odr_type): Likewise.
7836 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7837 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7838 (sem_item_optimizer::verify_classes): Likewise.
7839 (sem_item_optimizer::traverse_congruence_split): Likewise.
7840 (sem_item_optimizer::checking_verify_classes): New.
7841 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
7843 * cfgrtl.c (commit_edge_insertions): Likewise.
7844 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
7845 (rtl_flow_call_edges_add): Likewise.
7846 * cgraph.c (symbol_table::create_edge): Likewise.
7847 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7848 * cgraph.h (symtab_node): Likewise.
7849 (symtab_node::checking_verify_symtab_nodes): Define.
7850 (cgraph_node::checking_verify_cgraph_nodes): Define.
7851 * cfghooks.h (checking_verify_flow_info): Define.
7852 * cfgloop.h (checking_verify_loop_structure): Define.
7853 * dominance.h (checking_verify_dominators): Define.
7854 * et-forest.c: Fix comment.
7855 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
7856 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7857 ENABLE_CHECKING conditionals.
7858 * ipa-inline-transform.c (save_inline_function_body): Likewise.
7859 * ipa-inline.c (inline_small_functions): Likewise.
7860 (early_inliner): Likewise.
7861 * ipa-inline.h (estimate_edge_growth): Likewise.
7862 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7863 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7864 (ipa_single_use): Likewise.
7865 * ira-int.h: Likewise.
7866 * ira.c (ira): Likewise.
7867 * loop-doloop.c (doloop_optimize_loops): Likewise.
7868 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
7869 * loop-invariant.c (move_loop_invariants): Likewise.
7870 * lra-assigns.c (lra_assign): Likewise.
7871 * lra-constraints.c (lra_constraints): Likewise.
7872 * lra-eliminations.c (lra_eliminate): Likewise.
7873 * lra-int.h (struct lra_reg): Likewise.
7874 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7875 (lra_create_live_ranges_1): Likewise.
7876 * lra-remat.c (create_remat_bb_data): Likewise.
7877 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
7879 (check_rtl): Always define. Remove incorrect guard around
7880 extract_constrain_insn call.
7881 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
7882 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7883 ENABLE_CHECKING conditionals.
7884 * lto-streamer-out.c (DFS::DFS): Likewise.
7885 (lto_output): Likewise.
7886 * lto-streamer.c (lto_streamer_init): Likewise.
7887 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
7888 expand_omp_target, execute_expand_omp): Likewise.
7889 (lower_omp_target): Likewise.
7890 * passes.c (execute_function_todo): Likewise.
7891 (execute_todo, execute_one_pass): Likewise.
7892 (verify_curr_properties): Always define.
7893 * predict.c (tree_estimate_probability: Use flag_checking,
7894 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7895 ENABLE_CHECKING conditionals.
7896 (propagate_freq): Likewise.
7897 * pretty-print.c (pp_format): Likewise.
7898 * real.c (real_to_decimal_for_mode): Likewise.
7899 * recog.c (split_all_insns): Likewise.
7900 * regcprop.c (kill_value_one_regno): Likewise.
7901 (copy_value): Likewise.
7902 (validate_value_data): Define unconditionally.
7903 * reload.c: Fix comment.
7904 * timevar.c: Include options.h
7905 * tree-ssa.h (checking_verify_ssa): Define.
7906 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
7907 * sched-deps.c (CHECK): Remove unused macro.
7908 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
7909 gcc_checking_assert and checking_* functions to eliminate
7910 ENABLE_CHECKING conditionals.
7911 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
7912 * sel-sched.c (struct moveop_static_params): Likewise.
7913 (find_best_reg_for_expr, move_cond_jump): Likewise.
7914 (move_op_orig_expr_not_found): Likewise.
7915 (code_motion_process_successors, move_op): Likewise.
7916 * ssa-iterators.h (first_readonly_imm_use): Likewise.
7917 (next_readonly_imm_use): Likewise.
7918 * store-motion.c (compute_store_table): Likewise.
7919 * symbol-summary.h (function_summary::function_summary): Likewise.
7920 * target.h (cumulative_args_t): Likewise.
7921 (get_cumulative_args, pack_cumulative_args): Likewise.
7922 * timevar.c: (timer::print): Likewise.
7923 * trans-mem.c (ipa_tm_execute): Likewise.
7924 * tree-cfg.c (move_stmt_op): Likewise.
7925 (move_sese_region_to_fn): Likewise.
7926 (gimple_flow_call_edges_add): Likewise.
7927 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
7929 * tree-eh.c (remove_unreachable_handlers): Likewise.
7930 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
7931 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
7932 * tree-into-ssa.c (update_ssa): Likewise.
7933 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
7934 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
7935 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
7936 * tree-predcom.c (suitable_component_p): Likewise.
7937 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
7938 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
7939 * tree-ssa-live.c (verify_live_on_entry): Likewise.
7940 * tree-ssa-live.h (register_ssa_partition): Likewise.
7941 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
7942 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
7943 (tree_transform_and_unroll_loop): Likewise.
7944 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7945 * tree-ssa-operands.c (get_expr_operands): Likewise.
7946 * tree-ssa-propagate.c (replace_exp_1): Likewise.
7947 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7948 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7949 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
7950 * tree-ssanames.c (release_ssa_name_fn): Likewise.
7951 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
7952 * tree-vect-loop-manip.c
7953 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7954 (slpeel_checking_verify_cfg_after_peeling): Likewise.
7955 (vect_do_peeling_for_loop_bound): Likewise.
7956 (vect_do_peeling_for_alignment): Likewise.
7957 * tree-vrp.c (supports_overflow_infinity): Likewise.
7958 (set_value_range): Likewise.
7959 * tree.c (free_lang_data_in_cgraph): Likewise.
7960 * value-prof.c (gimple_remove_histogram_value): Likewise.
7961 (free_hist): Likewise.
7962 * var-tracking.c (canonicalize_values_star): Likewise.
7963 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
7965 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7967 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
7968 IFN_GOACC_LOOP): New.
7969 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
7970 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
7971 IFN_UNIQUE_OACC_TAIL_MARK.
7972 (enum ifn_goacc_loop_kind): New.
7973 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
7974 IFN_UNIQUE_OACC_JOIN cases.
7975 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
7976 (expand_GOACC_LOOP): New.
7977 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
7978 * omp-low.c: Include gimple-pretty-print.h.
7979 (struct oacc_loop): New.
7980 (enum oacc_loop_flags): New.
7981 (oacc_thread_numbers): New.
7982 (oacc_xform_loop): New.
7983 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
7984 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
7985 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
7986 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
7987 oacc_loop_discovery): New.
7988 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
7989 oacc_loop_process): New.
7990 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
7991 (execute_oacc_device_lower): Discover & process loops. Process
7993 * target.def (goacc.fork_join): Change sense of hook, clarify
7995 * doc/tm.texi: Regenerated.
7997 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7999 * target-insns.def (oacc_fork, oacc_join): Define.
8000 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
8001 (goacc.fork_join): New GOACC hook.
8002 * targhooks.h (default_goacc_fork_join): Declare.
8003 * omp-low.c (default_goacc_forkjoin): New.
8004 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
8005 * doc/tm.texi: Regenerate.
8007 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8009 * omp-low.c (oacc_init_rediction_array): New.
8010 (oacc_initialize_reduction_data): Initialize array.
8012 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8014 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
8016 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8018 * internal-fn.c (expand_UNIQUE): New.
8019 * internal-fn.h (enum ifn_unique_kind): New.
8020 * internal-fn.def (IFN_UNIQUE): New.
8021 * target-insns.def (unique): Define.
8022 * gimple.h (gimple_call_internal_unique_p): New.
8023 * gimple.c (gimple_call_same_target_p): Check internal fn
8025 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
8026 * tree-ssa-threadedge.c
8027 (record_temporary_equivalences_from_stmts): Likewise.
8028 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
8030 2015-10-27 Richard Henderson <rth@redhat.com>
8033 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
8034 narrowing subregs on SSE and MMX registers.
8035 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
8036 appear to be sub-words of multi-register pseudos must be rejected.
8037 * doc/tm.texi: Regenerate.
8039 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8042 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
8043 operands[0] is a reg before taking its REGNO in split condition.
8044 (*movdi_aarch64): Likewise.
8046 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8048 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
8049 Handle floating point inner modes properly.
8051 2015-10-27 Alan Hayward <alan.hayward@arm.com>
8054 (vectorizable_live_operation): Change iterator.
8056 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8057 Aditya Kumar <aditya.k7@samsung.com>
8059 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
8060 function to schedule based on isl_schedule_node.
8061 (get_schedule_map_st): New schedule optimizer based on
8063 (scop_get_domains): New. Return the isl_union_set containing the
8064 domains of all the pbbs.
8065 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
8067 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
8070 * calls.c (prepare_call_address): Don't handle -fno-plt here.
8071 * config/i386/i386.c (ix86_expand_call): Generate indirect call
8072 via GOT for -fno-plt. Support indirect call via GOT for x32.
8073 * config/i386/predicates.md (sibcall_memory_operand): Allow
8076 2015-10-27 Richard Biener <rguenther@suse.de>
8078 PR tree-optimization/68104
8079 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8080 strided access check ...
8081 (vect_compute_data_refs_alignment): ... here.
8083 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
8084 Joseph Myers <joseph@codesourcery.com>
8085 Mark Shinwell <shinwell@codesourcery.com>
8086 Andrew Stubbs <ams@codesourcery.com>
8087 Rich Felker <dalias@libc.org>
8089 * config.gcc: Handle --enable-fdpic.
8090 * config/sh/constraints.md (Ccl): New constraint.
8091 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
8092 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
8094 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
8096 * config/sh/sh-protos.h (function_symbol_result): New struct.
8097 (function_symbol): Return function_symbol_result.
8098 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
8100 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
8102 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
8103 (sh_option_override): Force -fPIC if FDPIC is in effect.
8104 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8105 UNSPEC_GOTOFFFUNCDESC cases.
8106 (prepare_move_operands): Use FDPIC initial GOT register for
8107 TLS-related GOT access; inhibit cross-section address offset constants
8109 (sh_assemble_integer): New function.
8110 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8111 PC-relative call sites.
8112 (expand_ashiftrt): Adapt invocation of function_symbol.
8113 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8114 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8115 UNSPEC_GOTOFFFUNCDESC.
8116 (legitimize_pic_address): Resolve function symbols to function
8117 descriptors for FDPIC. Do not use GOT-relative addressing for local
8118 data that may be read-only on FDPIC.
8119 (sh_emit_storesi, sh_emit_storehi): New functions.
8120 (sh_trampoline_init): Generate FDPIC trampolines.
8121 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8122 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8123 (sh_output_mi_thunk): Generate FDPIC call.
8124 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
8125 FDPIC, generate call site labels to use PC-relative addressing rather
8126 than GOT-relative addressing.
8127 (sh_conditional_register_usage): Make PIC register fixed and call used
8128 when FDPIC is in effect.
8129 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8130 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8131 sh_get_fdpic_reg_initial_val): New functions.
8132 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8134 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8135 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8136 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8137 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8139 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8140 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8141 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8142 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8144 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8145 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8146 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8147 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8148 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8149 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8150 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8151 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8152 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8153 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8154 block_move_real, block_lump_real, block_move_real_i4,
8155 block_lump_real_i4): Add support for FDPIC calls.
8156 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8157 call_value_pop): Adjust for new function_symbol signature.
8158 * config/sh/sh.opt (-mfdpic): New option.
8159 * doc/install.texi (Options specification): Document --enable-fdpic.
8160 * doc/invoke.texi (SH Options): Document -mfdpic.
8163 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8165 PR tree-optimization/65963
8166 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8167 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8169 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8172 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8173 * config/arm/constraints.md (Dp): Update callsite.
8174 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8176 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8178 * builtins.c (fold_builtin_load_exponent): Rename to...
8179 (fold_const_builtin_load_exponent): ...this and only handle
8181 (fold_builtin_2): Update accordingly.
8182 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8184 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8186 * builtins.c (fold_builtin_logb): Rename to...
8187 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8188 (fold_builtin_significand): Rename to...
8189 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8190 (fold_builtin_1): Update accordingly.
8192 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8194 * builtins.c (fold_builtin_fmin_fmax): Delete.
8195 (fold_builtin_2): Handle constant fmin and fmax arguments here.
8196 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8198 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
8200 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8201 for register extension into sign and zero register extension.
8202 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8203 for sign and zero register extension.
8204 (cortexa57_addrcost_table): Likewise.
8205 (xgene1_addrcost_table): Likewise.
8207 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8209 * fold-const.c (fold_minmax): Delete.
8210 (fold_binary_loc): Don't call it.
8211 * match.pd: Add rules previously handled by fold_minmax.
8213 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8215 * builtins.c (fold_builtin_fma): Remove constant handling.
8216 (fold_builtin_3): Handle constant fma arguments here.
8218 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8220 * builtins.c (fold_builtin_fabs): Remove constant handling.
8221 (fold_builtin_abs): Likewise.
8223 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8225 * builtins.c (fold_builtin_copysign): Delete.
8226 (fold_builtin_2): Handle constant copysign arguments here.
8227 * match.pd: Add rules previously handled by fold_builtin_copysign.
8229 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8231 * builtins.c (fold_builtin_signbit): Delete.
8232 (fold_builtin_2): Handle constant signbit arguments here.
8233 * match.pd: Add rules previously handled by fold_builtin_signbit.
8235 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8237 * match.pd: Handle sqrt(x) cmp 0 specially.
8239 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
8241 * tree-vect-generic.c (expand_vector_operations_1): Check
8242 optab type before using it.
8244 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8246 * config/aarch64/aarch64-protos.h
8247 (struct tune_params): Add autoprefetcher_model field.
8248 * config/aarch64/aarch64.c: Include params.h
8249 (generic_tunings): Specify autoprefetcher_model value.
8250 (cortexa53_tunings): Likewise.
8251 (cortexa57_tunings): Likewise.
8252 (cortexa72_tunings): Likewise.
8253 (thunderx_tunings): Likewise.
8254 (xgene1_tunings): Likewise.
8255 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8256 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8257 (aarch64_override_options_internal): Set
8258 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8260 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8262 * builtins.c (fold_builtin_exponent): Delete.
8263 (fold_builtin_2): Handle constant expN arguments here.
8264 * match.pd: Fold expN(logN(x)) -> x.
8266 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8268 * builtins.c (fold_builtin_powi): Delete.
8269 (fold_builtin_2): Handle constant powi arguments here.
8270 * match.pd: Add rules previously handled by fold_builtin_powi.
8272 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8274 * builtins.c (fold_builtin_pow): Delete in favor of...
8275 (fold_const_builtin_pow): ...this new function. Only handle constant
8277 (fold_builtin_2): Update accordingly.
8278 * match.pd: Add rules previously handled by fold_builtin_pow.
8280 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8282 * builtins.c (fold_builtin_hypot): Delete.
8283 (fold_builtin_2): Handle constant hypot arguments here.
8284 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
8285 hypot(x, x) to fabs(x)*sqrt(2).
8287 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8289 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8290 instead of make_ssa_name if not yet in SSA form.
8292 2015-10-27 Richard Biener <rguenther@suse.de>
8294 * cfg.c (free_edge): Add function argument and use it instead of cfun.
8295 (clear_edges): Likewise.
8296 * cfg.h (clear_edges): Adjust prototype.
8297 * cfgexpand.c (pass_expand::execute): Adjust.
8298 * cfgloop.c (release_recorded_exits): Add function argument and use
8300 * cfgloop.h (release_recorded_exits): Adjust prototype.
8301 (loops_state_satisfies_p): Add overload with function argument.
8302 (loops_state_set): Likewise.
8303 (loops_state_clear): Likewise.
8304 (struct loop_iterator): Add function argument to constructor
8305 and iterator and use it instead of cfun.
8306 (FOR_EACH_LOOP_FN): New macro.
8307 (loop_optimizer_finalize): Add overload with function argument.
8308 * loop-init.c (loop_optimizer_init): Adjust.
8309 (fix_loop_structure): Likewise.
8310 (loop_optimizer_finaliz): Add function argument and use it
8312 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8313 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8314 * cgraph.c (release_function_body): Do not push/pop cfun.
8315 * final.c (rest_of_clean_state): Adjust.
8316 * graphite.c (graphite_finalize): Likewise.
8317 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8318 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8319 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8320 (tree_unroll_loops_completely): Likewise.
8321 (pass_complete_unrolli::execute): Likewise.
8322 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8323 Add function argument and use it instead of cfun.
8324 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8326 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8327 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8329 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8330 * tree-ssanames.c (fini_ssanames): Add function argument and use it
8332 * tree-ssanames.c (fini_ssanames): Adjust prototype.
8333 * tree-vrp.c (execute_vrp): Adjust.
8334 * value-prof.c (free_histograms): Add function argument and use it
8336 * value-prof.h (free_histograms): Adjust prototype.
8338 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
8340 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8341 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8342 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
8344 2015-10-27 Tom de Vries <tom@codesourcery.com>
8346 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8349 2015-10-27 Bin Cheng <bin.cheng@arm.com>
8351 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8352 (inv_can_prop_to_addr_use): New function.
8353 (record_use): Call can_prop_to_addr_uses, set the new field.
8354 (get_inv_cost): Count cost if inv can't be propagated into its
8357 2015-10-26 Doug Evans <dje@google.com>
8359 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8361 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
8363 * match.pd (fold_widened_comparison): Apply simplifications to all
8366 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
8368 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8369 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8370 * doc/tm.texi: Regenerated.
8371 * reorg.c (dbr_schedule): Use new hook.
8372 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8374 2015-10-26 Jeff Law <law@redhat.com>
8376 PR tree-optimization/68013
8377 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8378 Make sure the first block in the path is in VISITED_BBs.
8380 2015-10-26 Richard Biener <rguenther@suse.de>
8381 Dominik Vogt <vogt@linux.vnet.ibm.com>
8384 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8385 Properly prune ref->ref for accesses outside of ref.
8387 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8389 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8390 new statements to be inserted if inplace. Allow calls to have
8393 2015-10-26 Richard Biener <rguenther@suse.de>
8395 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8396 (do_valueize): New function.
8397 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8399 * tree-ssa-threadedge.c: Remove builtins.h include, include
8401 (fold_assignment_stmt): Remove.
8402 (threadedge_valueize): New function.
8403 (record_temporary_equivalences_from_stmts): Use
8404 gimple_fold_stmt_to_constant_1, note additional cleanup
8407 2015-10-26 Richard Biener <rguenther@suse.de>
8409 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8410 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8412 2015-10-26 Alan Hayward <alan.hayward@arm.com>
8414 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8415 VEC_COND_EXPR types.
8417 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8419 * auto-inc-dec.c (insert_move_insn_before): Delete.
8420 (attempt_change): Remember to cost the simple move in the
8421 FORM_PRE_ADD and FORM_POST_ADD cases.
8423 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
8426 * config/sh/sh.c (sh_vector_mode_supported_p): Use
8427 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8429 2015-10-26 Tom de Vries <tom@codesourcery.com>
8431 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8433 (intra_create_variable_infos): ... here.
8435 2015-10-26 Tom de Vries <tom@codesourcery.com>
8437 * tree-ssa-structalias.c (intra_create_variable_infos): Add
8438 restrict_pointer_p and recursive_restrict_p variables.
8440 2015-10-26 Tom de Vries <tom@codesourcery.com>
8442 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8443 get_vi_for_tree call.
8445 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8448 * optabs.c (expand_atomic_compare_and_swap): Handle case when
8449 ptarget_oval or ptarget_bool are const0_rtx.
8451 2015-10-26 Christian Bruel <christian.bruel@st.com>
8453 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8454 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8455 * cp/method.c (implicitly_declare_fn): Likewise.
8456 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8457 * java/class.c (add_method_1): Likewise.
8459 2015-10-26 Richard Biener <rguenther@suse.de>
8461 * alloc-pool.h (base_pool_allocator): Use placement new.
8462 (base_pool_allocator::remove): Likewise. Compute size outside of
8465 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8467 * builtins.c (do_real_to_int_conversion): New function.
8468 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8469 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8471 * match.pd: Add rules previously handled by fold_fixed_mathfn
8472 and fold_builtin_int_roundingfn.
8474 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8476 * match.pd: Use macros to define built-in operator lists.
8478 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
8479 Richard Biener <rguenther@suse.de>
8481 * genmatch.c (dt_simplify::gen): Skip captures that are
8483 (parser::parse_expr): Allow captures in results too.
8484 * builtins.c (fold_builtin_cexp): Delete.
8485 (fold_builtin_1): Handle constant cexp arguments here.
8486 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8488 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
8490 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8491 conditional compilation.
8492 (base_pool_allocator::remove): Use flag_checking.
8494 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
8496 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8499 * dojump.c (do_compare_and_jump): Canonicalize both function and
8502 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
8505 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8508 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8511 * ipa-polymorphic-call.c
8512 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8513 instance offset with offset of outer type.
8515 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8517 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8519 2015-10-23 Caroline Tice <cmtice@google.com>
8521 (from Richard Biener
8522 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
8523 call to iterative_hash_host_wide_int.
8525 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8527 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8530 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8532 * tree-vect-generic.c (expand_vector_operations_1): Check
8533 optab exists before use it.
8535 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8537 * tree-vect-generic.c (expand_vector_condition): Avoid
8538 uninitialized variable warning.
8540 2015-10-23 Jeff Law <law@redhat.com>
8542 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
8544 (execute_todo): Call it here.
8545 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
8547 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
8549 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8550 Szabolcs Nagy <szabolcs.nagy@arm.com>
8552 * config.gcc (enable_secureplt): Add *-linux*-musl*.
8554 2015-10-23 Jeff Law <law@redhat.com>
8556 PR tree-optimization/67830
8557 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8558 Explicitly verify the mask has no bits outside the type of
8559 the innermost operands.
8561 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8562 Szabolcs Nagy <szabolcs.nagy@arm.com>
8564 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8565 (MUSL_DYNAMIC_LINKER64): Define.
8566 (GNU_USER_DYNAMIC_LINKER32): Update.
8567 (GNU_USER_DYNAMIC_LINKER64): Update.
8568 (CHOOSE_DYNAMIC_LINKER): Update.
8570 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
8571 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
8572 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8573 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8574 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8575 (CHOOSE_DYNAMIC_LINKER): Update.
8576 (INCLUDE_DEFAULTS): Redefine.
8578 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
8580 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8582 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
8583 comparing addresses.
8585 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8587 * fold-const.c (operand_equal_p): Handle matching of vector
8590 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8592 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
8594 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
8595 Andrew Pinski <apinski@cavium.com>
8597 PR rtl-optimization/67736
8598 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
8601 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8604 * tree.c (build_truth_vector_type): Support BLK mode
8605 returned for boolean vector.
8607 2015-10-23 Alan Hayward <alan.hayward@arm.com>
8609 PR tree-optimization/65947
8611 (vect_is_simple_reduction_1): Find condition reductions.
8612 (vect_model_reduction_cost): Add condition reduction costs.
8613 (get_initial_def_for_reduction): Add condition reduction initial var.
8614 (vect_create_epilog_for_reduction): Add condition reduction epilog.
8615 (vectorizable_reduction): Condition reduction support.
8616 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
8617 * doc/sourcebuild.texi (Vector-specific attributes): Document
8620 2015-10-23 Richard Biener <rguenther@suse.de>
8622 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
8625 2015-10-23 Richard Biener <rguenther@suse.de>
8626 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8628 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
8629 into (A ^ B) - B to match.pd
8630 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
8632 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
8634 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
8636 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
8638 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
8640 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
8641 INTEGER_CST@1)): New simplifier.
8643 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
8645 * builtins.c (integer_valued_real_p): Move to fold-const.c.
8646 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
8647 (fold_builtin_ceil, fold_builtin_round): Delete.
8648 (fold_builtin_1): Handle constant trunc, floor, ceil and round
8650 * convert.c (convert_to_real): Remove narrowing of rounding
8652 * fold-const.h (integer_valued_real_unary_p)
8653 (integer_valued_real_binary_p, integer_valued_real_call_p)
8654 (integer_valued_real_single_p, integer_valued_real_p): Declare.
8655 * fold-const.c (tree_single_nonnegative_warnv_p): Move
8656 name_registered_for_update_p check to SSA_NAME case statement.
8657 Don't call tree_simple_nonnegative_warnv_p for SSA names.
8658 (integer_valued_real_unary_p, integer_valued_real_binary_p)
8659 (integer_valued_real_call_p, integer_valued_real_single_p)
8660 (integer_valued_real_invalid_p): New functions.
8661 (integer_valued_real_p): Move from fold-const.c and rework
8662 to call the functions above. Handle SSA names.
8663 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
8664 * gimple-fold.c (gimple_assign_integer_valued_real_p)
8665 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
8666 (gimple_stmt_integer_valued_real_p): New functions.
8667 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
8668 Fold f(x)->x for the same f if x is known to be integer-valued.
8669 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
8670 the result. Canonicalize floor(x) as trunc(x) if x is
8673 2015-10-23 Tom de Vries <tom@codesourcery.com>
8675 * tree-ssa-structalias.c (intra_create_variable_infos): Use
8676 make_constraint_from.
8678 2015-10-23 Tom de Vries <tom@codesourcery.com>
8680 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
8681 setting of is_full_var in case of a single field.
8683 2015-10-22 Martin Sebor <msebor@redhat.com>
8686 * config/i386/i386.opt: Add missing periods to the ends of sentences.
8687 * config/msp430/msp430.opt: Same.
8689 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8691 * doc/extend.exp (Global Register Variables): Rewrite.
8693 2015-10-22 Jeff Law <law@redhat.com>
8695 * genattrtab.c (main): If we do not have any annul-true or annul-false
8696 slots, then write out a dummy eligible_for_annul_true or
8697 eligible_for_annul_false as needed.
8699 2015-10-22 Nick Clifton <nickc@redhat.com>
8701 * config/msp430/msp430.opt: Add -msilicon-errata and
8702 -msilicon-errata-warn.
8703 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
8705 * doc/invoke.texi: Document new options.
8707 2015-10-22 Richard Biener <rguenther@suse.de>
8709 PR tree-optimization/58497
8710 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
8711 (expand_vector_operations_1): Use it. Lower operations on
8712 all uniform vectors to scalar operations if the HW supports it.
8714 2015-10-22 Richard Biener <rguenther@suse.de>
8716 PR tree-optimization/19049
8717 PR tree-optimization/65962
8718 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
8719 to strided accesses if single-element interleaving doesn't work.
8721 2015-10-22 Richard Biener <rguenther@suse.de>
8725 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
8726 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
8727 (expand_unop): Likewise.
8729 2015-10-22 Richard Biener <rguenther@suse.de>
8731 * fold-const.c (fold_addr_of_array_ref_difference): Properly
8732 convert operands before folding a MINUS_EXPR.
8733 (fold_binary_loc): Move simplification of MINUS_EXPR on
8734 converted POINTER_PLUS_EXPRs ...
8735 * match.pd: ... here.
8737 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
8739 * builtins.c (fold_builtin_tan): Delete.
8740 (fold_builtin_1): Handle constant tan arguments here.
8741 * match.pd: Simplify (tan (atan x)) to x.
8743 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
8745 * builtins.c (fold_builtin_cproj): Delete.
8746 (fold_builtin_1): Handle constant arguments here.
8747 (build_complex_cproj): Move and rename to...
8748 * tree.c: (build_complex_inf): ...this.
8749 * tree.h (build_complex_inf): Declare.
8750 * match.pd: Fold cproj(x)->x if x has no infinity.
8751 Use build_complex_inf for existing cproj rules.
8753 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8756 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
8757 already have a comparison result.
8759 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8762 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
8763 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
8764 (aarch64_classify_address): Likewise.
8765 (aarch64_secondary_reload): Likewise.
8766 (aarch64_override_options_after_change_1): Adjust.
8767 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8768 Use aarch64_nopcrelative_literal_loads.
8769 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8770 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
8773 2015-10-21 Martin Sebor <msebor@redhat.com>
8776 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
8777 (print_filtered_help): Reference aliased option's name and encourage
8778 readers to use it in preference to the alias if the former is not
8779 documented. Mention when using an option is diagnosed.
8780 * gcc.c (display_help): End each sentence with a period.
8782 * common.opt: End each sentence that describes an option with
8784 * config/aarch64/aarch64.opt: Same.
8785 * config/alpha/alpha.opt: Same.
8786 * config/arc/arc.opt: Same.
8787 * config/arm/arm.opt: Same.
8788 * config/avr/avr.opt: Same.
8789 * config/bfin/bfin.opt: Same.
8790 * config/c6x/c6x.opt: Same.
8791 * config/cr16/cr16.opt: Same.
8792 * config/cris/cris.opt: Same.
8793 * config/cris/linux.opt: Same.
8794 * config/darwin.opt: Same.
8795 * config/epiphany/epiphany.opt: Same.
8796 * config/fr30/fr30.opt: Same.
8797 * config/frv/frv.opt: Same.
8798 * config/ft32/ft32.opt: Same.
8799 * config/g.opt: Same.
8800 * config/h8300/h8300.opt: Same.
8801 * config/i386/cygming.opt: Same.
8802 * config/i386/djgpp.opt: Same.
8803 * config/i386/i386.opt: Same.
8804 * config/i386/interix.opt: Same.
8805 * config/i386/mingw-w64.opt: Same.
8806 * config/i386/mingw.opt: Same.
8807 * config/ia64/ia64.opt: Same.
8808 * config/ia64/ilp32.opt: Same.
8809 * config/iq2000/iq2000.opt: Same.
8810 * config/linux.opt: Same.
8811 * config/lm32/lm32.opt: Same.
8812 * config/lynx.opt: Same.
8813 * config/m32c/m32c.opt: Same.
8814 * config/m32r/m32r.opt: Same.
8815 * config/m68k/ieee.opt: Same.
8816 * config/m68k/m68k.opt: Same.
8817 * config/mcore/mcore.opt: Same.
8818 * config/mep/mep.opt: Same.
8819 * config/microblaze/microblaze.opt: Same.
8820 * config/mips/mips.opt: Same.
8821 * config/mmix/mmix.opt: Same.
8822 * config/mn10300/mn10300.opt: Same.
8823 * config/moxie/moxie.opt: Same.
8824 * config/msp430/msp430.opt: Same.
8825 * config/nios2/elf.opt: Same.
8826 * config/nios2/nios2.opt: Same.
8827 * config/nvptx/nvptx.opt: Same.
8828 * config/pa/pa-hpux.opt: Same.
8829 * config/pa/pa-hpux1010.opt: Same.
8830 * config/pa/pa-hpux1111.opt: Same.
8831 * config/pa/pa-hpux1131.opt: Same.
8832 * config/pa/pa.opt: Same.
8833 * config/pa/pa64-hpux.opt: Same.
8834 * config/pdp11/pdp11.opt: Same.
8835 * config/rl78/rl78.opt: Same.
8836 * config/rs6000/476.opt: Same.
8837 * config/rs6000/aix64.opt: Same.
8838 * config/rs6000/darwin.opt: Same.
8839 * config/rs6000/linux64.opt: Same.
8840 * config/rs6000/rs6000.opt: Same.
8841 * config/rs6000/sysv4.opt: Same.
8842 * config/s390/s390.opt: Same.
8843 * config/s390/tpf.opt: Same.
8844 * config/sh/sh.opt: Same.
8845 * config/sol2.opt: Same.
8846 * config/sparc/long-double-switch.opt: Same.
8847 * config/sparc/sparc.opt: Same.
8848 * config/spu/spu.opt: Same.
8849 * config/stormy16/stormy16.opt: Same.
8850 * config/tilegx/tilegx.opt: Same.
8851 * config/tilepro/tilepro.opt: Same.
8852 * config/v850/v850.opt: Same.
8853 * config/vax/vax.opt: Same.
8854 * config/visium/visium.opt: Same.
8855 * config/vms/vms.opt: Same.
8856 * config/vxworks.opt: Same.
8857 * config/xtensa/xtensa.opt: Same.
8859 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8860 Sebastian Pop <s.pop@samsung.com>
8862 * graphite-scop-detection.c (parameter_index_in_region): Update call to
8863 invariant_in_sese_p_rec.
8864 * graphite-sese-to-poly.c (extract_affine): Same.
8865 * sese.c (invariant_in_sese_p_rec): Pass in an extra
8866 parameter has_vdefs.
8867 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
8868 variable depends on virtual definitions in the current region.
8869 * sese.h (invariant_in_sese_p_rec): Update declaration.
8871 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8872 Sebastian Pop <s.pop@samsung.com>
8874 * graphite-scop-detection.c (build_scops): Do not handle scops
8875 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
8876 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
8878 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
8880 * config.in: Regenerate.
8881 * configure: Regenerate.
8882 * configure.ac (CHECKING_P): Define.
8883 * system.h: Use CHECKING_P.
8885 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8888 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
8889 is negative we don't know the type.
8890 (check_stmt_for_type_change): Skip constructors of non-polymorphic
8891 types as those won't help devirutalization.
8893 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8895 * fold-const.c (operand_equal_p): Add code matching empty constructors.
8897 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
8899 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
8901 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
8902 Add comments on sign of the result.
8903 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
8904 Recurse on operand #1 instead of operand #0.
8905 <CEIL_MOD_EXPR>: Do not recurse.
8906 <ROUND_MOD_EXPR>: Likewise.
8908 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8910 * cfgrtl.c (pass_free_cfg::execute): Adjust.
8911 * final.c (dbr_sequence_length): Always define.
8912 (shorten_branches): Adjust.
8913 * genattr-common.c (main): Always define DELAY_SLOTS.
8914 * genattr.c (main): Unconditionally declare functions and define
8915 macros related to delay slots.
8916 * genattrtab.c (write_eligible_delay): Adjust.
8917 (main): Always write out delay slot functions.
8918 * opts.c (default_options_table): Adjust.
8919 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
8920 (redirect_with_delay_list_safe_p): Likewise.
8921 (fill_simple_delay_slots): Likewise.
8922 (fill_slots_from_thread): Likewise.
8923 (make_return_insns): Likewise.
8924 (dbr_schedule): Likewise.
8925 (rest_of_handle_delay_slots): Likewise.
8926 (pass_delay_slots::gate): Likewise.
8927 * toplev.c (process_options): Likewise.
8929 2015-10-21 Richard Henderson <rth@redhat.com>
8931 * targhooks.c (default_addr_space_pointer_mode): Remove check
8932 for generic address space.
8933 (default_addr_space_address_mode): Likewise.
8934 (default_addr_space_valid_pointer_mode): Likewise.
8935 (default_addr_space_legitimate_address_p): Likewise.
8936 (default_addr_space_legitimize_address): Likewise.
8937 * target.def (addr_space.pointer_mode): Update documentation
8938 of default behavior.
8939 (addr_space.address_mode): Likewise.
8942 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
8945 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8947 * builtins.c (fold_builtin_cabs): Delete.
8948 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8949 * match.pd: Add rules previously handled by fold_builtin_cabs.
8951 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8953 * fold-const.h (fold_strip_sign_ops): Delete.
8954 * fold-const.c (fold_strip_sign_ops): Likewise.
8955 (fold_unary_loc, fold_binary_loc): Remove calls to it.
8956 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
8957 (fold_builtin_ccos): Delete.
8958 (fold_builtin_pow): Don't call fold_strip_sign_ops.
8959 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
8960 Remove fndecl argument.
8961 (fold_builtin_1): Update calls accordingly. Handle constant
8962 cos, cosh, ccos and ccosh here.
8964 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8966 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
8967 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
8968 * common.opt (fssa-backprop): New option.
8969 * fold-const.h (negate_mathfn_p): Declare.
8970 * fold-const.c (negate_mathfn_p): Make public.
8971 * timevar.def (TV_TREE_BACKPROP): New.
8972 * tree-pass.h (make_pass_backprop): Declare.
8973 * passes.def (pass_backprop): Add.
8974 * gimple-ssa-backprop.c: New file.
8976 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8977 Sebastian Pop <s.pop@samsung.com>
8979 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
8980 Do not call create_empty_if_region_on_edge when cond_expr is true.
8981 (translate_isl_ast_node_for): Check whether a guard has been generated.
8983 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8985 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
8986 (operator=): Removed.
8987 (dr_info): Make alias_set number the last argument with default
8988 value of invalid_alias_set.
8989 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
8991 (rewrite_reductions_out_of_ssa): Iterate only through the
8992 basic blocks which are inside region.
8993 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
8994 * sese.h (struct sese_l): Removed assignment operator.
8995 (split_region_for_bb): Removed dead code.
8997 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8999 * graphite-poly.h (struct dr_info): Removed conversion constructor.
9000 (struct scop): Renamed scop::region to scop::scop_info
9001 (scop_set_region): Same.
9002 (SCOP_REGION): Removed
9003 (SCOP_CONTEXT): Removed.
9004 (POLY_SCOP_P): Removed.
9005 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
9006 Rename scop->region to scop->scop_info.
9007 (add_parameters_to_ivs_params): Same.
9008 (graphite_regenerate_ast_isl): Same.
9009 * graphite-poly.c (new_scop): Same.
9011 (print_scop_params): Same.
9012 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
9013 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
9014 (dot_all_scops_1): Rename scop->region to scop->scop_info.
9015 (scop_detection::nb_pbbs_in_loops): Same.
9016 (find_scop_parameters): Same.
9017 (try_generate_gimple_bb): Same.
9018 (gather_bbs::before_dom_children): Same.
9019 (gather_bbs::after_dom_children): Same.
9020 (build_scops): Same.
9021 * graphite-sese-to-poly.c (build_scop_scattering): Same.
9022 (extract_affine_chrec): Same.
9023 (extract_affine): Same.
9024 (set_scop_parameter_dim): Same.
9025 (build_loop_iteration_domains): Same.
9026 (create_pw_aff_from_tree): Same.
9027 (add_param_constraints): Same.
9028 (build_scop_iteration_domain): Same.
9029 (build_scop_drs): Same.
9030 (analyze_drs_in_stmts): Same.
9031 (insert_out_of_ssa_copy_on_edge): Same.
9032 (rewrite_close_phi_out_of_ssa):Same.
9033 (rewrite_reductions_out_of_ssa):Same.
9034 (handle_scalar_deps_crossing_scop_limits):Same.
9035 (rewrite_cross_bb_scalar_deps):Same.
9036 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
9037 (build_poly_scop):Same.
9038 (build_alias_set): Use pointer to dr_info.
9039 * graphite.c (print_graphite_scop_statistics):
9040 (graphite_transform_loops):
9041 * sese.h (struct sese_l): Remove conversion constructor.
9043 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9046 * tree.c (verify_type): Verify that TYPE_MODE match
9047 between TYPE_CANONICAL and type.
9048 * expr.c (store_expr_with_bounds): Revert my previous change.
9049 * expmed.c (store_bit_field_1): Revert prevoius change.
9050 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
9051 to match for all types.
9053 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
9055 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
9058 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9060 * doc/tm.texi: Regenerated.
9061 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
9062 * stor-layout.c (layout_type): Use mode to get vector mask size.
9063 * target.def (get_mask_mode): New.
9064 * targhooks.c (default_get_mask_mode): New.
9065 * targhooks.h (default_get_mask_mode): New.
9066 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
9068 * tree.c (MAX_BOOL_CACHED_PREC): New.
9069 (nonstandard_boolean_type_cache): New.
9070 (build_nonstandard_boolean_type): New.
9071 (make_vector_type): Vector mask has no canonical type.
9072 (build_truth_vector_type): New.
9073 (build_same_sized_truth_vector_type): New.
9074 (truth_type_for): Support vector masks.
9075 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
9076 (build_truth_vector_type): New.
9077 (build_same_sized_truth_vector_type): New.
9078 (build_nonstandard_boolean_type): New.
9079 * tree-cfg.c (verify_gimple_comparison) Require boolean
9080 vector type for vector comparison.
9081 (verify_gimple_assign_ternary): Likewise.
9082 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
9084 * tree-vect-stmts.c (vectorizable_condition): Use boolean
9085 vector type for vector comparison.
9086 * tree-vect-generic.c (elem_op_func): Add new operand to hold
9088 (do_unop): Adjust to modified function type.
9089 (do_binop): Likewise.
9090 (do_plus_minus): Likewise.
9091 (do_negate); Likewise.
9092 (expand_vector_piecewise): Likewise.
9093 (do_cond): Likewise.
9094 (do_compare): Use comparison instead of condition.
9095 (expand_vector_divmod): Use boolean vector type for comparison.
9096 (expand_vector_operations_1): Skip scalar mask operations.
9098 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9100 * omp-low.c (simd_clone_create): Set in_other_partition
9103 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9105 * doc/extend.exp (Local Register Variables): Rewrite.
9107 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9109 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9110 and x*x in cases where the operands are sign ops. Extend these
9111 rules to handle copysign as a sign op (including for cos, cosh
9112 and pow, which already treated negate and abs as sign ops).
9114 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
9117 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9118 for 64-bit MS_ABI targets also when default incoming stack boundary
9121 2015-10-21 Richard Biener <rguenther@suse.de>
9123 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9124 cond stmts, enhanced and split out from ...
9125 (vn_phi_eq): ... here.
9127 2015-10-21 Richard Biener <rguenther@suse.de>
9130 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9131 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9132 (tree_single_nonnegative_warnv_p): ... here. For SSA names
9133 make sure they are not registered for update.
9135 2015-10-21 Richard Biener <rguenther@suse.de>
9137 PR tree-optimization/68026
9138 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9139 unsigned VARYING values.
9141 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
9143 * asan.c (asan_emit_stack_protection): Don't pass local stack to
9144 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9145 NULL and use local stack than.
9146 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9147 in addition to __asan_init.
9148 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9149 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9150 * asan.h (asan_intercepted_p): Handle new string builtins.
9151 * ubsan.c (ubsan_use_new_style_p): New function.
9152 (ubsan_instrument_float_cast): If location is unknown, assign
9153 input_location to loc. Propagate loc to ubsan_create_data if
9154 ubsan_use_new_style_p returned true.
9156 2015-10-21 Jeff Law <law@redhat.com>
9158 * Makefile.in (OBJS): Remove sched-vis.c
9159 * sched-vis.c: Removed. Code moved into...
9160 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
9161 * rtl.h: Remove prototypes for functions now living in print-rtl.c
9162 * print-rtl.h Add prototypes for new functions in print-rtl.c.
9163 * auto-inc-dec.c: Include print-rtl.h
9164 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9165 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9167 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9170 2015-10-21 Richard Biener <rguenther@suse.de>
9171 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9173 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9175 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9176 about signed left shift stronger and clarify the cases when they're
9178 Move (a * (1 << b)) is (a << b) to match.pd.
9179 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9180 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9181 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9183 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9185 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9186 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9187 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9189 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9191 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9193 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
9194 Szabolcs Nagy <szabolcs.nagy@arm.com>
9195 Alan Modra <amodra@gmail.com>
9197 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9198 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9199 (LINK_SPEC): Add %(link_secure_plt).
9200 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9201 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9203 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
9204 Szabolcs Nagy <szabolcs.nagy@arm.com>
9206 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9207 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9209 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9211 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9213 (fusion_load_store): Use it.
9214 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9215 ldp and stp in VD modes.
9216 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9217 (store_pair<mode>, VD): Likewise.
9219 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
9221 PR rtl-optimization/67609
9222 * lra-splill.c (lra_final_code_change): Don't remove all
9225 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9227 * simplify-rtx.c (simplify_binary_operation): If either operand was
9228 a constant pool reference use them if all other simplifications failed.
9230 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9232 * config/aarch64/aarch64.md
9233 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9234 * config/aarch64/aarch64-simd.md
9235 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9236 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9237 (aarch64_fpconst_pow_of_2): New function.
9238 (aarch64_vec_fpconst_pow_of_2): Likewise.
9239 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9241 (aarch64_vec_fpconst_pow_of_2): Likewise.
9242 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9243 (aarch64_fp_vec_pow2): Likewise.
9245 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
9247 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9248 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
9249 * config/alpha/alpha.c (alpha_function_arg_advance): Update
9250 ALPHA_ARG_SIZE usage.
9251 (alpha_arg_partial_bytes): Ditto.
9253 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9256 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9257 error_mark_node decls.
9259 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9263 * common/config/i386/i386-common.c (ix86_handle_option): Remove
9264 OPT_miamcu handling.
9265 * config/i386/i386.c (PTA_NO_80387): New macro.
9266 (processor_alias_table): Add PTA_NO_80387 to lakemont.
9267 (ix86_option_override_internal): Update MASK_80387 from
9268 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
9269 SSE math only if 80387 is supported. Don't change
9271 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9273 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9274 if TARGET_80387 is true and TARGET_IAMCU is false.
9275 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9276 is true and TARGET_IAMCU_P is false.
9278 2015-10-20 Richard Biener <rguenther@suse.de>
9280 PR tree-optimization/68017
9281 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9283 2015-10-20 Martin Liska <mliska@suse.cz>
9285 * cgraphclones.c (cgraph_node::create_virtual_clone):
9286 Verify cgraph_node.local.versionable instead of calling
9287 tree_versionable_function_p.
9288 * ipa-cp.c (determine_versionability): Save the information
9289 to ipa_node_params summary.
9290 (ipcp_versionable_function_p): Use it.
9291 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9292 (ipcp_generate_summary): Do not compute cgraph_node
9294 * ipa-inline-analysis.c (inline_generate_summary): Compute
9295 versionability for all cgraph nodes.
9296 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9297 ipa_node_params::versionability.
9298 * ipa-prop.h (struct ipa_node_params): Declare it.
9300 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9303 * varasm.c (assemble_variable): Move special vtv handling to..
9304 (handle_vtv_comdat_sections): .. here. New function.
9305 (output_object_block): Handle vtv sections.
9307 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
9310 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9312 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
9314 * doc/extend.texi: Update documentation WRT inline functions.
9316 2015-10-20 Alan Modra <amodra@gmail.com>
9319 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9320 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9321 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9323 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
9325 PR rtl-optimization/66790
9326 * df.h (DF_MIR): New macro.
9327 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9328 (DF_MIR_INFO_BB): New macro.
9329 (DF_MIR_IN, DF_MIR_OUT): New macros.
9330 (struct df_mir_bb_info): New.
9331 (df_mir): New macro.
9332 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9334 (df_mir_get_bb_info): New.
9335 * df-problems.c (struct df_mir_problem_data): New.
9336 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9337 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9338 df_mir_confluence_0, df_mir_confluence_n,
9339 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9340 df_mir_bottom_dump, df_mir_verify_solution_start,
9341 df_mir_verify_solution_end): New.
9343 (df_mir_add_problem, df_mir_simulate_one_insn): New.
9344 * timevar.def (TV_DF_MIR): New.
9345 * ree.c: Include bitmap.h
9346 (add_removable_extension): Add an INIT_REGS parameter. Use it
9347 to skip zero-extensions that may get an uninitialized register.
9348 (find_removable_extensions): Compute must-initialized registers
9349 using the MIR dataflow problem. Update the call to
9350 add_removable_extension.
9351 (find_and_remove_re): Call df_mir_add_problem.
9353 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
9355 * common/config/mn10300/mn10300-common.c
9356 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9357 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9359 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
9361 * doc/extend.texi (Explicit Register Variables): Simplify and
9362 avoid unnecessary and confusion abbreviations. Update cross
9364 doc/implement-c.tex: Update cross reference.
9366 2015-10-19 Jeff Law <law@redhat.com>
9368 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9369 that create irreducible loops unless the path elimiantes a multiway
9372 2015-10-19 Richard Biener <rguenther@suse.de>
9374 PR tree-optimization/67975
9375 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9376 * tree-cfg.c (extract_true_false_controlled_edges): Split out
9377 core worker from ...
9378 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9379 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9380 instead of block number for PHIs with two or one args.
9381 (vn_phi_eq): Compare edge predicates of PHIs that are in different
9384 2015-10-19 Richard Biener <rguenther@suse.de>
9386 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9387 (gimple_stmt_nonnegative_warnv_p): Use it.
9388 * match.pd (CPROJ): New operator list.
9389 (cproj (complex ...)): Move simplifications from ...
9390 * builtins.c (fold_builtin_cproj): ... here.
9392 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9394 * config/i386/i386.c (ix86_expand_vector_move): Use
9395 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9398 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9400 * doc/invoke.texi: Replace @optindex with @opindex.
9402 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9405 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9406 arch= is set, clear all bits in x_ix86_isa_flags, except for
9407 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9409 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
9412 * common.opt (fkeep-static-functions): New option.
9413 * doc/invoke.texi: Document it.
9414 * cgraphunit.c (cgraph_node::finalize_function): Use it.
9416 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9418 * sched-int.h (struct autopref_multipass_data_): Remove offset
9419 field. Add min_offset, max_offset, multi_mem_insn_p fields.
9420 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9421 (autopref_multipass_init): Use it. Handle PARALLEL sets.
9422 (autopref_rank_data): New function.
9423 (autopref_rank_for_schedule): Use it.
9424 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9426 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
9429 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9431 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9433 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9434 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
9435 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9436 (STANDARD_STARTFILE_PREFIX_1): New.
9437 (STANDARD_STARTFILE_PREFIX_2): New.
9439 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9441 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9442 (darwin_driver_init): Note a version-min when provided on the c/l.
9443 * config/darwin.h (%darwin_minversion): Remove.
9444 * config/i386/darwin.h: Likewise.
9445 * config/rs6000/darwin.h: Likewise.
9446 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9447 rather than an arbitrary constant.
9449 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9451 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9452 PPC, detect conflicts between -arch and multilib settings. Detect
9453 and warn about conflicts between multiple -arch definitions.
9455 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9457 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9459 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9461 * lra-constraints.c (add_next_usage_insn): Change argument type
9462 from rtx to rtx_insn *.
9464 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
9466 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9469 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
9471 * config/tilepro/gen-mul-tables.cc: Adjust include files.
9472 * config/tilegx/mul-tables.c: Regenerate.
9473 * config/tilepro/mul-tables.c: Regenerate.
9475 * config/tilegx/tilegx-c.c: Adjust include files.
9476 * config/tilegx/tilegx.c: Likewise.
9477 * config/tilepro/tilepro-c.c: Likewise.
9478 * config/tilepro/tilepro.c: Likewise.
9479 * config/aarch64/aarch64-builtins.c: Likewise.
9480 * config/aarch64/aarch64.c: Likewise.
9481 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9482 * config/alpha/alpha.c: Likewise.
9483 * config/arc/arc.c: Likewise.
9484 * config/arm/aarch-common.c: Likewise.
9485 * config/arm/arm-builtins.c: Likewise.
9486 * config/arm/arm-c.c: Likewise.
9487 * config/arm/arm.c: Likewise.
9488 * config/avr/avr-c.c: Likewise.
9489 * config/avr/avr-devices.c: Likewise.
9490 * config/avr/avr-log.c: Likewise.
9491 * config/avr/avr.c: Likewise.
9492 * config/bfin/bfin.c: Likewise.
9493 * config/c6x/c6x.c: Likewise.
9494 * config/cr16/cr16.c: Likewise.
9495 * config/cris/cris.c: Likewise.
9496 * config/darwin-c.c: Likewise.
9497 * config/darwin-driver.c: Likewise.
9498 * config/darwin.c: Likewise.
9499 * config/default-c.c: Likewise.
9500 * config/epiphany/epiphany.c: Likewise.
9501 * config/epiphany/mode-switch-use.c: Likewise.
9502 * config/epiphany/resolve-sw-modes.c: Likewise.
9503 * config/fr30/fr30.c: Likewise.
9504 * config/frv/frv.c: Likewise.
9505 * config/ft32/ft32.c: Likewise.
9506 * config/glibc-c.c: Likewise.
9507 * config/h8300/h8300.c: Likewise.
9508 * config/i386/host-cygwin.c: Likewise.
9509 * config/i386/host-mingw32.c: Likewise.
9510 * config/i386/i386-c.c: Likewise.
9511 * config/i386/i386.c: Likewise.
9512 * config/i386/msformat-c.c: Likewise.
9513 * config/i386/winnt-cxx.c: Likewise.
9514 * config/i386/winnt-stubs.c: Likewise.
9515 * config/i386/winnt.c: Likewise.
9516 * config/ia64/ia64-c.c: Likewise.
9517 * config/ia64/ia64.c: Likewise.
9518 * config/iq2000/iq2000.c: Likewise.
9519 * config/lm32/lm32.c: Likewise.
9520 * config/m32c/m32c-pragma.c: Likewise.
9521 * config/m32c/m32c.c: Likewise.
9522 * config/m32r/m32r.c: Likewise.
9523 * config/mcore/mcore.c: Likewise.
9524 * config/mep/mep-pragma.c: Likewise.
9525 * config/mep/mep.c: Likewise.
9526 * config/microblaze/microblaze-c.c: Likewise.
9527 * config/microblaze/microblaze.c: Likewise.
9528 * config/mips/mips-tables.opt
9529 * config/mips/mips.c: Likewise.
9530 * config/mmix/mmix.c: Likewise.
9531 * config/mn10300/mn10300.c: Likewise.
9532 * config/moxie/moxie.c: Likewise.
9533 * config/msp430/msp430-c.c: Likewise.
9534 * config/msp430/msp430.c: Likewise.
9535 * config/nds32/nds32-cost.c: Likewise.
9536 * config/nds32/nds32-fp-as-gp.c: Likewise.
9537 * config/nds32/nds32-intrinsic.c: Likewise.
9538 * config/nds32/nds32-isr.c: Likewise.
9539 * config/nds32/nds32-md-auxiliary.c: Likewise.
9540 * config/nds32/nds32-memory-manipulation.c: Likewise.
9541 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9542 * config/nds32/nds32-predicates.c: Likewise.
9543 * config/nds32/nds32.c: Likewise.
9544 * config/nios2/nios2.c: Likewise.
9545 * config/nvptx/mkoffload.c: Likewise.
9546 * config/nvptx/nvptx.c: Likewise.
9547 * config/pa/pa.c: Likewise.
9548 * config/pdp11/pdp11.c: Likewise.
9549 * config/rl78/rl78-c.c: Likewise.
9550 * config/rl78/rl78.c: Likewise.
9551 * config/rs6000/host-darwin.c: Likewise.
9552 * config/rs6000/rs6000-c.c: Likewise.
9553 * config/rs6000/rs6000-linux.c: Likewise.
9554 * config/rs6000/rs6000.c: Likewise.
9555 * config/rx/rx.c: Likewise.
9556 * config/s390/s390-c.c: Likewise.
9557 * config/s390/s390.c: Likewise.
9558 * config/sh/sh-c.c: Likewise.
9559 * config/sh/sh-mem.cc: Likewise.
9560 * config/sh/sh.c: Likewise.
9561 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9562 * config/sh/sh_treg_combine.cc: Likewise.
9563 * config/sol2-c.c: Likewise.
9564 * config/sol2-cxx.c: Likewise.
9565 * config/sol2-stubs.c: Likewise.
9566 * config/sol2.c: Likewise.
9567 * config/sparc/sparc-c.c: Likewise.
9568 * config/sparc/sparc.c: Likewise.
9569 * config/spu/spu-c.c: Likewise.
9570 * config/spu/spu.c: Likewise.
9571 * config/stormy16/stormy16.c: Likewise.
9572 * config/v850/v850-c.c: Likewise.
9573 * config/v850/v850.c: Likewise.
9574 * config/vax/vax.c: Likewise.
9575 * config/visium/visium.c: Likewise.
9576 * config/vms/vms-c.c: Likewise.
9577 * config/vms/vms.c: Likewise.
9578 * config/vxworks.c: Likewise.
9579 * config/winnt-c.c: Likewise.
9580 * config/xtensa/xtensa.c: Likewise.
9582 2015-10-16 Christian Bruel <christian.bruel@st.com>
9585 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
9586 (FUNCTION_BOUNDARY_P): New macro:
9587 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
9589 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
9590 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
9591 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
9592 * function.c (allocate_struct_function): Call
9593 relayout_function hook.
9594 * passes.c (rest_of_decl_compilation): Likewise.
9596 2015-10-16 Christian Bruel <christian.bruel@st.com>
9599 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
9600 * config/arm/arm.c (arm_option_override_internal): Call
9601 arm_override_options_after_change_1.
9602 (arm_override_options_after_change): New function.
9603 (arm_override_options_after_change_1): Likewise.
9604 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
9606 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9609 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9612 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
9614 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
9615 argument is an ADDR_EXPR.
9617 2015-10-16 Richard Biener <rguenther@suse.de>
9619 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
9620 and get rid of force_gimple_operand_gsi.
9621 (gimple_fold_builtin_memory_chk): Likewise.
9622 (gimple_fold_builtin_stxcpy_chk): Likewise.
9623 (rewrite_to_defined_overflow): Likewise.
9624 (gimple_convert_to_ptrofftype): New function.
9625 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
9627 2015-10-16 Richard Biener <rguenther@suse.de>
9629 * tree-nested.h (build_addr): Adjust prototype.
9630 * tree-nested.c (build_addr): Remove context argument and use
9632 (get_static_chain): Adjust calls to build_addr.
9633 (convert_nl_goto_reference): Likewise.
9634 (convert_tramp_reference_op): Likewise.
9635 (finalize_nesting_tree_1): Likewise.
9636 * value-prof.c (gimple_ic): Likewise.
9637 * gimple-low.c (lower_builtin_setjmp): Likewise.
9638 * tree-parloops.c (take_address_of): Likewise.
9639 (create_call_for_reduction_1): Likewise.
9640 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
9641 (gimple_gen_ic_func_profiler): Likewise.
9643 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9645 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9648 2015-10-16 Michael Collison <michael.collison@linaro.org>
9649 Andrew Pinski <andrew.pinski@caviumnetworks.com>
9651 * match.pd ((x < y) && (x < z) -> x < min (y,z),
9652 (x > y) and (x > z) -> x > max (y,z))
9654 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
9655 Szabolcs Nagy <szabolcs.nagy@arm.com>
9657 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
9658 (DYNAMIC_LINKER): Renamed to ...
9659 (GLIBC_DYNAMIC_LINKER): This.
9660 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
9662 2015-10-15 Marek Polacek <polacek@redhat.com>
9664 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
9665 gimple_call_builtin instead of is_gimple_call.
9667 2015-10-15 Richard Biener <rguenther@suse.de>
9669 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
9671 2015-10-15 Richard Biener <rguenther@suse.de>
9673 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
9674 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
9675 * tree-vect-loop.c (get_initial_def_for_induction): Drop
9676 use of force_gimple_operand in favor of gimple_build.
9677 Use vect_get_new_ssa_name.
9678 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
9679 (vectorizable_mask_load_store): Likewise.
9680 (vectorizable_call): Likewise.
9681 (vectorizable_store): Likewise.
9682 (vectorizable_load): Likewise.
9683 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
9685 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
9687 PR tree-optimization/67945
9688 * tree-pass.h (PROP_gimple_opt_math): New property flag.
9689 * generic-match-head.c (canonicalize_math_p): New function.
9690 * gimple-match-head.c: Include tree-pass.h.
9691 (canonicalize_math_p): New function.
9692 * match.pd: Group math built-in rules into simplifications
9693 and canonicalizations. Guard the latter with canonicalize_math_p.
9694 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
9695 PROP_gimple_opt_math property.
9697 2015-10-15 Marek Polacek <polacek@redhat.com>
9699 PR tree-optimization/67953
9700 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
9702 2015-10-15 Jiong Wang <jiong.wang@arm.com>
9704 * config.gcc: Recognize "." in architecture base name for AArch64.
9706 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9708 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
9710 * config/mips/mips.c (mips_setup_incoming_varargs): Use
9711 ROUND_DOWN to calculate off.
9712 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
9713 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
9716 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
9718 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
9720 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
9721 Torvald Riegel <triegel@redhat.com>
9724 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
9725 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9726 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
9727 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
9728 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
9729 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9730 trechkpt, treclaim, tsr, ttest): New define_expands.
9731 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9732 __TM_FENCE__ for htm.
9733 * doc/extend.texi: Update documentation for htm builtins.
9735 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9738 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
9739 REG_CFA_EXPRESSION to aligned SSE stores.
9741 2015-10-14 Jeff Law <law@redhat.com>
9743 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
9744 num_threaded_edges for successful FSM threads too.
9746 2015-10-14 Richard Biener <rguenther@suse.de>
9748 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
9749 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
9750 (vect_get_vec_def_for_operand): Remove unused parameter.
9751 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
9752 (vect_create_epilog_for_reduction): Likewise.
9753 (vectorizable_reduction): Likewise.
9754 (vectorizable_live_operation): Likewise.
9755 * tree-vect-patterns.c (type_conversion_p): Likewise.
9756 (vect_recog_vector_vector_shift_pattern): Likewise.
9757 (check_bool_pattern): Likewise.
9758 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9759 (vect_analyze_slp_cost_1): Likewise.
9760 * tree-vect-stmts.c (process_use): Likewise.
9761 (vect_get_vec_def_for_operand): Do not handle reductions.
9762 (vect_get_vec_defs): Adjust.
9763 (vectorizable_mask_load_store): Likewise.
9764 (vectorizable_call): Likewise.
9765 (vectorizable_simd_clone_call): Likewise.
9766 (vect_get_loop_based_defs): Likewise.
9767 (vectorizable_conversion): Likewise.
9768 (vectorizable_assignment): Likewise.
9769 (vectorizable_shift): Likewise.
9770 (vectorizable_operation): Likewise.
9771 (vectorizable_store): Likewise.
9772 (vectorizable_load): Likewise.
9773 (vect_is_simple_cond): Likewise.
9774 (vectorizable_condition): Likewise.
9775 (vect_is_simple_use): Remove unused parameters.
9776 (vect_is_simple_use_1): Adjust and rename.
9778 2015-10-14 Richard Biener <rguenther@suse.de>
9780 PR tree-optimization/67915
9781 * match.pd: Handle comparisons of addresses of STRING_CSTs.
9782 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
9783 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
9784 stmt folding in favor of GIMPLE one.
9786 2015-10-14 Marek Polacek <polacek@redhat.com>
9788 PR tree-optimization/67815
9789 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
9790 (reassociate_bb): Call it.
9792 2015-10-14 Richard Biener <rguenther@suse.de>
9794 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9795 Reset info at start.
9796 (vect_analyze_group_access_1): Add debug print.
9797 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
9798 (vect_compute_single_scalar_iteration_cost): ... to this.
9799 (vect_analyze_loop_2): Adjust.
9800 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
9801 * tree-vectorizer.h: ... here.
9802 (add_stmt_info_to_vec): Remove.
9803 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
9805 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
9807 * targhooks.c (default_target_option_pragma_parse): Do not warn if
9808 called on behalf of "#pragma GCC pop_options".
9810 2015-10-14 Tom de Vries <tom@codesourcery.com>
9812 * cfganal.c (verify_no_unreachable_blocks): New function.
9813 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
9814 verify_no_unreachable_blocks.
9815 cfganal.h (verify_no_unreachable_blocks): Declare.
9817 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
9819 * common.opt: Add flag_checking.
9820 * system.h (CHECKING_P): Define.
9822 2015-10-13 Jakub Jelinek <jakub@redhat.com>
9823 Aldy Hernandez <aldyh@redhat.com>
9824 Ilya Verbin <ilya.verbin@intel.com>
9826 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
9827 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
9828 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
9829 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
9830 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
9831 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
9832 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
9833 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
9834 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
9835 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
9836 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9837 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9838 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
9839 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
9840 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
9841 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
9842 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
9843 (struct cgraph_simd_clone_arg): Adjust comment.
9844 * coretypes.h (struct gomp_ordered): New forward decl.
9845 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
9846 set critical clauses to it.
9847 (gimple_build_omp_ordered): Return gomp_ordered * instead of
9848 gimple *. Add CLAUSES argument, set ordered clauses to it.
9849 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
9851 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
9852 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
9853 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
9854 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
9855 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
9856 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
9857 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
9858 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
9860 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
9861 (gomp_critical): Add clauses field.
9862 (gomp_ordered): New struct.
9863 (is_a_helper <gomp_ordered *>::test): New inline.
9864 (gimple_build_omp_critical): Add CLAUSES argument.
9865 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
9866 instead of gimple *.
9867 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
9868 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
9869 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
9870 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
9872 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
9873 (dump_gimple_omp_target): Handle enter data and exit data.
9874 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
9875 (dump_gimple_omp_critical): Print clauses.
9876 (dump_gimple_omp_ordered): New function.
9877 (dump_gimple_omp_task): Handle taskloop.
9878 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
9880 * gimple-walk.c (walk_gimple_op): Walk clauses on
9881 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
9882 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
9883 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
9884 (struct gimplify_omp_ctx): Add loop_iter_var,
9885 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
9886 and target_firstprivatize_array_bases fields.
9887 (delete_omp_context): Release loop_iter_var.
9888 (gimplify_bind_expr): Handle ORT_NONE.
9889 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
9890 ORT_COMBINED_TARGET.
9891 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
9892 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
9893 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
9894 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
9895 ctx->target_map_scalars_firstprivate.
9896 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
9897 data sharing clauses. For data sharing clause with VLA decl
9898 on omp target/target data don't add firstprivate for the pointer.
9899 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
9900 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
9901 the addition of ORT_COMBINED_TARGET.
9902 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
9903 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
9904 pointers as zero length array sections and
9905 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
9907 (omp_check_private): Handle omp_member_access_dummy_var vars.
9908 (find_decl_expr): New function.
9909 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
9910 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
9911 Handle OMP_CLAUSE_GANG separately. Handle
9912 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9913 clauses. Diagnose linear clause on combined
9914 distribute {, parallel for} simd construct, unless it is the loop
9915 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
9916 Handle map clauses with COMPONENT_REF. Initialize
9917 ctx->target_map_scalars_firstprivate,
9918 ctx->target_firstprivatize_array_bases and
9919 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
9920 linear clause even to target region if combined. Remove
9921 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
9922 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
9923 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
9924 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
9925 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
9926 For linear clause on worksharing loop combined with parallel add
9927 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
9928 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
9929 omp_member_access_dummy_var vars. Add lastprivate clause to outer
9931 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
9932 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
9933 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
9935 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
9936 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
9937 in target body. Handle removal of struct mapping if struct is not
9938 seen in target body. Remove GOMP_MAP_STRUCT map clause on
9939 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
9940 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
9941 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
9942 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
9943 clause appear together. Handle
9944 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
9945 clause if it has map-type-modifier always. Handle
9946 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9948 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
9949 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
9951 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
9952 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
9953 iterators in doacross loops.
9954 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
9955 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
9956 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
9957 for the addition of ORT_COMBINED_TARGET.
9958 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
9959 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
9960 and OMP_TARGET_EXIT_DATA.
9961 (gimplify_omp_ordered): New function.
9962 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
9963 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
9964 Gimplify clauses on OMP_CRITICAL.
9965 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
9966 expand_GOMP_SIMD_ORDERED_END): New functions.
9967 * internal-fn.def (GOMP_SIMD_ORDERED_START,
9968 GOMP_SIMD_ORDERED_END): New internal functions.
9969 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
9970 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
9971 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
9972 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
9973 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
9974 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
9975 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
9976 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
9977 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
9978 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
9979 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
9980 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
9981 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
9982 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
9984 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
9985 GOMP_target_data_41, adjust type.
9986 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
9987 GOMP_target_update_41, adjust type.
9988 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
9990 (struct omp_for_data): Add ordered and simd_schedule fields.
9991 (omp_member_access_dummy_var, unshare_and_remap_1,
9992 unshare_and_remap, is_taskloop_ctx): New functions.
9993 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
9994 (extract_omp_for_data): Handle taskloops and doacross loops
9995 and simd schedule modifier.
9996 (omp_adjust_chunk_size): New function.
9997 (get_ws_args_for): Use it.
9998 (lookup_sfield): Change first argument to splay_tree_key,
9999 add overload with first argument tree.
10000 (maybe_lookup_field): Likewise.
10001 (use_pointer_for_field): Handle omp_member_access_dummy_var.
10002 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
10003 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
10004 (build_outer_var_ref): Add LASTPRIVATE argument, handle
10005 taskloops and omp_member_access_dummy_var vars.
10006 (build_sender_ref): Change first argument to splay_tree_key,
10007 add overload with first argument tree.
10008 (install_var_field): For mask & 8 use &DECL_UID as key instead
10009 of the tree itself.
10010 (fixup_child_record_type): Const qualify *.omp_data_i.
10011 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
10012 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
10013 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
10014 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
10015 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
10016 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
10017 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
10019 (add_taskreg_looptemp_clauses): New function.
10020 (scan_omp_parallel): Use it.
10021 (scan_omp_task): Likewise.
10022 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10023 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
10024 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10025 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
10026 sandwiched taskloop constructs. Type check
10027 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
10028 region. Diagnose depend(source) or depend(sink:...) on
10029 target constructs or task/taskloop.
10030 (handle_simd_reference): Use get_name.
10031 (lower_rec_input_clauses): Likewise. Ignore all
10032 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
10033 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
10034 before passing it to omp_clause_{default,copy}_ctor. Handle
10035 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
10036 lastprivate_firstprivate flag for linear that needs copyin and
10037 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
10038 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
10039 on taskloop lookup decl in outer context. Pass true to
10040 build_outer_var_ref lastprivate argument. Handle
10041 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
10042 outside of outer taskloop for.
10043 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
10045 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
10046 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
10047 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
10048 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
10049 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
10050 abstract origin. Handle omp_member_access_dummy_var vars.
10051 (expand_parallel_call): Use expand_omp_build_assign.
10052 (expand_task_call): Handle taskloop construct expansion. Add
10053 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
10054 integers. Add priority argument to GOMP_task* calls. Or in
10055 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
10057 (expand_omp_build_assign): Add prototype. Add AFTER
10058 argument, if true emit statements after *GSI_P and continue linking.
10059 (expand_omp_taskreg): Adjust expand_task_call caller.
10060 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
10061 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
10062 zero_iter2_bb and first_zero_iter2 arguments, handle computation
10063 of counts even for ordered loops.
10064 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
10065 (expand_omp_ordered_source, expand_omp_ordered_sink,
10066 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
10068 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
10069 clauses on worksharing loop. Handle DOACROSS loop expansion.
10070 (expand_omp_for_static_nochunk): Handle linear clauses on
10071 worksharing loop. Adjust expand_omp_for_init_counts
10073 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
10074 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
10075 expand_omp_for_init_counts callers.
10076 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
10078 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
10079 Handle doacross loops.
10080 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10081 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
10082 GOMP_target_{41,update_41,enter_exit_data} libcalls.
10083 (expand_omp): Don't expand ordered depend constructs here, record
10084 ord_stmt instead for later expand_omp_for_generic.
10085 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10086 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10087 clause as stand-alone directive.
10088 (lower_omp_ordered_clauses): New function.
10089 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
10090 don't lower anything.
10091 (lower_omp_for_lastprivate): Use last _looptemp_ clause
10092 on taskloop for comparison.
10093 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
10094 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
10095 expansion for linear adjustments.
10096 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10097 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
10098 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
10099 to tree * pointing to the stmt's clauses.
10100 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
10101 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10102 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
10103 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
10104 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10105 clauses. Always use short kind and 8-bit align shift.
10106 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10107 (struct lower_omp_regimplify_operands_data): New type.
10108 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10110 (lower_omp_1): Use lower_omp_regimplify_operands instead of
10111 gimple_regimplify_operands.
10112 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10113 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10114 clause as stand-alone directive.
10115 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10116 (simd_clone_mangle): Mangle the various linear kinds
10118 (simd_clone_adjust_argument_types): Handle
10119 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10120 (simd_clone_init_simd_arrays): Don't do anything for uval.
10121 (simd_clone_adjust): Handle
10122 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10123 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10124 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10125 * omp-low.h (omp_member_access_dummy_var): New prototype.
10126 * passes.def (pass_simduid_cleanup): Schedule another copy of the
10127 pass after all optimizations.
10128 * tree.c (omp_clause_code_name): Add entries for
10129 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10130 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10131 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
10132 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10133 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10134 OMP_CLAUSE_REDUCTION 5 arguments. Handle
10135 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10136 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10138 * tree-core.h (enum omp_clause_linear_kind): New.
10139 (struct tree_omp_clause): Change type of map_kind
10140 from unsigned char to unsigned int. Add subcode.if_modifier
10141 and subcode.linear_kind fields.
10142 (enum omp_clause_code): Add
10143 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10144 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10145 (OMP_CLAUSE_REDUCTION): Document
10146 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10147 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10148 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10149 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
10151 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
10153 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10155 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10156 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10158 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10159 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10160 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10161 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10162 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10163 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10164 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10165 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10166 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10167 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10168 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10169 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10170 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10171 * tree-inline.c (remap_gimple_stmt): Handle clauses on
10172 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
10173 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10174 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10175 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10176 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10177 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10178 (convert_local_omp_clauses): Likewise.
10179 * tree-pretty-print.c (dump_omp_clause): Handle
10180 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10181 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10182 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10183 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10184 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
10185 GOMP_MAP_FORCE_DEALLOC. Handle
10186 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10187 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10188 and clauses on OMP_ORDERED and OMP_CRITICAL.
10189 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10190 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10191 (vectorize_loops): Adjust comments.
10192 (pass_simduid_cleanup::execute): Likewise.
10193 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10194 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10195 * wide-int.h (wi::gcd): New.
10197 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10199 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10200 (ix86_function_arg_advance): Ditto.
10201 (ix86_function_arg): Ditto.
10202 (ix86_gimplify_va_arg): Ditto.
10203 (ix86_class_max_nregs): Ditto.
10204 (inline_memory_move_cost): Ditto.
10205 (ix86_set_reg_reg_cost): Ditto.
10206 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10208 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
10210 PR middle-end/67912
10211 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10213 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10215 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10216 ROUND_UP macro and UNITS_PER_WORD * 2.
10217 * config/sparc/sparc.c (sparc_compute_frame_size):
10218 Use ROUND_UP and ROUND_DOWN macros where applicable.
10219 (function_arg_record_value, function_arg_record_value_1)
10220 (function_arg_record_value_1): Ditto.
10221 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10222 alignment to double-word.
10223 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10224 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10227 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
10229 * rtl.h (print_insn): Fix prototype.
10231 2015-10-13 Tom de Vries <tom@codesourcery.com>
10233 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10234 -1. Add assert that returned entry matches phi argument.
10235 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10236 free_stmt_vec_info_vec ...
10237 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
10240 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
10242 PR tree-optimization/67909, 67947
10243 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10244 really skip the inner loop.
10246 2015-10-13 Jeff Law <law@redhat.com>
10248 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10249 Allow single block jump threading paths.
10251 2015-10-13 Tom de Vries <tom@codesourcery.com>
10253 PR tree-optimization/67476
10254 * doc/invoke.texi (@item parloops-schedule): New item.
10255 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10256 * tree-parloops.c: Include params-enum.h.
10257 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10259 2015-10-13 Tom de Vries <tom@codesourcery.com>
10261 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10262 * params-enum.h: New file.
10263 * opts.c (handle_param): Handle case that param arg is a string.
10264 * params-list.h: Handle DEFPARAMENUM5 in params.def.
10265 * params.c (find_param): New function, factored out of ...
10266 (set_param_value): ... here.
10267 (param_string_value_p): New function.
10268 * params.h (struct param_info): Add value_names field.
10269 (find_param, param_string_value_p): Declare.
10271 2015-10-13 Tom de Vries <tom@codesourcery.com>
10273 PR tree-optimization/67476
10274 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10276 2015-10-13 Richard Biener <rguenther@suse.de>
10278 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10279 the data dependence vector.
10280 (vect_peeling_hash_insert): Get the peeling hash table as argument.
10281 (vect_peeling_hash_get_lowest_cost): Likewise.
10282 (vect_enhance_data_refs_alignment): Adjust.
10283 (struct _vect_peel_info, struct _vect_peel_extended_info,
10284 struct peel_info_hasher): Move from ...
10285 * tree-vectorizer.h: ... here.
10286 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10287 (LOOP_VINFO_PEELING_HTAB): Likewise.
10288 (struct _loop_vec_info): Remove min_profitable_iters and
10289 peeling_htab members.
10290 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10292 (destroy_loop_vec_info): Adjust.
10293 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10294 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10295 to estimate alias versioning cost.
10296 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10298 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
10300 * real.h (real_isinteger): Declare.
10301 * real.c (real_isinteger): New function.
10302 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10303 if y is an even integer.
10305 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10308 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10309 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10310 counts when these are more informative.
10312 2015-10-12 Jeff Law <law@redhat.com>
10314 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10315 (fsm_find_control_stmt_paths): Change name of first argument to
10316 more accurately relfect what it really is. Handle simplification
10317 of GIMPLE_COND after finding a thread path for NAME.
10318 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10319 nontrivial conditions to be handled by FSM threader.
10320 (thread_through_normal_block): Extract the name to looup via
10321 FSM threader from COND_EXPR.
10323 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10324 restriction that traced SSA_NAME is a user variable.
10326 2015-10-12 Tom de Vries <tom@codesourcery.com>
10328 PR tree-optimization/67476
10329 * omp-low.c (expand_omp_for_generic): Add missing phis.
10331 2015-10-12 Tom de Vries <tom@codesourcery.com>
10333 PR tree-optimization/67476
10334 * omp-low.c (expand_omp_for_generic): Handle simple latch.
10336 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
10338 * config/aarch64/aarch64-simd-builtins.def: Update builtins
10339 tables: add tbl3 and tbx4.
10340 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10341 (aarch64_tbx4v8qi): New.
10342 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10343 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10344 Rewrite using builtin functions.
10345 * config/aarch64/iterators.md (UNSPEC_TBX): New.
10347 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10349 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10351 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10352 Use ROUND_UP and ROUND_DOWN macros where applicable.
10353 (rs6000_darwin64_record_arg_flush): Ditto.
10354 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10355 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10358 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10360 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10361 (AARCH64_ROUND_DOWN): Ditto.
10362 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10364 2015-10-12 Richard Biener <rguenther@suse.de>
10367 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10368 code that analyzes IVs on each stmt but in a cheaper way avoiding
10369 quadratic behavior.
10371 2015-10-12 Nick Clifton <nickc@redhat.com>
10373 * config/msp430/msp430.c (msp430_mcu_names): Rename to
10374 msp430_mcu_data, add fields for ISA and hardware multiply
10375 support. Import latest data from the devices.csv file.
10376 (msp430_override_option): Use the data from the new array.
10377 (msp430_use_f5_series_hwmult): Likewise.
10378 (use_32bit_hwmult): Likewise.
10379 (msp430_no_hwmult): Likewise.
10380 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10382 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10383 not recognised then no hardware multiply support is assumed and
10384 that only the MSP430 ISA is allowed.
10386 2015-10-12 Richard Biener <rguenther@suse.de>
10388 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10390 (vect_analyze_loop_2): ... here.
10392 2015-10-11 Jason Merrill <jason@redhat.com>
10395 * expr.c (store_field): Call store_constructor directly when
10396 storing a CONSTRUCTOR into a target smaller than its type.
10397 Guard against unsafe bitwise copy.
10399 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10401 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10402 counts when these are more informative.
10404 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10406 * tree-profile.c (tree_profiling): Do not clear
10407 pure/const when not instrumenting.
10408 (pass tree_profile): Add dump of symtab.
10410 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10412 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10414 (fold_addr_of_array_ref_difference): Likewise.
10416 2015-10-11 Jeff Law <law@redhat.com>
10418 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10419 tree-ssa-threadbackward.c.
10420 (fsm_find_control_statement_thread_paths): Likewise.
10421 (thread_through_normal_block): Break out FSM bits and move them
10422 into a new function in tree-ssa-threadbackward.c. Call new function
10424 Minimize header file usage.
10425 * tree-ssa-threadbackward.h: New file.
10426 * tree-ssa-threadbackward.c: Likewise.
10427 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10429 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
10431 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10433 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
10435 PR rtl-optimization/67864
10436 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10437 fallthrough edges for conditional jumps. Don't sort candidate
10438 edges if not optimizing for speed.
10440 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10442 * defaults.h (REVERSE_CONDITION): New default definition.
10443 * jump.c (reversed_comparison_code_parts): Adjust.
10445 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10447 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10448 check HARD_FRAME_POINTER_IS_ARG_POINTER.
10450 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10452 * defaults.h (FRAME_ADDR_RTX): New default definition.
10453 * builtins.c (expand_builtin_return_addr): Adjust.
10455 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10457 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10458 * builtins.c (expand_builtin_return_addr): Adjust.
10460 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10462 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10463 * builtins.c (expand_builtin_return_addr): Adjust.
10464 * doc/tm.texi: Likewise.
10465 * doc/tm.texi.in: Likewise.
10466 * except.c (expand_builtin_unwind_init): Likewise.
10468 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10470 * builtins.c (expand_builtin_return_addr): Adjust.
10471 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10473 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10475 * tree.c (type_with_interoperable_signedness): New.
10476 (gimple_canonical_types_compatible_p): Use it.
10477 * tree.h (type_with_interoperable_signedness): Declare
10479 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10481 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10482 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10483 when OEP_ADDRESS_OF is se.
10485 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10486 Sebastian Pop <s.pop@samsung.com>
10488 * graphite-dependences.c (scop_get_dependences): Add dump of the
10489 data dependence graph.
10490 * graphite-poly.c (print_isl_union_map): New.
10491 (debug_isl_union_map): New.
10492 * graphite-poly.h (print_isl_union_map): Declare.
10493 (debug_isl_union_map): Declare.
10495 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10496 Sebastian Pop <s.pop@samsung.com>
10498 * graphite-poly.c (print_iteration_domain): Remove verbosity.
10499 Remove OpenScop formatting.
10500 (print_iteration_domains): Same.
10501 (debug_iteration_domain): Same.
10502 (debug_iteration_domains): Same.
10505 (dump_gbb_cases): Same.
10506 (dump_gbb_conditions): Same.
10507 (print_pdrs): Same.
10508 (debug_pdrs): Same.
10509 (print_pbb_body): Same.
10511 (print_scop_params): Same.
10512 (print_scop_context): Same.
10513 (print_scop): Same.
10514 (debug_pbb_domain): Same.
10516 (debug_scop_context): Same.
10517 (debug_scop): Same.
10518 (debug_scop_params): Same.
10519 * graphite-poly.h: Same.
10520 * graphite.c (graphite_transform_loops): Same.
10522 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10524 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10525 call that isn't needed.
10527 2015-10-09 Jeff Law <law@redhat.com>
10529 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
10530 rather than moving each name to the freelist individually.
10532 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
10534 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
10535 * frame-header-opt.c: New file.
10536 * config/mips/mips-proto.h (mips_register_frame_header_opt):
10538 * config/mips/mips.c (mips_compute_frame_info): Check
10539 optimize_call_stack flag.
10540 (mips_option_override): Register new frame_header_opt pass.
10541 (mips_frame_info, mips_int_mask, mips_shadow_set,
10542 machine_function): Move these types to...
10543 * config/mips/mips.h: here.
10544 (machine_function): Add does_not_use_frame_header and
10545 optimize_call_stack fields.
10546 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
10547 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
10548 Document new flags.
10549 * config/mips/mips.opt (mframe-header-opt): Add new option.
10551 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
10553 * config/i386/i386.c
10554 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
10555 ROUND_DOWN where applicable.
10557 2015-10-09 Jeff Law <law@redhat.com>
10559 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
10562 2015-10-09 Renlin Li <renlin.li@arm.com>
10564 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
10565 operands[0] and operands[2].
10566 (neon_vtrn<mode>_insn): Likewise.
10567 (neon_vzip<mode>_insn): Likewise.
10569 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
10571 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
10572 ((X & C2) << C1): Expand to...
10573 (X {&,^,|} C2 << C1): ...This.
10574 ((X & C2) >> C1): Expand to...
10575 (X {&,^,|} C2 >> C1): ...This.
10577 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
10580 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
10581 Adjust embedded rounding/SAE specifier position.
10582 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
10583 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
10584 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
10585 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
10586 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
10588 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
10590 2015-10-09 Martin Jambor <mjambor@suse.cz>
10592 tree-optimization/67794
10593 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
10594 between types of state,ents but accept original definitions as a
10596 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
10597 iterate over definitions.
10599 2015-10-09 James Norris <jnorris@codesourcery.com>
10601 * config/rs6000/rs6000.c (rs6000_offload_options): New.
10602 (TARGET_OFFLOAD_OPTIONS): New.
10604 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
10606 PR middle-end/67891
10607 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
10609 PR middle-end/67766
10610 * function.c (expand_function_end): Move return value
10611 promotion past the handling of PARALLELs and CONCATs.
10613 PR rtl-optimization/67828
10614 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
10615 (tree_may_unswitch_on): Don't unswitch on expressions
10616 involving undefined values.
10618 2015-10-09 Richard Biener <rguenther@suse.de>
10620 * genmatch.c (print_operand): Fix formatting.
10621 (dt_node::append_simplify): Warn for multiple simplifiers
10622 that match the same pattern.
10623 * match.pd (log (exp @0)): Remove duplicates.
10625 2015-10-09 Richard Biener <rguenth@suse.de>
10628 * gimple-fold.c (optabs-query.h): Include
10629 (gimple_fold_builtin_memory_op): Allow unaligned stores
10630 when movmisalign_optabs are available.
10632 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10635 * config/arm/arm.md (movmisalign<mode>): New.
10636 * config/arm/iterators.md (HSI): New.
10638 2015-10-09 Richard Biener <rguenther@suse.de>
10640 PR tree-optimization/67891
10641 * gimple-match.h (gimple_simplified_result_is_gimple_val):
10643 (gimple_resimplify1): Declare.
10644 (gimple_resimplify2): Likewise.
10645 (gimple_resimplify3): Likewise.
10646 * gimple-match-head.c (gimple_resimplify1): Export.
10647 (gimple_resimplify2): Likewise.
10648 (gimple_resimplify3): Likewise.
10649 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
10650 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10651 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
10652 to avoid creating stmts without VN info.
10654 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
10656 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
10659 2015-10-08 Jeff Law <law@redhat.com>
10661 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
10662 and release_ssa_name in two places.
10663 (gimple_stringop_fixed_value): Similarly.
10665 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
10668 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
10669 unlink_stmt_vdef and release_ssa_name_fn.
10671 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
10674 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
10676 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
10677 SSE register save area to 16 bytes only if the incoming stack
10678 boundary is no less than 16 bytes.
10680 2015-10-08 Jeff Law <law@redhat.com>
10682 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
10683 release_ssa_name. Fix typo in comment.
10685 2015-10-08 Nathan Sidwell <nathan@acm.org>
10687 * config/nvptx/nvptx.h (struct machine_function): Add comment.
10688 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
10689 may return pointer as well as in memory.
10690 (nvptx_output_return): Likewise.
10692 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10694 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
10695 (fold_builtin_1): Update accordingly. Handle constant arguments here.
10696 * match.pd: Add rules previously handled by fold_builtin_sqrt
10697 and fold_builtin_cbrt.
10699 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10701 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
10702 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
10703 * fold-const.h (tree_unary_nonnegative_warnv_p)
10704 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10705 (tree_expr_nonnegative_warnv_p): Add depth parameters.
10706 * fold-const.c: Include gimple-fold.h and params.h.
10707 (tree_ssa_name_nonnegative_warnv_p): New function.
10708 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
10709 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10710 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
10711 Add a depth parameter and increment it for recursive calls to
10712 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
10713 to handle SSA names.
10714 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
10715 (gimple_stmt_nonnegative_warnv_p): Declare.
10716 * tree-vrp.c (remove_range_assertions): Remove assert that condition
10717 cannot be proven false.
10718 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
10719 (gimple_stmt_nonnegative_warnv_p): Move to...
10720 * gimple-fold.c: ...here. Add depth parameters and pass them
10721 down to the tree routines. Accept statements that aren't
10722 assignments or calls but just return false for them.
10723 (gimple_val_nonnegative_real_p): Delete.
10724 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10725 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
10726 Check HONOR_NANs first.
10728 2015-10-08 Martin Jambor <mjambor@suse.cz>
10730 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
10733 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10735 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
10736 in the tail of outer-loop.
10738 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
10740 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
10743 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10745 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
10746 "cfghooks.h", add prototypes for introduced new functions.
10747 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
10748 checks on ability of loop unswitching to tree_unswitch_single_loop;
10749 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
10750 on innermost loop check.
10751 (tree_unswitch_single_loop): Add all required checks on ability of
10752 loop unswitching under zero recursive level guard.
10753 (tree_unswitch_outer_loop): New function.
10754 (find_loop_guard): Likewise.
10755 (empty_bb_without_guard_p): Likewise.
10756 (used_outside_loop_p): Likewise.
10757 (get_vop_from_header): Likewise.
10758 (hoist_guard): Likewise.
10759 (check_exit_phi): Likewise.
10761 2015-10-08 Marek Polacek <polacek@redhat.com>
10763 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
10766 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10769 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
10770 create_tmp_var_raw instead of create_tmp_var.
10772 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
10774 * expr.c (store_expr_with_bounds): Handle aggregate moves from
10776 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
10777 to define gimple type system; compare aggregates only by size.
10779 2015-10-07 Jeff Law <law@redhat.com>
10781 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
10782 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
10783 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
10786 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10787 Sebastian Pop <s.pop@samsung.com>
10789 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
10790 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
10791 (generate_isl_schedule): Same.
10792 * graphite-optimize-isl.c (scop_get_domains): Same.
10793 (apply_schedule_map_to_scop): Same.
10794 * graphite-poly.c (print_iteration_domains): Same.
10795 (remove_gbbs_in_scop): Same.
10798 (print_scop): Same.
10799 * graphite-poly.h (struct scop): Rename bbs to pbbs.
10800 (SCOP_BBS): Remove.
10801 * graphite-scop-detection.c (compare_bb_depths): Remove.
10802 (graphite_sort_dominated_info): Remove.
10803 (try_generate_gimple_bb): Move out of scop_detection.
10804 (all_non_dominated_preds_marked_p): Remove.
10805 (build_scop_bbs_1): Remove.
10806 (build_scop_bbs): Remove.
10807 (nb_pbbs_in_loops): Do not use SCOP_BBS.
10808 (find_scop_parameters): Same.
10809 (sese_dom_walker): Rename gather_bbs.
10810 (before_dom_children): Call try_generate_gimple_bb and collect gbb
10812 (build_scops): Call gather_bbs.
10813 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
10814 (add_conditions_to_constraints): Same.
10815 (build_scop_iteration_domain): Same.
10816 (build_scop_drs): Same.
10817 (new_pbb_from_pbb): Same.
10818 * sese.c (new_sese_info): Create bbs.
10819 * sese.h (struct sese_info_t): Add bbs.
10821 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
10823 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
10824 encoding in 64-bit mode.
10826 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
10829 * config/i386/i386.c (ix86_option_override_internal): Always use
10830 8-byte minimum stack boundary in 64-bit mode.
10831 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
10832 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
10833 Add a REG_CFA_EXPRESSION note if needed.
10834 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
10835 (ix86_handle_force_align_arg_pointer_attribute): New.
10836 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
10837 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
10838 with ix86_handle_force_align_arg_pointer_attribute.
10839 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
10841 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10842 Sebastian Pop <s.pop@samsung.com>
10844 * graphite-scop-detection.c (parameter_index_in_region): Remove
10845 use of SESE_ADD_PARAMS.
10846 (find_scop_parameters): Same.
10847 * sese.c (new_sese_info): Same.
10848 * sese.h (struct sese_info_t): Remove add_params.
10849 (SESE_ADD_PARAMS): Remove.
10851 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10852 Sebastian Pop <s.pop@samsung.com>
10854 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
10857 (copy_internal_parameters): Same.
10858 (translate_isl_ast_to_gimple): Use an sese_l.
10859 (build_iv_mapping): Same.
10860 * graphite-poly.c (new_sese): Rename new_sese_info.
10861 (free_sese): Rename free_sese_info.
10862 * graphite-poly.h (struct scop): Use an sese_info_p.
10863 (scop_set_region): Same.
10864 * graphite-scop-detection.c (struct sese_l): Moved...
10865 (get_entry_bb): Moved...
10866 (get_exit_bb): Moved...
10867 (parameter_index_in_region_1): Use an sese_info_p.
10868 (parameter_index_in_region): Same.
10869 (scan_tree_for_params): Same.
10870 (find_params_in_bb): Same.
10871 (sese_dom_walker): Use an sese_l.
10872 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
10873 (reduction_phi_p): Same.
10874 (parameter_index_in_region_1): Use an sese_info_p.
10875 (propagate_expr_outside_region): Use an sese_l.
10876 * graphite.c: Replace uses of SCOP_REGION.
10877 * sese.c (sese_record_loop): Use an sese_info_p.
10878 (build_sese_loop_nests): Same.
10879 (sese_build_liveouts_use): Same.
10880 (sese_build_liveouts_bb): Same.
10881 (sese_build_liveouts_bb): Same.
10882 (sese_bad_liveouts_use): Same.
10883 (sese_reset_debug_liveouts_bb): Same.
10884 (sese_build_liveouts): Same.
10885 (new_sese): Renamed new_sese_info.
10886 (free_sese): Renamed free_sese_info.
10887 (set_rename): Use an sese_info_p.
10888 (graphite_copy_stmts_from_block): Same.
10889 (copy_bb_and_scalar_dependences): Same.
10890 (outermost_loop_in_sese_1): Use an sese_l.
10891 (outermost_loop_in_sese): Same.
10892 (if_region_set_false_region): Use an sese_info_p.
10893 (move_sese_in_condition): Same.
10894 (scalar_evolution_in_region): Use an sese_l.
10895 * sese.h (struct sese_l): ... here.
10896 (SESE_ENTRY): Remove.
10897 (SESE_ENTRY_BB): Remove.
10898 (SESE_EXIT): Remove.
10899 (SESE_EXIT_BB): Remove.
10900 (sese_contains_loop): Use an sese_info_p.
10901 (sese_nb_params): Same.
10902 (bb_in_sese_p): Use an sese_l.
10903 (stmt_in_sese_p): Same.
10904 (defined_in_sese_p): Same.
10905 (loop_in_sese_p): Same.
10906 (sese_loop_depth): Same.
10907 (struct ifsese_s): Use an sese_info_p.
10908 (gbb_loop_at_index): Use an sese_l.
10909 (nb_common_loops): Same.
10910 (scev_analyzable_p): Same.
10912 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10914 * config/i386/i386.c (ix86_conditional_register_usage): Use
10915 CALL_USED_REGISTERS_MASK.
10916 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
10918 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10921 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
10922 * configure: Regenerated.
10924 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10927 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
10928 (ix86_set_current_function): This.
10929 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
10931 2015-10-07 Richard Biener <rguenther@suse.de>
10933 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
10934 (vinfo_for_stmt): Adjust.
10935 (set_vinfo_for_stmt): Likewise.
10936 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
10937 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
10938 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
10940 (vect_analyze_loop_1): Remove.
10941 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
10942 inner loop when vectorizing an outer loop by splitting out from ...
10943 (vect_analyze_loop_form): ... here.
10945 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10948 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
10949 Use create_tmp_var_raw instead of create_tmp_var.
10951 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
10953 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
10954 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
10955 * real.c (CACHED_FRACTION): New helper macro.
10956 (dconst_third_ptr): Use it.
10957 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
10958 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
10960 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
10962 2015-10-06 Jeff Law <law@redhat.com>
10964 PR tree-optimization/67816
10965 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
10966 from remove_jump_threads_starting_at. Accept an edge rather than
10968 * tree-ssa-threadupdate.c (removed_edges): New hash table.
10969 (remove_jump_threads_including): Note edges that get removed from
10970 the CFG for later pruning of jump threading paths including them.
10971 (thread_through_all_blocks): Remove paths which include edges that
10973 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
10974 on each outgoing edges when optimizing away a control statement.
10976 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10978 * reorg.c (emit_delay_sequence): Store list of delay slot insns
10979 in a vector instead of rtx_insn_list.
10980 (add_to_delay_list): Likewise.
10981 (delete_from_delay_slot): Likewise.
10982 (optimize_skip): Likewise.
10983 (redirect_with_delay_list_safe_p): Likewise.
10984 (check_annul_list_true_false): Likewise.
10985 (steal_delay_list_from_target): Likewise.
10986 (steal_delay_list_from_fallthrough): Likewise.
10987 (redundant_insn): Likewise.
10988 (fill_simple_delay_slots): Likewise.
10989 (fill_slots_from_thread): Likewise.
10990 (fill_eager_delay_slots): Likewise.
10991 (relax_delay_slots): Likewise.
10993 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
10995 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
10996 For -mgpopt=local, also exclude unintialized common symbols.
10997 * doc/invoke.texi (Nios II Options): Document the change.
10999 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11001 * config/aarch64/iterators.md (vwcore): Add missing cases for
11004 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11005 Sebastian Pop <s.pop@samsung.com>
11007 * graphite-poly.c (new_scop): Initialize drs.
11008 * graphite-poly.h (struct dr_info): New.
11009 (struct scop): Add drs.
11010 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
11011 (pdr_add_memory_accesses): Same.
11012 (build_poly_dr): Same.
11013 (build_alias_set): Same.
11014 (build_scop_drs): Same.
11015 (build_pbb_drs): Remove.
11016 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
11017 * tree-data-ref.h (data_reference): Remove alias_set.
11019 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11020 Sebastian Pop <s.pop@samsung.com>
11022 * graphite-poly.c (free_data_refs_aux): Remove.
11023 (free_gimple_poly_bb): Do not call free_data_refs_aux.
11024 * graphite-poly.h (struct base_alias_pair): Remove.
11025 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
11026 base_alias_pair and dr->aux.
11027 (build_alias_set): Same.
11028 * tree-data-ref.c (create_data_ref): Initialize alias_set.
11029 * tree-data-ref.h (data_reference): Add alias_set.
11031 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11032 Sebastian Pop <s.pop@samsung.com>
11034 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
11035 Do not set PDR_BASE_OBJECT_SET.
11036 * graphite-poly.h (poly_dr): Same.
11037 (PDR_BASE_OBJECT_SET): Remove.
11038 (new_poly_dr): Update decl.
11039 * graphite-sese-to-poly.c (build_poly_dr): Update call to
11041 (write_alias_graph_to_ascii_dimacs): Remove.
11042 (write_alias_graph_to_ascii_dot): Remove.
11043 (write_alias_graph_to_ascii_ecc): Remove.
11044 (dr_same_base_object_p): Remove.
11045 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
11047 (build_base_obj_set_for_drs): Remove.
11048 (dump_alias_graphs): Remove.
11049 (build_scop_drs): Remove dead code.
11051 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11052 Peter Bergner <bergner@vnet.ibm.com>
11055 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
11056 allow registers, but provide insns for the combiner to create for
11057 loads from memory. Separate VSX code from non-VSX code. For
11058 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
11059 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
11060 so that registers come before memory operations. Drop support from
11061 converting DFmode to TFmode, if the DFmode value is in a GPR
11063 (extenddftf2_fprs): Likewise.
11064 (extenddftf2_internal): Likewise.
11065 (extenddftf2_vsx): Likewise.
11066 (extendsftf2): In the expander, only allow registers, but provide
11067 insns for the combiner to create for stores and loads.
11069 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11071 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
11072 from the decl parameter.
11074 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
11077 * gimple-fold.c (gimple_fold_builtin): Add break after
11078 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
11080 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
11082 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
11083 to scop->isl_context.
11085 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11087 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
11088 (output_probe_stack_range): Rotate the loop and simplify.
11089 (thumb1_expand_prologue): Tweak sorry message.
11090 * config/arm/arm.md (probe_stack): Use bare string.
11092 2015-10-06 Nick Clifton <nickc@redhat.com>
11094 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
11096 2015-10-06 Nick Clifton <nickc@redhat.com>
11098 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
11099 (ATTR_PERSIST): New constant.
11100 (msp430_data_attr): New function - verifies an attribute that only
11101 applies to variables.
11102 (msp430_attributes): Add noinit and persistent attributes.
11103 (noinit_section): New variable.
11104 (presis_section): New variable.
11105 (TARGET_ASM_INIT_SECTIONS): Define.
11106 (msp430_init_sections): New function - initialises the noinit and
11107 persist section variables.
11108 (msp430_select_section): Add support for noinit and persist
11110 (msp430_section_type_flags): Likewise.
11111 * doc/extend.texi: Document the reent, critical, wakeup, noinit
11112 and persistent attributes.
11114 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11115 Sebastian Pop <s.pop@samsung.com>
11117 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11118 (no_violations): Remove.
11119 (subtract_commutative_associative_deps): Remove.
11120 (compute_deps): Do not call subtract_commutative_associative_deps.
11121 (transform_is_safe): Remove.
11122 (graphite_legal_transform): Remove.
11123 * graphite-poly.h (graphite_legal_transform): Remove.
11125 2015-10-05 Aditya Kumar <hiraditya@msn.com>
11127 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11128 which are in this region are passed so gcc_assert and remove redundant
11130 * sese.c (sese_build_liveouts): Pass only those bbs which are not
11132 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11133 gcc_assert on that and remove unnecessary computation.
11134 (sese_build_liveouts_use): Same.
11136 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11138 * graphite-dependences.c (scop_get_reads): Renamed scop->context
11139 to scop->param_context.
11140 (scop_get_must_writes): Same.
11141 (scop_get_may_writes): Same.
11142 (scop_get_original_schedule): Same.
11143 (scop_get_transformed_schedule): Same.
11144 (subtract_commutative_associative_deps): Same.
11145 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11146 (generate_isl_context): Same.
11147 (generate_isl_schedule): Same.
11148 (scop_to_isl_ast): Same.
11149 (graphite_regenerate_ast_isl): Same.
11150 * graphite-optimize-isl.c (scop_get_domains): Same.
11151 (optimize_isl): Renamed scop->context to scop->param_context.
11152 * graphite-poly.c (new_poly_bb): Change the type of argument to
11154 (new_scop): Renamed scop->context to scop->param_context.
11156 (print_scop_context): Same.
11157 * graphite-poly.h (new_poly_dr): Change the type of argument from
11158 void* to data_reference_p.
11159 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11160 (new_poly_bb): Change the type of argument from void* to
11162 (pbb_set_black_box): Same.
11163 (struct scop): Rename context to param_context, ctx to isl_context.
11164 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11165 Move declarations closer to assignment.
11166 (find_params_in_bb): Same.
11167 (find_scop_parameters): Same.
11168 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11169 Global to be used for statement IDs.
11170 (isl_id_for_pbb): Use ssa_name_version_typesize.
11171 (simple_copy_phi_p): Move declarations closer to assignment.
11172 (build_pbb_scattering_polyhedrons): Same.
11173 (build_scop_scattering): Same.
11174 (isl_id_for_ssa_name): Same.
11175 (extract_affine_name): Same.
11176 (extract_affine_int): Same.
11177 (extract_affine): Same.
11178 (set_scop_parameter_dim): Use renamed member.
11179 (build_loop_iteration_domains): Same.
11180 (add_param_constraints): Same.
11181 (build_scop_iteration_domain): Same.
11182 (pdr_add_data_dimensions): Same.
11183 (build_poly_dr): Same.
11184 (build_scop_drs): Move declarations closer to assignment.
11185 (analyze_drs_in_stmts): Same.
11186 (insert_out_of_ssa_copy): Same.
11187 (insert_out_of_ssa_copy_on_edge): Same.
11188 (propagate_expr_outside_region): Same.
11189 (rewrite_phi_out_of_ssa): Same.
11190 (rewrite_degenerate_phi): Same.
11191 (rewrite_reductions_out_of_ssa): Same.
11192 (rewrite_cross_bb_scalar_dependence): Same.
11193 (handle_scalar_deps_crossing_scop_limits): Same.
11194 (rewrite_cross_bb_scalar_deps): Same.
11195 * graphite.c (graphite_transform_loops): Use renamed member.
11197 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
11200 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11201 create_tmp_var_raw instead of create_tmp_var.
11203 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11206 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11207 Use create_tmp_var_raw instead of create_tmp_var.
11209 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
11212 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11213 split for upper-bank registers when target does not support
11215 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11216 split when target does not support AVX512VL.
11218 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
11221 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11222 Adjust to use create_tmp_var_raw instead of create_tmp_var.
11224 2015-10-06 Nick Clifton <nickc@redhat.com>
11226 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11229 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11231 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11232 (case ${target}): Add znver1.
11233 * config/i386/cpuid.h(bit_CLZERO): Define.
11234 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11235 -march=native recognize znver1 processors.
11236 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11237 znver1, clzero def_and_undef.
11238 * config/i386/i386.c (struct processor_costs znver1_cost): New.
11239 (m_znver1): New definition.
11240 (m_AMD_MULTIPLE): Includes m_znver1.
11241 (processor_target_table): Add znver1 entry.
11242 (ix86_target_string) : Add clzero entry.
11243 (static const char *const cpu_names): Add znver1 entry.
11244 (ix86_option_override_internal): Add znver1 instruction sets.
11245 (PTA_CLZERO) : New definition.
11246 (ix86_option_override_internal): Handle new clzerooption.
11247 (ix86_issue_rate): Add znver1.
11248 (ix86_adjust_cost): Add znver1.
11249 (ia32_multipass_dfa_lookahead): Add znver1.
11250 (has_dispatch): Add znver1.
11251 * config/i386/i386.h (TARGET_znver1): New definition.
11252 (TARGET_CLZERO): Define.
11253 (TARGET_CLZERO_P): Define.
11254 (struct ix86_size_cost): Add TARGET_ZNVER1.
11255 (enum processor_type): Add PROCESSOR_znver1.
11256 * config/i386/i386.md (define_attr "cpu"): Add znver1.
11257 (set_attr znver1_decode): New definitions for znver1.
11258 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11260 * config/i386/mmx.md (set_attr znver1_decode): New definitions
11262 * config/i386/sse.md (set_attr znver1_decode): Likewise.
11263 * config/i386/x86-tune.def: Add znver1 tunings.
11264 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11265 * doc/invoke.texi: Add details about znver1
11267 2015-10-06 Richard Biener <rguenther@suse.de>
11269 PR tree-optimization/67859
11270 * tree-ssa-pre.c (create_expression_by_pieces): Properly
11271 discard not inserted stmts.
11273 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
11275 * doc/extend.texi (Template Instantiation): Reorder options and
11276 de-emphasize -frepo.
11277 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11278 example instead of -frepo.
11280 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11283 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11284 use create_tmp_var_raw rather than create_tmp_var.
11286 2015-10-06 Richard Biener <rguenther@suse.de>
11288 * tree-vectorizer.h (vec_info): New base class for...
11289 (_loop_vec_info): ... this and ...
11290 (_bb_vec_info): ... this.
11291 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11292 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11293 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11294 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11295 vect_destroy_datarefs): Adjust interface to take a vec_info *
11296 rather than both a loop_vec_info and a bb_vec_info argument.
11297 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11298 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11299 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11300 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11302 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11303 (destroy_loop_vec_info, vect_analyze_loop_2,
11304 vect_is_simple_reduction_1, get_initial_def_for_induction,
11305 vect_create_epilog_for_reduction, vectorizable_reduction,
11306 vectorizable_live_operation, vect_transform_loop): Adjust.
11307 * tree-vect-patterns.c (type_conversion_p,
11308 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11309 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11310 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11311 check_bool_pattern, vect_recog_bool_pattern,
11312 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11313 * tree-vect-slp.c (vect_get_and_check_slp_defs,
11314 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11315 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11316 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11317 (new_bb_vec_info): Initialize base classs.
11318 * tree-vect-stmts.c (record_stmt_cost, process_use,
11319 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11320 vectorizable_mask_load_store, vectorizable_call,
11321 vectorizable_simd_clone_call, vectorizable_conversion,
11322 vectorizable_assignment, vectorizable_shift,
11323 vectorizable_operation, vectorizable_store,
11324 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11325 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11326 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11328 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
11331 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11332 create_tmp_var_raw rather than create_tmp_var.
11334 2015-10-05 Marek Polacek <polacek@redhat.com>
11336 * tree-ssa-loop-im.c
11337 (move_computations_dom_walker::before_dom_children): Don't set
11338 SSA_NAME_ANTI_RANGE_P.
11339 * tree-ssa-phiopt.c (value_replacement): Likewise.
11341 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11342 Sebastian Pop <s.pop@samsung.com>
11344 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11346 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11347 Sebastian Pop <s.pop@samsung.com>
11349 * graphite-poly.c (new_gimple_poly_bb): ... here.
11350 (free_data_refs_aux): ... here.
11351 (free_gimple_poly_bb): ... here.
11352 (remove_gbbs_in_scop): ... here.
11353 (new_scop): Call new_sese.
11354 (free_scop): Call remove_gbbs_in_scop and free_sese.
11355 * graphite-poly.h (base_alias_pair): ... here.
11356 (new_gimple_poly_bb): Declare.
11357 (free_gimple_poly_bb): Declare.
11358 * graphite-scop-detection.c (parameter_index_in_region_1):
11359 (parameter_index_in_region): ... here.
11360 (scan_tree_for_params): ... here.
11361 (find_params_in_bb): ... here.
11362 (find_scop_parameters): ... here.
11363 (build_scops): Call find_scop_parameters.
11364 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11365 (free_scops): Move...
11366 (single_pred_cond_non_loop_exit): Move...
11367 (sese_dom_walker::before_dom_children): Move...
11368 (sese_dom_walker::after_dom_children): Move...
11369 (build_poly_scop): Move...
11370 * graphite-sese-to-poly.h (base_alias_pair): Move...
11371 * graphite.c (free_scops): ... here.
11373 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11374 Sebastian Pop <s.pop@samsung.com>
11376 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11377 (trivially_empty_bb_p): Move...
11378 (same_close_phi_node): Move...
11379 (new_gimple_poly_bb): Move...
11380 (compare_bb_depths): Move...
11381 (graphite_sort_dominated_info): Move...
11382 (remove_duplicate_close_phi): Move...
11383 (make_close_phi_nodes_unique): Move...
11384 (canonicalize_loop_closed_ssa): Move...
11385 (canonicalize_loop_closed_ssa_form): Move...
11386 (loop_ivs_can_be_represented): Move...
11387 (single_pred_cond_non_loop_exit): Move...
11388 (graphite_can_represent_init): Move...
11389 (graphite_can_represent_scev): Move...
11390 (stmt_has_simple_data_refs_p): Move...
11391 (stmt_has_side_effects): Move...
11392 (graphite_can_represent_stmt): Move...
11393 (scop_detection): ... here.
11394 (sese_dom_walker): ... and here.
11395 (build_scops): Call all moved functions.
11396 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11397 (all_non_dominated_preds_marked_p): Move...
11398 (build_scop_bbs_1): Move...
11399 (build_scop_bbs): Move...
11400 (set_scop_parameter_dim): Move...
11401 (nb_pbbs_in_loops): Move...
11402 (build_poly_scop): Do not call all the moved functions.
11404 2015-10-05 Martin Jambor <mjambor@suse.cz>
11405 Jan Hubicka <hubicka@ucw.cz>
11407 * ipa-cp.c (ipcp_alignment_lattice): New type.
11408 (ipcp_param_lattices): Use the above to represent alignment.
11409 (ipcp_alignment_lattice::print): New function.
11410 (print_all_lattices): Use it to print alignment information.
11411 (ipcp_alignment_lattice::top_p): New function.
11412 (ipcp_alignment_lattice::bottom_p): Likewise.
11413 (ipcp_alignment_lattice::set_to_bottom): Likewise.
11414 (ipcp_alignment_lattice::meet_with_1): Likewise.
11415 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11416 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11417 (initialize_node_lattices): Likewise.
11418 (propagate_alignment_accross_jump_function): Work with the new class
11419 for alignment lattices.
11420 (propagate_constants_accross_call): Pass only the alignment lattice to
11421 propagate_alignment_accross_jump_function.
11422 (ipcp_store_alignment_results): Work with the new class for alignment
11425 2015-10-05 Marek Polacek <polacek@redhat.com>
11427 PR tree-optimization/67821
11428 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11430 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
11433 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11435 (mkoffload_cleanup): ... this. Adjust all users.
11436 (maybe_unlink): Look at save_temps and verbose flags instead of
11438 (main): Parse "-save-temps" flag.
11439 (generate_target_descr_file, generate_target_offloadend_file)
11440 (generate_host_descr_file, prepare_target_image): Pass it on.
11441 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11442 (mkoffload_cleanup): New function.
11443 (maybe_unlink): Look at save_temps and verbose flags instead of
11445 (main): Instead of calling utils_cleanup, register atexit handler
11446 for mkoffload_cleanup.
11447 (main): Parse "-save-temps" flag.
11448 (compile_native, main): Pass it on.
11449 * lto-wrapper.c (compile_offload_image): Likewise.
11451 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11453 * gimple.h (gimple_op_ptr): Require a non const gimple *.
11454 (gimple_assign_lhs_ptr): Likewise.
11455 (gimple_assign_rhs1_ptr): Likewise.
11456 (gimple_assign_rhs2_ptr): Likewise.
11457 (gimple_assign_rhs3_ptr): Likewise.
11458 (gimple_call_lhs_ptr): Likewise.
11459 (gimple_call_fn_ptr): Likewise.
11460 (gimple_call_chain_ptr): Likewise.
11461 (gimple_call_arg_ptr): Likewise.
11462 (gimple_cond_lhs_ptr): Likewise.
11463 (gimple_cond_rhs_ptr): Likewise.
11464 (gimple_switch_index_ptr): Likewise.
11465 (gimple_return_retval_ptr): Likewise.
11467 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11469 * gimple.h (gimple_asm_input_op_ptr): Remove.
11470 (gimple_asm_output_op_ptr): Likewise.
11472 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11474 * gimple.h (gimple_location_ptr): Remove.
11475 * tree-vrp.c (check_all_array_refs): Adjust.
11477 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11479 * tree-ssa-operands.c (build_uses): store tree * instead of
11481 (finalize_ssa_uses): Adjust.
11482 (append_use): Likewise.
11483 (verify_ssa_operands): Likewise.
11485 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11487 * real.h (build_real_truncate): Declare.
11488 * tree.c (build_real_truncate): New function.
11489 (strip_float_extensions): Use it.
11490 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11491 (fold_builtin_hypot, fold_builtin_pow): Likewise.
11492 * match.pd: Likewise.
11494 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11495 Jiong Wang <jiong.wang@arm.com>
11497 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11499 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11501 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11502 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11503 (aarch64_print_operand, aarch64_float_const_representable_p)
11504 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11505 instead of REAL_VALUE_FROM_CONST_DOUBLE.
11506 * config/arc/arc.c (arc_print_operand): Likewise.
11507 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11508 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11509 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11511 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11512 (consttable_16): Likewise.
11513 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11514 * config/avr/avr.c (avr_print_operand): Likewise.
11515 * config/bfin/bfin.md: Likewise (in a define_split).
11516 * config/c6x/c6x.md: Likewise (in a define_split).
11517 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11518 (cr16_print_operand): Likewise.
11519 * config/cris/cris.c (cris_print_operand): Likewise.
11520 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11521 * config/fr30/fr30.c (fr30_print_operand): Likewise.
11522 (fr30_const_double_is_zero): Likewise.
11523 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11524 * config/frv/frv.md: Likewise (in a define_split).
11525 * config/frv/predicates.md (int_2word_operand): Likewise.
11526 * config/h8300/h8300.c (h8300_print_operand): Likewise.
11527 * config/i386/i386.c (standard_80387_constant_p): Likewise.
11528 (ix86_print_operand, ix86_split_to_parts): Likewise.
11529 * config/i386/i386.md: Likewise (in a define_split).
11530 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
11531 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
11532 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
11533 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
11534 (print_operand): Likewise.
11535 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
11536 * config/mep/mep.md: Likewise (in define_split).
11537 * config/microblaze/microblaze.c (microblaze_const_double_ok)
11538 (print_operand): Likewise.
11539 * config/mips/mips.md (consttable_float): Likewise.
11540 * config/mmix/mmix.c (mmix_intval): Likewise.
11541 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
11542 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
11543 * config/pa/pa.c (pa_singlemove_string): Likewise.
11544 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
11545 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
11546 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
11547 (output_toc): Likewise.
11548 * config/rs6000/rs6000.md: Likewise (in define_splits).
11549 * config/rx/rx.c (rx_print_operand): Likewise.
11550 * config/s390/s390.c (s390_output_pool_entry): Likewise.
11551 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11552 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
11553 (and also in define_splits).
11554 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
11555 (fp_high_losum_p): Likewise.
11556 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
11557 (*movsf_high): Likewise.
11558 * config/spu/spu.c (const_double_to_hwint): Likewise.
11559 * config/v850/v850.c (const_double_split): Likewise.
11560 * config/vax/vax.c (vax_float_literal): Likewise.
11561 * config/visium/visium.c (visium_expand_copysign): Likewise.
11562 * config/visium/visium.md: Likewise (in define_split).
11563 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11564 * config/xtensa/xtensa.c (print_operand): Likewise.
11565 (xtensa_output_literal): Likewise.
11566 * cprop.c (implicit_set_cond_p): Likewise.
11567 * dwarf2out.c (insert_float): Likewise.
11568 * expmed.c (expand_mult, make_tree): Likewise.
11569 * expr.c (compress_float_constant): Likewise.
11570 * rtlanal.c (split_double): Likewise.
11571 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11572 (simplify_const_unary_operation, simplify_binary_operation_1)
11573 (simplify_const_binary_operation): Likewise.
11574 (simplify_const_relational_operation): Likewise.
11575 * varasm.c (output_constant_pool_2): Likewise.
11577 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11579 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
11580 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11581 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
11582 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
11583 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11584 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
11585 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
11586 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
11587 (ix86_emit_swsqrtsf): Likewise.
11588 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
11589 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
11590 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11591 * config/pa/pa.c (pa_expand_builtin): Likewise.
11592 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
11593 (rs6000_scale_v2df): Likewise.
11594 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
11595 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
11596 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
11597 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
11598 (vec_ctul): Likewise.
11599 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
11600 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
11601 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
11602 * cse.c (fold_rtx): Likewise.
11603 * emit-rtl.c (immed_double_const): Likewise (in comments).
11604 (init_emit_once): Likewise.
11605 * expr.c (compress_float_constant, expand_expr_real_1)
11606 (const_vector_from_tree): Likewise.
11607 * optabs.c (expand_float, expand_fix): Likewise.
11608 * reg-stack.c (reg_to_stack): Likewise.
11609 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11610 (simplify_const_unary_operation, simplify_binary_operation_1)
11611 (simplify_const_binary_operation, simplify_relational_operation)
11612 (simplify_immed_subreg): Likewise.
11614 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11616 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
11617 * doc/tm.texi: Regenerate.
11618 * real.h (REAL_ARITHMETIC): Delete.
11619 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
11620 (ix86_expand_round_sse4): Use real_arithmetic instead of
11622 * config/i386/sse.md (round<mode>2): Likewise.
11623 * rtl.h (rtx_to_tree_code): Likewise (in comment).
11624 * explow.c (rtx_to_tree_code): Likewise (in comment).
11625 * match.pd: Likewise.
11626 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11627 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11628 (expand_pow_as_sqrts): Likewise.
11629 * tree-pretty-print.c (dump_generic_node): Remove code that
11630 was conditional on REAL_ARITHMETIC being undefined.
11632 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11634 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
11635 * doc/tm.texi: Regenerate.
11636 * real.h (real_less): Declare.
11637 (REAL_VALUES_LESS): Delete.
11638 * real.c (real_less): New function.
11639 (real_compare): Use it.
11640 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
11641 of REAL_VALUES_LESS.
11642 * config/microblaze/microblaze.c (microblaze_const_double_ok):
11644 * fold-const.c (fold_convert_const_int_from_real): Likewise.
11645 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11646 (simplify_const_relational_operation): Likewise.
11647 * tree-call-cdce.c (check_pow): Likewise.
11648 (gen_conditions_for_pow_cst_base): Likewise.
11650 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11652 * real.h (REAL_VALUES_IDENTICAL): Delete.
11653 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
11654 instead of REAL_VALUES_IDENTICAL.
11655 * fold-const.c (operand_equal_p): Likewise.
11656 * ipa-icf.c (sem_variable::equals): Likewise.
11657 * tree-complex.c (some_nonzerop): Likewise.
11658 (expand_complex_multiplication): Likewise.
11659 * tree.c (simple_cst_equal): Likewise.
11660 * varasm.c (compare_constant): Likewise.
11662 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11664 * real.h (real_equal): Declare.
11665 (REAL_VALUES_EQUAL): Delete.
11666 * real.c (real_equal): New function.
11667 (real_compare): Use it.
11668 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
11669 * doc/tm.texi: Regenerate.
11670 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
11671 real_equal instead of REAL_VALUES_EQUAL.
11672 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
11673 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
11674 (fp_const_from_val): Likewise.
11675 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
11676 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
11677 (floating_exact_log2): Likewise.
11678 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11679 * config/vax/vax.c (vax_float_literal): Likewise.
11680 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11681 * cprop.c (implicit_set_cond_p): Likewise.
11682 * expmed.c (expand_mult): Likewise.
11683 * fold-const.c (const_binop): Likewise.
11684 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11685 (simplify_const_binary_operation): Likewise.
11686 (simplify_const_relational_operation): Likewise.
11687 * tree-call-cdce.c (check_pow): Likewise.
11688 (gen_conditions_for_pow_cst_base): Likewise.
11689 * tree-inline.c (estimate_num_insns): Likewise.
11690 * tree-ssa-dom.c (record_equality): Likewise.
11691 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11692 (gimple_expand_builtin_pow): Likewise.
11693 (pass_optimize_widening_mul::execute): Likewise.
11694 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
11695 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
11696 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
11698 2015-10-05 Richard Biener <rguenther@suse.de>
11701 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
11702 consider loop header PHI defs as IVs.
11704 2015-10-05 Richard Biener <rguenther@suse.de>
11706 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
11708 (create_expression_by_pieces): ... here and build GIMPLE
11709 calls directly. Use gimple_build API and avoid force_gimple_operand.
11710 (insert_into_preds_of_block): Simplify.
11711 (do_regular_insertion): Add comment.
11713 2015-10-04 Jason Merrill <jason@redhat.com>
11715 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
11717 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
11719 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
11720 check for general register.
11721 (ix86_emit_save_regs): Ditto.
11722 (ix86_emit_save_regs_using_mov): Ditto.
11723 (ix86_emit_restore_regs_using_pop): Ditto.
11724 (ix86_emit_restore_regs_using_mov): Ditto.
11726 2015-10-03 Marek Polacek <polacek@redhat.com>
11728 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
11729 (insn-dfatab.o): Likewise.
11731 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
11733 * config.gcc (xtensa*-*-uclinux*): New configuration.
11734 * config/xtensa/uclinux.h: New file.
11735 * config/xtensa/uclinux.opt: New file.
11737 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
11739 * doc/cpp.texi (Standard Predefined Macros): Document value of
11740 __cplusplus for C++14.
11742 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
11744 * gcc.c (process_command): Use spec_machine rather than
11745 spec_host_machine to build tooldir_prefix2.
11747 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11748 Bernd Schmidt <bernds@codesourcery.com>
11750 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
11751 (Token, Stmt): Remove structs.
11752 (decls, vars, fns): Remove variables.
11753 (alloc_comment, append_stmt, is_keyword): Remove macros.
11754 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
11755 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
11756 (parse_init, parse_file): Remove functions.
11757 (read_file): Accept a pointer to a length and store into it.
11758 (process): Don't try to parse the input file, just write it out as
11759 a string, but looking for maps. Also write out the length.
11760 (main): Don't use "-S" to compile PTX code.
11762 2015-10-02 Jeff Law <law@redhat.com>
11764 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
11767 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11770 * config/nvptx/mkoffload.c (main): Scan the argument vector for
11771 -fopenmp, and skip generating an offloading image if specified.
11773 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
11775 * system.h (ROUND_UP): New macro definition.
11776 (ROUND_DOWN): Ditto.
11777 * ggc-page.c (ROUND_UP): Remove local macro definition.
11778 (PAGE_ALIGN): Implement using ROUND_UP macro.
11780 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
11781 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
11783 (ix86_compute_frame_layout): Ditto.
11784 (ix86_expand_prologue): Ditto.
11785 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
11786 to round down values.
11787 (expand_set_or_movmem_via_rep): Ditto.
11789 2015-10-02 Marek Polacek <polacek@redhat.com>
11791 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
11793 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
11795 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
11796 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
11797 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
11798 (free_gimple_bb): Renamed free_gimple_poly_bb.
11799 (try_generate_gimple_bb): Hoist loop invariant code.
11800 (analyze_drs_in_stmts): Same.
11801 (build_scop_drs): Call renamed functions.
11802 (new_pbb_from_pbb): Same.
11803 (scop_ivs_can_be_represented): Delete as functionality now moved to
11804 graphite-scop-detection.c
11805 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
11807 2015-10-02 Aditya Kumar <hiraditya@msn.com>
11809 * graphite-scop-detection.c (stmt_has_side_effects): New function
11810 outlined from stmt_simple_for_scop_p.
11811 (graphite_can_represent_stmt): Same.
11812 (stmt_simple_for_scop_p): Moved code out of this function for better
11815 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11817 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
11819 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
11821 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11823 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
11825 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
11827 PR rtl-optimization/67756
11828 * lra-constraints.c (match_reload): Add a new parameter. Use it
11829 for creating a pseudo with the same value.
11830 (curr_insn_transform): Pass a new argument to match_reload.
11832 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11834 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
11835 (expand_vec_perm_even_odd_1): Handle V64QImode.
11836 (ix86_expand_vec_perm_const_1): Try expansion with
11837 expand_vec_perm_even_odd_trunc as well.
11838 * config/i386/sse.md (VI124_AVX512F): Rename to ...
11839 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
11841 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
11842 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
11843 to V32HI and V16SI.
11844 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
11845 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
11846 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
11847 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
11848 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
11849 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
11851 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11853 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
11854 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
11856 2015-10-02 Jason Merrill <jason@redhat.com>
11859 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
11860 (diagnose_tm_1_op): Also diagnose volatile accesses in
11861 transaction_safe function.
11863 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
11865 * system.h (malloc.h): Don't include obsolete header.
11867 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11869 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
11870 (TLS_SECTION_ASM_FLAG): Delete.
11872 2015-10-02 Marek Polacek <polacek@redhat.com>
11875 * doc/invoke.texi: Document -Wduplicated-cond.
11876 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
11877 (insn-dfatab.o): Likewise.
11878 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
11881 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
11883 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
11886 2015-10-02 Renlin Li <renlin.li@arm.com>
11888 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
11890 2015-10-02 Renlin Li <renlin.li@arm.com>
11893 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
11895 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11897 PR rtl-optimization/67786
11898 PR rtl-optimization/67787
11899 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
11900 it modifies a reg used in the condition calculation.
11902 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
11904 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11905 alternatives for reads from memory and moves from general-purpose
11907 (*aarch64_combinez_be<mode>): Likewise.
11909 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
11912 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
11913 selectany within this function without need to keep attribute.
11914 (i386_pe_encode_section_info): Remove selectany-code.
11916 2015-10-02 Richard Biener <rguenther@suse.de>
11918 * tree-ssa-sccvn.c (has_VN_INFO): New function.
11919 (free_scc_vn): Use it.
11920 (visit_use): Remove dead code and refactor to use gassign
11921 and use less indentation.
11923 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11927 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
11928 (rs6000_cannot_copy_insn_p): New function.
11929 * config/rs6000/rs6000.md (cannot_copy): New attribute.
11930 (load_toc_v4_PIC_1_normal): Set cannot_copy.
11931 (load_toc_v4_PIC_1_476): Ditto.
11933 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11935 * graphite-scop-detection.c (struct sese_l): New conversion constructor
11936 so that this type can be pushed into a vec.
11937 (class scop_builder): use sese_l to collect scops.
11938 (get_scops): New getter function.
11939 (remove_intersecting_scops): Use sese_l instead of scops_p.
11940 (intersects): Same.
11943 (remove_subscops): Same.
11944 (build_scops): Add scops to vec<scops_p> once all the scops have been
11947 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11949 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11950 Renamed type from gimple_bb_p to gimple_poly_bb_p.
11951 (translate_isl_ast_node_user): Same.
11952 * graphite-poly.c (new_poly_bb): Same.
11953 * graphite-poly.h (gbb_from_bb): Same.
11955 * graphite-sese-to-poly.c (new_gimple_bb):
11956 gimple_bb_p -> gimple_poly_bb_p
11957 (build_scop_scattering): Same.
11958 (find_params_in_bb): Same.
11959 (add_conditions_to_domain): Same.
11960 (sese_dom_walker::before_dom_children): Same.
11961 (analyze_drs_in_stmts): Same.
11962 (new_pbb_from_pbb): Same.
11963 (free_data_refs_aux): New pointer to type base_alias_pair.
11964 * graphite-sese-to-poly.h: Same.
11965 * sese.c (if_region_set_false_region): Fixed Indentation.
11966 (move_sese_in_condition): Same.
11968 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11969 Aditya Kumar <aditya.k7@samsung.com>
11971 PR tree-optimization/66980
11972 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
11973 when data reference analysis has failed.
11975 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11976 Aditya Kumar <aditya.k7@samsung.com>
11978 PR tree-optimization/67754
11979 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
11980 scev analysis on the same loop nest as analyze_drs_in_stmts.
11981 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
11983 (try_generate_gimple_bb): Call outermost_loop_in_sese.
11984 (analyze_drs_in_stmts): Same.
11985 * sese.c (outermost_loop_in_sese): ...here.
11987 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11988 Aditya Kumar <aditya.k7@samsung.com>
11990 PR tree-optimization/67754
11991 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
11992 recursion on the inner loops.
11994 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11996 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
11997 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
11998 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
11999 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
12000 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
12002 2015-10-01 Marek Polacek <polacek@redhat.com>
12005 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
12006 create_tmp_var_raw rather than create_tmp_var.
12008 2015-10-01 Marek Polacek <polacek@redhat.com>
12010 PR tree-optimization/67769
12011 * tree-ssa-phiopt.c (conditional_replacement): Call
12012 reset_flow_sensitive_info_in_bb.
12013 (minmax_replacement): Likewise.
12014 (abs_replacement): Likewise.
12016 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
12018 * builtins.c: Don't include gomp-constants.h.
12019 (fold_builtin_1): Don't fold acc_on_device here.
12020 * gimple-fold.c: Include gomp-constants.h.
12021 (gimple_fold_builtin_acc_on_device): New.
12022 (gimple_fold_builtin): Call it.
12024 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
12026 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
12027 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
12029 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
12031 * config/arm/aarch-common-protos.h
12032 (aarch_accumulator_forwarding): New.
12033 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12034 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
12035 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12036 * config/arm/cortex-a53.md: Rewrite.
12038 2015-10-01 Richard Biener <rguenther@suse.de>
12040 * gimple-match.h (mprts_hook): Declare.
12041 * gimple-match.head.c (mprts_hook): Define.
12042 (maybe_push_res_to_seq): Use new hook.
12043 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12044 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
12045 (vn_ssa_aux::has_constants): Remove.
12046 * tree-ssa-sccvn.c: Include gimple-match.h.
12047 (VN_INFO_GET): Assert we don't re-use SSA names.
12048 (vn_get_expr_for): Remove.
12049 (expr_has_constants): Likewise.
12050 (stmt_has_constants): Likewise.
12051 (simplify_binary_expression): Likewise.
12052 (simplify_unary_expression): Likewise.
12053 (vn_lookup_simplify_result): New hook.
12054 (visit_copy): Adjust.
12055 (visit_reference_op_call): Likewise.
12056 (visit_phi): Likewise.
12057 (visit_use): Likewise.
12058 (process_scc): Likewise.
12059 (init_scc_vn): Likewise.
12060 (visit_reference_op_load): Likewise. Use match-and-simplify and
12061 a gimple seq for inserted expressions.
12062 (try_to_simplify): Remove GENERIC stmt combining code.
12063 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
12064 * tree-ssa-pre.c (eliminate_insert): Adjust.
12065 (eliminate_dom_walker::before_dom_children): Likewise.
12067 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12069 * doc/invoke.texi (Optimization Options): Add
12070 -freorder-blocks-algorithm=.
12071 (Optimize Options) <-O>: Add -freorder-blocks.
12072 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
12073 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
12074 <-freorder-blocks>: Also enabled at levels -O and -Os.
12075 <-freorder-blocks-algorithm=>: Document new option.
12077 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12079 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
12080 with flag_reorder_blocks_algorithm.
12081 * common.opt (freorder-blocks-algorithm=): New flag.
12082 (reorder_blocks_algorithm): New enum.
12083 * flag-types.h (reorder_blocks_algorithm): New enum.
12084 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
12085 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
12087 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12089 * bb-reorder.c: Add intro comment.
12090 (reorder_basic_blocks_software_trace_cache): Print a header to
12092 (edge_order): New function.
12093 (reorder_basic_blocks_simple): New function.
12094 (reorder_basic_blocks): Choose between the STC and the simple
12095 algorithms (always choose the former).
12097 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12099 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
12100 function, factored out from ...
12101 (reorder_basic_blocks): ... here.
12103 2015-10-01 Tom de Vries <tom@codesourcery.com>
12105 * tree-cfg.c (dump_function_to_file): Dump function attributes using
12106 __attribute__(()) string. Move dumping of function attributes to before
12109 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
12112 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12113 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12114 based on gold linker version.
12115 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12116 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12117 * configure, config.in: Regenerate.
12119 2015-10-01 Alan Modra <amodra@gmail.com>
12121 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12122 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12123 (rs6000_output_mi_thunk): Likewise.
12125 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12127 * config/nvptx/mkoffload.c (process): Change offload data format.
12129 2015-09-30 Jeff Law <law@redhat.com>
12131 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12132 with constant conditions.
12133 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12134 (remove_ctrl_stmt_and_useless_edges): No longer static.
12135 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12136 (remove_ctrl_stmt_and_useless_edges): Likewise.
12138 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12139 Cesar Philippidis <cesar@codesourcery.com>
12141 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12142 (TARGET_GOACC_VALIDATE_DIMS): Override.
12143 * target.def (TARGET_GOACC): New target hook prefix.
12144 (validate_dims): New hook.
12145 * targhooks.h (default_goacc_validate_dims): New.
12146 * omp-low.c (oacc_validate_dims): New.
12147 (execute_oacc_device_lower): New.
12148 (default_goacc_validate_dims): New.
12149 (pass_data_oacc_device_lower): New.
12150 (pass_oacc_device_lower): New pass.
12151 (make_pass_oacc_device_lower): New.
12152 * tree-pass.h (make_pass_oacc_device_lower): Declare.
12153 * passes.def (pass_oacc_device_lower): Add it.
12154 * doc/tm.texi: Rebuilt.
12155 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12156 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12158 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12160 PR rtl-optimization/67037
12161 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12163 2015-09-30 Bernd Schmidt <bernds@redhat.com>
12165 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12166 * passes.c: Include tree-ssanames.h.
12167 (execute_function_todo): Flush the pending free SSA_NAMEs after
12168 eliminating unreachable basic blocks.
12169 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12170 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12171 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12172 (flush_ssanames_freelist): New function.
12173 (release_ssaname_fn): Put released names on the queue.
12174 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12175 * tree-ssanames.h (flush_ssanames_freelist): Declare.
12177 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12179 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12180 (generate_target_descr_file, generate_target_offloadend_file)
12181 (generate_host_descr_file, prepare_target_image): Pass it on.
12182 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12183 (compile_native, main): Pass it on.
12184 * lto-wrapper.c (compile_offload_image): Likewise.
12186 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12187 Ilya Verbin <ilya.verbin@intel.com>
12188 Andrey Turetskiy <andrey.turetskiy@intel.com>
12190 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12191 (prepare_target_image, main): Refactor argv building to use
12194 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12196 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12197 * config/spu/spu.c (spu_expand_atomic_op): New function.
12198 * config/spu/spu.md (AINT): New mode iterator.
12199 (ATOMIC): New code iterator.
12200 (atomic_name, atomic_pred): New code predicates.
12201 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12202 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12203 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12204 "atomic_<atomic_name>_fetch<mode>"): Likewise.
12206 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
12208 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12210 (scalar_chain::convert_reg): Likewise.
12212 2015-09-30 Richard Biener <rguenther@suse.de>
12214 * builtins.c: Add comment that no new simplifications should
12217 2015-09-30 Marek Polacek <polacek@redhat.com>
12219 PR tree-optimization/67690
12220 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12221 reset_flow_sensitive_info_in_bb.
12222 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12223 * tree-ssanames.c: Include "gimple-iterator.h".
12224 (reset_flow_sensitive_info_in_bb): New function.
12225 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12227 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12229 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12230 variable, replacing it with...
12231 (offload_abi): ... this new variable. Adjust all users.
12232 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12234 2015-09-30 Matthias Klose <doko@ubuntu.com>
12236 * configure.ac: Remove extraneous ;;.
12237 * configure: Regenerate.
12239 2015-09-29 James Bowman <james.bowman@ftdichip.com>
12241 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12242 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12243 predicate, disallow register for operand 2.
12245 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
12247 * graphite-dependences.c (scop_get_dependences): Moved in down
12248 in order to be visible to its caller.
12249 * graphite-poly.h: Removed compute_deps, and extend_schedule.
12251 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12252 Aditya Kumar <aditya.k7@samsung.com>
12254 PR tree-optimization/67754
12255 * graphite-optimize-isl.c (optimize_isl): Call
12256 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12258 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12260 * builtins.c (expand_builtin_acc_on_device): Delete.
12261 (expand_builtin): Don't call it.
12262 (fold_builtin_1): Fold acc_on_device.
12264 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
12266 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12267 (ix86_nsaved_sseregs): Likewise.
12269 2015-09-29 Jeff Law <law@redhat.com>
12271 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12272 computation of unused value.
12274 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12275 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12276 inline macro expansion.
12278 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12280 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12281 (gen_shl_sext): Likewise.
12282 * config/sh/sh.md (divsi3): Likewise.
12283 (imm->ext_dest_operand splitter): Likewise.
12285 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12286 Aditya Kumar <aditya.k7@samsung.com>
12288 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12289 (nb_data_writes_in_bb): Remove.
12290 (split_pbb): Remove.
12291 (split_reduction_stmt): Remove.
12292 (is_reduction_operation_p): Remove.
12293 (phi_contains_arg): Remove.
12294 (follow_ssa_with_commutative_ops): Remove.
12295 (detect_commutative_reduction_arg): Remove.
12296 (detect_commutative_reduction_assign): Remove.
12297 (follow_inital_value_to_phi): Remove.
12298 (edge_initial_value_for_loop_phi): Remove.
12299 (initial_value_for_loop_phi): Remove.
12300 (used_outside_reduction): Remove.
12301 (detect_commutative_reduction): Remove.
12302 (translate_scalar_reduction_to_array_for_stmt): Remove.
12303 (remove_phi): Remove.
12304 (dr_indices_valid_in_loop): Remove.
12305 (close_phi_written_to_memory): Remove.
12306 (translate_scalar_reduction_to_array): Remove.
12307 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12308 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12309 (rewrite_commutative_reductions_out_of_ssa): Remove.
12310 (build_poly_scop): Remove call to
12311 rewrite_commutative_reductions_out_of_ssa.
12313 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
12315 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12316 Add new insn types for vector load and store pairs.
12317 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12318 types "neon_ldp{,_q}".
12319 * config/arm/cortex-a57.md (neon_load_c): Add insn types
12321 (neon_store_complex): Add insn types "neon_stp{,_q}".
12322 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12323 "neon_{ldp,stp}_q".
12325 2015-09-29 Jeff Law <law@redhat.com>
12327 * config/rx/constraints.md (Int08): Fix undefined left shift
12329 (Sint08, Sint16, Sint24): Likewise.
12330 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12332 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12335 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12336 left shift behaviour.
12337 * config/msp430/constraints.md ('L' constraint): Similarly.
12338 ('Ys' constraint): Similarly.
12340 2015-09-29 Richard Biener <rguenther@suse.de>
12342 PR tree-optimization/67170
12343 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12344 the translate function pointer parameter to get the
12345 bool whether to disambiguate only by reference.
12346 (walk_non_aliased_vuses): Likewise.
12347 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12348 (get_continuation_for_phi_1): Likewise.
12349 (get_continuation_for_phi): Likewise.
12350 (walk_non_aliased_vuses): Likewise.
12351 * tree-ssa-sccvn.c (const_parms): New bitmap.
12352 (vn_reference_lookup_3): Adjust for interface change.
12353 Disambiguate parameters pointing to readonly memory.
12354 (free_scc_vn): Free const_parms.
12355 (run_scc_vn): Initialize const_parms from a fn spec attribute.
12357 2015-09-29 Richard Biener <rguenther@suse.de>
12359 PR tree-optimization/67741
12360 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12361 builtin calls with correct signature.
12363 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
12366 * config/i386/i386.c: Include dbgcnt.h.
12367 (has_non_address_hard_reg): New.
12368 (convertible_comparison_p): New.
12369 (scalar_to_vector_candidate_p): New.
12370 (remove_non_convertible_regs): New.
12371 (scalar_chain): New.
12372 (scalar_chain::scalar_chain): New.
12373 (scalar_chain::~scalar_chain): New.
12374 (scalar_chain::add_to_queue): New.
12375 (scalar_chain::mark_dual_mode_def): New.
12376 (scalar_chain::analyze_register_chain): New.
12377 (scalar_chain::add_insn): New.
12378 (scalar_chain::build): New.
12379 (scalar_chain::compute_convert_gain): New.
12380 (scalar_chain::replace_with_subreg): New.
12381 (scalar_chain::replace_with_subreg_in_insn): New.
12382 (scalar_chain::emit_conversion_insns): New.
12383 (scalar_chain::make_vector_copies): New.
12384 (scalar_chain::convert_reg): New.
12385 (scalar_chain::convert_op): New.
12386 (scalar_chain::convert_insn): New.
12387 (scalar_chain::convert): New.
12388 (convert_scalars_to_vector): New.
12389 (pass_data_stv): New.
12391 (make_pass_stv): New.
12392 (ix86_option_override): Created and register stv pass.
12393 (flag_opts): Add -mstv.
12394 (ix86_option_override_internal): Likewise.
12395 * config/i386/i386.md (SWIM1248x): New.
12396 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12397 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12398 (*anddi3_doubleword): New.
12399 (*zext<mode>_doubleword): New.
12400 (*zextsi_doubleword): New.
12401 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12402 (*<code>di3_doubleword): New.
12403 * config/i386/i386.opt (mstv): New.
12404 * dbgcnt.def (stv_conversion): New.
12406 2015-09-29 Tom de Vries <tom@codesourcery.com>
12408 * tree-cfg.c (dump_function_to_file): Dump function attributes.
12410 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
12413 * config/sh/sh.c (sh_override_options_after_change): New.
12414 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12415 (sh_option_override): Move align_loops, align_jumps and
12416 align_functions handling into sh_override_options_after_change.
12418 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12420 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12421 (nvptx_record_offload_symbol): Record function execution geometry.
12422 * config/nvptx/mkoffload.c (process): Include launch geometry in
12424 * omp-low.c (oacc_launch_pack): New.
12425 (replace_oacc_fn_attrib): New.
12426 (set_oacc_fn_attrib): New.
12427 (get_oacc_fn_attrib): New.
12428 (expand_omp_target): Create keyed varargs for GOACC_parallel call
12430 * omp-low.h (get_oacc_fn_attrib): Declare.
12431 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12432 (DEF_FUNCTION_TYPE_VAR_11): Delete.
12433 * tree.h (OMP_CLAUSE_EXPR): New.
12434 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12436 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12437 Sebastian Pop <s.pop@samsung.com>
12439 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12441 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12442 Sebastian Pop <s.pop@samsung.com>
12444 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12445 * graphite-scop-detection.c (struct sese_l): New type.
12446 (get_entry_bb): API for getting entry bb of SESE.
12447 (get_exit_bb): API for getting exit bb of SESE.
12448 (class debug_printer): New type. Simple printer in debug mode.
12449 (trivially_empty_bb_p): New. Return true when BB is empty or
12450 contains only debug instructions.
12451 (graphite_can_represent_expr): Call scalar_evoution_in_region
12452 instead of analyze_scalar_evolution. Pass in scop instead of only
12454 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12456 (stmt_simple_for_scop_p): Same.
12457 (harmful_stmt_in_bb): Same.
12458 (graphite_can_represent_loop): Deleted.
12459 (struct scopdet_info): Deleted.
12460 (scopdet_basic_block_info): Deleted.
12461 (build_scops_1): Deleted.
12462 (bb_in_sd_region): Deleted.
12463 (find_single_entry_edge): Deleted.
12464 (find_single_exit_edge): Deleted.
12465 (create_single_entry_edge): Deleted.
12466 (sd_region_without_exit): Deleted.
12467 (create_single_exit_edge): Deleted.
12468 (unmark_exit_edges): Deleted.
12469 (mark_exit_edges): Deleted.
12470 (create_sese_edges): Deleted.
12471 (build_graphite_scops): Deleted.
12472 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12473 (build_scops): Use the new scop_builder to build scops.
12474 (dot_all_scops_1): Use the new pretty printer. Print loop father
12476 (loop_body_is_valid_scop): New. Return true if loop body is a
12478 (class scop_builder): New. Builds SCoPs for polyhedral
12480 (scop_builder): New constructor.
12481 (static sese_l invalid_sese): sese_l with invalid edges.
12482 (get_sese): Get an sese (from a loop) if possible, invalid_sese
12484 (get_nearest_dom_with_single_entry): Get nearest dominator of a
12485 basic_block with single entry. Return NULL if we get to the
12486 beginning of a function.
12487 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12488 a basic_block with single exit. Return NULL if we get to the
12489 beginning of a function.
12490 (print_sese): Pretty-print SESE.
12491 (merge_sese): Merge two SESEs if possible and return the new SESE.
12492 (build_scop_depth): Start building the SCoP within a loop nest.
12493 (build_scop_breadth): Start building the SCoP at a single loop
12494 depth. Merge adjacent SESEs if valid.
12495 (can_represent_loop_1): Returns true if Graphite can represent
12496 loop inside SCoP. Helper for can_represent_loop.
12497 (can_represent_loop): Returns true if Graphite can represent LOOP
12498 and all its nested loops in SCoP.
12499 (loop_is_valid_scop): Returns true if LOOP and all its nests
12500 constitute a valid SCoP.
12501 (region_has_one_loop): Returns true of a region has only one loop.
12502 (add_scop): Add SCoP to the list of valid scops. Removes an
12503 already existing scop if it intersects with or subsumed by this one.
12504 (harmful_stmt_in_region): Returns true if SCoP has any statment
12505 which cannot be represented by Graphite.
12506 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12507 (remove_subscops): Remove any SCoP from the list of already found
12508 SCoPs, if subsumed by S1.
12509 (intersects): Return true if region bounded by SCoPs S1 and S2
12511 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12512 * graphite.c (print_graphite_scop_statistics):
12513 (print_graphite_statistics): Print SCoP info while debugging.
12514 (graphite_initialize): Early exit in case number of loops in a
12515 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12516 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12517 (graphite_finalize):
12518 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12519 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12520 (recompute_all_dominators): Recalculate POST_DOMINATORS.
12521 * tree-cfg.c (print_loops): Print the function name while printing
12524 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12525 Sebastian Pop <s.pop@samsung.com>
12527 PR tree-optimization/67700
12528 * graphite-sese-to-poly.c (parameter_index_in_region): Call
12529 invariant_in_sese_p_rec.
12530 (extract_affine): Same.
12531 (rewrite_cross_bb_scalar_deps): Call update_ssa.
12532 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
12533 * sese.h (invariant_in_sese_p_rec): Declare.
12535 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
12537 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
12539 2015-09-28 Jiong Wang <jiong.wang@arm.com>
12542 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12543 Jiong Wang <jiong.wang@arm.com>
12545 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12546 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12547 (REG_CLASS_NAMES): Likewise.
12548 (REG_CLASS_CONTENTS): Likewise.
12549 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12550 (aarch64_register_move_cost): Likewise.
12551 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12553 * config/aarch64/constraints.md (Uc0): New constraint.
12555 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
12557 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
12559 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
12561 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
12562 SECTION_EXCLUDE in XO mapping class.
12564 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12567 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
12568 and handle ne and eq codes.
12569 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12570 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
12571 CONST_INT_P. Use reverse_condition.
12572 (sh_split_treg_set_expr): Likewise.
12574 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
12576 * config/arm/types.md (type): Add rotate_imm.
12577 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
12578 ROR immediate case.
12579 (*rorsi3_insn_uxtw): Likewise.
12580 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
12581 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
12582 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
12584 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12586 PR rtl-optimization/67481
12587 * ifcvt.c (contains_ccmode_rtx_p): New function.
12588 (insn_valid_noce_process_p): Use it.
12590 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12592 PR rtl-optimization/67456
12593 PR rtl-optimization/67464
12594 PR rtl-optimization/67465
12595 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
12596 move in the mode of x. Handle combination of complex and simple
12597 block pairs as well as the case when one is empty.
12599 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12601 * doc/gimple.texi: Update references to gimple_statement_base.
12602 * gdbhooks.py: Likewise.
12603 * gimple.h: Likewise.
12605 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12607 * config/sparc/driver-sparc.c: map LEON to leon3
12609 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12611 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
12612 and make it inverse to change default
12613 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
12615 * doc/invoke.texi: Document change of default
12617 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12619 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
12620 true on %f0 for a target without FPU.
12621 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
12623 (untyped_return): Do not load %f0 for a target without FPU.
12625 2015-09-28 Andrew Pinski <apinski@cavium.com>
12627 * config/aarch64/aarch64.md (prefetch):
12628 Change the predicate of operand 0 to register_operand.
12630 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
12632 * config/i386/predicates.md (register_sse4nonimm_operand): New
12634 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
12635 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
12636 Use register_sse4nonimm_operand as operand 0 predicate.
12637 (*vec_extractv8hi_sse2): Remove insn pattern.
12638 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
12639 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
12641 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
12642 Kaz Kojima <kkojima@gcc.gnu.org>
12645 * config/sh/sh-protos.h (sh_lra_p): Declare.
12646 * config/sh/sh.c (sh_lra_p): Make non-static.
12647 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
12648 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
12649 Expand into addsi3_scr if operands[2] if needed.
12650 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
12651 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
12652 (addsi3_scr, *addsi3): New insn_and_split patterns.
12654 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
12656 PR rtl-optimization/64164
12657 PR tree-optimization/67312
12658 PR middle-end/67340
12659 PR middle-end/67490
12661 * cfgexpand.c (parm_in_stack_slot_p): Remove.
12662 (ssa_default_def_partition): Remove.
12663 (get_rtl_for_parm_ssa_default_def): Remove.
12664 (set_rtl): Check that RTL assignments match expectations.
12665 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
12666 default def location for params and results. Record SSA names
12667 or types in REG and MEM attrs, respectively.
12668 (set_parm_rtl): New.
12669 (expand_one_ssa_partition): Drop logic that assigned MEMs with
12670 unassigned addresses.
12671 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
12672 deferred stack alloc vars.
12673 (expand_used_vars): Skip partitions holding parm default defs.
12674 Move adjust_one_expanded_partition_var loop...
12675 (pass_expand::execute): ... here. Drop redundant assert.
12676 Adjust comments before the final loop over all ssa names.
12677 Require assigned rtl of parms and results to match exactly.
12678 Reset its attributes to match them, not any other variables in
12679 the same partition.
12680 (expand_debug_expr): Use entry value for PARM's default defs
12681 only iff they have zero nondebug uses.
12682 * cfgexpand.h (parm_in_stack_slot_p): Remove.
12683 (get_rtl_for_parm_ssa_default_def): Remove.
12684 (set_parm_rtl): Declare.
12685 * doc/invoke.texi: Improve wording.
12686 * explow.c (promote_decl_mode): Fix promote_function_mode for
12687 result decls not by reference.
12688 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
12689 bypass TYPE_MODE to get the actual vector mode.
12690 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
12691 2015-08-19's changes as follows. Drop include of
12692 basic-block.h and df.h.
12693 (rtl_for_parm): Remove.
12694 (maybe_reset_rtl_for_parm): Remove.
12695 (parm_in_unassigned_mem_p): Remove.
12696 (use_register_for_decl): Add logic for RESULT_DECLs matching
12697 assign_parms' behavior.
12698 (split_complex_args): Revert.
12699 (assign_parms_augmented_arg_list): Revert. Add comment
12700 referencing the logic above.
12701 (assign_parm_adjust_stack_rtl): Revert.
12702 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
12703 of SET_DECL_RTL. Set up a REG if the parm demands so.
12704 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
12705 calls into a single set_parm_rtl. Set up a temporary RTL
12706 temporarily for expand_assignment.
12707 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
12708 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
12709 (assign_bounds): Revert.
12710 (assign_parms): Revert. Use set_parm_rtl.
12711 (allocate_struct_function): Relayout result and parms of
12712 non-abstruct functions.
12713 (expand_function_start): Revert. Use set_parm_rtl. If the
12714 result is not a hard reg, create a pseudo from the promoted
12715 mode of the default def. Promote static chain mode.
12716 * tree-outof-ssa.c (remove_ssa_form): Drop unused
12717 partition_has_default_def. Set up
12718 partitions_for_parm_default_defs.
12719 (finish_out_of_ssa): Remove partition_has_default_def.
12720 Release partitions_for_parm_default_defs.
12721 * tree-outof-ssa.h (struct ssaexpand): Remove
12722 partition_has_default_def. Add
12723 partitions_for_parm_default_defs.
12724 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
12726 (build_ssa_conflict_graph): Fix conflict-detection of default
12727 defs of even unused default defs of params and results.
12728 (for_all_parms): New.
12729 (create_default_def): New.
12730 (register_default_def): New.
12731 (coalesce_with_default): New.
12732 (create_outofssa_var_map): Create default defs for all parms
12733 and results, and register their partitions. Add GIMPLE_RETURN
12734 operands as coalesce candidates with results. Add default
12735 defs of each parm or result as coalesce candidates with its
12736 other defs. Mark each result def, and each default def of
12737 parms, as used_in_copy.
12738 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
12739 with the ssa names, even anonymous ones. Drop
12740 parm_in_stack_slot_p calls. Require same signedness and
12742 (coalesce_ssa_name): Add coalesce candidates for all defs of
12743 each parm and result, even unused ones.
12744 (parm_default_def_partition_arg): New type.
12745 (set_parm_default_def_partition): New.
12746 (get_parm_default_def_partitions): New.
12747 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
12748 * tree-ssa-live.c (partition_view_init): Regard unused defs of
12749 parms and results as used.
12750 (verify_live_on_entry): Don't error out just because they're
12753 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
12755 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12756 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
12757 (output_fde): Don't output length for debug_frame on AIX.
12758 (output_call_frame_info): Don't output length for debug_frame on AIX.
12759 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
12760 HAVE_XCOFF_DWARF_EXTRAS.
12761 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
12762 HAVE_XCOFF_DWARF_EXTRAS.
12763 (output_compilation_unit_header): Don't output length on AIX.
12764 (output_pubnames): Don't output length on AIX.
12765 (output_aranges): Delete argument. Compute length locally. Don't
12766 output length on AIX.
12767 (output_line_info): Don't output length on AIX.
12768 (dwarf2out_finish): Don't compute aranges_length.
12769 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12770 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
12771 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
12772 symbol decoration for AIX.
12773 (rs6000_xcoff_debug_unwind_info): New.
12774 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
12776 (rs6000_xcoff_declare_function_name): Emit different
12777 .function pseudo-op when DWARF2_DEBUG. Don't call
12778 xcoffout_declare_function for DWARF2_DEBUG.
12779 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
12781 * config/rs6000/aix71.h: New.
12782 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
12784 * configure: Regenerate.
12785 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
12788 2015-09-26 Jeff Law <law@redhat.com>
12790 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
12792 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
12795 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
12798 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
12799 undefined behaviour.
12801 * config/cris/cris.md (asrandb): Fix left shift undefined
12803 (asrandw): Likewise.
12805 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
12808 * lra-constarints.c (match_reload): Check presence of the input pseudo
12809 in the output operand.
12811 2015-09-25 Tobias Burnus <burnus@net-b.de>
12813 * doc/invoke.texi (-fsanitize): Minor wording tweak.
12815 2015-09-25 Tobias Burnus <burnus@net-b.de>
12817 * doc/invoke.texi (-fsanitize): Update URLs.
12819 2015-09-25 Teresa Johnson <tejohnson@google.com>
12821 * opts.c (finish_options): Unset -freorder-blocks-and-partition
12822 if not using profile.
12824 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12826 PR pretty-print/67567
12827 * pretty-print.c (pp_string): Add gcc_checking_assert.
12828 * pretty-print.h (output_buffer_append_r): Likewise.
12830 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
12833 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
12834 addr2 individually. Don't emit logical or insn if one is known to
12835 be aligned approriately.
12836 (sh_expand_cmpnstr): Likewise.
12838 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
12840 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
12841 __builtin_aarch64_fp[sc]r arguments into a register.
12843 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
12845 * config.gcc (x86_archs): Replace lakemount with lakemont.
12846 (with_cpu): Likewise.
12847 (with_arch): Likewise.
12848 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12849 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
12850 __tune_lakemount__ with __tune_lakemont__.
12851 * config/i386/i386.c (lakemount_cost): Renamed to ...
12852 (lakemont_cost): This.
12853 (m_LAKEMOUNT): Renamed to ...
12854 (m_LAKEMONT): This.
12855 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
12856 (processor_target_table): Replace "lakemount" with "lakemont".
12857 (processor_alias_table): Likewise.
12858 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
12859 PROCESSOR_LAKEMONT.
12860 (ix86_adjust_cost): Likewise.
12861 (ia32_multipass_dfa_lookahead): Likewise.
12862 * config/i386/i386.h (processor_type): Likewise.
12863 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
12864 * doc/invoke.texi: Replace lakemount with lakemont. Replace
12865 Lakemount with Lakemont.
12867 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
12869 * config.gcc (x86_archs): Replace iamcu with lakemount.
12870 (with_cpu): Likewise.
12871 (with_arch): Likewise.
12872 * doc/invoke.texi: Likewise.
12873 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12874 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
12875 __tune_iamcu__ with __tune_lakemount__.
12876 * config/i386/i386.c (iamcu_cost): Renamed to ...
12877 (lakemount_cost): This.
12878 (m_IAMCU): Renamed to ...
12879 (m_LAKEMOUNT): This.
12880 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
12881 (processor_target_table): Replace "iamcu" with "lakemount".
12882 (processor_alias_table): Likewise.
12883 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
12884 PROCESSOR_LAKEMOUNT.
12885 (ix86_adjust_cost): Likewise.
12886 (ia32_multipass_dfa_lookahead): Likewise.
12887 * config/i386/i386.h (processor_type): Likewise.
12888 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
12890 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
12892 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
12893 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
12895 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
12896 (pa_expand_compare_and_swap_loop): New.
12897 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
12898 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
12899 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
12900 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
12901 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
12904 2015-09-24 Michael Collison <michael.collison@linaro.org>
12907 * read-md.c (read_name): Allow mode iterators inside angle
12908 brackets in rtl expressions.
12910 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
12913 * ira-color.c (update_allocno_cost): Add parameter.
12914 (update_costs_from_allocno): Decrease conflict cost. Pass the new
12917 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12920 * opts-common.c (prune_options): Discard all -fdiagnostics-color
12921 but the last one, which is moved to the front to be processed
12923 * opts.c (enable_warning_as_error): Reject options that do not
12926 2015-09-24 Jiong Wang <jiong.wang@arm.com>
12928 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
12930 2015-09-24 Jiong Wang <jiong.wang@arm.com>
12932 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
12933 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
12934 (aarch64_cannot_force_const_mem): Likewise.
12935 (aarch64_classify_address): Likewise.
12936 (aarch64_classify_symbolic_expression): Likewise.
12937 (aarch64_print_operand): Likewise.
12938 (aarch64_classify_symbol): Likewise.
12939 (aarch64_mov_operand_p): Likewise.
12940 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
12941 (aarch64_mov_operand): Likewise.
12943 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
12945 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
12946 for info->spe_gp_size.
12948 2015-09-24 Richard Biener <rguenther@suse.de>
12951 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
12954 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
12956 * tree-object-size.c (plus_stmt_object_size)
12957 (cond_expr_object_size): Change the formal parameters from gimple
12959 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
12960 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
12961 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
12963 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12965 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
12966 Check for ld -type pie on Solaris 11.x and 12.
12967 * configure: Regenerate.
12968 * config.in: Regenerate.
12970 * gcc.c (LD_PIE_SPEC): Allow redefinition.
12972 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
12973 (STARTFILE_SPEC): Use it.
12974 (ENDFILE_CRTEND_SPEC): Define.
12975 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
12976 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
12977 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
12978 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
12979 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
12980 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
12981 (ENDFILE_ARCH_SPEC): Define.
12982 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
12984 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12986 * configure.ac (gcc_cv_solaris_crts): New test.
12987 * configure. Regenerate.
12988 * config.in: Regenerate.
12989 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
12990 HAVE_SOLARIS_CRTS variant.
12992 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12994 * tree-inline.h (count_insns_seq): Delete prototype.
12995 (estimate_num_insns_seq): Define prototype.
12996 * tree-inline.c (count_insns_seq): Delete.
12997 (estimate_num_insns_seq): Remove static qualifier.
12998 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
12999 with estimate_num_insns_seq.
13001 2015-09-24 Richard Biener <rguenther@suse.de>
13003 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
13005 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
13006 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
13008 (ao_ref_init_from_vn_reference): Record clique and base in the
13010 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
13012 2015-09-24 Richard Biener <rguenther@suse.de>
13014 PR tree-optimization/48885
13015 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
13016 as not including any restrict tags from other pointers.
13018 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13020 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
13021 character when appending to offload_targets.
13023 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
13024 offload targets by commas, not colons.
13025 * config.in: Regenerate.
13026 * configure: Likewise.
13027 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
13028 instead of setting up the default offload targets here...
13029 (process_command): ..., do it here.
13031 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
13032 targets are separated by commas.
13033 * config.h.in: Regenerate.
13035 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13036 Nathan Sidwell <nathan@codesourcery.com>
13038 * omp-low.h (omp_reduction_init_op): Declare.
13039 * omp-low.c (omp_reduction_init_op): New, broken out of ...
13040 (omp_reduction_init): ... here. Call it.
13041 * tree-parloops.c (initialize_reductions): Use
13042 omp_reduction_init_op.
13044 2015-09-23 Richard Biener <rguenther@suse.de>
13046 PR middle-end/67662
13047 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
13048 undefined overflow unless they will cancel out.
13050 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13052 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
13055 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13058 * opts.h (write_langs): Declare.
13059 * opts-global.c (write_langs): Make it extern.
13061 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
13064 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
13065 overlapping regs when matching the pattern.
13067 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
13069 * config/aarch64/aarch64-simd.md
13070 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
13071 (aarch64_float_truncate_hi_v4sf_le): New.
13072 (aarch64_float_truncate_hi_v4sf_be): Likewise.
13074 2015-09-23 Richard Biener <rguenther@suse.de>
13076 * tree-ssa-structalias.c (intra_create_variable_infos): Build
13077 representatives for all restrict qualified pointer destinations.
13079 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13081 * config/i386/i386.md (define_code_attr mshift): New.
13082 (define_mode_iterator SWI1248_AVX512BW): Rename ...
13083 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
13085 (define_insn "*k<logic><mode>"): Use new iterator name.
13086 (define_insn "*<mshift><mode>3"): New.
13088 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
13090 PR middle-end/67649
13091 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
13092 mark the block as accessible.
13094 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
13096 * function.c (thread_prologue_and_epilogue_insns): Delete
13097 orig_entry_edge argument to try_shrink_wrapping.
13098 * shrink-wrap.c (can_get_prologue): New function.
13099 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
13100 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
13101 can_get_prologue where needed. Remove code that finds a single
13102 edge for the prologue. Remove code that tests if any reg clobbered
13103 by the prologue is live on the prologue edge. Remove code that finds
13104 the new prologue edge after duplicating blocks. Make a new prologue
13106 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13108 2015-09-22 Jeff Law <law@redhat.com>
13110 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13113 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
13115 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
13116 -Wtemplates, -Wnamespaces): Document.
13118 2015-09-22 Tom de Vries <tom@codesourcery.com>
13120 PR tree-optimization/67671
13121 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13122 pointer references as restrict.
13124 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13126 * config/nios2/nios2.c (nios2_legitimize_address): When handling
13127 'reg + reloc' cases, allow first operand to be non-REG, and use
13128 force_reg() to enforce address pattern.
13130 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
13133 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13134 (define_mode_iterator VI12_AVX_AVX512F): New.
13135 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13136 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13137 (define_insn "*<code><mode>3"): ... Into new pattern using
13138 VI12_AVX_AVX512F iterators without masking.
13140 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13142 * config.gcc: Support "skylake-avx512".
13143 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13144 PROCESSOR_SKYLAKE_AVX512.
13145 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13146 (processor_target_table): Add "skylake-avx512".
13147 (PTA_SKYLAKE_AVX512): Define.
13148 (ix86_option_override_internal): Add "skylake_avx512".
13149 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13150 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13151 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13152 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13153 * doc/invoke.texi (skylake-avx512): New.
13155 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13157 * config/i386/i386.md (define_insn "kunpckhi"): Fix
13158 operand in pattern.
13159 (define_insn "kunpcksi"): Ditto.
13160 (define_insn "kunpckdi"): Ditto.
13162 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13164 * config/i386/i386.md (define_split not/xor SWI1248x): Use
13165 iterator instead of fixed modes.
13167 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13169 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13170 Adjust declaration.
13171 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13172 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
13173 out_result. Update to support update-fetch operations.
13174 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13175 Adjust for change to aarch64_gen_atomic_ldop.
13176 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13177 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13178 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13179 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13180 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13182 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13184 * config/aarch64/aarch64-protos.h
13185 (aarch64_atomic_ldop_supported_p): Declare.
13186 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13187 (enum aarch64_atomic_load_op_code): New.
13188 (aarch64_emit_atomic_load_op): New.
13189 (aarch64_gen_atomic_ldop): Update to support load-operate
13191 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13193 (aarch64_atomic_<atomic_optab><mode>): New.
13194 (aarch64_atomic_<atomic_optab><mode>_lse): New.
13195 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13196 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13197 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13199 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13201 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13202 (UNSPECV_ATOMIC_LDOP_OR): New.
13203 (UNSPECV_ATOMIC_LDOP_BIC): New.
13204 (UNSPECV_ATOMIC_LDOP_XOR): New.
13205 (UNSPECV_ATOMIC_LDOP_PLUS): New.
13206 (ATOMIC_LDOP): New.
13207 (atomic_ldop): New.
13208 (aarch64_atomic_load<atomic_ldop><mode>): New.
13210 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13212 * config/aarch64/aarch64.md
13213 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13216 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13218 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13220 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13221 (aarch64_gen_atomic_ldop): New.
13222 (aarch64_split_atomic_op): Fix whitespace and add a comment.
13223 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13224 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13225 (atomic_exchange<mode>): Replace with an expander.
13226 (aarch64_atomic_exchange<mode>): New.
13227 (aarch64_atomic_exchange<mode>_lse): New.
13228 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13229 (aarch64_atomic_swp<mode>): New.
13231 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13233 * tree-inline.c (expand_call_inline): Use inform for extra note.
13234 Do not give a note with UNKNOWN_LOCATION.
13235 Replace input_location with gimple_location (stmt).
13236 Use true/false instead of TRUE/FALSE.
13238 2015-09-22 Tom de Vries <tom@codesourcery.com>
13240 PR tree-optimization/67666
13241 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13242 with single field non-conservative.
13244 2015-09-21 David S. Miller <davem@davemloft.net>
13248 2015-09-11 David S. Miller <davem@davemloft.net>
13250 * config/sparc/constraints.md: Make "U" constraint a real register
13252 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13253 (D_MODES, DF_MODES): Add missing cast.
13254 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13255 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13256 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13258 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13259 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13260 provide these insn when flag_pic.
13262 2015-09-17 David S. Miller <davem@davemloft.net>
13264 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13266 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13268 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13269 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13270 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13271 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13272 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13273 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13274 provide when flag_pic.
13276 2015-09-21 Jeff Law <law@redhat.com>
13278 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13281 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13283 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13285 2015-09-21 Richard Biener <rguenther@suse.de>
13287 * passes.c (rest_of_decl_compilation): Do not call
13288 dwarf2out_early_global_decl for aliases.
13290 2015-09-21 Richard Biener <rguenther@suse.de>
13293 * dwarf2out.c (add_location_or_const_value_attribute): Remove
13294 attribute parameter. Early exit if either DW_AT_const_value
13295 or DW_AT_location are present already.
13296 (gen_variable_die): Adjust caller.
13297 (dwarf2out_late_global_decl): Likewise.
13299 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13302 * config/sh/sh.c (sh_remove_overlapping_post_inc,
13303 sh_peephole_emit_move_insn): Add new functions.
13304 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13305 sh_peephole_emit_move_insn): Declere them.
13306 * config/sh/sh.md: Use them in various peephole2 patterns.
13308 2015-09-21 Richard Biener <rguenther@suse.de>
13310 PR middle-end/67651
13311 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13312 address with -fno-delete-null-pointer-checks.
13314 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
13316 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13317 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13318 (reduc_uplus_v16qi): Remove.
13320 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13321 (reduc_<VEC_reduc_name>_v2df): Remove.
13322 (reduc_<VEC_reduc_name>_v4sf): Remove.
13323 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13325 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13326 gen_ function by removing * prefix.
13327 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13329 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13331 PR middle-end/60832
13332 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13333 Print i_bound without converting it to a tree.
13335 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
13337 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13338 operands[4] operands[5] swap with std::swap, removed tmp variable.
13339 (arm_evpc_neon_vzip): Replaced in0/in1 and
13340 out0/out1 swaps with std::swap, removed x variable.
13341 (arm_evpc_neon_vtrn): Replaced in0/int1 and
13342 out0/out1 swaos with std::swap, removed x variable.
13343 (arm_expand_vec_perm_const_1): Replaced
13344 d->op0/d->op1 swap with std::swap, removed x variable.
13345 (arm_evpc_neon_vuzp): Replaced in0/in1 and
13346 out0/out1 swaps with std::swap, removed x variable.
13348 2015-09-21 Jonathan Yong <10walls@gmail.com>
13350 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13351 sysroot/usr/lib/32api for additional win32 libraries,
13352 fixes failing Cygwin bootstrapping.
13354 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13356 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13358 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13361 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13362 (*mov_t_msb_neg): Rewrite negc pattern.
13364 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13366 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13367 immediate generation code.
13369 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13371 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13372 redundant immediate generation code.
13374 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13376 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13377 (AARCH64_NUM_BITMASKS): Remove.
13378 (aarch64_bitmasks_cmp): Remove.
13379 (aarch64_build_bitmask_table): Remove.
13381 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13383 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13384 slow immediate matching loops with a faster algorithm.
13386 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13388 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13391 2015-09-20 Jeff Law <law@redhat.com>
13393 PR tree-optimization/47679
13394 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13395 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13396 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13397 (thread_through_normal_block): Use record_temporary_equivalences.
13399 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
13401 * coretypes.h (gimple): Change typedef to be a forward declaration.
13402 * gimple.h (gimple_statement_base): rename to gimple.
13403 * (all functions and types using gimple): Adjust.
13404 * *.[ch]: Likewise.
13406 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
13407 David Edelsohn <dje.gcc@gmail.com>
13409 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13410 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13411 (EH_FRAME_THROUGH_COLLECT2): Define.
13412 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13413 (ASM_OUTPUT_DWARF_PCREL): Define.
13414 (ASM_OUTPUT_DWARF_DATAREL): Define.
13416 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
13418 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13421 2015-09-18 Jeff Law <law@redhat.com>
13423 PR tree-optimization/47679
13424 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
13426 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13427 object. Update constructor.
13428 (pass_dominator::execute): Corresponding chagnes to declaration
13429 and initialization of avail_exprs_stack. Update constructor call
13430 for dom_opt_dom_walker object.
13431 (lookup_avail_expr, record_cond): Accept additional argument. Pass
13432 it down to children as needed.
13433 (record_equivalences_from_incoming_edge): Likewise.
13434 (eliminate_redundant_computations): Likewise.
13435 (record_equivalences_from_stmt): Likewise.
13436 (simplify_stmt_for_jump_threading): Likewise.
13437 (record_temporary_equivalences): Likewise.
13438 (optimize_stmt): Likewise.
13439 (dom_opt_dom_walker::thread_across_edge): Update access to
13440 avail_exprs_stack object and pass it to children as needed.
13441 (dom_opt_dom_walker::before_dom_children): Similarly.
13442 (dom_opt_dom_walker::after_dom_children): Similarly.
13443 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13444 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13445 Add avail_expr_stack argument. Pass it to children as needed.
13446 (dummy_simplify): Likewise.
13447 (simplify_control_stmt_condition): Likewise.
13448 (thread_around_empty_blocks): Likewise.
13449 (thread_through_normal_block): Likewise.
13450 (thread_across_edge): Likewise.
13451 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13452 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13454 PR tree-optimization/47679
13455 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
13457 (dom_opt_dom_walker): New private member holding the const_and_copies
13458 object. Update constructor.
13459 (pass_dominator::execute): Corresponding changes to declaration
13460 and initialization of const_and_copies. Update constructor call
13461 for the dom_opt_dom_walker object.
13462 (record_temporary_equivalences): Accept const_and_copies argument
13463 pass it down to children as needed.
13464 (record_equality): Likewise.
13465 (record_equivalences_from_incoming_edge): Likewise.
13466 (cprop_into_successor_phis, optimize_stmt): Likewise.
13467 (eliminate_redundant_computations): Likewise.
13468 (dom_opt_dom_walker::thread_across_edge): Update access to
13469 const_and_copies object and pass it to children as needed.
13470 (dom_opt_dom_walker::before_dom_children): Similarly.
13471 (dom_opt_dom_walker::after_dom_children): Similarly.
13473 PR tree-optimization/47679
13474 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
13475 it into the avail_exprs_stack class.
13476 (pass_dominator::execute): Corresponding changes to declaration
13477 and initialization of avail_exprs. Pass avail_exprs to
13478 dump_dominator_optimization_stats.
13479 (record_cond): Extract avail_exprs from avail_exprs_stack.
13480 (lookup_avail_expr): Similarly.
13481 (htab_staticstics): Remove unnecessary prototype. Move to earlier
13483 (dump_dominator_optimization_stats): Make static and prototype.
13484 Add argument for the hash table to dump.
13485 (debug_dominator_optimization_stats): Remove.
13486 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13488 (debug_dominator_optimization_stats): Similarly.
13489 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13490 "void" in prototype for pop_to_marker method. Add accessor method
13491 for the underlying avail_exprs table.
13493 * tree-ssa-threadedge.c: Remove trailing whitespace.
13495 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
13497 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13499 (pa_ldil_cint_p): Likewise.
13500 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13501 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13503 * config/pa/pa.md: Likewise.
13505 2015-09-18 David Malcolm <dmalcolm@redhat.com>
13507 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13508 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13509 (diagnostic_show_locus): Likewise.
13510 (diagnostic_print_caret_line): Likewise.
13511 * diagnostic-show-locus.c: New file.
13513 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
13515 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13516 "back" parameter. Declare label in #if block.
13518 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
13520 PR middle-end/67619
13521 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13522 the address to a register.
13524 2015-09-18 Jeff Law <law@redhat.com>
13526 PR tree-optimization/47679
13527 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13528 * tree-ssa-dom.c: Remove unnecessary header includes.
13529 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
13530 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
13531 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
13532 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
13533 (pass_phi_only_cprop::execute): Likewise.
13534 (make_pass_phi_only_cprop): Likewise.
13535 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
13536 uses of file scoped statics by passing the required objects
13537 as parameters wherever needed.
13539 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
13540 David Edelsohn <dje.gcc@gmail.com>
13542 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
13543 EH_FRAME_THROUGH_COLLECT2.
13544 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
13546 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
13547 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
13548 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
13549 * except.c (switch_to_exception_section): Use a read-only section
13550 even if EH_FRAME_SECTION_NAME is undefined.
13551 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
13552 * collect2.c (write_c_file_stat): Provide dbase on AIX.
13553 (scan_prog_file): Don't export __dso_handle nor
13554 __gcc_unwind_dbase.
13555 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13556 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13557 (ASM_OUTPUT_DWARF_PCREL): Define.
13558 (ASM_OUTPUT_DWARF_DATAREL): Define.
13559 (EH_FRAME_THROUGH_COLLECT2): Define.
13560 (EH_FRAME_IN_DATA_SECTION): Delete.
13561 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
13562 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
13564 (rs6000_asm_output_dwarf_datarel): Declare.
13565 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
13566 (rs6000_aix_asm_output_dwarf_datarel): New.
13567 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
13568 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
13569 (EH_FRAME_THROUGH_COLLECT2): Define.
13570 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
13571 (EH_FRAME_THROUGH_COLLECT2): Define.
13572 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13573 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
13574 (EH_FRAME_THROUGH_COLLECT2): New.
13575 (ASM_OUTPUT_DWARF_DATAREL): New.
13576 * doc/tm.texi: Regenerate.
13578 2015-09-18 Richard Biener <rguenther@suse.de>
13580 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
13581 we're in early phase.
13582 (schedule_generic_params_dies_gen): Likewise.
13583 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
13584 work as possible, retaining unhandled cases.
13585 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
13586 clear out generic_type_instances at the end.
13587 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
13588 (dwarf2out_early_finish): ... here. Do most of
13589 gen_remaining_tmpl_value_param_die_attribute here.
13591 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
13593 PR tree-optimization/67283
13594 * tree-sra.c (type_consists_of_records_p): Rename to...
13595 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13596 (completely_scalarize_record): Rename to...
13597 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13598 (scalarize_elem): New.
13599 (analyze_all_variable_accesses): Follow renamings.
13601 2015-09-18 Richard Biener <rguenther@suse.de>
13603 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
13606 2015-09-18 Richard Biener <rguenther@suse.de>
13608 PR tree-optimization/66142
13609 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
13610 treat MEM[&x] and x the same.
13611 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
13612 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
13613 when we simplified sth.
13614 (vn_reference_maybe_forwprop_address): Likewise.
13615 (valueize_refs_1): When we simplified through
13616 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
13617 set valueized_anything to true.
13618 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
13619 one ref kills the other instead of just a offset-based test.
13620 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
13621 for the operand_equal_p test to compare bases and also compare
13624 2015-09-17 Christian Bruel <christian.bruel@st.com>
13626 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
13628 2015-09-17 Richard Henderson <rth@redhat.com>
13631 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
13632 pointers that encode the alignment of the object.
13634 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13636 PR rtl-optimization/66790
13637 * df-problems.c (LIVE): Amend documentation.
13639 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
13641 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
13643 (GTFILES): Replace optabs.c with optabs-libfunc.c.
13644 * genopinit.c (main): Add an include guard to insn-opinit.h.
13645 Protect the rtx_code parts with NUM_RTX_CODE.
13646 * optabs.h: Split parts out to...
13647 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
13648 * optabs.c: Split parts out to...
13649 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
13650 * cilk-common.c: Include optabs-query.h rather than optabs.h.
13651 * fold-const.c: Likewise.
13652 * target-globals.c: Likewise.
13653 * tree-if-conv.c: Likewise.
13654 * tree-ssa-forwprop.c: Likewise.
13655 * tree-ssa-loop-prefetch.c: Likewise.
13656 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
13657 Remove unncessary include files.
13658 * tree-ssa-phiopt.c: Likewise.
13659 * tree-ssa-reassoc.c: Likewise.
13660 * tree-switch-conversion.c: Likewise.
13661 * tree-vect-data-refs.c: Likewise.
13662 * tree-vect-generic.c: Likewise.
13663 * tree-vect-loop.c: Likewise.
13664 * tree-vect-patterns.c: Likewise.
13665 * tree-vect-slp.c: Likewise.
13666 * tree-vect-stmts.c: Likewise.
13667 * tree-vrp.c: Likewise.
13668 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
13669 rather than optabs.h.
13670 * expr.c: Include optabs-tree.h.
13671 * function.c: Likewise.
13673 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13675 PR middle-end/65958
13676 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
13677 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
13678 * config/arm/arm.c: Include common/common-target.h.
13679 (use_return_insn): Return 0 if the static chain register was saved
13680 above a non-APCS frame.
13681 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
13682 (struct scratch_reg): New.
13683 (get_scratch_register_on_entry): New function.
13684 (release_scratch_register_on_entry): Likewise.
13685 (arm_emit_probe_stack_range): Likewise.
13686 (output_probe_stack_range): Likewise.
13687 (arm_expand_prologue): Factor out code dealing with the IP register
13688 for nested function and adjust it for stack checking.
13689 Invoke arm_emit_probe_stack_range if static builtin stack checking
13691 (thumb1_expand_prologue): Sorry out if static builtin stack checking
13693 (arm_expand_epilogue): Add the saved static chain register, if any, to
13694 the amount of pre-pushed registers to pop.
13695 (arm_frame_pointer_required): Return true if static stack checking is
13696 enabled and we want to catch the exception with the EABI unwinder.
13697 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
13698 (UNSPEC_PROBE_STACK_RANGE): Likewise.
13699 * config/arm/arm.md (probe_stack): New insn.
13700 (probe_stack_range): Likewise.
13702 2015-09-17 Richard Biener <rguenther@suse.de>
13704 * genmatch.c (parser::parse_expr): Improve error message
13705 for mis-placed flags.
13707 2015-09-17 Richard Biener <rguenther@suse.de>
13709 * passes.c (rest_of_decl_compilation): Always call early_global_decl
13710 debug hook when we created a varpool node.
13711 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
13712 dwarf2out_early_global_decl, when not just add location or
13713 value attributes to existing DIEs.
13715 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
13717 * config/aarch64/aarch64.md (copysigndf3): New.
13718 (copysignsf3): Likewise.
13720 2015-09-17 David S. Miller <davem@davemloft.net>
13722 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
13723 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
13724 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13725 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13726 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13727 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13728 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13729 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13730 provide when flag_pic.
13732 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
13734 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
13735 object_allocator change.
13737 2015-09-17 Bin Cheng <bin.cheng@arm.com>
13739 PR tree-optimization/66388
13740 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
13741 (dump_iv): Dump no_overflow information.
13742 (alloc_iv): Initialize new field for struct iv.
13743 (mark_bivs): Count number of no_overflow bivs.
13744 (find_deriving_biv_for_expr, record_biv_for_address_use): New
13746 (idx_find_step): Call new functions above.
13747 (add_candidate_1, add_candidate): New paramter.
13748 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
13749 (get_computation_aff): Simplify convertion of cand for BIV.
13750 (get_computation_cost_at): Step cand's base if necessary.
13752 2015-09-17 Bin Cheng <bin.cheng@arm.com>
13754 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
13756 (tree_simplify_using_condition): Ditto.
13757 (simplify_using_initial_conditions): Ditto.
13758 (loop_exits_before_overflow): Pass new argument to function
13759 simplify_using_initial_conditions. Remove case for type conversions
13761 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
13763 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
13764 in iv base using loop initial conditions.
13766 2015-09-16 Jeff Law <law@redhat.com>
13768 PR tree-optimization/47679
13769 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
13770 (free_all_edge_infos): Use it.
13771 (allocate_edge_info): Free preexisting edge info data.
13772 (pass_dominator::execute): Set up initial edge info structures.
13773 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
13774 thread_across_edge.
13775 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
13776 If non-null, then push/pop markers appropriately.
13777 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13778 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
13779 thread-across_edge.
13781 2015-09-16 James Bowman <james.bowman@ftdichip.com>
13783 * config/ft32/ft32.c: Fix the memory address space predicate.
13785 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
13788 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
13789 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13791 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13793 * toplev.h (check_global_declaration): Remove declaration.
13794 * toplev.c (check_global_declaration): Move to ...
13795 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
13796 (analyze_functions): Update call.
13798 2015-09-16 David S. Miller <davem@davemloft.net>
13800 * lra-constraints.c (simplify_operand_subreg): Do not assume that
13801 lowpart of a SUBREG has offset zero.
13803 2015-09-16 Jeff Law <law@redhat.com>
13805 PR tree-optimization/47679
13806 * tree-ssa-dom.c (enum expr_kind): Moved from here to
13807 tree-ssa-scopedtables.h.
13808 (struct hashable_expr, class expr_hash_elt): Likewise.
13809 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
13810 Move associated methods into tree-ssa-scopedtables.c.
13811 (avail_expr_hash, initialize_expr_from_cond): Similarly.
13812 (hashable_expr_equal_p, add_expr_commutative): Likewise.
13813 (add_hashable_expr): Likewise.
13814 (record_cond): Delete element directly.
13815 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
13816 private copy ctor and assignment operator methods.
13817 (expr_elt_hasher): Inline trivial methods.
13818 (initialize_expr_from_cond): Prototype.
13819 * tree-ssa-scopedtables.c: Add necessary includes, functions and
13820 methods that were previously in tree-ssa-dom.c. Improve various
13823 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
13825 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
13827 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
13830 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13833 2015-09-16 Richard Biener <rguenther@suse.de>
13835 PR middle-end/67253
13836 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
13837 location of possibly shared trees.
13839 2015-09-16 Richard Biener <rguenther@suse.de>
13841 PR middle-end/67271
13842 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
13844 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
13846 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
13847 offset and size computations instead of HOST_WIDE_INT.
13849 2015-09-16 Richard Biener <rguenther@suse.de>
13851 PR middle-end/67442
13852 * fold-const.c (extract_muldiv_1): Properly extend multiplication
13853 result before builting a tree via wide_int_to_tree.
13855 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
13857 * Makefile.in: Add memory-block.cc
13858 (pool_allocator::initialize): Use fixed block size.
13859 (pool_allocator::release): Use memory_block_pool.
13860 (pool_allocator::allocate): Likewise.
13861 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
13863 * cfg.c (initialize_original_copy_tables): Likewise.
13864 * cselib.c (elt_list_pool, elt_loc_list_pool,
13865 cselib_val_pool): Likewise.
13866 * df-problems.c (df_chain_alloc): Likewise.
13867 * df-scan.c (df_scan_alloc): Likewise.
13868 * dse.c (cse_store_info_pool, rtx_store_info_pool,
13869 read_info_type_pool, insn_info_type_pool, bb_info_pool,
13870 group_info_pool, deferred_change_pool): Likewise.
13871 * et-forest.c (et_nodes, et_occurrences): Likewise.
13872 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
13873 ipcp_agg_lattice_pool): Likewise.
13874 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
13875 * ipa-profile.c (histogram_pool): Likewise.
13876 * ipa-prop.c (ipa_refdesc_pool): Likewise.
13877 * ira-build.c (live_range_pool, allocno_pool, object_pool,
13878 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
13879 * ira-color.c (update_cost_record_pool): Likewise.
13880 * lra-lives.c (lra_live_range_pool): Likewise.
13881 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
13882 * memory-block.cc: New file.
13883 * memory-block.h: New file.
13884 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
13885 * sched-deps.c (sched_deps_init): Likewise.
13886 * sel-sched-ir.c (sched_lists_pool): Likewise.
13887 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
13888 * tree-sra.c (access_pool): Likewise.
13889 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13890 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
13891 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
13892 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13893 * tree-ssa-strlen.c (strinfo_pool): Likewise.
13894 * tree-ssa-structalias.c (variable_info_pool): Likewise.
13895 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
13896 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
13898 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13900 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
13902 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
13905 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13907 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
13908 to pass TLS call argument, according to current ABI.
13909 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
13910 callx0 for TLS call, according to current ABI.
13912 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13914 * tree-eh.c (lower_try_finally_dup_block): Clear location information
13915 on stack restore statements.
13916 (decide_copy_try_finally): Do not consider a stack restore statement as
13917 coming from sources.
13919 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
13921 * config/alpha/alpha.c (alpha_expand_block_clear): Use
13922 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
13924 2015-09-15 Jeff Law <law@redhat.com>
13926 PR tree-optimization/47679
13927 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
13928 methods and private members.
13929 (avail_exprs_stack): Similarly. Change type of global
13930 from a pair of expr_hash_elt_t to the new class.
13931 (expr_elt_hasher::hash): Corresponding changes.
13932 (expr_elt_hasher::equal): Similarly.
13933 (avail_expr_hash): Similarly.
13934 (pass_dominator::execute): Similarly.
13935 (dom_opt_dom_walker::thread_across_edge): Similarly.
13936 (record_cond): Similarly.
13937 (dom_opt_dom_walker::before_dom_children): Similarly.
13938 (dom_opt_dom_walker::after_dom_children): Similarly.
13939 (lookup_avail_expr): Likewise.
13940 (initialize_hash_element): Now a expr_hash_elt constructor.
13941 (initialize_hash_element_from_expr): Similarly.
13942 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
13943 (free_expr_hash_elt): Call dtor for the element.
13944 (remove_local_expressions_from_table): Now the "pop_to_marker"
13945 method in the available_exprs_stack class.
13946 (avail_expr_stack::record_expr): Method factored out.
13947 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
13949 (hashable_expr_equal_p): Fix formatting.
13951 2015-09-15 David Malcolm <dmalcolm@redhat.com>
13953 * input.h (location_get_source_line): Drop "expanded_location"
13954 param in favor of a file and line number.
13955 * input.c (location_get_source_line): Likewise.
13956 (dump_location_info): Update for change in signature of
13957 location_get_source_line.
13958 * diagnostic.c (diagnostic_print_caret_line): Likewise.
13960 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13962 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
13963 Bump to 4KB for SJLJ exceptions.
13964 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
13965 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
13966 * doc/tm.texi: Regenerate.
13968 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13970 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
13971 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
13974 2015-09-15 Richard Biener <rguenther@suse.de>
13976 PR tree-optimization/67470
13977 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
13978 structure for PHI hoisting by inserting a forwarder block
13981 2015-09-15 Christian Bruel <christian.bruel@st.com>
13983 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
13984 (arm_option_print): New function.
13986 2015-09-15 Christian Bruel <christian.bruel@st.com>
13989 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
13990 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
13991 Remove flags parameter.
13992 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
13993 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
13994 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
13995 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
13996 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
13997 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
13998 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
13999 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
14001 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14003 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
14005 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
14006 AARCH64_VALID_SIMD_DREG_MODE.
14008 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14010 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
14011 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
14012 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
14013 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
14014 aarch64_ld4_lane<mode>): Combine together, making...
14015 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14016 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14017 aarch64_st4_lane<mode>): Combine together, making...
14018 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14019 * config/aarch64/iterators.md (nregs): Add comment.
14021 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14023 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
14024 Change operand mode from <V_TWO_ELEM> to BLK.
14025 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
14026 (aarch64_vec_store_lanesoi_lane<mode): Likewise
14027 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14028 (aarch64_ld2_lane<mode>): Likewise.
14029 (aarch64_st2_lane<VQ:mode>): Likewise.
14030 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
14032 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14034 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
14035 Change operand mode from <V_FOUR_ELEM> to BLK.
14036 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
14037 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
14038 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14039 (aarch64_ld4_lane<mode>): Likewise.
14040 (aarch64_st4_lane<mode>): Likewise.
14041 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
14043 2015-09-15 Richard Biener <rguenther@suse.de>
14045 PR middle-end/67563
14046 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
14047 transfer EH info from old to new stmt.
14048 (replace_call_with_value): Likewise.
14049 (replace_call_with_call_and_fold): Likewise.
14050 (gimple_fold_builtin_memory_op): Likewise.
14051 (gimple_fold_builtin_memset): Likewise.
14052 (gimple_fold_builtin_stpcpy): Likewise.
14053 (gimple_fold_call): Likewise.
14055 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14057 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
14059 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
14060 (aarch64_simd_intEI_type_node): Likewise.
14061 (aarch64_simd_builtin_std_type): Remove EImode case.
14062 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
14063 * config/aarch64/aarch64-modes.def: Remove EImode.
14065 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14067 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
14068 Change operand mode from <V_THREE_ELEM> to BLK.
14069 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
14070 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
14071 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14072 (aarch64_ld3_lane<mode>): Likewise.
14073 (aarch64_st3_lane<mode>): Likewise.
14074 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
14076 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14078 * config/aarch64/aarch64-simd.md
14079 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
14080 Change all TImode operands to BLKmode.
14081 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
14082 Change all EImode operands to BLKmode.
14083 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
14084 Change all OImode operands to BLKmode.
14086 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
14087 and call set_mem_size.
14088 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
14090 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
14092 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14094 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
14096 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
14098 (vec_store_lanesci_lane<mode>): Rename to...
14099 (aarch64_vec_store_lanesci_lane<mode>): ...this.
14101 (vec_store_lanesxi_lane<mode>): Rename to...
14102 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
14104 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14105 aarch64_st4_lane<mode>): Follow renaming.
14107 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14109 * config/s390/s390.c (s390_const_operand_ok): Add missing
14112 2015-09-15 Richard Biener <rguenther@suse.de>
14115 * lto-streamer.h (lto_location_cache::current_sysp): Properly
14117 * lto-streamer-out.c (clear_line_info): Likewise.
14119 2015-09-15 Richard Biener <rguenther@suse.de>
14121 * doc/match-and-simplify.texi: Fix wording.
14123 2015-09-15 Bin Cheng <bin.cheng@arm.com>
14125 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14126 unnecessary type conversion in op1.
14128 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
14130 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14131 (dup_block_and_redirect): Delete function.
14132 (can_dup_for_shrink_wrapping): New function.
14133 (fix_fake_fallthrough_edge): New function.
14134 (try_shrink_wrapping): Rewrite function.
14135 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14137 2015-09-14 Rich Felker <dalias@libc.org>
14139 * configure.ac: Change target pattern for sh TLS support
14140 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14141 * configure: Regenerate.
14143 2015-09-14 Jeff Law <law@redhat.com>
14145 PR tree-optimization/47679
14146 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14147 type rather than void *.
14149 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14152 * diagnostic.c (diagnostic_initialize): Do not set
14153 some_warnings_are_errors.
14154 (diagnostic_finish): Use DK_WERROR count instead.
14155 (diagnostic_report_diagnostic): Do not set
14156 some_warnings_are_errors.
14157 * diagnostic.h (struct diagnostic_context): Remove
14158 some_warnings_are_errors.
14160 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
14162 * config/sparc/predicates.md (const_all_ones_operand): Use
14163 CONSTM1_RTX to simplify definition.
14165 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
14168 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14171 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
14173 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14174 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14175 OPT_fshow_column to handled saved option cases.
14176 (append_compiler_options): Do not skip the above added options.
14178 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14181 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14182 nopcrelative_literal_loads.
14183 (aarch64_classify_address): Likewise.
14184 (aarch64_constant_pool_reload_icode): Define.
14185 (aarch64_secondary_reload): Handle secondary reloads for
14187 (aarch64_override_options): Handle nopcrelative_literal_loads.
14188 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14189 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14191 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14192 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14193 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14195 * doc/invoke.texi (mpc-relative-literal-loads): Document.
14197 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
14199 PR middle-end/67401
14200 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14201 sync_compare_and_swap_optab libcall to target_oval.
14203 2015-09-14 Marek Polacek <polacek@redhat.com>
14205 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14207 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14209 2015-09-11 Mark Wielaard <mjw@redhat.com>
14212 * toplev.c (check_global_declaration): Check and use
14213 warn_unused_const_variable.
14214 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14215 (-Wunused-variable): Remove non-constant. For C implies
14216 -Wunused-const-variable.
14217 (-Wunused-const-variable): New.
14219 2015-09-14 Richard Biener <rguenther@suse.de>
14221 * doc/match-and-simplify.texi: Update for changed syntax
14222 of inner ifs and the new switch expression.
14224 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14226 * config/i386/haswell.md: New file describing Haswell pipeline.
14227 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14228 haswell-like processors.
14229 (ix86_reassociation_width): Increase reassociation width for 64-bit
14230 Haswell processor family.
14231 * config/i386/i386.md: Introduce haswell cpu and include new md file.
14233 2015-09-14 Richard Biener <rguenther@suse.de>
14235 * doc/match-and-simplify.texi: Fixup some formatting issues
14236 and document the 's' flag.
14238 2015-09-13 Olivier Hainque <hainque@adacore.com>
14239 Eric Botcazou <ebotcazou@adacore.com>
14241 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14242 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
14243 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14244 (TARGET_CPU_gr5): Likewise.
14245 (TARGET_CPU_gr6): Likewise.
14246 (MULTILIB_DEFAULTS): Likewise.
14247 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14248 for mcpu=gr5 and mcpu=gr6.
14249 (MULTILIB_DIRNAMES): Adjust accordingly.
14251 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14253 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14254 (mem_ref_p): Likewise.
14255 (outermost_indep_loop): Adjust.
14256 (mem_ref_in_stmt): Likewise.
14257 (determine_max_movement): Likewise.
14258 (mem_ref_alloc): Likewise.
14259 (record_mem_ref_loc): Likewise.
14260 (set_ref_stored_in_loop): Likewise.
14261 (mark_ref_stored): Likewise.
14262 (gather_mem_refs_stmt): Likewise.
14263 (mem_refs_may_alias_p): Likewise.
14264 (for_all_locs_in_loop): Likewise.
14265 (struct rewrite_mem_ref_loc): Likewise.
14266 (rewrite_mem_refs): Likewise.
14267 (struct first_mem_ref_loc_1): Likewise.
14268 (first_mem_ref_loc): Likewise.
14269 (struct sm_set_flag_if_changed): Likewise.
14270 (execute_sm_if_changed_flag_set): Likewise.
14271 (execute_sm): Likewise.
14272 (hoist_memory_references):
14273 (struct ref_always_accessed): Likewise.
14274 (ref_always_accessed_p): Likewise.
14275 (refs_independent_p): Likewise.
14276 (record_dep_loop): Likewise.
14277 (ref_indep_loop_p_1): Likewise.
14278 (ref_indep_loop_p_2): Likewise.
14279 (ref_indep_loop_p): Likewise.
14280 (can_sm_ref_p): Likewise.
14281 (find_refs_for_sm): Likewise.
14282 (tree_ssa_lim_finalize): Likewise.
14284 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14286 * dwarf2out.c (dw_attr_ref): Remove typedef.
14287 (dw_line_info_ref): Likewise.
14288 (pubname_ref): Likewise.
14289 (dw_ranges_ref): Likewise.
14290 (dw_ranges_by_label_ref): Likewise.
14291 (comdat_type_node_ref): Likewise.
14293 (get_AT_low_pc): Likewise.
14294 (get_AT_hi_pc): Likewise.
14295 (get_AT_string): Likewise.
14296 (get_AT_flag): Likewise.
14297 (get_AT_unsigned): Likewise.
14298 (get_AT_ref): Likewise.
14299 (get_AT_file): Likewise.
14300 (remove_AT): Likewise.
14301 (print_die): Likewise.
14302 (check_die): Likewise.
14303 (die_checksum): Likewise.
14304 (attr_checksum_ordered): Likewise.
14305 (struct checksum_attributes): Likewise.
14306 (collect_checksum_attributes): Likewise.
14307 (die_checksum_ordered): Likewise.
14308 (same_die_p): Likewise.
14309 (is_declaration_die): Likewise.
14310 (clone_die): Likewise.
14311 (clone_as_declaration): Likewise.
14312 (copy_declaration_context): Likewise.
14313 (break_out_comdat_types): Likewise.
14314 (copy_decls_walk): Likewise.
14315 (output_location_lists): Likewise.
14316 (external_ref_hasher::hash): Likewise.
14317 (optimize_external_refs_1): Likewise.
14318 (build_abbrev_table): Likewise.
14319 (size_of_die): Likewise.
14320 (unmark_all_dies): Likewise.
14321 (size_of_pubnames): Likewise.
14322 (output_die_abbrevs): Likewise.
14323 (output_die): Likewise.
14324 (output_pubnames): Likewise.
14325 (add_ranges_num): Likewise.
14326 (add_ranges_by_labels): Likewise.
14327 (add_high_low_attributes): Likewise.
14328 (gen_producer_string): Likewise.
14329 (dwarf2out_set_name): Likewise.
14330 (new_line_info_table): Likewise.
14331 (prune_unused_types_walk_attribs): Likewise.
14332 (prune_unused_types_update_strings): Likewise.
14333 (prune_unused_types): Likewise.
14334 (resolve_addr): Likewise.
14335 (optimize_location_lists_1): Likewise.
14336 (index_location_lists): Likewise.
14337 (dwarf2out_finish): Likewise.
14339 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14341 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14343 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14345 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14346 (dump_asserts_for): Adjust.
14347 (register_new_assert_for): Likewise.
14348 (process_assert_insertions): Likewise.
14349 (insert_range_assertions): Likewise.
14351 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14353 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14354 and remove typedef.
14355 (new_temp_expr_table): Adjust.
14356 (free_temp_expr_table): Likewise.
14357 (version_to_be_replaced_p): Likewise.
14358 (make_dependent_on_partition): Likewise.
14359 (add_to_partition_kill_list): Likewise.
14360 (remove_from_partition_kill_list): Likewise.
14361 (add_dependence): Likewise.
14362 (finished_with_expr): Likewise.
14363 (process_replaceable): Likewise.
14364 (kill_expr): Likewise.
14365 (kill_virtual_exprs): Likewise.
14366 (mark_replaceable): Likewise.
14367 (find_replaceable_in_bb): Likewise.
14368 (find_replaceable_exprs): Likewise.
14369 (debug_ter): Likewise.
14371 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14373 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14374 (struct btr_user): Rename from btr_user_s.
14375 (struct btr_def): Rename from btr_def_s.
14376 (find_btr_def_group): Adjust.
14377 (add_btr_def): Likewise.
14378 (new_btr_user): Likewise.
14379 (note_other_use_this_block): Likewise.
14380 (compute_defs_uses_and_gen): Likewise.
14381 (link_btr_uses): Likewise.
14382 (build_btr_def_use_webs): Likewise.
14383 (block_at_edge_of_live_range_p): Likewise.
14384 (btr_def_live_range): Likewise.
14385 (combine_btr_defs): Likewise.
14386 (move_btr_def): Likewise.
14387 (migrate_btr_def): Likewise.
14388 (migrate_btr_defs): Likewise.
14390 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14392 * var-tracking.c (shared_hash_def): Rename to shared_hash.
14393 (shared_hash): Remove typedef.
14394 (struct dataflow_set): Adjust.
14395 (shared_hash_unshare): Likewise.
14396 (dataflow_set_merge): Likewise.
14397 (vt_initialize): Likewise.
14398 (vt_finalize): Likewise.
14400 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14402 * var-tracking.c (struct location_chain): Rename from
14403 location_chain_def.
14404 (struct variable_part): Adjust.
14405 (variable_htab_free): Likewise.
14406 (unshare_variable): Likewise.
14407 (get_init_value): Likewise.
14408 (get_addr_from_local_cache): Likewise.
14409 (drop_overlapping_mem_locs): Likewise.
14410 (val_reset): Likewise.
14411 (struct variable_union_info): Likewise.
14412 (variable_union): Likewise.
14413 (find_loc_in_1pdv): Likewise.
14414 (insert_into_intersection): Likewise.
14415 (intersect_loc_chains): Likewise.
14416 (canonicalize_loc_order_check): Likewise.
14417 (canonicalize_values_mark): Likewise.
14418 (canonicalize_values_star): Likewise.
14419 (canonicalize_vars_star): Likewise.
14420 (variable_merge_over_cur): Likewise.
14421 (remove_duplicate_values): Likewise.
14422 (variable_post_merge_new_vals): Likewise.
14423 (variable_post_merge_perm_vals): Likewise.
14424 (find_mem_expr_in_1pdv): Likewise.
14425 (dataflow_set_preserve_mem_locs): Likewise.
14426 (dataflow_set_remove_mem_locs): Likewise.
14427 (variable_part_different_p): Likewise.
14428 (onepart_variable_different_p): Likewise.
14429 (find_src_set_src): Likewise.
14430 (dump_var): Likewise.
14431 (set_slot_part): Likewise.
14432 (clobber_slot_part): Likewise.
14433 (delete_slot_part): Likewise.
14434 (vt_expand_var_loc_chain): Likewise.
14435 (emit_note_insn_var_location): Likewise.
14436 (vt_finalize): Likewise.
14438 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14440 * dse.c (store_info_t): Remove typedef.
14441 (group_info_t): Likewise.
14442 (const_group_info_t): Likewise.
14443 (deferred_change_t): Likewise.
14444 (get_group_info): Adjust.
14445 (free_store_info): Likewise.
14446 (canon_address): Likewise.
14447 (clear_rhs_from_active_local_stores): Likewise.
14448 (record_store): Likewise.
14449 (replace_read): Likewise.
14450 (check_mem_read_rtx): Likewise.
14451 (scan_insn): Likewise.
14452 (remove_useless_values): Likewise.
14453 (dse_step1): Likewise.
14454 (dse_step2_init): Likewise.
14455 (dse_step2_nospill): Likewise.
14456 (scan_stores_nospill): Likewise.
14457 (scan_reads_nospill): Likewise.
14458 (dse_step3_exit_block_scan): Likewise.
14459 (dse_step3): Likewise.
14460 (dse_step5_nospill): Likewise.
14461 (dse_step6): Likewise.
14463 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14465 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14466 (alias_set_entry): Remove typedef.
14467 (alias_set_subset_of): Adjust.
14468 (alias_sets_conflict_p): Likewise.
14469 (init_alias_set_entry): Likewise.
14470 (get_alias_set): Likewise.
14471 (new_alias_set): Likewise.
14472 (record_alias_subset): Likewise.
14474 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
14476 * doc/install.texi (Downloading the source): Mark up
14477 contrib/download_prerequisites properly and drop leading "./".
14479 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14481 * config/arc/arc.h: Remove define of STRUCT_VALUE.
14482 * config/lm32/lm32.h: Likewise.
14483 * config/mep/mep.h: Likewise.
14484 * config/visium/visium.h: Likewise.
14485 * system.h: Poison STRUCT_VALUE macro.
14487 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
14489 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14490 CONSTANT_P operands.
14492 2015-09-11 David S. Miller <davem@davemloft.net>
14494 * config/sparc/constraints.md: Make "U" constraint a real register
14496 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14497 (D_MODES, DF_MODES): Add missing cast.
14498 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14499 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14500 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14502 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14503 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14504 provide these insn when flag_pic.
14506 2015-09-11 Jeff Law <law@redhat.com>
14508 PR tree-optimization/47679
14509 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14510 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14511 member with m_. Update inline member functions as necessary. Add
14513 * tree-ssa-scopedtables.c: Update const_and_copies's member
14514 functions to use m_ prefix to access the stack.
14516 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14518 * graphite-optimize-isl.c (disable_tiling): Remove.
14519 (get_schedule_for_band): Do not use disable_tiling.
14520 (get_prevector_map): Delete function.
14521 (enable_polly_vector): Remove.
14522 (get_schedule_for_band_list): Remove dead code.
14524 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14526 * graphite-optimize-isl.c (get_tile_map): Refactor.
14527 (get_schedule_for_band): Same.
14528 (getScheduleForBand): Same.
14529 (get_prevector_map): Same.
14530 (get_schedule_for_band_list): Same.
14531 (get_schedule_map): Same.
14532 (get_single_map): Same.
14533 (apply_schedule_map_to_scop): Same.
14534 (optimize_isl): Same.
14536 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14539 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
14541 * config/aarch64/iterators.md (GPF_TF_F16): New.
14544 2015-09-10 Nathan Sidwell <nathan@acm.org>
14546 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
14547 (nvptx_reorg): Adjust comments.
14549 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
14552 * configure.ac: Check if setenv and unsetenv are declared.
14553 * configure: Rebuild.
14554 * config.in: Rebuild.
14555 * system.h: Declare setenv and unsetenv if not declared.
14557 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14559 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
14560 commentary to simplify permute mask adjustment equation.
14561 (special_handling_values): Add SH_VPERM.
14562 (const_load_sequence_p): New function.
14563 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
14564 the mask loaded from the constant pool.
14565 (adjust_vperm): New function.
14566 (handle_special_swappables): Call adjust_vperm.
14567 (dump_swap_insn_table): Handle SH_VPERM.
14569 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
14571 * shrink-wrap.c (requires_stack_frame_p): Remove static.
14572 * shrink-wrap.h (requires_stack_frame_p): Put back.
14574 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
14576 * reload1.c (elimination_costs_in_insn): Locally turn
14577 -Wmaybe-uninitialized into a warning.
14579 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
14581 * shrink-wrap.c (requires_stack_frame_p): Make static.
14582 (prepare_shrink_wrap): Likewise.
14583 (dup_block_and_redirect): Likewise.
14584 * shrink-wrap.h: Remove declarations of those functions.
14586 2015-09-10 Mark Wielaard <mjw@redhat.com>
14588 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
14590 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
14593 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
14594 missing simplify_gen_subreg.
14596 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14598 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
14599 the vector element is bigger than 64 bit.
14601 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14603 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
14604 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
14606 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14608 * config/s390/s390.c: Add V1TImode to constant pool modes.
14610 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14613 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
14614 predicate. Set predicable_short_it attr to "no".
14616 2015-09-10 Jiong Wang <jiong.wang@arm.com>
14618 PR rtl-optimization/67421
14619 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
14620 left wide shift tranformation.
14622 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14624 * common/config/arc/arc-common.c: Remove references to A5.
14625 * config/arc/arc-opts.h: Likewise.
14626 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
14627 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
14628 * config/arc/t-arc-newlib: Likewise.
14630 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14632 * config/arc/arc.md (length): Fix attribute length for conditional
14633 executed instructions with long immediate.
14635 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14637 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
14638 type for second alternative.
14640 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
14642 * doc/invoke.texi (Downloading GCC): Mention
14643 contrib/download_prerequisites script.
14645 2015-09-10 Jakub Jelinek <jakub@redhat.com>
14648 * gimplify.c (gimplify_omp_for): If inner stmt is not found
14649 for combined loop, assert seen_error () and return GS_ERROR.
14651 PR middle-end/67521
14652 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
14653 if decl is already in outer->variables.
14655 PR middle-end/67517
14656 * gimplify.c (gimplify_scan_omp_clauses): Instead of
14657 asserting that decl is not specified in octx->variables,
14658 break out of the loop if it is.
14661 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
14662 iterator is not explicitly determined, but is defined inside
14663 of the combined workshare region, handle it like if it has
14664 DECL_EXPR in OMP_FOR_PRE_BODY.
14666 2015-09-09 Nathan Sidwell <nathan@acm.org>
14668 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
14669 (*cmp<mode>): Add assembler spacing.
14670 (setcc_int<mode>, set_cc_float<mode>): Likewise.
14671 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
14673 (write_func_decl_from_insn): Refactor argument loops & comma emission.
14674 (nvptx_expand_call): Likewise.
14675 (nvptx_output_call_insn): Likewise.
14676 (nvptx_reorg_subreg): Add spacing.
14678 2015-09-09 Marek Polacek <polacek@redhat.com>
14680 PR middle-end/67512
14681 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
14684 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
14687 * doc/invoke.texi ([Wsubobject-linkage]): Document.
14689 2015-09-09 Tom de Vries <tom@codesourcery.com>
14691 * params-list.h: Add missing copyright notice.
14693 2015-09-09 Nathan Sidwell <nathan@acm.org>
14695 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
14696 sel_truesi, not andsi.
14698 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14700 * config/arm/arm.md (*subsi3_compare0): Rename to...
14701 (subsi3_compare0): ... This.
14702 (modsi3): New define_expand.
14703 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
14704 when operand is power of 2.
14706 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14708 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
14709 (*neg<mode>2_compare0): Rename to...
14710 (neg<mode>2_compare0): ... This.
14711 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
14712 Move check for speed inside the if-then-elses. Reflect
14713 CSNEG sequence in MOD by power of 2 case.
14715 2015-09-09 Alan Modra <amodra@gmail.com>
14718 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
14719 reload replacement for PRE_MODIFY address reg.
14721 2015-09-09 Sebastian Pop <s.pop@samsung.com>
14723 PR tree-optimization/53852
14724 * config.in: Regenerate.
14725 * configure: Regenerate.
14726 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
14727 * graphite-optimize-isl.c (optimize_isl): Stop computation when
14728 PARAM_MAX_ISL_OPERATIONS is reached.
14729 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
14730 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
14731 result equal to isl_stat_ok as the status now can be isl_error_quota.
14732 (subtract_commutative_associative_deps): Same.
14733 (compute_deps): Same.
14735 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14736 Sebastian Pop <s.pop@samsung.com>
14738 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14739 Return the parameter if it was saved in corresponding
14740 parameter_rename_map of the region.
14741 (copy_def): Copy def from sese region to the newly created region.
14742 (copy_internal_parameters): Copy all the internal parameters defined
14743 within a region to the newly created region.
14744 (graphite_regenerate_ast_isl): Copy parameters to the new region before
14745 translating isl to gimple.
14746 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
14747 the loop-nest does not have any data-references.
14748 (build_graphite_scops): Create a scop only when there is at least one
14750 (contains_only_close_phi_nodes): Deleted.
14751 (print_graphite_scop_statistics): Deleted
14752 (print_graphite_statistics): Deleted
14753 (limit_scops): Deleted.
14754 (build_scops): Removed call to limit_scops.
14755 * sese.c (new_sese): Construct.
14756 (free_sese): Destruct.
14757 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
14759 (set_rename): Pass sese region so that parameters inside the region can
14760 be added to its parameter_rename_map.
14761 (rename_uses): Pass sese region.
14762 (graphite_copy_stmts_from_block): Do not copy parameters that have been
14763 generated in the header of the scop. For each SSA_NAME in the
14764 parameter_rename_map rename its usage.
14765 (invariant_in_sese_p_rec): Return false if tree t is defined outside
14767 (scalar_evolution_in_region): If the tree t is invariant just return t.
14768 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
14769 struct sese to keep track of all the parameters which need renaming.
14770 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
14772 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
14774 2015-09-08 Tom de Vries <tom@codesourcery.com>
14776 * Makefile.in (generated_files): Add params.list.
14777 (params.list, s-params.list): Add rule.
14778 * params.h (enum compiler_param): Include params-list.h. Move define
14779 DEFPARAM, include params.def and undef DEFPARAM ...
14780 * params-list.h: ... here. New file.
14782 2015-09-08 David Malcolm <dmalcolm@redhat.com>
14784 * pretty-print.h (printer_fn): Fix typo in comment.
14786 2015-09-07 Jeff Law <law@redhat.com>
14788 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
14790 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14792 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
14793 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
14794 (arm_neon_fp16_hw): New.
14796 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14798 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
14799 UNITS_PER_WORD >= 4.
14801 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14803 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
14804 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
14805 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
14806 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
14807 (aarch64_float_extend_lo_v2df): Rename to...
14808 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
14810 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
14811 (float_extend_lo): Add v4sf.
14813 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
14814 * config/aarch64/iterators.md (VQ_HSF): New iterator.
14815 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
14816 (Vwide): New mode_attr.
14818 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14820 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
14821 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
14822 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
14823 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
14824 V4HF and V8HF variants to iterator.
14826 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
14828 * config/aarch64/iterators.md (VDQF_F16): New.
14829 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
14831 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14833 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
14834 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14835 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
14836 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
14837 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
14838 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14839 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
14840 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
14841 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
14842 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
14843 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
14844 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14845 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
14846 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
14847 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
14848 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
14849 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
14850 vld1q_dup_f16): New.
14852 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14854 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
14855 Reparameterize to...
14856 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
14857 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
14858 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
14860 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
14862 (float_truncate_lo_): Use BUILTIN_VDF iterator.
14864 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
14866 * config/aarch64/iterators.md (VDF, Vdtype): New.
14867 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
14869 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14871 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
14872 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
14873 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
14874 Add __builtin_aarch64_simd_hf.
14875 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
14876 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
14877 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
14878 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
14879 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
14880 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
14881 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
14882 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
14883 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
14885 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
14886 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
14887 (VDC, Vdbl): Add V4HF.
14889 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14891 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
14892 V4HFmode and V8HFmode.
14893 (aarch64_split_simd_move): Add case for V8HFmode.
14894 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
14895 (aarch64_simd_builtin_std_type): Handle HFmode.
14896 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
14898 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
14899 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
14900 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
14902 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
14905 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
14906 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
14908 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
14909 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
14910 vst1q_lane_f16): New.
14911 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
14912 (VALLDI_F16, VALL_F16): New.
14913 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
14914 Add cases for V4HF and V8HF.
14915 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
14917 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14919 * config/arm/arm-builtins.c (VAR11, VAR12): New.
14920 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
14921 vld4_dup): Add v4hf variant.
14922 (vget_high, vget_low): Add v8hf variant.
14923 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
14924 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
14925 v4hf and v8hf variants.
14927 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
14929 (V_DOUBLE): Add case for V4HF.
14931 (V_HALF): Add case for V8HF.
14932 (VDQX): Add V4HF, V8HF.
14933 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
14934 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
14936 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
14937 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
14938 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
14939 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
14940 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
14941 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
14942 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
14943 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
14944 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
14946 (neon_vcreate, neon_vreinterpretv8qi<mode>,
14947 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14948 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
14949 Change VDX to VD_RE.
14951 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
14952 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
14953 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
14955 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
14956 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
14957 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
14958 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
14959 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
14960 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
14961 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
14962 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
14963 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
14965 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14967 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
14968 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
14969 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
14970 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
14971 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14972 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
14973 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
14974 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
14975 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
14976 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
14979 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14981 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
14983 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
14985 * config/arm/arm-builtins.c (v8hf_UP): New.
14986 (arm_init_simd_builtin_types): Initialise Float16x8_t.
14988 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
14990 * config/arm/arm_neon.h (float16x8_t): New typedef.
14992 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14994 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
14995 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
14996 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
14997 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
14998 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14999 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
15000 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
15001 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
15002 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15003 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
15005 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
15007 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
15008 non-alphanumeric characters in the symbol name.
15010 2015-09-07 Marek Polacek <polacek@redhat.com>
15012 PR inline-asm/67448
15013 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
15016 2015-09-07 Marek Polacek <polacek@redhat.com>
15018 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
15020 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
15022 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
15025 2015-09-04 Jakub Jelinek <jakub@redhat.com>
15027 PR middle-end/67452
15028 * tree-ssa-live.c: Include cfgloop.h.
15029 (remove_unused_locals): Clear loop->simduid if simduid is about
15030 to be removed from cfun->local_decls.
15032 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15035 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
15038 2015-09-04 Tom de Vries <tom@codesourcery.com>
15040 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
15042 2015-09-04 Jeff Law <law@redhat.com>
15044 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
15045 unnecessary constructor. It's now trivial and implemented inside...
15046 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
15047 constructor. Add comments to various methods. Remove unused
15049 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
15050 * tree-vrp.c (identify_jump_threads): Likewise.
15051 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
15052 indentation issues.
15053 (thread_across_edge): Similarly.
15054 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
15055 arguments in constructor call.
15057 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
15059 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
15060 temp path contains a '-'.
15062 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15063 Petr Murzin <petr.murzin@intel.com>
15064 Kirill Yukhin <kirill.yukhin@intel.com>
15066 * config/i386/i386-builtin-types.def
15067 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
15068 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
15069 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
15070 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
15071 * config/i386/i386.c
15072 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
15073 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15074 IX86_BUILTIN_SCATTERALTDIV16SI.
15075 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
15076 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
15077 __builtin_ia32_scatteraltdiv8si.
15078 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
15079 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15080 IX86_BUILTIN_SCATTERALTDIV16SI.
15081 (ix86_vectorize_builtin_scatter): New.
15082 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
15083 ix86_vectorize_builtin_scatter.
15085 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15086 Petr Murzin <petr.murzin@intel.com>
15087 Kirill Yukhin <kirill.yukhin@intel.com>
15089 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
15090 * doc/tm.texi: Regenerate.
15091 * target.def: Add scatter builtin.
15092 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
15093 for loads/stores in case of gather/scatter accordingly.
15094 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15095 STMT_VINFO_GATHER_P(S).
15096 (vect_check_gather): Rename to ...
15097 (vect_check_gather_scatter): this.
15098 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
15099 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15100 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15101 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
15102 variable and new checkings for it accordingly.
15103 * tree-vect-stmts.c
15104 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15105 STMT_VINFO_GATHER_P(S).
15106 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15107 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15109 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15111 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15113 (mulv16qi3): New define_expand.
15115 2015-09-03 Martin Sebor <msebor@redhat.com>
15118 * doc/extend.texi (Other Builtins): Document when the address
15119 of a built-in function can be taken.
15121 2015-09-03 Richard Biener <rguenther@suse.de>
15123 * dwarf2out.c (flush_limbo_die_list): Split out from ...
15124 (dwarf2out_early_finish): ... here.
15125 (dwarf2out_finish): Do not call dwarf2out_early_finish but
15126 flush_limbo_die_list. Assert we have no deferred asm names.
15128 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15130 * optabs.c (expand_binop): Don't create a broadcast vector with a
15131 source element wider than the inner mode.
15133 2015-09-03 Richard Biener <rguenther@suse.de>
15135 * varasm.c (output_constant): Use fold_convert instead of
15138 2015-09-03 Tom de Vries <tom@codesourcery.com>
15140 PR tree-optimization/65637
15141 * omp-low.c (expand_omp_for_static_chunk): Handle case that
15142 fin_bb has 2 predecessors.
15144 2015-09-03 Tom de Vries <tom@codesourcery.com>
15146 PR tree-optimization/65637
15147 * omp-low.c (find_phi_with_arg_on_edge): New function.
15148 (expand_omp_for_static_chunk): Fix inner loop phi.
15150 2015-09-03 Tom de Vries <tom@codesourcery.com>
15152 PR tree-optimization/65637
15153 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15156 2015-09-03 Tom de Vries <tom@codesourcery.com>
15158 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15160 2015-09-03 Tom de Vries <tom@codesourcery.com>
15162 * doc/invoke.texi (parloops-chunk-size): Add item.
15163 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15164 * tree-parloops.c: Include params.h.
15165 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15166 param parloops-chunk-size is used.
15168 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15170 PR middle-end/67351
15171 * fold-const.c (fold_binary_loc) : Move
15172 Transform (x >> c) << c into x & (-1<<c) or
15173 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15174 types using simplify and match.
15175 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15176 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15178 2015-09-03 Richard Biener <rguenther@suse.de>
15181 * tree-ssa-structalias.c (ctor_for_analysis): New function.
15182 (create_variable_info_for_1): Use ctor_for_analysis instead
15183 of get_constructor.
15184 (create_variable_info_for): Likewise.
15186 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
15189 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15190 in new callgraph edge.
15192 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
15197 * config/aarch64/aarch64-simd.md
15198 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15199 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15200 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15201 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15203 2015-09-02 Alan Modra <amodra@gmail.com>
15205 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15206 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15207 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15209 2015-09-02 Alan Modra <amodra@gmail.com>
15212 * config/rs6000/predicates.md (current_file_function_operand): Don't
15213 return true for weak symbols.
15214 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15216 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
15217 Andrew Bennett <andrew.bennett@imgtec.com>
15219 * config/mips/mips-opts.h (mips_cb_setting): New enum.
15220 * config/mips/mips-protos.h: Add definitions for
15221 mips_output_jump and mips_output_equal_conditional_branch
15222 * config/mips/mips.c (MIPS_JR): Change to support the
15224 (mips_emit_compare): Add support for the MIPS R6 conditional
15226 (mips_process_sync_loop): Likewise.
15227 (mips_output_order_conditional_branch): Likewise.
15228 (mips16_build_call_stub): Change MIPS_CALL to
15230 (mips_print_operand_punctuation): Update 's' case to only
15231 apply to micromips r2.
15232 (mips_adjust_insn_length): Add support for forbidden slot
15234 (mips_avoid_hazard): Likewise.
15235 (mips_reorg_process_insns): Likewise.
15236 (mips_output_jump): New function.
15237 (mips_output_equal_conditional_branch): Likewise.
15238 (mips_output_conditional_branch): Use jrc/bc if compact
15239 branch support is enabled. Ensure the forbidden slots
15240 between the two branch instructions is filled with a nop.
15241 (mips_option_override): Add support to process the compact
15242 branch option and set the correct defaults. Prevent
15243 non-explict relocs being using for MIPS R6.
15244 (mips_trampoline_init): Add compact branch support.
15245 (mips_mult_zero_zero_cost): Allow zero initialisation of
15246 accumulators with TARGET_DSP.
15247 * config/mips/mips.h (TARGET_CB_NEVER): New define.
15248 (TARGET_CB_MAYBE): New define.
15249 (TARGET_CB_ALWAYS): New define.
15250 (ISA_HAS_DELAY_SLOTS): New define.
15251 (ISA_HAS_COMPACT_BRANCHES): New define.
15252 (ISA_HAS_JRC): New define.
15253 (MIPS_BRANCH_C): New define.
15254 (MIPS_CALL): Removed.
15255 (MICROMIPS_J): Removed.
15256 * config/mips/mips.md (compact_form): New attr.
15257 (hazard): Add support for forbidden slots.
15258 (define_delay): Add support for compact branches.
15259 (*branch_order<mode>): Likewise.
15260 (*branch_order<mode>_inverted): Likewise.
15261 (*branch_equality<mode>): Likewise.
15262 (*branch_equality<mode>_inverted): Likewise.
15263 (*jump_absolute): Likewise.
15264 (*jump_pic): Likewise.
15265 (indirect_jump): Use mips_output_jump to produce assembly output.
15266 (tablejump_<mode>"): Likewise.
15267 (*<optab>"): Likewise.
15268 (<optab>_internal): Likewise.
15269 (sibcall_internal): Likewise.
15270 (sibcall_value_internal): Likewise.
15271 (sibcall_value_multiple_internal): Likewise.
15272 (call_internal): Likewise.
15273 (call_split): Likewise.
15274 (call_internal_direct): Likewise.
15275 (call_direct_split): Likewise.
15276 (call_value_internal): Likewise.
15277 (call_value_split): Likewise.
15278 (call_value_internal_direct): Likewise.
15279 (call_value_direct_split): Likewise.
15280 (call_value_multiple_internal): Likewise.
15281 (call_value_multiple_split): Likewise.
15282 (mips_get_fcsr_mips16_<mode>): Likewise.
15283 (mips_set_fcsr_mips16_<mode>): Likewise.
15284 (tls_get_tp_mips16_<mode>): Likewise.
15285 * config/mips/mips.opt: Add -mcompact-branches option.
15286 * config/mips/predicates.md (order_operator): Ensure the
15287 conditional compact branches are only used if the ISA them.
15288 * doc/invoke.texi: Document -mcompact-branches option.
15290 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
15293 * lra-lives.c (process_bb_lives): Process move pseudos with the
15294 same value for copies and preferences
15295 * lra-constraints.c (match_reload): Create match reload pseudo
15296 with the same value from single dying input pseudo.
15298 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
15301 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15303 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
15305 * trans-mem.c: Add contributed-by.
15306 * trans-mem.h: Same.
15308 2015-09-01 Richard Biener <rguenther@suse.de>
15310 * expr.c (expand_expr_real_1): For expanding TERed defs
15311 set the current location to that of the def if not UNKNOWN.
15313 2015-09-01 David Sherwood <david.sherwood@arm.com>
15315 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15317 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15319 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15320 then_cost, else_cost fields. Change branch_cost field to unsigned int.
15321 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15322 Include rtl-iter.h.
15323 (noce_simple_bbs): New function.
15324 (noce_try_move): Bail if basic blocks are not simple.
15325 (noce_try_store_flag): Likewise.
15326 (noce_try_store_flag_constants): Likewise.
15327 (noce_try_addcc): Likewise.
15328 (noce_try_store_flag_mask): Likewise.
15329 (noce_try_cmove): Likewise.
15330 (noce_try_minmax): Likewise.
15331 (noce_try_abs): Likewise.
15332 (noce_try_sign_mask): Likewise.
15333 (noce_try_bitop): Likewise.
15334 (bbs_ok_for_cmove_arith): New function.
15335 (noce_emit_all_but_last): Likewise.
15336 (noce_emit_insn): Likewise.
15337 (noce_emit_bb): Likewise.
15338 (noce_try_cmove_arith): Handle non-simple basic blocks.
15339 (insn_valid_noce_process_p): New function.
15340 (contains_mem_rtx_p): Likewise.
15341 (bb_valid_for_noce_process_p): Likewise.
15342 (noce_process_if_block): Allow non-simple basic blocks
15345 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
15347 * tree-ssa-dom.c (record_equivalences_from_phis,
15348 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15349 (lookup_avail_expr): Likewise, and remove comment and unused temp.
15351 2015-09-01 Nick Clifton <nickc@redhat.com>
15353 * config/msp430/msp430.opt (mcpu): Fix typo.
15355 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15357 * config/aarch64/aarch64.c (aarch64_set_current_function):
15358 Re-layout any vector parameters have non-simd layout.
15359 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15361 (aarch64_simd_expand_args): Delete call to the above.
15363 2015-08-31 Mike Frysinger <vapier@gentoo.org>
15365 * doc/invoke.texi (asan-stack): Add space before option.
15367 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15369 * tree.h (zerop): New function.
15370 * tree.c (zerop): Likewise.
15371 (element_precision): Handle expressions.
15372 * match.pd (define_predicates): Add zerop.
15373 (x <= +Inf): Fix comment.
15374 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15375 * fold-const.c (fold_binary_loc): ... here. Remove.
15377 2015-08-31 Richard Biener <rguenther@suse.de>
15379 PR middle-end/67381
15380 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15382 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15384 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15385 (CEXPI): New operator list.
15386 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15387 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15389 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15391 2015-08-31 Tom de Vries <tom@codesourcery.com>
15393 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15394 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15396 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15397 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15398 (rewrite_into_loop_closed_ssa): ... here.
15399 (replace_uses_in_dominated_bbs): Remove function.
15400 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15401 rewrite_into_loop_closed_ssa_1.
15403 2015-08-31 Michael Matz <matz@suse.de>
15405 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15406 enter entry and exit blocks for reverse post order.
15408 2015-08-31 Richard Biener <rguenther@suse.de>
15410 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15411 (lto_location_cache::current_sysp): Likewise.
15412 (output_block::current_sysp): Likewise.
15413 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15414 (lto_location_cache::apply_location_cache): Properly record
15415 system header locations.
15416 (lto_location_cache::input_location): Input whether a file
15417 is a system header.
15418 * lto-streamer-out.c (lto_output_location): Stream whether a file
15419 is a system header.
15421 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15424 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15426 2015-08-31 Tom de Vries <tom@codesourcery.com>
15428 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15429 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15430 Improve function header comments.
15432 2015-08-30 Michael Collison <michael.collison@linaro.org>
15435 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15438 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15440 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15441 special_handling bitfield.
15442 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15443 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15444 that represents a general xxpermdi.
15445 (insn_is_swappable_p): Add handling for vec_concat of two
15446 doublewords, which maps to a specific xxpermdi.
15447 (adjust_xxpermdi): New function.
15448 (adjust_concat): Likewise.
15449 (handle_special_swappables): Call adjust_xxpermdi and
15451 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15453 2015-08-30 Rich Felker <dalias@libc.org>
15455 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15456 case instead of sh[123456ble]-*-*.
15458 2015-08-29 Anatoly Sokolov <aesok@post.ru>
15460 * ira.c (print_unform_and_important_classes,
15461 print_translated_classes): Remove reg_class_names static array.
15462 (print_unform_and_important_classes): Rename to ...
15463 (print_uniform_and_important_classes): ... this.
15464 (ira_debug_allocno_classes): Update accordingly.
15466 2015-08-29 Tom de Vries <tom@codesourcery.com>
15468 PR tree-optimization/46193
15469 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15472 2015-08-28 Jeff Law <law@redhat.com>
15475 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15476 unable to find X NE 0 in the tables, return X as the simplified
15478 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15479 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15481 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15482 after removing the control flow statement and unnecessary edges.
15484 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
15487 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15489 PR tree-optimization/67283
15490 * tree-sra.c (type_consists_of_records_p): Rename to...
15491 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15493 (completely_scalarize_record): Rename to...
15494 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15496 (scalarize_elem): New.
15498 2015-08-28 Jiong Wang <jiong.wang@arm.com>
15500 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15501 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15502 (aarch64_symbol_type): Likewise.
15503 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15505 (aarch64_expand_mov_immediate): Likewise.
15506 (aarch64_print_operand): Likewise.
15507 (aarch64_classify_tls_symbol): Likewise.
15509 2015-08-28 Richard Biener <rguenther@suse.de>
15511 * cgraphunit.c (symbol_table::compile): Move early debug generation
15513 (symbol_table::finalize_compilation_unit): ... back here and
15514 add a !seen_error () guard.
15516 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15518 * toplev.c (process_options): Do not use flag_loop_block,
15519 flag_loop_interchange, and flag_loop_strip_mine. Add check for
15520 flag_loop_optimize_isl.
15522 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15524 * Makefile.in (OBJS): Remove graphite-blocking.o and
15525 graphite-interchange.o.
15526 * common.opt (floop-strip-mine, floop-interchange, floop-block):
15527 Alias of floop-nest-optimize.
15528 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15529 Document as alias of -floop-nest-optimize.
15530 * graphite-blocking.c: Remove.
15531 * graphite-interchange.c: Remove.
15532 * graphite-optimize-isl.c: Include dumpfile.h.
15533 (getScheduleForBand): Add dump for tiled loops. Use
15534 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
15535 * graphite-poly.c (scop_max_loop_depth): Remove.
15536 (print_scattering_function_1): Remove.
15537 (print_scattering_function): Remove.
15538 (print_scattering_functions): Remove.
15539 (debug_scattering_function): Remove.
15540 (debug_scattering_functions): Remove.
15541 (apply_poly_transforms): Remove use of flag_loop_block,
15542 flag_loop_strip_mine, and flag_loop_interchange.
15543 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
15545 (print_pdr_access_layout): Remove.
15546 (print_pdr): Print ISL representation.
15547 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
15548 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
15550 (openscop_print_pbb_domain): Remove.
15551 (print_pbb): Remove call to print_scattering_function.
15552 (openscop_print_scop_context): Remove.
15553 (print_scop_context): Do not print matrices anymore.
15554 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
15555 SCOP_TRANSFORMED_SCHEDULE.
15556 (print_isl_set): Add printing of a new line.
15557 (print_isl_map): Same.
15558 (print_isl_aff): Same.
15559 (print_isl_constraint): Same.
15560 (loop_to_lst): Remove.
15561 (scop_to_lst): Remove.
15562 (lst_indent_to): Remove.
15563 (print_lst): Remove.
15564 (debug_lst): Remove.
15565 (dot_lst_1): Remove.
15567 (reverse_loop_at_level): Remove.
15568 (reverse_loop_for_pbbs): Remove.
15569 * graphite-poly.h (pdr_dim_iter_domain): Remove.
15570 (pdr_nb_params): Remove.
15571 (pdr_alias_set_dim): Remove.
15572 (pdr_subscript_dim): Remove.
15573 (pdr_iterator_dim): Remove.
15574 (pdr_parameter_dim): Remove.
15575 (same_pdr_p): Remove.
15576 (struct poly_scattering): Remove.
15577 (struct poly_bb): Remove _original, _transformed, _saved.
15578 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
15579 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
15580 (PBB_NB_LOCAL_VARIABLES): Remove.
15581 (PBB_NB_SCATTERING_TRANSFORM): Remove.
15582 (schedule_to_scattering): Remove.
15583 (number_of_write_pdrs): Remove.
15584 (pbb_dim_iter_domain): Remove.
15585 (pbb_nb_params): Remove.
15586 (pbb_nb_scattering_orig): Remove.
15587 (pbb_nb_scattering_transform): Remove.
15588 (pbb_nb_dynamic_scattering_transform): Remove.
15589 (pbb_nb_local_vars): Remove.
15590 (pbb_iterator_dim): Remove.
15591 (pbb_parameter_dim): Remove.
15592 (psco_scattering_dim): Remove.
15593 (psct_scattering_dim): Remove.
15594 (psct_local_var_dim): Remove.
15595 (psco_iterator_dim): Remove.
15596 (psct_iterator_dim): Remove.
15597 (psco_parameter_dim): Remove.
15598 (psct_parameter_dim): Remove.
15599 (psct_dynamic_dim): Remove.
15600 (psct_static_dim): Remove.
15601 (psct_add_local_variable): Remove.
15602 (new_lst_loop): Remove.
15603 (new_lst_stmt): Remove.
15604 (free_lst): Remove.
15605 (copy_lst): Remove.
15606 (lst_add_loop_under_loop): Remove.
15607 (lst_depth): Remove.
15608 (lst_dewey_number): Remove.
15609 (lst_dewey_number_at_depth): Remove.
15610 (lst_pred): Remove.
15611 (lst_succ): Remove.
15612 (lst_find_pbb): Remove.
15613 (find_lst_loop): Remove.
15614 (lst_find_first_pbb): Remove.
15615 (lst_empty_p): Remove.
15616 (lst_find_last_pbb): Remove.
15617 (lst_contains_p): Remove.
15618 (lst_contains_pbb): Remove.
15619 (lst_create_nest): Remove.
15620 (lst_remove_from_sequence): Remove.
15621 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
15622 (lst_niter_for_loop): Remove.
15623 (pbb_update_scattering): Remove.
15624 (lst_update_scattering_under): Remove.
15625 (lst_update_scattering): Remove.
15626 (lst_insert_in_sequence): Remove.
15627 (lst_replace): Remove.
15628 (lst_substitute_3): Remove.
15629 (lst_distribute_lst): Remove.
15630 (lst_remove_all_before_including_pbb): Remove.
15631 (lst_remove_all_before_excluding_pbb): Remove.
15632 (struct scop): Remove original_schedule, transformed_schedule, and
15634 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
15635 (SCOP_SAVED_SCHEDULE): Remove.
15636 (poly_scattering_new): Remove.
15637 (poly_scattering_free): Remove.
15638 (poly_scattering_copy): Remove.
15639 (store_scattering_pbb): Remove.
15640 (store_lst_schedule): Remove.
15641 (restore_lst_schedule): Remove.
15642 (store_scattering): Remove.
15643 (restore_scattering_pbb): Remove.
15644 (restore_scattering): Remove.
15645 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
15646 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
15647 compute the scattering polyhedron dimension from the dimension of
15649 (build_scop_scattering): Update call to
15650 build_pbb_scattering_polyhedrons.
15651 (build_poly_scop): Remove call to scop_to_lst.
15652 * graphite.c (graphite_transform_loops): Add call to print_scop.
15653 (gate_graphite_transforms): Remove use of flag_loop_block,
15654 flag_loop_interchange, and flag_loop_strip_mine.
15656 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15658 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
15659 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
15660 -floop-nest-optimize.
15661 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
15662 (generate_luj_sepclass): Remove.
15663 (generate_luj_options): Remove.
15664 (set_options): Remove opt_luj.
15665 (scop_to_isl_ast): Remove opt_luj.
15666 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
15667 flag_loop_unroll_jam.
15668 (getPrevectorMap_full): Remove.
15669 (getScheduleForBandList): Remove map_sepcl.
15670 (getScheduleMap): Same.
15671 (apply_schedule_map_to_scop): Remove sepcl.
15672 (optimize_isl): Same.
15673 * graphite-poly.c (apply_poly_transforms): Remove check for
15674 flag_loop_unroll_jam.
15675 (new_poly_bb): Remove map_sepclass.
15676 * graphite-poly.h (struct poly_bb): Same.
15677 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
15678 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
15679 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
15680 * toplev.c (process_options): Remove flag_loop_unroll_jam.
15682 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
15685 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
15686 (addqi3_cc): Ditto.
15687 (UNSPEC_ADD_CARRY): Remove.
15688 (addqi3_cconly_overflow): New expander.
15689 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
15690 Adjust for changed add<mode>3_carry.
15691 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
15692 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
15693 (<plusminus_insn><mode>3_carry): Remove expander.
15694 (*<plusminus_insn><mode>3_carry): Split insn pattern to
15695 add<mode>3_carry and sub<mode>3_carry.
15696 (plusminus_carry_mnemonic): Remove code attribute.
15697 (add<mode>3_carry): Canonicalize insn pattern.
15698 (*addsi3_carry_zext): Ditto.
15699 (sub<mode>3_carry): Ditto.
15700 (*subsi3_carry_zext): Ditto.
15701 (adcx<mode>3): Remove insn pattern.
15702 (addcarry<mode>): New insn pattern.
15703 (subborrow<mode>): Ditto.
15704 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
15705 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
15706 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
15707 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
15708 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
15709 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
15710 Rewrite expander to not clobber carry flag chains.
15712 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
15714 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
15715 instead of a rotate.
15717 2015-08-27 Marek Polacek <polacek@redhat.com>
15719 PR middle-end/67005
15720 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
15721 an entry into an irreducible region.
15723 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15725 * configure: Regenerate.
15727 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15729 PR tree-optimization/67283
15730 * tree-sra.c (type_consists_of_records_p): Rename to...
15731 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15733 (completely_scalarize_record): Rename to...
15734 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15735 (scalarize_elem): New.
15737 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15739 * tree-sra.c (completely_scalarize_var): Rename to...
15740 (create_total_scalarization_access): ... Here. Drop call to
15741 completely_scalarize_record.
15743 (analyze_all_variable_accesses): Replace completely_scalarize_var
15744 with create_total_scalarization_access and completely_scalarize_record.
15746 2015-08-27 Alan Modra <amodra@gmail.com>
15749 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
15752 2015-08-27 Richard Biener <rguenther@suse.de>
15754 * passes.c (rest_of_decl_compilation): Guard early_global_decl
15755 call with !seen_error ().
15756 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
15757 early debug generation and finish...
15758 (symbol_table::compile): ... here to put it after a !seen_error ()
15761 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15763 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
15766 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15767 Andre Vieira <andre.simoesdiasvieira@arm.com>
15769 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
15770 (*cb<optab><mode>1): Likewise.
15771 (*tb<optab><mode>1): Likewise.
15772 (*cb<optab><mode>1): Likewise.
15773 * config/aarch64/iterators.md (inv_cb): New code attribute.
15774 (inv_tb): Likewise.
15775 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
15776 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
15778 2015-08-27 Richard Biener <rguenther@suse.de>
15780 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
15782 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15784 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
15787 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15789 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
15792 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
15794 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
15795 floating point in VSX registers.
15796 (rs6000_output_move_128bit): Always print out the set insn if we
15797 can't generate an appropriate 128-bit move.
15798 (rs6000_generate_compare): Add support for IEEE 128-bit floating
15799 point in VSX registers comparisons.
15800 (rs6000_expand_float128_convert): Likewise.
15802 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
15803 predicate for only GPR hard registers.
15805 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
15806 modes to iterators. Add new iterators for moving 128-bit values in
15807 scalar FPR registers and VSX registers.
15808 (FMOVE128): Likewise.
15809 (FMOVE128_FPR): Likewise.
15810 (FMOVE128_GPR): Likewise.
15811 (FMOVE128_VSX): Likewise.
15812 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
15815 (IBM128): Likewise.
15816 (TFIFKF): Likewise.
15817 (RELOAD): Add IEEE 128-bit floating point modes.
15818 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
15819 floating point in VSX registers modes.
15820 (signbit<mode>2, IBM128 iterator): Likewise.
15821 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
15822 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15823 (negtf2): Likewise.
15824 (neg<mode>2, TFIFKF iterator): Likewise.
15825 (negtf2_internal): Likewise.
15826 (abstf2): Likewise.
15827 (abs<mode>2, TFIFKF iterator): Likewise.
15828 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
15829 VSX insn support for negate, absolute value, and negative absolute
15831 (ieee_128bit_vsx_neg<mode>2): Likewise.
15832 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
15833 (ieee_128bit_vsx_abs<mode>2): Likewise.
15834 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
15835 (ieee_128bit_vsx_nabs<mode>2): Likewise.
15836 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15837 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
15838 floating point in VSX registers.
15839 (unpack<mode>_dm): Likewise.
15840 (unpack<mode>_nodm): Likewise.
15841 (pack<mode>): Likewise.
15842 (unpackv1ti): Likewise.
15843 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
15844 (packv1ti): Likewise.
15845 (pack<mode>, FMOVE128_VSX iterator): Likewise.
15846 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
15848 (extenddftf2_internal): Likewise.
15849 (trunctfdf2): Likewise.
15850 (trunctfdf2_internal2): Likewise.
15851 (fix_trunc_helper): Likewise.
15852 (fix_trunctfdi2"): Likewise.
15853 (floatditf2): Likewise.
15854 (floatuns<mode>tf2): Likewise.
15855 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
15856 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
15857 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
15858 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
15859 (float<SDI:mode><IFKF:mode>2): Likewise.
15860 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
15862 2015-08-26 Renlin Li <renlin.li@arm.com>
15864 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
15866 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15867 Jiong Wang <jiong.wang@arm.com>
15869 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
15870 (tlsie_tiny_<mode>): New define_insn.
15871 (tlsie_tiny_sidi): Likewise.
15872 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15874 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
15875 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15877 (aarch64_expand_mov_immediate): Likewise.
15878 (aarch64_print_operand): Likewise.
15879 (arch64_classify_tls_symbol): Likewise.
15881 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15883 * config/arm/arm-arches.def: Replace single value flags with
15884 an initializer built from ARM_FSET_MAKE_CPU1.
15885 * config/arm/arm-cores.def: Likewise.
15886 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
15887 derivation from the ARM_CORE macro definition, use the given value
15889 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
15890 ARM_ARCH macro definition, use the given value instead.
15892 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15894 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
15896 (struct builtin_description): Replace field mask with field
15898 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
15899 (IWMMXT2_BUILTIN): Likewise.
15900 (IWMMXT2_BUILTIN2): Likewise.
15901 (FP_BUILTIN): Likewise.
15902 (CRC32_BUILTIN): Likewise.
15903 (CRYPTO_BUILTIN): Likewise.
15904 (iwmmx_mbuiltin): Likewise.
15905 (iwmmx2_mbuiltin): Likewise.
15906 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
15907 struct builtin_description.
15909 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15911 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
15912 (struct builtin_description): Change type of mask to unsigned
15914 * config/arm/arm-protos.h (insn_flags): Declare as type
15916 (tune_flags): Likewise.
15917 * config/arm/arm.c (feature_count): New.
15918 (insn_flags): Define as type arm_feature_set.
15919 (tune_flags): Likewise.
15920 (struct processors): Define field flags as type arm_feature_set.
15921 (all_cores): Update for change to struct processors.
15922 (all_architectures): Likewise.
15923 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
15925 (arm_option_override_internal): Likewise.
15926 (arm_option_override): Likewise.
15928 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15929 Jiong Wang <jiong.wang@arm.com>
15931 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
15932 tls size for tiny, small, large memory model.
15933 (aarch64_load_symref_appropriately): Support new symbol types.
15934 (aarch64_expand_mov_immediate): Likewise.
15935 (aarch64_print_operand): Likewise.
15936 (aarch64_classify_tls_symbol): Likewise.
15937 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
15938 (aarch64_symbol_type): Likewise.
15939 * config/aarch64/aarch64.md (tlsle): Deleted.
15940 (tlsle12_<mode>): New define_insn.
15941 (tlsle24_<mode>): Likewise.
15942 (tlsle32_<mode>): Likewise.
15943 (tlsle48_<mode>): Likewise.
15944 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15947 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15949 * config/arm/arm-protos.h (FL_NONE): New.
15951 (arm_feature_set): New.
15952 (ARM_FSET_MAKE): New.
15953 (ARM_FSET_MAKE_CPU1): New.
15954 (ARM_FSET_MAKE_CPU2): New.
15955 (ARM_FSET_CPU1): New.
15956 (ARM_FSET_CPU2): New.
15957 (ARM_FSET_EMPTY): New.
15958 (ARM_FSET_ANY): New.
15959 (ARM_FSET_HAS_CPU1): New.
15960 (ARM_FSET_HAS_CPU2): New.
15961 (ARM_FSET_HAS_CPU): New.
15962 (ARM_FSET_ADD_CPU1): New.
15963 (ARM_FSET_ADD_CPU2): New.
15964 (ARM_FSET_DEL_CPU1): New.
15965 (ARM_FSET_DEL_CPU2): New.
15966 (ARM_FSET_UNION): New.
15967 (ARM_FSET_INTER): New.
15968 (ARM_FSET_XOR): New.
15969 (ARM_FSET_EXCLUDE): New.
15970 (AFM_FSET_IS_EMPTY): New.
15971 (ARM_FSET_CPU_SUBSET): New.
15973 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15975 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15976 SYMBOL_TLSLE to SYMBOL_TLSLE24.
15977 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15979 (aarch64_expand_mov_immediate): Likewise.
15980 (aarch64_print_operand): Likewise.
15981 (aarch64_classify_symbol): Likewise.
15983 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15985 * config/aarch64/aarch64.opt (mtls-size): New entry.
15986 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
15987 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
15988 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
15990 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15992 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
15993 ARM_CORE entry. Fix some white-space.
15994 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
15995 ARM_CORE definition.
15997 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15999 * fold-const.c (fold_binary_loc) : Move Optimize
16000 root(x)*root(y) as root(x*y) to match.pd.
16001 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
16002 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
16003 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
16004 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
16005 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
16006 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
16007 (mult (exps:s @0) (exps:s @1)) : New simplifier.
16008 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
16009 (rdiv @0 (exps:s @1)) : New simplifier.
16011 2015-08-25 Joseph Myers <joseph@codesourcery.com>
16013 * gcc.c (driver::finalize): Only assign to extra_specs if
16016 2015-08-25 Marek Polacek <polacek@redhat.com>
16018 PR middle-end/67330
16019 * varasm.c (declare_weak): Return after giving an error.
16021 2015-08-25 David Malcolm <dmalcolm@redhat.com>
16023 * gcc-main.c (main): Add params to driver ctor.
16024 * gcc.c (class env_manager): New.
16026 (env_manager::init): New.
16027 (env_manager::get): New.
16028 (env_manager::xput): New.
16029 (env_manager::restore): New.
16030 Poison getenv and putenv.
16031 (DEFAULT_TARGET_SYSTEM_ROOT): New.
16032 (target_system_root): Update initialization to use
16033 DEFAULT_TARGET_SYSTEM_ROOT.
16034 (struct spec_list): Add field "default_ptr".
16035 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
16036 (init_spec): Likewise.
16037 (set_spec): Clear field "default_ptr".
16038 (read_specs): Free "spec" and "buffer".
16039 (xputenv): Reimplement in terms of env_manager.
16040 (process_command): Replace ::getenv calls with calls to the
16041 env_manager singleton.
16042 (process_brace_body): Free string in three places.
16043 (driver::driver): New.
16044 (driver::~driver): New.
16045 (used_arg): Convert from a function to...
16046 (class used_arg_t): ...this class, and...
16047 (used_arg): ...this new global instance.
16048 (used_arg_t::finalize): New function.
16049 (getenv_spec_function): Add "const" to local "value". Replace
16050 ::getenv call with call to the env_manager singleton.
16051 (path_prefix_reset): New function.
16052 (driver::finalize): New function.
16053 * gcc.h (driver::driver): New.
16054 (driver::~driver): New.
16055 (driver::finalize): New.
16057 2015-08-25 Nathan Sidwell <nathan@acm.org>
16059 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
16060 target doesn't have one.
16062 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16065 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
16067 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16070 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
16071 a define_insn, remove second alternative.
16073 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
16074 Joseph Myers <joseph@codesourcery.com>
16076 * gcc.c (struct switchstr): Expand comment.
16078 2015-08-25 Nathan Sidwell <nathan@acm.org>
16080 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
16081 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
16083 2015-08-25 Richard Biener <rguenther@suse.de>
16085 PR middle-end/67306
16086 * genmatch.c (expr::gen_transform): Verify the result of
16087 builtin_decl_implicit.
16088 (dt_simplify::gen_1): Likewise.
16090 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
16092 * config/arm/constraints.md: Also list Cs and US ARM-specific
16093 constraints as used.
16095 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
16098 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
16100 (nonpic_symbol_mentioned_p): Likewise.
16101 (sh_delegitimize_address): Likewise.
16102 (sh_function_ok_for_sibcall): Take into account weak symbols.
16103 (sh_expand_sym_label2reg): New.
16104 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16105 * config/sh/sh.md (UNSPEC_PCREL): New enum.
16106 (call_pcrel): Use sh_expand_sym_label2reg.
16107 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16108 (symPCREL_label2reg) New expand.
16110 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16112 * graphite-poly.c: Change type of region from void* to sese.
16113 * graphite-poly.h (struct scop): Changing the type of scop::region
16114 from void* to sese. Change accessor macro accordingly.
16115 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16117 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16119 * graphite-scop-detection.c (stmt_simple_for_scop_p):
16120 Constrain only on INTEGER_TYPE.
16122 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16125 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16126 -mefficient-unaligned-vsx on ISA 2.7.
16128 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16129 option to a masked option.
16131 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16132 logic for -mefficient-unaligned-vsx so that it is set via an arch
16133 ISA option, instead of being set if -mtune=power8 is set. Move
16134 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16135 near other default option handling.
16137 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16139 * genflags.c (gen_macro): Delete.
16140 (gen_proto): Don't create GEN.*CALL.* macros.
16141 * gensupport.h (get_file_location): Declare.
16142 * gensupport.c (rtx_locs): New variable.
16143 (read_md_rtx): Record rtx locations.
16144 (get_file_location): New function.
16145 * target-insns.def (call, call_pop, call_value, call_value_pop)
16146 (sibcall, sibcall_value): New patterns.
16147 * gentarget-def.c (parse_argument): New function.
16148 (def_target_insn): Use it. Handle optional operands. Raise an
16149 error if an .md pattern has the wrong number of operands for the
16150 pattern name. Remove the names of unused operands from the prototype.
16151 * builtins.c (expand_builtin_apply): Use targetm functions
16152 instead of HAVE_call_value and GEN_CALL_VALUE.
16153 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
16154 and sibcall_value_pop.
16155 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16157 * config/alpha/alpha.md (untyped_call): Likewise.
16158 * config/iq2000/iq2000.md (untyped_call): Likewise.
16159 * config/m68k/m68k.md (untyped_call): Likewise.
16160 * config/mips/mips.md (untyped_call): Likewise.
16161 * config/pa/pa.md (untyped_call): Likewise.
16162 * config/rs6000/rs6000.md (untyped_call): Likewise.
16163 * config/sparc/sparc.md (untyped_call): Likewise.
16164 * config/tilegx/tilegx.md (untyped_call): Likewise.
16165 * config/tilepro/tilepro.md (untyped_call): Likewise.
16166 * config/visium/visium.md (untyped_call): Likewise.
16167 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16168 gen_call_value instead of GEN_CALL_VALUE.
16169 * config/arm/arm.md (untyped_call): Likewise.
16170 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16173 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16175 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16176 (have_cbranchcc4): New variable.
16177 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16178 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16179 (if_convert): Initialize have_cbranchcc4.
16181 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16183 * builtins.c (expand_cmpstrn): Rename to...
16184 (expand_cmpstrn_or_cmpmem): ...this.
16185 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16186 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16187 Remove mode argument.
16188 (expand_builtin): Update accordingly.
16190 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16192 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16193 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
16194 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16195 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16196 Add predicates for operands 0 and 3.
16197 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16199 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16200 immediate_operand to nonmemory_operand.
16202 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16204 * df-scan.c (df_insn_info_init_fields): New function, split out
16206 (df_insn_create_insn_record): ...here.
16207 (df_insn_info_free_fields): New function, split out from...
16208 (df_insn_info_delete): ...here.
16209 (df_insn_rescan): Use the new functions instead of freeing and
16210 reallocating the df_insn_info.
16212 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16214 * doc/install.texi (Binaries): Remove links no longer valid.
16216 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
16218 * config/nvptx/mkoffload.c (process): Replace
16219 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16221 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
16224 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16226 2015-08-24 Renlin Li <renlin.li@arm.com>
16228 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16229 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16230 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16231 * config/arm/constraints.md ("j"): Add check for high code.
16233 2015-08-24 Tom de Vries <tom@codesourcery.com>
16235 PR tree-optimization/65468
16236 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16239 2015-08-24 Nathan Sidwell <nathan@acm.org>
16241 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16242 change to nvptx_type_from_mode call. Use arg_promotion for both
16243 split and non-split args.
16245 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16247 * target-insns.def (movstr): New pattern.
16248 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16249 (expand_movstr): Use targetm rather than HAVE_movstr/
16252 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16254 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16257 2015-08-24 Andrew Pinski <apinski@cavium.com>
16259 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16260 AARCH64_EXTRA_TUNING_OPTION.
16261 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16263 (aarch64_extra_tuning_flags): Base the shifted value on the index
16264 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16265 * config/aarch64/aarch64.c: Remove the last argument to
16266 AARCH64_EXTRA_TUNING_OPTION.
16268 2015-08-23 Nathan Sidwell <nathan@acm.org>
16270 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16272 (nvptx_declare_function_name): Insert formatting tabs for
16275 2015-08-23 Tom de Vries <tom@codesourcery.com>
16277 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16278 parm_decl, rather than generating a dummy default def in cfun.
16279 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
16280 ssa_name from cfun and child_fn do not share a stmt as def stmt.
16281 (move_stmt_op): Handle PARM_DECl.
16282 (gather_ssa_name_hash_map_from): New function.
16283 (move_sese_region_to_fn): Add default defs for function params, and add
16284 them to vars_map. Release copied ssa names.
16285 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16287 2015-08-23 Tom de Vries <tom@codesourcery.com>
16289 * doc/sourcebuild.texi: Rename vect_no_int_max with
16290 vect_no_int_min_max. Update description.
16292 2015-08-22 Andrew Pinski <apinski@cavium.com>
16294 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16295 * config/aarch64/aarch64-protos.h
16296 (aarch64_fusion_pairs_index): New enum.
16297 (aarch64_fusion_pairs): Base the shifted value on the index instead
16298 Rewrite AARCH64_FUSE_ALL to be based on the end index.
16299 of the argument to AARCH64_FUSION_PAIR.
16300 * config/aarch64/aarch64.c: Remove the last argument to
16301 AARCH64_FUSION_PAIR.
16303 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
16305 * dominance.c (new_zero_array): Define.
16306 (dom_info): Redefine as class with proper encapsulation.
16307 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16309 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
16310 allocations/deallocations. Pass function as parameter (instead of
16312 (dom_info::get_idom): Define accessor method.
16313 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16314 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
16315 (calculate_dominance_info): Adjust to use dom_info class.
16316 (verify_dominators): Likewise.
16318 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
16320 * print-rtl.c (print_rtx): Check the correct range for
16321 flag_dump_unnumbered_links to behave as documented.
16323 PR rtl-optimization/67227
16324 PR rtl-optimization/64164
16325 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16326 (nonoverlapping_memrefs_p): Test offsets and sizes when given
16327 identical gimple_reg exprs.
16329 2015-08-21 Nathan Sidwell <nathan@acm.org>
16331 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16333 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16334 crtl->stack_alignment_needed to determine alignment.
16335 (nvptx_get_drap_rtx): New.
16336 (TARGET_GET_DRAP_RTX): Override.
16337 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16339 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16341 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16343 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16345 * configure.ac: Remove uwin* cases.
16346 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16347 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16348 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16349 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16350 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16351 i[34567]86-*-uwin*, powerpc-*-beos*.
16353 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
16355 * gencodes.c (gencodes): Print the comma for the preceding
16356 enum value rather than the current one. Use aliased enum values
16357 rather than #defines for compiled-out patterns.
16358 (main): Update accordingly. Replace LAST_INSN_CODE with
16360 * lra.c (insn_code_data): Update accordingly.
16361 (finish_insn_code_data_once, get_static_insn_data): Likewise.
16362 * recog.h (target_recog): Likewise.
16363 (preprocess_insn_constraints): Change parameter to unsigned int.
16364 * recog.c (preprocess_insn_constraints): Likewise.
16365 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16366 * tree-vect-stmts.c (vectorizable_operation): Simplify.
16368 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
16370 PR rtl-optimization/61657
16371 * loop-iv.c (iv_number_of_iterations): Declare up and down as
16372 unsigned. Remove superflous uint64_t cast.
16374 2014-08-21 Felix Yang <felix.yang@huawei.com>
16375 Jiji Jiang <jiangjiji@huawei.com>
16377 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16378 argument and get builtin function code directly from CALL.
16379 (gimple_stringop_fixed_value): Modified accordingly.
16380 (gimple_stringops_transform, gimple_stringops_values_to_profile):
16381 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16383 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
16385 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16387 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16389 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16391 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16392 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16393 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16394 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16395 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16396 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16397 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16398 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16399 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16400 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16402 * match.pd (SIN ) : New Operator.
16403 (TAN) : New Operator.
16404 (mult (SQRT@1 @0) @1) : New simplifier.
16405 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16406 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16407 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16408 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16409 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16410 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16411 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16412 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16413 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16414 (rdiv @0 (POW:s @1 @2)) : New simplifier.
16416 2015-08-21 Bin Cheng <bin.cheng@arm.com>
16418 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16419 loop if EXPR is simplified to const value.
16421 2015-08-21 Yury Gribov <y.gribov@samsung.com>
16423 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16424 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16426 2015-08-21 Richard Biener <rguenther@suse.de>
16428 PR middle-end/67285
16429 * gimple-fold.c (replace_stmt_with_simplification): Assert
16430 seq is empty when replacing a call with itself but different
16432 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16433 a call require that it is const.
16435 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16437 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16438 * builtins.c (get_object_alignment_2): Adjust.
16439 * varasm.c (align_variable): Likewise.
16440 (get_variable_align): Likewise.
16441 (build_constant_desc): Likewise.
16442 (force_const_mem): Likewise.
16443 * doc/tm.texi.in: Likewise.
16444 * doc/tm.texi: Regenerate.
16446 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16448 * genconfig.c (main): Always define HAVE_cc0.
16449 * recog.c (rest_of_handle_peephole2): Adjust.
16451 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16453 * reorg.c (relax_delay_slots): Don't use #if to check value of
16456 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16458 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16459 * targhooks.c (default_have_conditional_execution): Adjust.
16461 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16463 * rtl.h (rtvec_all_equal_p): Declare.
16464 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16465 * rtl.c (rtvec_all_equal_p): New function.
16466 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16467 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16468 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16469 * config/arm/arm.c (neon_vdup_constant): Likewise.
16470 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16471 * config/tilegx/constraints.md (W, Y): Likewise.
16472 * config/tilepro/constraints.md (W, Y): Likewise.
16473 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16474 (classify_immediate): Use unwrap_const_vec_duplicate.
16475 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16476 (reg_or_v2s8bit_operand): Likewise.
16477 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16478 (reg_or_v4s8bit_operand): Likewise.
16480 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16482 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16483 (vec_shasigma_be): New #define.
16484 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16485 (VPMSUMH): Likewise.
16486 (VPMSUMW): Likewise.
16487 (VPMSUMD): Likewise.
16488 (VPMSUM): New BU_P8V_OVERLOAD_2.
16489 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16490 entries for VEC_MADD and VEC_VPMSUM.
16492 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
16494 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16495 Multiply argument avr_n_flash by 64 to match unit of "KiB".
16496 (avr_pgm_check_var_decl): Same.
16498 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
16500 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16501 initialization of HFmode scalar type (float16_t) to...
16502 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16505 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16507 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16508 having an -mfp16-format.
16510 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16512 * config/i386/predicates.md (vector_all_ones_operand): Use
16513 CONSTM1_RTX to simplify definition.
16515 2015-08-20 Richard Biener <rguenther@suse.de>
16517 * toplev.c (compile_file): Remove loop calling late_global_decl
16519 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16520 on decls we assembled.
16522 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
16524 * common/config/aarch64/aarch64-common.c
16525 (AARCH64_CPU_NAME_LENGTH): Delete.
16526 (aarch64_option_extension): New.
16527 (all_extensions): Likewise.
16528 (processor_name_to_arch): Likewise.
16529 (arch_to_arch_name): Likewise.
16531 (all_architectures): Likewise.
16532 (aarch64_get_extension_string_for_isa_flags): Likewise.
16533 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
16534 architecture names.
16535 * config/aarch64/aarch64-protos.h
16536 (aarch64_get_extension_string_for_isa_flags): New.
16537 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
16538 (aarch64_option_print): Get the string to print from
16539 aarch64_get_extension_string_for_isa_flags.
16540 (aarch64_declare_function_name): Likewise.
16541 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
16542 (MCPU_TO_MARCH_SPEC): This.
16543 (ASM_CPU_SPEC): Use it.
16544 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
16545 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
16546 (EXTRA_SPEC_FUNCTIONS): Use it.
16548 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
16550 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
16551 expansion when !ISA_HAS_LWL_LWR.
16552 (mips_block_move_straight): Update the size of elements copied to
16553 account for alignment when !ISA_HAS_LWL_LWR.
16554 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
16556 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16558 * expr.c (expand_expr_real_2): Check gimple statement during
16559 LSHIFT_EXPR expand.
16561 2015-08-19 Magnus Granberg <zorry@gentoo.org>
16563 * common.opt (fstack-protector): Initialize to -1.
16564 (fstack-protector-all): Likewise.
16565 (fstack-protector-strong): Likewise.
16566 (fstack-protector-explicit): Likewise.
16567 * configure.ac: Add --enable-default-ssp.
16568 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
16569 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
16571 * doc/install.texi: Document --enable-default-ssp.
16572 * config.in: Regenerated.
16573 * configure: Likewise.
16575 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
16577 PR rtl-optimization/64164
16578 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
16579 (parm_in_stack_slot_p): ... this. Disregard mode, what
16580 matters is whether the parm will live in a pseudo or a stack
16582 (expand_one_ssa_partition): Deal with params without a default
16583 def. Disregard mode.
16584 * cfgexpand.h: Renamed function declaration.
16585 * tree-ssa-coalesce.c: Adjust.
16586 * function.c (split_complex_args): Allocate stack slot for
16587 unassigned parms before splitting.
16588 (parm_in_unassigned_mem_p): New. Use it instead of
16589 parm_maybe_byref_p throughout this file.
16590 (assign_parm_setup_block): Use it. Accept pseudos in the
16591 expand-assigned rtl.
16592 (assign_parm_setup_reg): Drop BLKmode requirement.
16593 (assign_parm_setup_stack): Allocate and fill in the address of
16594 unassigned MEM parms.
16596 2015-08-19 David Sherwood <david.sherwood@arm.com>
16598 * genmodes.c (emit_mode_unit_size_inline): New function.
16599 (emit_mode_unit_precision_inline): New function.
16600 (emit_insn_modes_h): Emit new #define. Emit new functions.
16601 (emit_mode_unit_size): New function.
16602 (emit_mode_unit_precision): New function.
16603 (emit_mode_adjustments): Add mode_unit_size adjustments.
16604 (emit_insn_modes_c): Emit new arrays.
16605 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
16606 use new inline methods.
16608 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16610 * config/aarch64/aarch64.c (bit_count): Delete prototype
16612 (aarch64_print_operand): Use popcount_hwi instead of the above.
16614 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16616 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
16619 2015-08-19 Marek Polacek <polacek@redhat.com>
16621 PR middle-end/67133
16622 * gimple-ssa-isolate-paths.c
16623 (insert_trap_and_remove_trailing_statements): Rename to ...
16624 (insert_trap): ... this. Don't remove trailing statements; split
16626 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
16628 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
16631 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
16632 conditionalize the whole on __GNUC__. Add fallback code
16633 depending neither on undefined nor implementation-defined behaviour.
16635 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16637 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
16638 whitespaces with tab.
16640 2015-08-19 Florian Weimer <fweimer@redhat.com>
16642 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
16643 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
16644 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
16645 Move Name_Ids instantiation to the Prj.Proc package, to avoid
16648 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16650 * config/arm/arm.c (bounds_check): Use %wd print format
16651 for HOST_WIDE_INT arguments.
16653 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
16655 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
16656 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
16657 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
16658 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
16659 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
16660 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
16661 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
16662 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
16663 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
16666 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
16668 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
16669 function.c, graphite-scop-detection.c, haifa-sched.c,
16670 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
16671 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
16672 varasm.c: Remove typedefs of structs.
16674 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16676 * config/rs6000/altivec.h (vec_adde): New define.
16677 (vec_addec): Likewise.
16678 (vec_double): Likewise.
16679 (vec_bperm): Likewise.
16680 (vec_gb): Likewise.
16681 * config/rs6000/rs6000-builtin.def (ADDE): New
16682 BU_ALTIVEC_OVERLOAD_3.
16684 (DOUBLE): New BU_VSX_OVERLOAD_1.
16685 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
16686 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
16687 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
16688 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
16689 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
16690 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
16691 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
16692 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
16693 and P8V_BUILTIN_VEC_VBPERMQ.
16695 2015-08-18 Jason Merrill <jason@redhat.com>
16697 * print-tree.c (print_node): Handle TREE_BINFO.
16699 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16701 PR middle-end/36757
16702 * builtins.c (expand_builtin_signbit): Add asserts to make sure
16703 we can expand BUILT_IN_SIGNBIT inline.
16704 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
16705 * doc/extend.texi: Document the type-generic __builtin_signbit.
16707 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
16709 PR rtl-optimization/67218
16710 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
16711 (simplify_unary_operation_1): Use it.
16713 2015-08-18 Marek Polacek <polacek@redhat.com>
16715 PR middle-end/67222
16716 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
16717 if the call isn't valid.
16718 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
16719 gimple_call_builtin_p.
16720 (call_may_clobber_ref_p_1): Likewise.
16721 (stmt_kills_ref_p): Likewise.
16723 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
16725 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
16726 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
16727 (mips_hard_regno_scratch_ok): Likewise.
16728 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
16729 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
16731 2015-08-18 Bin Cheng <bin.cheng@arm.com>
16733 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
16734 (determine_value_range): Call refine_value_range_using_guard for
16735 each loop initial condition to improve value range.
16737 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
16739 * config/i386/i386.c: Remove include of fibheap.h.
16741 2015-08-17 Richard Biener <rguenther@suse.de>
16743 PR tree-optimization/67221
16744 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
16745 (sccvn_dom_walker::before_dom_children): Mark backedges of
16746 non-executable blocks as not executable.
16748 2015-08-17 David Sherwood <david.sherwood@arm.com>
16750 * config/arm/arm.c (neon_element_bits): Replace call to
16751 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
16752 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
16753 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
16754 (neon_vdup_lane<mode>): Likewise.
16755 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
16756 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
16757 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
16758 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
16759 * config/spu/spu.c (arith_immediate_p): Likewise.
16760 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16761 * expr.c (expand_expr_real_2): Likewise.
16762 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
16763 * simplify-rtx.c (simplify_immed_subreg): Likewise.
16764 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
16765 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
16767 * fold-const.c (fold_binary_loc): Replace call to
16768 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
16769 GET_MODE_UNIT_PRECISION (m).
16771 2015-08-17 Mike Stump <mikestump@comcast.net>
16773 * config/arm/arm.c (arm_block_move_unaligned_straight):
16774 Emit normal move instead of unaligned load when source or destination
16775 are appropriately aligned.
16777 2015-08-17 Richard Biener <rguenther@suse.de>
16778 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16780 PR middle-end/16107
16781 * match.pd (div (coss (op @0) : New simplifier.
16783 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
16785 PR rtl-optimization/64164
16787 PR middle-end/66983
16788 PR rtl-optimization/67000
16789 PR middle-end/67034
16790 PR middle-end/67035
16791 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16792 * tree-ssa-copyrename.c: Removed.
16793 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16794 -ftree-coalesce-vars.
16795 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16796 * common.opt (ftree-copyrename): Ignore.
16797 (ftree-coalesce-inlined-vars): Likewise.
16798 * doc/invoke.texi: Remove the ignored options above.
16799 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16800 * tree-ssa-coalesce.h: ... here.
16801 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16802 headers required by it.
16803 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16804 across variables when flag_tree_coalesce_vars. Check register
16805 use and promoted modes to allow coalescing. Do not coalesce
16806 maybe-byref parms with SSA_NAMEs of other variables, or
16807 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
16808 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16809 with its member functions to tree-ssa-coalesce.c.
16810 (var_map_base_init): Likewise. Renamed to
16811 compute_samebase_partition_bases.
16812 (partition_view_normal): Drop want_bases parameter.
16813 (partition_view_bitmap): Likewise.
16814 * tree-ssa-live.h: Adjust declarations.
16815 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
16816 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16817 default defs at the entry point.
16818 (dump_part_var_map): New.
16819 (compute_optimized_partition_bases): New, called by...
16820 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16821 of compute_samebase_partition_bases. Adjust.
16822 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16823 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
16824 (ssa_default_def_partition): New.
16825 (get_rtl_for_parm_ssa_default_def): New.
16826 (align_local_variable, add_stack_var): Support anonymous SSA
16828 (defer_stack_allocation): Likewise. Declare earlier.
16829 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16830 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16831 Do no record deferred-allocation marker in
16832 SA.partition_to_pseudo.
16833 (expand_stack_vars): Adjust check for the marker in it.
16834 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16835 redundant MEM attr setting.
16836 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16838 (expand_one_stack_var): ... this. New wrapper to check and
16839 skip already expanded SSA partitions.
16840 (record_alignment_for_reg_var): New, factored out of...
16841 (expand_one_var): ... this.
16842 (expand_one_ssa_partition): New.
16843 (adjust_one_expanded_partition_var): New.
16844 (expand_one_register_var): Check and skip already expanded SSA
16846 (expand_used_vars): Don't create DECLs for anonymous SSA
16847 names. Expand all SSA partitions, then adjust all SSA names.
16848 (pass::execute): Replace the loops that set
16849 SA.partition_to_pseudo from partition leaders and cleared
16850 DECL_RTL for multi-location variables, and that which used to
16851 rename vars and set attrs, with one that clears DECL_RTL and
16852 checks that PARMs and RESULTs default_defs match DECL_RTL.
16853 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16854 * emit-rtl.c: Include stor-layout.h.
16855 (set_reg_attrs_for_parm): Handle NULL decl.
16856 (set_reg_attrs_for_decl_rtl): Take mode from expression if
16858 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
16859 rather than its possibly-NULL DECL.
16860 * explow.c (promote_ssa_mode): New.
16861 * explow.h (promote_ssa_mode): Declare.
16862 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16863 (read_complex_part): Export.
16864 * expr.h (read_complex_part): Declare.
16865 * cfgexpand.h (parm_maybe_byref_p): Declare.
16866 * function.c: Include cfgexpand.h.
16867 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16868 (use_register_for_parm_decl): Wrapper for the above to
16869 special-case the result_ptr.
16870 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16871 (split_complex_args): Take assign_parm_data_all argument.
16872 Pass it to rtl_for_parm. Set up rtl and context for split
16873 args. Reset complex parm before fetching its default decl
16875 (assign_parms_unsplit_complex): Use the default-def complex
16876 parm rtl if it matches the components.
16877 (assign_parms_augmented_arg_list): Adjust.
16878 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16879 multiple locations. Recognize split complex args.
16880 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16881 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16882 (assign_parm_setup_block): Prefer SSA-assigned location, and
16883 fill in its address if the memory location of a maybe-byref
16884 parm was not assigned by cfgexpand.
16885 (assign_parm_setup_reg): Likewise. Adjust its mode as
16886 needed. Use entry_parm for equiv if stack_parm is NULL. Make
16887 sure passed_pointer parms don't need conversion. Copy address
16888 or value as needed.
16889 (assign_parm_setup_stack): Prefer SSA-assigned location.
16890 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16891 rtl before testing for pointer bounds. Special-case result_ptr.
16892 (expand_function_start): Maybe reset DECL_RTL of result.
16893 Prefer SSA-assigned location for result and static chain.
16894 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
16895 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
16896 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16897 anonymous SSA names. Use promote_ssa_mode.
16898 (get_temp_reg): Likewise.
16899 (remove_ssa_form): Adjust.
16900 * stor-layout.c (layout_decl): Don't set mem attributes of
16902 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16903 and get its reg_usage for reg invalidation.
16904 (compute_bb_dataflow): Pass it insn.
16905 (emit_notes_in_bb): Likewise.
16907 2015-08-14 Marek Polacek <polacek@redhat.com>
16909 * tree-core.h (tree_base): Fix typo.
16911 2015-08-14 Marek Polacek <polacek@redhat.com>
16913 PR middle-end/67133
16914 * gimple.c (infer_nonnull_range_by_attribute): Check that the
16915 nonnull argument position is not outside function arguments.
16917 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
16920 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
16921 'lconst_atomic' with 'const_atomic'.
16922 (atomic_fetch_<optab><mode>): Likewise.
16923 (atomic_<optab>_fetch<mode>): Likewise.
16924 * config/aarch64/iterators.md (lconst-atomic): Move below
16926 (const_atomic): New.
16928 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
16929 Bernd Schmidt <bernds@codesourcery.com>
16931 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
16933 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
16934 (DWARF2_DEBUGGING_INFO): Don't define.
16935 * debug.h (dwarf2_lineno_debug_hooks): Declare.
16936 * toplev.c (process_options): Add a case for it.
16937 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
16938 (dwarf2out_init): Skip most initializations if
16939 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
16941 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
16942 DWARF2_LINENO_DEBUGGING_INFO.
16943 * opts.c (set_debug_level): Likewise.
16945 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
16947 * config/arm/types.md (is_neon_type): Add missing types.
16949 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16951 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
16953 * config/i386/i386.c (PTA_SKYLAKE): New macros.
16954 (processor_alias_table): Add skylake description.
16955 (enum processor_model): Add skylake processor.
16956 (arch_names_table): Add skylake record.
16957 * doc/invoke.texi: Add skylake item.
16959 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
16961 * ira-int.h: Include recog.h.
16962 * ira-build.c: Don't include recog.h.
16963 * ira-color.c: Likewise.
16964 * ira-conflicts.c: Likewise.
16965 * ira-costs.c: Likewise.
16966 * ira-emit.c: Likewise.
16967 * ira-lives.c: Likewise.
16969 * sched-deps.c: Likewise.
16970 * sel-sched.c: Likewise.
16971 * target-globals.c: Likewise.
16973 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
16976 * reload1.c (elimination_costs_in_insn): Make it obvious to the
16977 compiler that the n_dups and n_operands loop bounds are invariant.
16979 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16981 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
16982 expressions in A and B.
16984 2015-08-13 Richard Biener <rguenther@suse.de>
16986 * tree.c (nonnull_arg_p): Move from ...
16987 * tree-vrp.c (nonnull_arg_p): ... here.
16988 * tree.h (nonnull_arg_p): Declare.
16989 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
16990 here, register ptr != 0 for nonnull_arg_p pointer arguments.
16991 Properly initialize static chain and by-reference result pointer.
16992 (run_scc_vn): Adjust.
16994 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16996 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
16999 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17001 * config/aarch64/aarch64-protos.h
17002 (aarch64_gen_atomic_cas): Declare.
17003 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
17004 Choose appropriate instruction pattern for the target.
17005 (aarch64_gen_atomic_cas): New.
17006 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
17007 (atomic_compare_and_swap<mode>_1): Rename to
17008 aarch64_compare_and_swap<mode>. Fix some indentation.
17009 (aarch64_compare_and_swap<mode>_lse): New.
17010 (aarch64_atomic_cas<mode>): New.
17012 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17014 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
17017 2015-08-13 Richard Biener <rguenther@suse.de>
17019 PR tree-optimization/67191
17020 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
17021 assert we value-numbered last stmts operand because it can validly
17022 trigger for unreachable code.
17024 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17026 PR rtl-optimization/67103
17027 * ifcvt.c (noce_try_store_flag_constants): Move
17028 x = (-(test != 0) & (b - a)) + a transformation to...
17029 (noce_try_cmove): ... Here. Try it if normal conditional
17032 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17034 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
17036 * config/mips/mips.md (processor): Remove w32 and w64.
17038 2015-08-13 Richard Biener <rguenther@suse.de>
17040 PR tree-optimization/66502
17041 PR tree-optimization/67167
17042 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
17043 backedge arguments.
17044 (vn_phi_lookup): Adjust.
17045 (vn_phi_insert): Likewise.
17046 (visit_phi): Prefer to value-number to another PHI node
17047 over value-numbering to a PHI argument.
17048 (init_scc_vn): Mark DFS back edges.
17050 2015-08-13 Richard Biener <rguenther@suse.de>
17052 * gimple.h (gcall::code_): New constant static member.
17053 (gcond::code_): Likewise.
17054 * gimple.c (gcall::code_): Define.
17055 (gcond::code_): Likewise.
17056 (is_a_helper <const gcond *>): Add.
17057 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
17058 and forward to a new gcall overload with less checking and a
17059 cheaper way to access the operand.
17060 (gimple_call_lhs_ptr): Likewise.
17061 (gimple_call_set_lhs): Likewise.
17062 (gimple_call_internal_p): Likewise.
17063 (gimple_call_with_bounds_p): Likewise.
17064 (gimple_call_set_with_bounds): Likewise.
17065 (gimple_call_internal_fn): Likewise.
17066 (gimple_call_set_ctrl_altering): Likewise.
17067 (gimple_call_ctrl_altering_p): Likewise.
17068 (gimple_call_fntype): Likewise.
17069 (gimple_call_fn): Likewise.
17070 (gimple_call_fn_ptr): Likewise.
17071 (gimple_call_set_fndecl): Likewise.
17072 (gimple_call_fndecl): Likewise.
17073 (gimple_call_chain): Likewise.
17074 (gimple_call_num_args): Likewise.
17075 (gimple_call_arg): Likewise.
17076 (gimple_call_arg_ptr): Likewise.
17077 (gimple_call_set_arg): Likewise.
17078 (gimple_call_noreturn_p): Likewise.
17079 (gimple_cond_code): Likewise.
17080 (gimple_cond_lhs): Likewise.
17081 (gimple_cond_rhs): Likewise.
17082 (gimple_has_lhs): Reduce checking.
17084 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17086 PR middle-end/25529
17087 * match.pd (div (mult @0 @1) @1) : New simplifier.
17089 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17092 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
17093 predicate to allow construction of vector constants using the
17094 VSLDOI vector shift instruction.
17096 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
17099 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
17100 the number of bytes to be shifted left and filled in with either
17101 all zero or all one bits.
17102 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
17104 (output_vec_const_move): On power8, generate XXLORC to generate
17105 a vector constant with all 1's. Do a split if we need to use a
17106 VSLDOI instruction.
17108 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17109 properly test for the MSB.
17111 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17112 vector constants that can be created with VSLDOI.
17114 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17117 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17118 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17119 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17120 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17121 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17122 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17123 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17124 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17125 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17127 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
17129 * config/xtensa/constraints.md (define_constraint "Y"): New
17131 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17132 * config/xtensa/linux.h (ASM_SPEC): Likewise.
17133 * config/xtensa/predicates.md (move_operand): Match constants
17134 and symbols in the presence of TARGET_AUTO_LITPOOLS.
17135 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17136 immediate references to TLS data.
17137 (xtensa_emit_move_sequence): Don't force constants to memory in
17138 the presence of TARGET_AUTO_LITPOOLS.
17139 (print_operand): Add 'y' format, same as default, but capable of
17140 printing SF mode constants as well.
17141 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17142 (movsf_internal): Add movi pattern that loads literal.
17143 (movsf, movdf): Don't force constants to memory in the presence
17144 of TARGET_AUTO_LITPOOLS.
17145 (movdf_internal): Add 'Y' constraint.
17146 * config/xtensa/xtensa.opt (mauto-litpools): New option.
17147 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17149 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17151 * config/arm/arm-fpus.def: Replace booleans with feature flags.
17153 * config/arm/arm.c (ARM_FPU): Update macro.
17154 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17155 (TARGET_FP16): Likewise.
17156 (TARGET_CRYPTO): Likewise.
17157 (TARGET_NEON): Likewise.
17158 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
17161 2015-08-12 Tom de Vries <tom@codesourcery.com>
17165 * doc/install.texi: Remove --with_host_libstdcxx item. Update
17166 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17167 accordingly. Mention default for --with-stage1-ldflags.
17169 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17171 * config/arm/arm.h (arm_fpu_feature_set): New.
17172 (ARM_FPU_FSET_HAS): New.
17173 (FPU_FL_NONE): New.
17174 (FPU_FL_NEON): New.
17175 (FPU_FL_FP16): New.
17176 (FPU_FL_CRYPTO): New.
17178 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17180 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17181 after -mcmodel=large -fPIC sorry.
17183 2015-08-12 Richard Biener <rguenther@suse.de>
17185 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17186 comparison operand order and commutative ternary op operand order.
17187 (sccvn_dom_walker::cond_stack): New state to track temporary
17189 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17191 (sccvn_dom_walker::record_cond): Add a single temporary conditional
17193 (sccvn_dom_walker::record_conds): Add a temporary conditional
17194 expressions and all related expressions also true/false.
17195 (sccvn_dom_walker::before_dom_children): Record temporary
17196 expressions based on the controlling condition of a single
17197 predecessor. When trying to simplify a conditional statement
17198 lookup expressions we might have inserted earlier.
17200 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
17203 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17204 to ARM core registers.
17206 2015-08-12 Nathan Sidwell <nathan@acm.org>
17208 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17209 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17211 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
17213 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17214 line with comments.
17215 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17217 2015-08-12 Richard Biener <rguenther@suse.de>
17219 * gimple.h (remove_pointer): New trait.
17220 (GIMPLE_CHECK2): New inline template function.
17221 (gassign::code_): New constant static member.
17222 (is_a_helper<const gassign *>): Add.
17223 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17224 and forward to a new gassign overload with less checking and a
17225 cheaper way to access the operand.
17226 (gimple_assign_lhs_ptr): Likewise.
17227 (gimple_assign_set_lhs): Likewise.
17228 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17230 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17232 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17234 (gimple_assign_rhs_code): Likewise.
17235 * gimple.c (gassign::code_): Define.
17237 2015-08-12 Richard Biener <rguenther@suse.de>
17239 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17240 Eliminate edges marked as not executable by SCCVN.
17241 * tree-ssa-sccvn.c: Include gimple-iterator.h.
17242 (cond_dom_walker): Rename to sccvn_dom_walker.
17243 (sccvn_dom_walker::before_dom_children): Value-number defs
17245 (run_scc_vn): Remove loop value-numbering all SSA names.
17246 Drop not visited SSA names to varying.
17248 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17250 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17251 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17252 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17253 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17254 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17255 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17256 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17257 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17258 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17260 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
17263 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17264 to enum feature_priority and feature_list.
17265 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17266 and isa_names_table.
17268 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
17270 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17271 vect_induction_def.
17273 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17277 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17278 account when deciding what was the command-line status.
17280 2015-08-11 Nathan Sidwell <nathan@acm.org>
17282 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17284 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17285 we're not the only contributor to target phi.
17287 2015-08-11 Jiong Wang <jiong.wang@arm.com>
17289 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17292 2015-08-11 Tom de Vries <tom@codesourcery.com>
17294 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17296 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
17298 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17300 * config/i386/i386.md (cpu): Remove knl.
17302 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17305 PR middle-end/66332
17306 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17307 open-coded sequence.
17308 * omp-low.c (oacc_process_reduction_data): Remove handline of
17309 GOMP_DEVICE_HOST_NONSHM.
17311 * lto-streamer-in.c (lto_input_mode_table): Adjust to
17312 GET_MODE_INNER changes.
17314 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17315 Ilya Verbin <ilya.verbin@intel.com>
17317 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17319 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17321 * doc/options.texi (EnabledBy): Document that the argument must be
17323 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17324 Not enabled by -Wall.
17325 * optc-gen.awk: Give nicer error messages. Detect if the argument
17326 of EnabledBy is not a Common option.
17327 * common.opt (Wnull-dereference): Not enabled by -Wall.
17328 * opt-functions.awk (lang_enabled_by): Nicer error messages.
17330 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
17332 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17333 model == 0x4f as Broadwell.
17335 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17337 PR rtl-optimization/67028
17338 * combine.c (simplify_comparison): Fix comment. Rearrange code.
17339 Add test to see if a const_int fits in the new mode.
17341 2015-08-07 DJ Delorie <dj@redhat.com>
17343 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17345 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
17347 PR rtl-optimization/67029
17348 * ira-color.c: Include "recog.h" before including "ira-int.h".
17349 * target-globals.c: Likewise.
17350 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17351 adds an alternative_mask argument and use it instead of
17352 preferred_alternatives.
17353 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17354 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17355 * sched-deps.c: Include "ira-int.h" after including "ira.h".
17356 (sched_analyze_insn): Update call to
17357 ira_implicitly_set_insn_hard_regs.
17358 * sel-sched.c: Include "ira-int.h" after including "ira.h".
17359 (implicit_clobber_conflict_p): Update call to
17360 ira_implicitly_set_insn_hard_regs.
17362 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17364 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17366 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
17369 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17370 currently_expanding_to_rtl is set.
17372 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
17374 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17375 * configure: Regenerate.
17377 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17378 Jiong Wang <jiong.wang@arm.com>
17380 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17381 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17382 (REG_CLASS_NAMES): Likewise.
17383 (REG_CLASS_CONTENTS): Likewise.
17384 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17385 (aarch64_register_move_cost): Likewise.
17386 (aarch64_load_symref_appropriately): Invoke the new added pattern if
17388 * config/aarch64/constraints.md (Uc0): New constraint.
17390 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17392 * config/aarch64/constraints.md (Usf): Add the test of
17393 aarch64_is_noplt_call_p.
17395 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17397 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17399 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17400 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17401 (call_symbol): Likewise.
17403 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
17405 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17406 for vectorizing multiplication patterns.
17407 * tree-vectorizer.h: Adjust the number of patterns.
17409 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17411 * config/i386/sse.md (*vec_concatv2df): Declare added
17412 alternatives as sselog type.
17414 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17416 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17419 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17421 * config/s390/s390.c (s390_expand_tbegin): Expand either
17422 tbegin_1_z13 or tbegin_1 depending on VX flag.
17423 * config/s390/s390.md ("tbegin_1_z13"): New expander.
17425 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17427 * config/s390/s390.opt: Clarify description for -mzvector
17428 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17431 2015-08-06 Richard Biener <rguenther@suse.de>
17433 * gimple.h (gimple_call_set_fn): Access op member directly.
17434 (gimple_call_chain_ptr): Likewise.
17435 (gimple_call_set_chain): Likewise.
17436 (gimple_cond_lhs_ptr): Likewise.
17437 (gimple_cond_set_lhs): Likewise.
17438 (gimple_cond_rhs_ptr): Likewise.
17439 (gimple_cond_set_rhs): Likewise.
17440 (gimple_cond_true_label): Likewise.
17441 (gimple_cond_set_true_label): Likewise.
17442 (gimple_cond_set_false_label): Likewise.
17443 (gimple_cond_false_label): Likewise.
17444 (gimple_label_label): Likewise.
17445 (gimple_label_set_label): Likewise.
17446 (gimple_goto_set_dest): Likewise.
17447 (gimple_asm_input_op): Likewise.
17448 (gimple_asm_input_op_ptr): Likewise.
17449 (gimple_asm_set_input_op): Likewise.
17450 (gimple_asm_output_op): Likewise.
17451 (gimple_asm_output_op_ptr): Likewise.
17452 (gimple_asm_set_output_op): Likewise.
17453 (gimple_asm_clobber_op): Likewise.
17454 (gimple_asm_set_clobber_op): Likewise.
17455 (gimple_asm_label_op): Likewise.
17456 (gimple_asm_set_label_op): Likewise.
17457 (gimple_switch_index): Likewise.
17458 (gimple_switch_index_ptr): Likewise.
17459 (gimple_return_retval_ptr): Likewise.
17460 (gimple_return_retval): Likewise.
17461 (gimple_return_set_retval): Likewise.
17462 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
17463 (gimple_switch_label): Likewise.
17464 (gimple_switch_set_label): Likewise.
17466 2015-08-06 Richard Biener <rguenther@suse.de>
17468 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17469 bool comparison canonicalization and restrict to integers.
17471 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
17473 * coretypes.h (enum symbol_visibility): Relocate here.
17474 * flag-types.h (enum symbol_visibility): Remove.
17475 * tree-core.h (enum symbol_visibility): Remove.
17477 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
17480 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17481 for no_split_stack function attribute along with
17483 (rs6000_expand_split_stack_prologue): Likewise.
17485 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
17486 Jeff Law <law@redhat.com>
17489 * doc/invoke.texi (Wnull-dereference): New.
17490 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17491 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17492 Warn for potential NULL dereferences.
17493 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17494 * ubsan.c (instrument_nonnull_arg): Call
17495 infer_nonnull_range_by_attribute.
17496 (instrument_nonnull_return): Likewise.
17497 * common.opt (Wnull-dereference); New.
17498 * gimple.c (infer_nonnull_range): Remove bool arguments.
17499 (infer_nonnull_range_by_dereference): New.
17500 (infer_nonnull_range_by_attribute): New.
17501 * gimple.h: Update declarations.
17503 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17505 * gensupport.c (sequence_num): Replace with...
17506 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17507 ...these new variables.
17508 (init_rtx_reader_args_cb): Update accordingly.
17509 (get_num_code_insns): Likewise.
17510 (read_md_rtx): Rework to use a while loop and get_c_test.
17511 Use the new counters. Remove redundant DEFINE_SUBST case.
17512 * genoutput.c (gen_split): Delete.
17513 (main): Don't call it.
17515 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17517 * gensupport.h (get_c_test): Declare.
17518 * gensupport.c (get_c_test): New function.
17519 * genconditions.c (main): Use it.
17520 * genrecog.c (validate_pattern): Likewise.
17521 (match_pattern_1): Likewise. Remove c_test argument.
17522 (match_pattern): Update accordingly and remove c_test argument.
17523 (main): Update accordingly.
17525 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17527 * gensupport.h (get_num_insn_codes): Declare.
17528 * gensupport.c (get_num_insn_codes): New function.
17529 * genattrtab.c (optimize_attrs): Rename max_insn_code to
17531 (main): Likewise. Use get_num_insn_codes.
17532 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
17534 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17536 PR middle-end/66311
17537 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
17538 is zero- rather than sign-extended.
17540 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17542 * target-insns.def (can_extend): Delete.
17544 2015-08-05 Richard Biener <rguenther@suse.de>
17546 PR tree-optimization/67121
17547 * tree-if-conv.c (combine_blocks): Clear range-info produced
17548 by stmts no longer executed conditionally.
17550 2015-08-05 Nick Clifton <nickc@redhat.com>
17552 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
17553 to allow identical far pointers to remain.
17555 2015-08-05 Richard Biener <rguenther@suse.de>
17557 PR middle-end/67120
17558 * match.pd: Compare address bases with == if they are decls
17559 or SSA names, not operand_equal_p. Otherwise fail.
17561 2015-08-05 Richard Biener <rguenther@suse.de>
17563 PR tree-optimization/67055
17564 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
17567 * g++.dg/torture/pr67055.C: New testcase.
17569 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17571 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
17573 (define_attr "enabled"): Handle avx521vl and noavx512vl.
17574 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
17575 AVX-512 alternative out of SSE.
17576 (define_insn "*vec_concatv2df"): Ditto.
17578 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17580 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
17581 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
17582 CODE_FOR_avx_ptestv4di.
17583 * config/i386/sse.md (define_mode_iterator V_AVX): New.
17584 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
17585 (define_insn "avx_ptest256"): Merge this ...
17586 (define_insn "sse4_1_ptest"): And this ...
17587 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
17589 2015-08-05 Richard Biener <rguenther@suse.de>
17591 PR tree-optimization/67109
17592 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
17593 against too big groups. Print whether this is a load or store
17594 group. Rename from ...
17595 (vect_analyze_group_access): ... this which is now a wrapper
17596 dissolving an invalid group.
17597 (vect_analyze_data_ref_accesses): Print whether this is a load
17600 2015-08-05 Richard Biener <rguenther@suse.de>
17602 PR middle-end/67107
17603 * match.pd: Guard const_binop result checking against NULL_TREE
17606 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
17608 * cse.c (cse_insn): Restoring old behaviour for src_eqv
17609 when dest and value in the REG_EQUAL are same and dest
17610 is STRICT_LOW_PART.
17612 2015-08-04 Anatoly Sokolov <aesok@post.ru>
17614 * config/moxie/moxie.h (PRINT_OPERAND,
17615 PRINT_OPERAND_ADDRESS): Remove macros.
17616 * config/moxie/moxie-protos.h (moxie_print_operand,
17617 moxie_print_operand_address): Remove declaration.
17618 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
17619 TARGET_PRINT_OPERAND_ADDRESS): Define.
17620 (moxie_print_operand, moxie_print_operand_address): Make static.
17622 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
17625 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
17626 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
17628 2015-08-04 Richard Biener <rguenther@suse.de>
17630 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
17632 (dt_operand::gen_gimple_expr): Adjust.
17634 2015-08-04 Richard Biener <rguenther@suse.de>
17636 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
17637 bool compares on RHS.
17638 * match.pd: Add X ==/!= !X is false/true pattern.
17640 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
17642 * config/aarch64/aarch64.c: Change inner loop statement cost
17643 to be consistent with other targets.
17645 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
17647 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
17650 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
17652 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
17653 (machine_function): Remove pseudos field.
17655 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17657 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17658 Exit early and use target_option_current_node if processing current
17661 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17663 * doc/extend.texi (AArch64 Function Attributes): New node.
17664 (AArch64 Pragmas): Likewise.
17666 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17668 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17669 Initialize simd builtins if TARGET_SIMD.
17670 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17671 Make sure that the builtins are initialized only once no matter how
17672 many times the function is called.
17673 (aarch64_init_builtins): Unconditionally initialize crc builtins.
17674 (aarch64_relayout_simd_param): New function.
17675 (aarch64_simd_expand_args): Use above during argument expansion.
17676 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
17677 simd builtins if TARGET_SIMD.
17678 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
17680 (aarch64_relayout_simd_types): Likewise.
17682 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17684 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
17685 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
17686 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
17687 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17689 (aarch64_reset_previous_fndecl): New function.
17690 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
17692 * config/aarch64/aarch64-c.c: New file.
17693 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
17694 Push and pop options at beginning and end. Remove ifdef
17695 __ARM_FEATURE_CRC32.
17696 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
17697 Add pragma +nothing+simd and +nothing+crypto where appropriate.
17698 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
17699 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
17701 (aarch64_register_pragmas): Likewise.
17702 (aarch64_reset_previous_fndecl): Likewise.
17703 (aarch64_process_target_attr): Likewise.
17704 (aarch64_override_options_internal): Likewise.
17706 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17708 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
17710 (aarch64_can_inline_p): Likewise.
17711 (TARGET_CAN_INLINE_P): Define.
17713 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17715 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
17716 Remove static. Handle OPT_mgeneral_regs_only,
17717 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
17718 OPT_momit_leaf_frame_pointer.
17719 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
17720 (aarch64_attr_opt_type): New enum.
17721 (aarch64_attribute_info): New struct.
17722 (aarch64_handle_attr_arch): New function.
17723 (aarch64_handle_attr_cpu): Likewise.
17724 (aarch64_handle_attr_tune): Likewise.
17725 (aarch64_handle_attr_isa_flags): Likewise.
17726 (aarch64_attributes): New table.
17727 (aarch64_process_one_target_attr): New function.
17728 (num_occurences_in_str): Likewise.
17729 (aarch64_process_target_attr): Likewise.
17730 (aarch64_option_valid_attribute_p): Likewise.
17731 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17732 * config/aarch64/aarch64-protos.h: Include input.h
17733 (aarch64_handle_option): Declare prototype.
17735 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17737 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
17738 * config/aarch64/aarch64.c: Include target-globals.h
17739 (aarch64_previous_fndecl): New variable.
17740 (aarch64_set_current_function): New function.
17741 (TARGET_SET_CURRENT_FUNCTION): Define.
17743 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17745 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
17746 (explicit_arch): Likewise.
17747 (x_aarch64_isa_flags): Likewise.
17748 (mgeneral-regs-only): Mark as Save.
17749 (mfix-cortex-a53-835769): Likewise.
17750 (mcmodel=): Likewise.
17751 (mstrict-align): Likewise.
17752 (momit-leaf-frame-pointer): Likewise.
17753 (mtls-dialect): Likewise.
17754 (master=): Likewise.
17755 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
17756 (aarch64_isa_flags): Remove extern declaration.
17757 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
17758 to indicate success or failure.
17759 (aarch64_validate_march): Likewise.
17760 (aarch64_validate_mtune): Likewise.
17761 (aarch64_isa_flags): Delete.
17762 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
17763 instead of aarch64_isa_flags.
17764 (aarch64_get_tune_cpu): New function.
17765 (aarch64_get_arch): Likewise.
17766 (aarch64_override_options): Use above and set up explicit_tune_core
17768 (aarch64_print_extension): Move earlier in file. Add isa_flags
17769 argument and use that instead of the global aarch64_isa_flags.
17770 (aarch64_option_save): New function.
17771 (aarch64_option_restore): Likewise.
17772 (aarch64_option_print): Likewise.
17773 (aarch64_declare_function_name): Likewise.
17774 (aarch64_start_file): Delete.
17775 (TARGET_ASM_FILE_START): Do not define.
17776 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
17777 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
17780 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17782 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
17783 flag_omit_leaf_frame_pointer to 2.
17785 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17787 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
17789 (TARGET_FIX_ERR_A53_835769): New macro.
17790 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17791 handling of opts->x_aarch64_fix_a53_err835769.
17792 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
17793 than aarch64_fix_a53_err835769.
17794 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
17795 * config/aarch64/aarch64-linux.h: Likewise.
17797 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
17799 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
17800 ix86_expand_int_movcc as boolean.
17802 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17804 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
17805 (aarch64_cpu_string): Likewise.
17806 (aarch64_tune_string): Likewise.
17807 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
17808 (aarch64_parse_extension): Return aarch64_parse_opt_result.
17809 Add extra argument to put result into.
17810 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
17811 (aarch64_parse_cpu): Add arguments to put results into. Return
17812 aarch64_parse_opt_result.
17813 (aarch64_parse_tune): Likewise.
17814 (aarch64_override_options_after_change_1): New function.
17815 (aarch64_override_options_internal): New function.
17816 (aarch64_validate_mcpu): Likewise.
17817 (aarch64_validate_march): Likewise.
17818 (aarch64_validate_mtune): Likewise.
17819 (aarch64_override_options): Update to reflect above changes.
17820 Move some logic into aarch64_override_options_internal.
17821 Initialize target_option_default_node and target_option_current_node.
17822 (aarch64_override_options_after_change): Move logic into
17823 aarch64_override_options_after_change_1 and call it with global_options.
17824 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
17825 flag values from that.
17827 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17829 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17830 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
17831 * config/aarch64/aarch64.c (struct processor): Add arch field.
17832 (all_architectures): Handle above, move above all_cores.
17833 (all_cores): Handle above.
17834 (aarch64_parse_arch): Handle above changes.
17835 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
17836 above. Update comments.
17837 (armv8.1-a): Likewise.
17838 * config/aarch64/aarch64-cores.def: Update according to above.
17839 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
17840 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
17841 aarch64_arch_driver_info.
17843 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17845 * config/aarch64/aarch64.c (struct processor): Add ident field.
17846 Rename core sched_core.
17847 (all_cores): Handle above changes.
17848 (all_architectures): Likewise.
17849 (aarch64_parse_arch): Likewise.
17850 (aarch64_override_options): Likewise.
17852 2015-08-04 Richard Biener <rguenther@suse.de>
17854 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17855 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
17856 comparisons embedded in [VEC_]COND_EXPRs.
17858 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
17860 * tree-if-conv.c: Fix various typos in comments.
17861 * tree-vect-stmts.c: Likewise.
17863 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17865 PR tree-optimization/67043
17866 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
17867 preheader after hoisting invariant in it.
17868 (find_defs): Force recomputation of all luids.
17870 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
17872 * config/rs6000/htm.md (tabort.): Restrict the source operand to
17873 using a base register.
17875 2015-08-03 David Malcolm <dmalcolm@redhat.com>
17877 * main.c (main): Pass in NULL for toplev's external_timer.
17878 * timevar.c: Include coretypes.h.
17879 (class timer::named_items): New.
17880 (timer::named_items::named_items): New.
17881 (timer::named_items::~named_items): New.
17882 (timer::named_items::push): New.
17883 (timer::named_items::pop): New.
17884 (timer::named_items::print): New.
17885 (timer::timer): Initialize field "m_jit_client_items".
17886 (timer::~timer): New.
17887 (timer::push): Move bulk of implementation to...
17888 (timer::push_internal): ...here. New function.
17889 (timer::pop): Move bulk of implementation to...
17890 (timer::pop_internal): ...here. New function.
17891 (timer::push_client_item): New.
17892 (timer::pop_client_item): New.
17893 (timer::print_row): New function, taken from timer::print.
17894 (timer::print): Print "GCC items" header if we also have client
17895 items. Move row-printing to timer::print_row. Print any client
17897 (timer::get_topmost_item_name): New method.
17898 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
17899 (TV_JIT_CLIENT_CODE): New.
17900 * timevar.h (timer::push_client_item): New declaration.
17901 (timer::pop_client_item): New declaration.
17902 (timer::get_topmost_item_name): New method.
17903 (timer::push_internal): New declaration.
17904 (timer::pop_internal): New declaration.
17905 (timer::print_row): New declaration.
17906 (timer::named_items): New declaration.
17907 (timer::m_jit_client_items): New field.
17908 (timer): Add friend class named_items.
17909 (auto_timevar::auto_timevar): Add timer param.
17910 (auto_timevar::~auto_timevar): Use field "m_timer".
17911 (auto_timevar::m_timer): New field.
17912 * toplev.c (initialize_rtl): Add g_timer as param when
17913 constructing auto_timevar instance.
17914 (toplev::toplev): Add "external_timer" param, and use it to
17915 initialize the "g_timer" global if non-NULL.
17916 (toplev::~toplev): If this created "g_timer", delete it.
17917 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
17918 with "external_timer" timer *.
17920 2015-08-03 Alexander Basov <coohpt@gmail.com>
17922 PR middle-end/64744
17923 PR middle-end/48470
17924 PR middle-end/43404
17925 * cfgexpand.c (expand_one_var): Add check if stack is going to
17926 be used in naked function.
17927 * expr.c (expand_expr_addr_expr_1): Remove excess checking
17928 whether expression should not reside in MEM.
17929 * function.c (use_register_for_decl): Do not use registers for
17930 non-register things (volatile, float, BLKMode) in naked functions.
17932 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
17935 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
17936 Adjust splits to match new pattern.
17938 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17940 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
17943 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
17944 point in VSX registers.
17946 * config/rs6000/constraints.md (wb constraint): Document unused
17948 (we constraint): Likewise.
17949 (wo constraint): Likewise.
17950 (wp constraint): New constraint for IEEE 128-bit floating point in
17952 (wq constraint): Likewise.
17954 * config/rs6000/predicates.md (easy_fp_constant): Add support for
17955 IEEE 128-bit floating point in VSX registers.
17956 (easy_scalar_constant): Likewise.
17958 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
17959 constraints (wp, wq) for IEEE 128-bit floating point in VSX
17961 (rs6000_init_hard_regno_mode_ok): Likewise.
17963 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
17964 floating point in VSX registers.
17967 (VSX_M2): Likewise.
17973 (vsx_le_permute_<mode>): Add support to properly swap bytes for
17974 IEEE 128-bit floating point in VSX registers on little endian.
17975 (vsx_le_undo_permute_<mode>): Likewise.
17976 (vsx_le_perm_load_<mode>): Likewise.
17977 (vsx_le_perm_store_<mode>): Likewise.
17978 (splitters for IEEE 128-bit fp moves): Likewise.
17980 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
17983 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
17984 floating point in VSX registers.
17987 * doc/md.text (Machine Constraints): Document wp and wq
17988 constraints on PowerPC.
17990 2015-08-03 Jeff Law <law@redhat.com>
17992 PR middle-end/66314
17993 PR gcov-profile/66899
17994 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
17995 iterate over the jump threading paths when an element in the
17996 jump threading paths array is eliminated.
17998 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
18000 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
18002 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
18004 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
18005 is_use_properly_guarded the variable def_preds. Free its
18006 contents before returning.
18007 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
18008 (is_use_properly_guarded): Replace local variable def_preds with
18009 a parameter. Adjust accordingly. Only update *def_preds if it's
18012 2015-08-03 Richard Biener <rguenther@suse.de>
18014 * genmatch.c (simplify::for_subst_vec): New member.
18015 (binary_ok): New helper for for lowering.
18016 (lower_for): Delay substituting operators into result expressions
18017 if we can merge the results eventually again.
18018 (capture_info::walk_result): Adjust for user_id appearing as
18019 result expression operator.
18020 (expr::gen_transform): Likewise.
18021 (dt_simplify::gen_1): Likewise.
18022 (dt_simplify::gen): Pass not substituted operators to tail
18023 functions or initialize local variable with it.
18024 (decision_tree::gen): Adjust function signature.
18025 * match.pd: Fix tests against global code and add default
18026 cases to switch stmts.
18028 2015-08-03 Richard Biener <rguenther@suse.de>
18030 * genmatch.c (dt_simplify::gen): Create captures array
18031 with an initializer.
18033 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18035 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
18036 the host compiler is affected by placement new aliasing bug.
18037 * configure: Regenerate.
18038 * Makefile.in (ALIASING_FLAGS): New variable.
18039 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
18041 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
18044 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
18045 (negmulsf3_vfp): Likewise.
18046 (muldf3negdf_vfp): Disable for -frounding-math.
18047 (mulsf3negsf_vfp): Likewise.
18048 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
18049 fix MULT cost with -frounding-math.
18051 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18053 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
18054 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
18055 explicit. Prefer to add the flag whenever possible.
18056 (noce_process_if_block): Try noce_try_store_flag_constants before
18059 2015-08-03 Richard Biener <rguenther@suse.de>
18061 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
18062 New hash-map to record equivalent transforms.
18063 (dt_node::analyze): Populate the equivalent transforms hash-map.
18064 (dt_simplify::info): Add reference to hash-map entry.
18065 (dt_simplify::gen): If we have split out a function for the
18066 transform, generate a call to it.
18067 (sinfo_hashmap_traits::hash): New function.
18068 (compare_op): New helper function for ...
18069 (sinfo_hashmap_traits::equal_keys): ... this new function.
18070 (decision_tree::gen): Split out common equivalent transforms
18073 2015-08-03 Richard Biener <rguenther@suse.de>
18075 * gimple-fold.c (fold_gimple_assign): Remove folding of
18076 the comparison in COND_EXPRs.
18078 2015-08-03 Richard Biener <rguenther@suse.de>
18080 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
18081 on the rhs of assignments first simplify the embedded
18084 2015-08-03 Richard Biener <rguenther@suse.de>
18086 PR tree-optimization/66917
18087 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
18089 (DR_VECT_AUX): New macro.
18090 (set_dr_misalignment): Adjust.
18091 (dr_misalignment): Likewise.
18092 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18093 Compute whether the base is at least element aligned.
18094 * tree-vect-stmts.c (ensure_base_align): Adjust.
18095 (vectorizable_store): If the base is not element aligned
18096 preserve alignment of the original access if misalignment is unknown.
18097 (vectorizable_load): Likewise.
18099 2015-08-02 Martin Sebor <msebor@redhat.com>
18101 * doc/invoke.texi (Wframe-address): Document it.
18102 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
18103 Clarify possible effects of calling the functions with non-zero
18104 arguments and mention -Wframe-address.
18105 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18107 2015-08-01 Michael Collison <michael.collison@linaro.org
18108 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18110 * config/arm/arm.md (*arm_smin_cmp): New pattern.
18111 (*arm_umin_cmp): Likewise.
18113 2015-08-01 Caroline Tice <cmtice@google.com>
18116 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18118 (vtbl_find_mangled_name): New function.
18119 (vtbl_register_mangled_name): New function.
18120 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
18121 mangled name in mangled name vectors.
18122 (find_or_create_vtbl_map_node): Ditto.
18123 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
18124 update recursion_depth on function entry; pass it to every recursive
18125 call; automatically exit if depth > 25 (give up looking at that point).
18126 (verify_bb_vtables): Initialize recursion_depth and pass it to
18127 var_is_used_for_virtual_call_p.
18128 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18129 global variable decls.
18130 (vtbl_register_mangled_name): New extern function decl.
18132 2015-08-01 Tom de Vries <tom@codesourcery.com>
18134 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18136 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18138 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18139 operation_no_trapping_overflow. Allow non-overflow operations.
18140 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18143 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
18146 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18148 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18150 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18151 Enable for TARGET_32BIT.
18152 (*if_move_neg): Likewise.
18154 2015-07-31 Nick Clifton <nickc@redhat.com>
18156 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18157 Returns true for __model__.
18158 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18160 2015-07-31 Alan Modra <amodra@gmail.com>
18163 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18164 (rs6000_emit_prologue): Set it.
18165 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18167 2015-07-31 Richard Biener <rguenther@suse.de>
18169 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18170 -> X == (C1 ^ C2) which is already implemented in match.pd.
18171 Remove redundant dispatching to fold_relational_const.
18172 Move unordered self and NaN compares ...
18173 * match.pd: ... as patterns here. Remove some stray captures
18176 2015-07-31 Petr Murzin <petr.murzin@intel.com>
18178 * config/i386/i386.c
18179 (bdesc_special_args): Convert mask type from signed to unsigned for
18181 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18182 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18183 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18184 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18185 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18186 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18187 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18188 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18189 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18190 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18191 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18192 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18193 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18194 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18195 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18196 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18197 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18198 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18199 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18200 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18201 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18202 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18203 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18204 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18205 * config/i386/i386-builtin-types.def
18206 (V16QI_FTYPE_V16SI): Remove.
18207 (V8DF_FTYPE_V8SI): Ditto.
18208 (V8HI_FTYPE_V8DI): Ditto.
18209 (V8SI_FTYPE_V8DI): Ditto.
18210 (V8SF_FTYPE_V8DF): Ditto.
18211 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18212 (V16HI_FTYPE_V16SI): Ditto.
18213 (V16SF_FTYPE_V16HI): Ditto.
18214 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18215 (V16SF_FTYPE_V16SI): Ditto.
18216 (V4DI_FTYPE_V4DI): Ditto.
18217 (V16SI_FTYPE_V16SF): Ditto.
18218 (V16SF_FTYPE_FLOAT): Ditto.
18219 (V8DF_FTYPE_DOUBLE): Ditto.
18220 (V8DI_FTYPE_INT64): Ditto.
18221 (V8DI_FTYPE_V4DI): Ditto.
18222 (V16QI_FTYPE_V8DI): Ditto.
18223 (UINT_FTYPE_V4SF): Ditto.
18224 (UINT64_FTYPE_V4SF): Ditto.
18225 (UINT_FTYPE_V2DF): Ditto.
18226 (UINT64_FTYPE_V2DF): Ditto.
18227 (V16SI_FTYPE_V16SI): Ditto.
18228 (V8DI_FTYPE_V8DI): Ditto.
18229 (V16SI_FTYPE_PV4SI): Ditto.
18230 (V16SF_FTYPE_PV4SF): Ditto.
18231 (V8DI_FTYPE_PV2DI): Ditto.
18232 (V8DF_FTYPE_PV2DF): Ditto.
18233 (V4DI_FTYPE_PV2DI): Ditto.
18234 (V4DF_FTYPE_PV2DF): Ditto.
18235 (V16SI_FTYPE_PV2SI): Ditto.
18236 (V16SF_FTYPE_PV2SF): Ditto.
18237 (V8DI_FTYPE_PV4DI): Ditto.
18238 (V8DF_FTYPE_PV4DF): Ditto.
18239 (V8SF_FTYPE_FLOAT): Ditto.
18240 (V4SF_FTYPE_FLOAT): Ditto.
18241 (V4DF_FTYPE_DOUBLE): Ditto.
18242 (V8SF_FTYPE_PV4SF): Ditto.
18243 (V8SI_FTYPE_PV4SI): Ditto.
18244 (V4SI_FTYPE_PV2SI): Ditto.
18245 (V8SF_FTYPE_PV2SF): Ditto.
18246 (V8SI_FTYPE_PV2SI): Ditto.
18247 (V16SF_FTYPE_PV8SF): Ditto.
18248 (V16SI_FTYPE_PV8SI): Ditto.
18249 (V8DI_FTYPE_V8SF): Ditto.
18250 (V4DI_FTYPE_V4SF): Ditto.
18251 (V2DI_FTYPE_V4SF): Ditto.
18252 (V64QI_FTYPE_QI): Ditto.
18253 (V32HI_FTYPE_HI): Ditto.
18254 (V8UHI_FTYPE_V8UHI): Ditto.
18255 (V16UHI_FTYPE_V16UHI): Ditto.
18256 (V32UHI_FTYPE_V32UHI): Ditto.
18257 (V2UDI_FTYPE_V2UDI): Ditto.
18258 (V4UDI_FTYPE_V4UDI): Ditto.
18259 (V8UDI_FTYPE_V8UDI): Ditto.
18260 (V4USI_FTYPE_V4USI): Ditto.
18261 (V8USI_FTYPE_V8USI): Ditto.
18262 (V16USI_FTYPE_V16USI): Ditto.
18263 (V2DF_FTYPE_V2DF_UINT64): Ditto.
18264 (V2DI_FTYPE_V2DF_V2DF): Ditto.
18265 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18266 (V8DF_FTYPE_V8DF_V8DI): Ditto.
18267 (V4SF_FTYPE_V4SF_UINT64): Ditto.
18268 (V4SI_FTYPE_V4SF_V4SF): Ditto.
18269 (V16SF_FTYPE_V16SF_V16SI): Ditto.
18270 (V64QI_FTYPE_V32HI_V32HI): Ditto.
18271 (V32HI_FTYPE_V16SI_V16SI): Ditto.
18272 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18273 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18274 (V32HI_FTYPE_V64QI_V64QI): Ditto.
18275 (V32HI_FTYPE_V32HI_V32HI): Ditto.
18276 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18277 (V16SI_FTYPE_V16SI_V4SI): Ditto.
18278 (V16SI_FTYPE_V16SI_V16SI): Ditto.
18279 (V16SI_FTYPE_V32HI_V32HI): Ditto.
18280 (V16SI_FTYPE_V16SI_SI): Ditto.
18281 (V8DI_FTYPE_V8DI_V8DI): Ditto.
18282 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18283 (V8DI_FTYPE_V16SI_V16SI): Ditto.
18284 (V8DI_FTYPE_V8DI_V2DI): Ditto.
18285 (QI_FTYPE_QI): Ditto.
18286 (SI_FTYPE_SI): Ditto.
18287 (DI_FTYPE_DI): Ditto.
18288 (QI_FTYPE_QI_QI): Ditto.
18289 (QI_FTYPE_QI_INT): Ditto.
18290 (HI_FTYPE_HI_INT): Ditto.
18291 (SI_FTYPE_SI_INT): Ditto.
18292 (DI_FTYPE_DI_INT): Ditto.
18293 (HI_FTYPE_V16QI_V16QI): Ditto.
18294 (SI_FTYPE_V32QI_V32QI): Ditto.
18295 (DI_FTYPE_V64QI_V64QI): Ditto.
18296 (QI_FTYPE_V8HI_V8HI): Ditto.
18297 (HI_FTYPE_V16HI_V16HI): Ditto.
18298 (SI_FTYPE_V32HI_V32HI): Ditto.
18299 (QI_FTYPE_V4SI_V4SI): Ditto.
18300 (QI_FTYPE_V8SI_V8SI): Ditto.
18301 (QI_FTYPE_V2DI_V2DI): Ditto.
18302 (QI_FTYPE_V4DI_V4DI): Ditto.
18303 (QI_FTYPE_V8DI_V8DI): Ditto.
18304 (HI_FTYPE_V16SI_V16SI): Ditto.
18305 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18306 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18307 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18308 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18309 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18310 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18311 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18312 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18313 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18314 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18315 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18316 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18317 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18318 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18319 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18320 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18321 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18322 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18323 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18324 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18325 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18326 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18327 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18328 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18329 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18330 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18331 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18332 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18333 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18334 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18335 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18336 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18337 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18338 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18339 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18340 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18341 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18342 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18343 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18344 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18345 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18346 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18347 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18348 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18349 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18350 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18351 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18352 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18353 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18354 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18355 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18356 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18357 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18358 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18359 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18360 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18361 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18362 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18363 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18364 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18365 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18366 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18367 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18368 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18369 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18370 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18371 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18372 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18373 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18374 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18375 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18376 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18377 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18378 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18379 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18380 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18381 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18382 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18383 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18384 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18385 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18386 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18387 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18388 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18389 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18390 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18391 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18392 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18393 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18394 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18395 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18396 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18397 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18398 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18399 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18400 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18401 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18402 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18403 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18404 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18405 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18406 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18407 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18408 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18409 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18410 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18411 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18412 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18413 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18414 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18415 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18416 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18417 (HI_FTYPE_HI): Ditto.
18418 (HI_FTYPE_V16QI): Ditto.
18419 (SI_FTYPE_V32QI): Ditto.
18420 (DI_FTYPE_V64QI): Ditto.
18421 (QI_FTYPE_V8HI): Ditto.
18422 (HI_FTYPE_V16HI): Ditto.
18423 (SI_FTYPE_V32HI): Ditto.
18424 (QI_FTYPE_V4SI): Ditto.
18425 (QI_FTYPE_V8SI): Ditto.
18426 (HI_FTYPE_V16SI): Ditto.
18427 (QI_FTYPE_V2DI): Ditto.
18428 (QI_FTYPE_V4DI): Ditto.
18429 (QI_FTYPE_V8DI): Ditto.
18430 (V16QI_FTYPE_HI): Ditto.
18431 (V32QI_FTYPE_SI): Ditto.
18432 (V64QI_FTYPE_DI): Ditto.
18433 (V8HI_FTYPE_QI): Ditto.
18434 (V16HI_FTYPE_HI): Ditto.
18435 (V32HI_FTYPE_SI): Ditto.
18436 (V4SI_FTYPE_QI): Ditto.
18437 (V4SI_FTYPE_HI): Ditto.
18438 (V8SI_FTYPE_QI): Ditto.
18439 (V8SI_FTYPE_HI): Ditto.
18440 (V2DI_FTYPE_QI): Ditto.
18441 (V4DI_FTYPE_QI): Ditto.
18442 (HI_FTYPE_HI_HI): Ditto.
18443 (SI_FTYPE_SI_SI): Ditto.
18444 (DI_FTYPE_DI_DI): Ditto.
18445 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18446 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18447 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18448 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18449 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18450 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18451 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18452 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18453 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18454 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18455 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18456 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18457 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18458 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18459 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18460 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18461 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18462 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18463 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18464 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18465 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18466 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18467 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18468 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18469 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18470 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18471 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18472 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18473 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18474 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18475 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18476 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18477 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18478 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18479 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18480 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18481 (V16SI_FTYPE_HI): Ditto.
18482 (V8DI_FTYPE_QI): Ditto.
18483 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18484 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18485 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18486 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18487 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18488 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18489 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18490 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18491 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18492 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18493 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18494 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18495 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18496 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18497 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18498 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18499 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18500 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18501 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18502 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18503 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18504 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18505 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18506 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18507 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18508 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18509 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18510 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18511 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18512 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18513 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18514 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18515 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18516 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18517 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18518 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18519 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18520 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18521 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18522 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18523 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18524 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18525 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18526 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18527 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18528 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18529 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
18530 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
18531 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
18532 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
18533 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
18534 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
18535 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
18536 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
18537 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
18538 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
18539 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
18540 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
18541 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
18542 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
18543 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
18544 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
18545 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
18546 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
18547 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
18548 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
18549 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
18550 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
18551 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
18552 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
18553 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
18554 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
18555 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
18556 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
18557 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
18558 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
18559 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
18560 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
18561 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
18562 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
18563 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
18564 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
18565 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
18566 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
18567 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
18568 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
18569 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
18570 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
18571 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
18572 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
18573 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
18574 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
18575 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
18576 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
18577 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
18578 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
18579 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
18580 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
18581 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
18582 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
18583 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
18584 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
18585 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
18586 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
18587 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
18588 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
18589 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
18590 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
18591 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
18592 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
18593 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
18594 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
18595 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
18596 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
18597 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
18598 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
18599 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
18600 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
18601 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
18602 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
18603 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
18604 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
18605 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
18606 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
18607 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
18608 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
18609 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
18610 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
18611 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
18612 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
18613 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
18614 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
18615 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
18616 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
18617 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
18618 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
18619 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
18620 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
18621 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
18622 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
18623 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
18624 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
18625 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
18626 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
18627 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
18628 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
18629 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
18630 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
18631 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
18632 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
18633 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
18634 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
18635 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
18636 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
18637 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
18638 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
18639 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
18640 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
18641 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
18642 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
18643 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
18644 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
18645 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
18646 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
18647 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
18648 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
18649 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
18650 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
18651 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
18652 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
18653 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
18654 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
18655 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
18656 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
18657 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
18658 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
18659 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
18660 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
18661 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
18662 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
18663 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
18664 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
18665 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
18666 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
18667 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
18668 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
18669 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
18670 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
18671 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
18672 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
18673 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
18674 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
18675 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
18676 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
18677 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
18678 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
18679 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
18680 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
18681 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
18682 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
18683 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
18684 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
18685 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
18686 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
18687 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
18688 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
18689 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
18690 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
18691 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
18692 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
18693 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
18694 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
18695 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
18696 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
18697 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
18698 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
18699 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
18700 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
18701 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
18702 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
18703 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
18704 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
18705 (QI_FTYPE_V8DF_INT_QI): Ditto.
18706 (QI_FTYPE_V4DF_INT_QI): Ditto.
18707 (QI_FTYPE_V2DF_INT_QI): Ditto.
18708 (HI_FTYPE_V16SF_INT_HI): Ditto.
18709 (QI_FTYPE_V8SF_INT_QI): Ditto.
18710 (QI_FTYPE_V4SF_INT_QI): Ditto.
18711 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
18713 2015-07-31 Richard Biener <rguenther@suse.de>
18715 * gimple-fold.c (fold_gimple_assign): Remove folding of
18718 2015-07-31 Tom de Vries <tom@codesourcery.com>
18720 PR tree-optimization/66846
18721 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
18722 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
18723 (expand_omp_target) [ENABLE_CHECKING]: Same.
18724 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
18725 cfun if !LOOPS_NEED_FIXUP.
18726 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
18727 that omp_for already has its own loop struct.
18728 * tree-parloops.c (create_phi_for_local_result)
18729 (create_call_for_reduction): Handle simple latch bb.
18730 (create_parallel_loop): Add simple latch bb to preserve
18731 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
18732 (gen_parallel_loop): Remove call to cancel_loop_tree.
18733 (parallelize_loops): Skip loops that are inner loops of parallelized
18735 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
18736 verify_loop_structure.
18738 2015-07-30 Anatoly Sokolov <aesok@post.ru>
18740 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
18741 * config/v850/v850.md (RV_REGNUM): New constants.
18742 * config/v850/v850.c (v850_libcall_value): New functions.
18743 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
18744 (TARGET_LIBCALL_VALUE): Define.
18746 2015-07-30 Anatoly Sokolov <aesok@post.ru>
18748 * rtl.h (lowpart_subreg): Move in file.
18749 * loop-iv.c (lowpart_subreg): Move to...
18750 * simplify-rtx.c (lowpart_subreg): ...here.
18751 (simplify_binary_operation_1): Use lowpart_subreg instead of
18752 simplify_gen_subreg.
18753 * expr.c (expand_expr_real_2): Ditto.
18754 * emit-rtl.c (gen_lowpart_common): Ditto.
18755 * combine.c (gen_lowpart_for_combine): Ditto.
18756 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
18757 expand_debug_source_expr): Ditto.
18759 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
18761 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
18762 (expand_builtin_atomic_clear): Remove support for atomic_clear
18765 2015-07-30 Richard Biener <rguenther@suse.de>
18767 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
18768 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
18769 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
18770 redundant operand canonicalization.
18772 2015-07-30 David Sherwood <david.sherwood@arm.com>
18774 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
18775 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
18776 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
18777 * config/arm/arm.c (neon_valid_immediate): Likewise.
18778 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
18779 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
18780 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
18781 (expand_vec_perm_vpshufb2_vpermq): Likewise.
18782 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
18783 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18784 * config/i386/sse.md
18785 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
18786 (*ssse3_palignr<mode>_perm): Likewise.
18787 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
18788 * config/spu/spu.c (arith_immediate_p): Likewise.
18789 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18790 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
18792 2015-07-30 Richard Biener <rguenther@suse.de>
18794 * genmatch.c (decision_tree::gen_gimple): Merge with ...
18795 (decision_tree::gen_generic): ... this into ...
18796 (decision_tree::gen): ... this.
18797 (main): Adjust callers.
18799 2015-07-30 Richard Biener <rguenther@suse.de>
18801 * genmatch.c (verbose): New global.
18802 (warning_at): Add overload with source_location.
18803 (capture_info::capture_info): Add bool whether generating gimple
18804 or generic. Add gimple member.
18805 (capture_info::cinfo): Add capture member.
18806 (capture_info::walk_match): Record capture. Warn on
18807 non-captured leafs.
18808 (capture_info::walk_c_expr): Add more fragments captures cannot
18809 escape through. Warn on escaped captures.
18810 (dt_simplify::gen_1): Warn on operands we force to have no
18812 (main): Initialize verbose.
18813 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
18815 2015-07-30 Richard Biener <rguenther@suse.de>
18817 PR middle-end/67053
18818 * match.pd: Allow both operands to independently have conversion
18819 when simplifying compares of addresses.
18821 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
18825 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
18826 around those cases that need one.
18828 2015-07-29 Aditya Kumar <hiraditya@msn.com>
18830 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
18832 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
18834 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18835 New. Copied from config/i386/gnu-user.h.
18836 (ASM_COMMENT_START): Likewise.
18837 (DBX_REGISTER_NUMBER): Likewise.
18839 2015-07-29 Richard Biener <rguenther@suse.de>
18841 * gimple-fold.c (fold_gimple_cond): Remove.
18842 (fold_stmt_1): Do not call it.
18844 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
18846 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
18847 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
18849 * config/aarch64/aarch64-modes.def: Add HFmode.
18851 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18852 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
18854 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
18855 aarch64_promoted_type): New.
18857 (aarch64_float_const_representable_p): Disable HFmode.
18858 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
18859 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
18860 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
18862 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
18863 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
18865 * config/aarch64/iterators.md (GPF_F16): New.
18867 2015-07-29 Richard Biener <rguenther@suse.de>
18869 * match.pd: Merge address comparison patterns and make them
18870 handle some more cases.
18872 2015-07-29 Richard Biener <rguenther@suse.de>
18874 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
18875 (parser::parse_capture): Add bool argument on whether to reject
18877 (parser::parse_expr): Adjust.
18878 (parser::parse_op): Likewise.
18879 (parser::parse_pattern): Likewise.
18881 2015-07-29 Richard Biener <rguenther@suse.de>
18883 * gimple-fold.c (has_use_on_stmt): New function.
18884 (replace_stmt_with_simplification): Use it to allow
18885 abnormals originally referenced in the stmt.
18886 (fold_stmt_1): Canonicalize operand order.
18888 2015-07-28 David Sherwood <david.sherwood@arm.com>
18890 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
18891 GET_MODE_INNER unconditionally.
18892 * config/spu/spu.c (arith_immediate_p): Likewise.
18893 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
18894 * expmed.c (synth_mult): Remove check for VOIDmode result from
18896 (expand_mult_const): Likewise.
18897 * fold-const.c (fold_binary_loc): Replace call to element_precision
18898 with call to GET_MODE_PRECISION.
18899 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
18901 (emit_mode_inner): Likewise.
18902 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
18904 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
18905 (GET_MODE_UNIT_PRECISION): Likewise.
18906 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
18907 * simplify-rtx.c (simplify_immed_subreg): Likewise.
18908 * stor-layout.c (bitwise_type_for_mode): Update assert.
18909 (element_precision): Remove.
18911 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18913 * target-insns.def (reload_load_address): New targetm instruction
18915 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
18917 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18919 * target-insns.def (atomic_test_and_set): New targetm instruction
18921 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
18922 HAVE_*/gen_* interface.
18924 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18926 * target-insns.def (can_extend, ptr_extend): New targetm instruction
18928 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
18929 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18930 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18931 * rtlanal.c (nonzero_bits1): Likewise.
18932 (num_sign_bit_copies1): Likewise.
18934 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18936 * target-insns.def (eh_return): New targetm instruction pattern.
18937 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
18939 * function.c (thread_prologue_and_epilogue_insns): Remove
18940 preprocessor condition.
18942 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18944 * target-insns.def (indirect_jump): New targetm instruction pattern.
18945 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
18948 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18950 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
18951 instead of nonimmediate_operand. Remove C condiition.
18953 2015-07-28 Richard Biener <rguenther@suse.de>
18955 * match.pd: Add more simplification of address comparisons.
18957 2015-07-28 Richard Biener <rguenther@suse.de>
18959 * match.pd: Re-order two cases in comparison with max/min
18960 value simplification to make it apply for bools.
18962 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18964 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
18965 Handle simple SIGN_EXTEND or ZERO_EXTEND.
18966 (aarch64_rtx_costs): Properly strip extend or extract before
18967 passing down to rtx costs again.
18969 2015-07-28 Nick Clifton <nickc@redhat.com>
18971 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
18972 Optimizes the case where -mes0 is active and a constant symbolic
18974 * config/rl78/rl78-protos.h: Prototype the new function.
18975 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
18977 2015-07-28 Tom de Vries <tom@codesourcery.com>
18979 * tree-parloops.c (reduc_stmt_res): New function.
18980 (initialize_reductions, add_field_for_reduction)
18981 (create_phi_for_local_result, create_loads_for_reductions)
18982 (create_stores_for_reduction, build_new_reduction): Handle case that
18983 reduc_stmt is a phi.
18984 (gather_scalar_reductions): Allow double_reduc reductions.
18986 2015-07-28 Richard Biener <rguenther@suse.de>
18988 * fold-const.c (fold_comparison): Remove equality folding
18989 of decl addresses ...
18990 * match.pd: ... here and merge with existing pattern.
18992 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18994 PR tree-optimization/66828
18995 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
18996 from int64_t to uint64_t.
18998 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
19000 * opts-common.c (read_cmdline_option): List DriverOnly enum values
19001 as valid only in the error message of the driver, not in the
19002 messages of the language compilers.
19004 2015-07-27 Tom de Vries <tom@codesourcery.com>
19006 * tree-parloops.c (gather_scalar_reductions): Simplify function
19009 2015-07-27 Marek Polacek <polacek@redhat.com>
19011 * ipa-devirt.c (types_same_for_odr): Fix typo.
19013 2015-07-27 Jason Merrill <jason@redhat.com>
19016 * dwarf2out.c (gen_inlined_subroutine_die): Check
19017 cgraph_function_possibly_inlined_p.
19019 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19021 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
19022 Place integer variant first.
19023 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19025 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19028 * config/arm/arm-builtins.c (enum arm_builtins):
19029 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
19030 (ARM_BUILTIN_NEON_BASE): Rename macro to....
19031 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
19032 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
19033 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
19035 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19038 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
19039 Add qualifier_lane_index.
19040 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
19041 (arm_getlane_qualifiers): Use qualifier_lane_index.
19042 (arm_lanemac_qualifiers): Rename to...
19043 (arm_mac_n_qualifiers): ...this.
19044 (LANEMAC_QUALIFIERS): Rename to...
19045 (MAC_N_QUALIFIERS): ...this.
19046 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
19047 (arm_setlane_qualifiers): Use qualifier_lane_index.
19048 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
19049 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
19050 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
19051 (arm_expand_neon_builtin): Handle qualifier_lane_index.
19053 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
19054 * config/arm/arm.c (bounds_check): Likewise, improve error message.
19055 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
19056 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
19057 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
19058 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
19059 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
19060 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
19061 qualifiers to TERNOP_IMM.
19062 (vdup_lane): Change qualifiers to GETLANE.
19063 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
19064 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
19065 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
19066 vqdmlsl_n): Change qualifiers to MAC_N.
19068 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
19069 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
19070 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
19071 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
19072 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
19073 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
19074 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
19075 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
19076 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
19077 Remove call to neon_lane_bounds.
19079 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19081 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19082 Place integer variant first.
19084 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
19086 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
19087 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
19088 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
19089 for armv6kz targets.
19090 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
19091 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
19092 (FL_FOR_ARCH6ZK): Remove.
19093 (FL_FOR_ARCH6KZ): New.
19094 (arm_arch6zk): New declaration.
19095 * config/arm/arm-tables.opt: Regenerate.
19096 * config/arm/arm.c (arm_arch6kz): New.
19097 (arm_option_override): Set arm_arch6kz.
19098 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
19099 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
19100 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
19102 2015-07-27 Marek Polacek <polacek@redhat.com>
19106 * doc/invoke.texi: Document -Wtautological-compare.
19108 2015-07-27 Richard Biener <rguenther@suse.de>
19110 * genmatch.c (decision_tree::gen_gimple): Split out large
19111 subtrees into separate functions.
19112 (decision_tree::gen_generic): Likewise.
19114 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
19116 * config/alpha/alpha.c: Use SUBREG_P predicate.
19117 * config/alpha/predicates.md: Ditto.
19119 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
19121 * config.host (s390*-*-*): Include driver-native.c only when
19122 building with s390* as host *and* target.
19124 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
19127 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19128 T bit register modified_between_p check.
19130 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19132 * config/i386/i386.c: Use SUBREG_P predicate.
19133 * config/i386/i386.md: Ditto.
19134 * config/i386/sse.md: Ditto.
19135 * config/i386/predicates.md: Ditto.
19137 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19140 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19141 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19143 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19145 * Makefile.in: Remove use of TREEBROWSER.
19146 * config.in: Regenerated.
19147 * configure: Regenerated.
19148 * configure.ac: Remove definition of TREEBROWSER.
19149 * tree-browser.c: Removed.
19150 * tree-browser.def: Removed.
19152 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19154 * graphite-scop-detection.c: Include gimple-pretty-print.h.
19155 (stmt_simple_for_scop_p): Print when a stmt is not handled in
19157 (scopdet_basic_block_info): Print when a loop or bb cannot be
19158 represented in Graphite.
19160 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19163 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19164 execution guard when min_size is less than size_needed.
19166 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19168 * doc/install.texi: Document supported versions of ISL.
19170 2015-07-25 Jeff Law <law@redhat.com>
19174 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19175 unable to find X NE 0 in the tables, return X as the simplified
19177 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19178 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19179 to VISISTED_BBS. */
19180 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19181 after removing the control flow statement and unnecessary edges.
19183 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
19186 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19188 PR rtl-optimization/64164
19189 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19190 * tree-ssa-copyrename.c: Removed.
19191 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19192 -ftree-coalesce-vars.
19193 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19194 * common.opt (ftree-copyrename): Ignore.
19195 (ftree-coalesce-inlined-vars): Likewise.
19196 * doc/invoke.texi: Remove the ignored options above.
19197 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19198 * tree-ssa-coalesce.h: ... here.
19199 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19200 headers required by it.
19201 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19202 across variables when flag_tree_coalesce_vars. Check register
19203 use and promoted modes to allow coalescing. Moved to
19204 tree-ssa-coalesce.c.
19205 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19206 with its member functions to tree-ssa-coalesce.c.
19207 (var_map_base_init): Likewise. Renamed to
19208 compute_samebase_partition_bases.
19209 (partition_view_normal): Drop want_bases parameter.
19210 (partition_view_bitmap): Likewise.
19211 * tree-ssa-live.h: Adjust declarations.
19212 * tree-ssa-coalesce.c: Include explow.h.
19213 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19214 default defs at the entry point.
19215 (dump_part_var_map): New.
19216 (compute_optimized_partition_bases): New, called by...
19217 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19218 of compute_samebase_partition_bases. Adjust.
19219 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19220 * cfgexpand.c (leader_merge): New.
19221 (get_rtl_for_parm_ssa_default_def): New.
19222 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19223 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19224 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19225 redundant MEM attr setting.
19226 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19228 (expand_one_stack_var): ... this. New wrapper to check and
19229 skip already expanded SSA partitions.
19230 (record_alignment_for_reg_var): New, factored out of...
19231 (expand_one_var): ... this.
19232 (expand_one_ssa_partition): New.
19233 (adjust_one_expanded_partition_var): New.
19234 (expand_one_register_var): Check and skip already expanded SSA
19236 (expand_used_vars): Don't create DECLs for anonymous SSA
19237 names. Expand all SSA partitions, then adjust all SSA names.
19238 (pass::execute): Replace the loops that set
19239 SA.partition_to_pseudo from partition leaders and cleared
19240 DECL_RTL for multi-location variables, and that which used to
19241 rename vars and set attrs, with one that clears DECL_RTL and
19242 checks that PARMs and RESULTs default_defs match DECL_RTL.
19243 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19244 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19245 * explow.c (promote_ssa_mode): New.
19246 * explow.h (promote_ssa_mode): Declare.
19247 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19248 * function.c: Include cfgexpand.h.
19249 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19250 (use_register_for_parm_decl): Wrapper for the above to
19251 special-case the result_ptr.
19252 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19253 (split_complex_args): Take assign_parm_data_all argument.
19254 Pass it to rtl_for_parm. Set up rtl and context for split
19256 (assign_parms_augmented_arg_list): Adjust.
19257 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19258 multiple locations. Recognize split complex args.
19259 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19260 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19261 (assign_parm_setup_block): Prefer SSA-assigned location.
19262 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19263 if stack_parm is NULL.
19264 (assign_parm_setup_stack): Prefer SSA-assigned location.
19265 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19266 rtl before testing for pointer bounds. Special-case result_ptr.
19267 (expand_function_start): Maybe reset DECL_RTL of result.
19268 Prefer SSA-assigned location for result and static chain.
19269 Factor out DECL_RESULT and SET_DECL_RTL.
19270 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19271 anonymous SSA names. Use promote_ssa_mode.
19272 (get_temp_reg): Likewise.
19273 (remove_ssa_form): Adjust.
19274 * stor-layout.c (layout_decl): Don't set mem attributes of
19276 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19277 and get its reg_usage for reg invalidation.
19278 (compute_bb_dataflow): Pass it insn.
19279 (emit_notes_in_bb): Likewise.
19281 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19283 * config/i386/i386.c (ix86_va_start): Remove
19284 unneeded !TARGET_64BIT check.
19285 (ix86_gimplify_va_arg): Ditto.
19287 2015-07-24 Tom de Vries <tom@codesourcery.com>
19289 * graphite-sese-to-poly.c (build_poly_scop): Always call
19290 rewrite_commutative_reductions_out_of_ssa.
19292 2015-07-24 Tom de Vries <tom@codesourcery.com>
19294 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19295 flag_associative_math to FLOAT_TYPE_P. Honour
19296 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19298 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19301 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19302 and "%qD" in warning_at instead of "%q+D" in warning.
19304 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19306 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19307 (ix86_function_abi): Cleanup.
19309 2015-07-24 Michael Darling <darlingm@gmail.com>
19312 * acinclude.m4: Reflects renaming of configure.in to configure.ac
19313 * configure: Likewise
19314 * configure.ac: Likewise
19315 * doc/install.texi: Likewise
19316 * doc/tm.texi: Likewise
19317 * doc/tm.texi.in: Likewise
19319 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19321 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19322 manually swapping values.
19323 * cse.c (fold_rtx): Likewise.
19324 * lra-eliminations.c (form_sum): Likewise.
19326 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19329 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19330 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19331 (*jcc_1, *jcc_2, jump, simple_return_internal)
19332 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19333 Set length_nobnd attribute instead of length attribute.
19334 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19335 (length_nobnd): Remove attribute.
19336 (length): Remove length_nobnd processing.
19338 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
19340 * gimplify.c (omp_default_clause): New function. Reorganize flow
19341 for clarity. Broken out of ...
19342 (omp_notice_variable): ... here.
19344 2015-07-24 Gary Funck <gary@intrepid.com>
19346 PR middle-end/66984
19347 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19348 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19350 2015-07-24 Tom de Vries <tom@codesourcery.com>
19352 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19353 exit-first loop transform.
19355 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
19358 * tree-cfg.c (struct replace_decls_d): New struct.
19359 (replace_block_vars_by_duplicates_1): New function.
19360 (replace_block_vars_by_duplicates): Use it to replace the decls
19361 in the value exprs by duplicates.
19363 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19365 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19366 -shared, -symbolic, -rdynamic.
19368 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19371 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19372 -dynamic-linker within %{!static %{!shared, and -rdynamic within
19375 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19378 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19379 edge summary is available.
19381 2015-07-24 Richard Biener <rguenther@suse.de>
19383 * genmatch.c (struct dt_node): Add statistic fields.
19384 (dt_node::analyze): New method.
19385 (decision_tree::gen_gimple): Call analyze on the root node
19386 and print statistics to stderr.
19387 (decision_tree::gen_generic): Likewise.
19389 2015-07-24 Richard Biener <rguenther@suse.de>
19391 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19392 against the highest or lowest possible integer ...
19393 * match.pd: ... as patterns here.
19395 2015-07-24 Richard Biener <rguenther@suse.de>
19397 * genmatch.c (struct capture_info): Add same_as field.
19398 (capture_info::capture_info): Initialize same_as.
19399 (capture_info::walk_match): Compute same_as.
19400 (capture_info::walk_result): Compute stuff for the leader.
19401 (capture_info::walk_c_expr): Likewise.
19402 (dt_simplify::gen_1): Only look at leaders when deciding
19403 to force no side-effects or emit side-effects of omitted operands.
19405 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19407 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19408 reg note to the GPR -> FPR save instructions.
19410 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19412 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19414 (s390_expand_insv): Don't generate risbg pattern for constant zero
19416 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19417 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
19420 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19422 * config/s390/s390.c (s390_reorg): Clean up handling of processors
19425 (s390_issue_rate): Likewise.
19426 (s390_sched_reorder): Likewise.
19427 (s390_sched_variable_issue): Likewise.
19428 (s390_loop_unroll_adjust): Likewise.
19429 (s390_option_override): Likewise.
19431 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19433 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19434 processor capabilities with -march=native.
19435 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19436 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
19437 (S390_TARGET_BITS_STRING): Macro to simplify specs.
19439 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19441 * config/s390/s390.c (s390_issue_rate): Handle
19442 PROCESSOR_2094_Z9_EC.
19443 (s390_option_override): Likewise.
19444 (s390_adjust_priority): Likewise.
19446 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19448 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19449 when cross compiling.
19451 2015-07-24 Richard Biener <rguenther@suse.de>
19453 * fold-const.c (maybe_canonicalize_comparison_1): Move
19454 A code CST canonicalization ...
19455 * match.pd: ... to a pattern here.
19457 2015-07-24 Jiong Wang <jiong.wang@arm.com>
19460 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19462 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19463 (HONOR_REG_ALLOC_ORDER): Define.
19465 2015-07-24 Richard Biener <rguenther@suse.de>
19467 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19468 * fold-const.c (fold_comparison): Move parameter does not
19469 alias &local simplification ...
19470 * match.pd: ... as a pattern here.
19472 2015-07-24 Richard Biener <rguenther@suse.de>
19474 * gimple-fold.c (replace_stmt_with_simplification): Special-case
19475 valueizing call operands.
19476 * gimple-match-head.c (maybe_push_res_to_seq): Take
19477 number of call arguments from ops array.
19478 (do_valueize): New function.
19479 (gimple_simplify): Return true if valueization changed
19480 any operand even if the result didn't simplify further.
19482 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19484 PR middle-end/25530
19485 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19487 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19489 PR middle-end/25529
19490 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19492 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19494 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19497 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19499 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19502 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
19504 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19505 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
19507 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19508 ms_va_list_type_node initialization.
19510 2015-07-23 Jeff Law <law@redhat.com>
19513 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19514 unable to find X NE 0 in the tables, return X as the simplified
19516 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19517 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19518 to VISISTED_BBS. */
19519 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19520 after removing the control flow statement and unnecessary edges.
19522 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19524 * tree-pass.h (get_current_pass_name): Removed.
19526 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19528 PR rtl-optimization/64164
19529 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19530 * tree-ssa-copyrename.c: Removed.
19531 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19532 -ftree-coalesce-vars.
19533 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19534 * common.opt (ftree-copyrename): Ignore.
19535 (ftree-coalesce-inlined-vars): Likewise.
19536 * doc/invoke.texi: Remove the ignored options above.
19537 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19538 * tree-ssa-coalesce.h: ... here.
19539 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19540 headers required by it.
19541 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19542 across variables when flag_tree_coalesce_vars. Check register
19543 use and promoted modes to allow coalescing. Moved to
19544 tree-ssa-coalesce.c.
19545 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19546 with its member functions to tree-ssa-coalesce.c.
19547 (var_map_base_init): Likewise. Renamed to
19548 compute_samebase_partition_bases.
19549 (partition_view_normal): Drop want_bases parameter.
19550 (partition_view_bitmap): Likewise.
19551 * tree-ssa-live.h: Adjust declarations.
19552 * tree-ssa-coalesce.c: Include explow.h.
19553 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19554 default defs at the entry point.
19555 (dump_part_var_map): New.
19556 (compute_optimized_partition_bases): New, called by...
19557 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19558 of compute_samebase_partition_bases. Adjust.
19559 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19560 * cfgexpand.c (leader_merge): New.
19561 (get_rtl_for_parm_ssa_default_def): New.
19562 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19563 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19564 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19565 redundant MEM attr setting.
19566 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19568 (expand_one_stack_var): ... this. New wrapper to check and
19569 skip already expanded SSA partitions.
19570 (record_alignment_for_reg_var): New, factored out of...
19571 (expand_one_var): ... this.
19572 (expand_one_ssa_partition): New.
19573 (adjust_one_expanded_partition_var): New.
19574 (expand_one_register_var): Check and skip already expanded SSA
19576 (expand_used_vars): Don't create DECLs for anonymous SSA
19577 names. Expand all SSA partitions, then adjust all SSA names.
19578 (pass::execute): Replace the loops that set
19579 SA.partition_to_pseudo from partition leaders and cleared
19580 DECL_RTL for multi-location variables, and that which used to
19581 rename vars and set attrs, with one that clears DECL_RTL and
19582 checks that PARMs and RESULTs default_defs match DECL_RTL.
19583 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19584 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19585 * explow.c (promote_ssa_mode): New.
19586 * explow.h (promote_ssa_mode): Declare.
19587 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19588 * function.c: Include cfgexpand.h.
19589 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19590 (use_register_for_parm_decl): Wrapper for the above to
19591 special-case the result_ptr.
19592 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19593 (split_complex_args): Take assign_parm_data_all argument.
19594 Pass it to rtl_for_parm. Set up rtl and context for split
19596 (assign_parms_augmented_arg_list): Adjust.
19597 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19598 multiple locations. Recognize split complex args.
19599 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19600 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19601 (assign_parm_setup_block): Prefer SSA-assigned location.
19602 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19603 if stack_parm is NULL.
19604 (assign_parm_setup_stack): Prefer SSA-assigned location.
19605 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19606 rtl before testing for pointer bounds. Special-case result_ptr.
19607 (expand_function_start): Maybe reset DECL_RTL of result.
19608 Prefer SSA-assigned location for result and static chain.
19609 Factor out DECL_RESULT and SET_DECL_RTL.
19610 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19611 anonymous SSA names. Use promote_ssa_mode.
19612 (get_temp_reg): Likewise.
19613 (remove_ssa_form): Adjust.
19614 * stor-layout.c (layout_decl): Don't set mem attributes of
19616 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19617 and get its reg_usage for reg invalidation.
19618 (compute_bb_dataflow): Pass it insn.
19619 (emit_notes_in_bb): Likewise.
19621 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
19624 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
19626 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
19627 (rs6000_emit_2insn_and): Handle dot forms.
19628 * config/rs6000/rs6000.md (and<mode>3): Adjust.
19629 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
19630 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
19632 2015-07-23 Richard Biener <rguenther@suse.de>
19634 * generic-match-head.c: Include cgraph.h.
19635 * gimple-match-head.c: Likewise.
19636 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
19638 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
19639 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
19642 2015-07-23 Richard Biener <rguenther@suse.de>
19644 * gimple-fold.c (fold_gimple_cond): Do not require folding
19645 results to pass valid_gimple_rhs_p.
19646 * tree-cfg.h (fold_cond_expr_cond): Remove.
19647 * tree-cfg.c (fold_cond_expr_cond): Likewise.
19648 (make_edges): Do not call it.
19649 * tree-inline.c (tree_function_versioning): Likewise.
19651 2015-07-23 Tom de Vries <tom@codesourcery.com>
19653 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
19654 vect_force_simple_reduction.
19655 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
19656 (vect_is_simple_reduction_1): Add and handle
19657 need_wrapping_integral_overflow parameter.
19658 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
19659 need_wrapping_integral_overflow parameter.
19660 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
19661 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
19664 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
19666 PR tree-optimization/66926,66951
19667 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
19668 INNER_LOOP and fix up condition for renaming virtual operands.
19670 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19672 * combine.c (try_combine): Use std::swap instead of manually
19675 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
19677 * config/mips/i6400.md: New file.
19678 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
19679 (mips64r6): Likewise.
19681 * config/mips/mips-tables.opt: Regenerate.
19682 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
19683 (mips_issue_rate): Add support for i6400.
19684 (mips_multipass_dfa_lookahead): Likewise.
19685 * config/mips/mips.h (TUNE_I6400): Define.
19686 * config/mips/mips.md: Include i6400.md.
19687 (processor): Add i6400.
19688 * doc/invoke.texi (-march=@var{arch}): Add i6400.
19690 2015-07-23 Richard Biener <rguenther@suse.de>
19692 PR middle-end/66916
19693 * match.pd: Guard widen and sign-change comparison simplification
19696 2015-07-23 Richard Biener <rguenther@suse.de>
19698 PR tree-optimization/66945
19699 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
19700 ::before_dom_children): Force the propagators idea of
19701 non-executable edges to materialize, not what the folder
19704 2015-07-23 Richard Biener <rguenther@suse.de>
19706 * gimple.h (gimple_cond_make_false): Use 0 != 0.
19707 (gimple_cond_make_true): Use 1 != 0.
19709 2015-07-22 DJ Delorie <dj@redhat.com>
19711 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
19714 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
19715 (ashrhi3): Likewise.
19716 (lshrhi3): Likewise.
19717 (movhi): Take advantage of zero-extend to load small constants.
19718 (movpsi): Likewise.
19719 (and<mode>3): Likewise.
19720 (zero_extendqihi2): Likewise.
19721 (zero_extendqisi2): New.
19722 * config/msp430/constraints.md (N,O): New.
19723 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
19725 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
19728 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
19729 to enum feature_priority and feature_list.
19730 (fold_builtin_cpu): Add F_AES to enum processor_features
19731 and isa_names_table.
19733 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
19736 * config/i386/linux-common.h (MPX_SPEC): Use linker option
19737 for 64bit target only.
19739 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
19741 * config/nvptx/nvptx.c: Expand some comments.
19743 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
19745 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
19746 (cortex_a53_advsimd): ...This.
19748 2015-07-22 Richard Biener <rguenther@suse.de>
19750 * genmatch.c (expr::gen_transform): Clarify error message
19751 and display location.
19753 2015-07-22 Richard Biener <rguenther@suse.de>
19755 * genmatch.c (struct operand): Add location member.
19756 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
19758 (struct simplify): Remove match_location and result_location
19760 (elsehwere): Adjust.
19762 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
19764 * config/mips/m5100.md: New file.
19765 * config/mips/mips-cpus.def (m5100, m5101): Define.
19766 * config/mips/mips-tables.opt: Regenerate.
19767 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
19768 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
19769 -march=m5101 to -mips32r5.
19770 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
19771 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
19773 * config/mips/mips.md: Include m5100.md.
19774 (processor): Add m5100.
19775 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
19777 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
19779 * config/mips/mips-cpus.def (interaptiv): Define.
19780 * config/mips/mips-tables.opt: Regenerate.
19781 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
19783 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
19784 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
19786 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19789 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19790 (HONOR_REG_ALLOC_ORDER): Define.
19792 2015-07-22 Richard Biener <rguenther@suse.de>
19794 PR tree-optimization/66952
19795 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
19796 blocks we end up executing unconditionally reset all SSA
19797 info such as range and alignment.
19798 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
19799 * tree-ssanames.c (reset_flow_sensitive_info): New function.
19801 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19803 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
19806 2015-07-22 Richard Biener <rguenther@suse.de>
19808 * genmatch.c (parser::parse_result): Properly handle
19809 match with result operands and conditions.
19811 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19814 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19815 Add qualifier_struct_load_store_lane_index.
19816 (aarch64_types_loadstruct_lane_qualifiers): Use
19817 qualifier_struct_load_store_lane_index for lane index argument for
19819 (aarch64_types_storestruct_lane_qualifiers): Ditto.
19820 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19821 (aarch64_simd_expand_args): Add new argument describing mode of
19822 builtin. Check lane bounds for arguments with
19823 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19824 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
19825 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19826 (aarch64_simd_expand_builtin): Handle arguments with
19827 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
19828 aarch64_simd_expand_args.
19829 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
19830 vst[234]_lane with BUILTIN_VALLDIF.
19831 * config/aarch64/aarch64-simd.md:
19832 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
19833 endianness reversal on lane index.
19834 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
19835 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
19836 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
19837 (vec_store_lanesci_lane<mode>): Ditto.
19838 (vec_store_lanesxi_lane<mode>): Ditto.
19839 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
19840 reversal of lane index.
19841 (aarch64_ld3_lane<mode>): Ditto.
19842 (aarch64_ld4_lane<mode>): Ditto.
19843 (aarch64_st2_lane<mode>): Ditto.
19844 (aarch64_st3_lane<mode>): Ditto.
19845 (aarch64_st4_lane<mode>): Ditto.
19846 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
19847 to qmode. Add new mode parameter. Update uses.
19848 (__LD3_LANE_FUNC): Ditto.
19849 (__LD4_LANE_FUNC): Ditto.
19850 (__ST2_LANE_FUNC): Ditto.
19851 (__ST3_LANE_FUNC): Ditto.
19852 (__ST4_LANE_FUNC): Ditto.
19854 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
19856 * doc/invoke.texi (Language Independent Options): Rename node to
19857 Diagnostic Message Formatting Options.
19859 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
19862 * lra-remat.c (operand_to_remat): Prevent using insns with input
19863 subregs processed separately by IRA.
19865 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
19867 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
19869 (single_imm_use): Check for iterator node.
19870 (num_imm_uses): Likewise.
19871 * tree-ssa-operands.c (has_zero_uses_1): Delete.
19872 (single_imm_use_1): Check for iterator node.
19874 2015-07-21 Mike Frysinger <vapier@gentoo.org>
19875 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19877 * configure.ac: Add check for new options in isl-0.15.
19878 * config.in, configure: Rebuilt.
19879 * graphite-blocking.c: Include <isl/constraint.h>
19880 * graphite-interchange.c, graphite-poly.c: Likewise.
19881 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
19882 * graphite.c: Likewise.
19883 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
19885 * graphite-dependences.c: Include <isl/constraint.h>.
19886 (max_number_of_out_dimensions): Returns isl_stat.
19887 (extend_schedule_1): Likewise
19888 (extend_schedule): Corresponding changes.
19889 * graphite-optimize-isl.c: Include <isl/constraint.h> and
19891 (getSingleMap): Change return type of isl_stat.
19892 (optimize_isl): Conditionally use
19893 isl_options_set_schedule_serialize_sccs.
19894 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
19895 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
19897 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
19900 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
19901 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
19903 2015-07-21 Richard Biener <rguenther@suse.de>
19905 PR tree-optimization/66948
19906 * genmatch.c (capture_info::walk_match): Also recurse to
19907 captures. Properly compute expr state from captures of
19909 * match.pd: Add single-use guards to
19910 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
19912 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
19914 * config/nvptx/mkoffload.c (process): Add static destructor call.
19916 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19918 PR middle-end/66915
19919 * match.pd (A - B -> A + (-B)): Don't allow folding
19920 when type if a fixed-point type.
19922 2015-07-20 DJ Delorie <dj@redhat.com>
19924 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
19925 (iorqi3_real): Likewise for set1.
19927 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
19929 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
19932 2015-07-20 Aditya Kumar <hiraditya@msn.com>
19934 * graphite-isl-ast-to-gimple.c:
19935 Refactor so that each function can access 'region'. This will help
19936 maintain a parameter rename_map within a region.
19938 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19940 * config/rs6000/rs6000.md (*lt0_disi): New.
19942 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19945 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
19946 "available letters" comment.
19947 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
19948 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
19949 and_2rld_operand): Delete.
19950 (and_operand): Adjust.
19951 (rotate_mask_operator): New.
19952 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
19953 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
19954 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
19955 extract_ME): Delete.
19956 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19957 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
19958 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
19959 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19960 rs6000_emit_2insn_and): New.
19961 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
19962 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
19963 includes_rldic_lshift_p, includes_rldicr_lshift_p,
19964 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
19965 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19966 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
19967 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
19968 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19969 rs6000_emit_2insn_and): New.
19970 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
19971 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
19973 <NOT>: Don't fall through to next case.
19974 <AND>: Handle the various rotate-and-mask cases directly.
19975 <IOR>: Always cost as one insn.
19976 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
19977 (and<mode>3): Adjust expander for the new patterns.
19978 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
19979 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
19980 (*and<mode>3_imm_dot_shifted): New.
19981 (*and<mode>3_mask): Delete, rewrite as ...
19982 (and<mode>3_mask): ... New.
19983 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
19984 (andsi3_internal0_nomc): Delete.
19985 (*andsi3_internal6): Delete.
19986 (*and<mode>3_2insn): New.
19987 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19988 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19989 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
19990 *insvdi_internal3): Delete.
19991 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
19992 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
19993 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
19994 *ior<mode>_mask): New.
19995 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
19996 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19997 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19998 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20000 (ashr<mode>3): Delete expander.
20001 (*ashr<mode>3): Rename to ...
20002 (ashr<mode>3): ... This.
20003 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
20004 (*rotldi3_internal4, *rotldi3_internal5 and split,
20005 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
20006 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
20007 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
20008 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
20009 (splitter for loading a mask): Adjust.
20010 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
20012 2015-07-20 Marek Polacek <polacek@redhat.com>
20014 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
20015 output_add_clobbers, output_added_clobbers_hard_reg_p,
20016 gen_rtx_scratch): Remove declarations.
20018 2015-07-20 Marek Polacek <polacek@redhat.com>
20021 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
20023 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20025 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
20026 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
20028 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20030 * combine.c (combine_simplify_rtx): Move simplification step
20031 before various transformations/substitutions.
20033 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
20035 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
20036 (struct int_traits): Likewise.
20038 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20040 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
20041 function to vmsdbgout_function_decl.
20043 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20046 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
20047 from misaligned positions.
20048 (ix86_expand_pinsr): Reject insertions to misaligned positions.
20050 2015-07-18 Sebastian Pop <s.pop@samsung.com>
20052 PR middle-end/46851
20053 PR middle-end/60340
20054 * Makefile.in: Removed omega.o.
20055 * common.opt: Document flag fcheck-data-deps as deprecated.
20056 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
20057 its associated params: omega-max-vars, omega-max-geqs,
20058 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
20059 omega-max-keys, omega-eliminate-redundant-constraints.
20060 * doc/loop.texi: Remove all the section on Omega.
20061 * graphite-blocking.c: Include missing params.h: it used to be
20062 included through tree-data-ref.h and omega.h.
20063 * graphite-isl-ast-to-gimple.c: Same.
20064 * graphite-optimize-isl.c: Same.
20065 * graphite-sese-to-poly.c: Same.
20066 * graphite.c: Same.
20069 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
20070 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
20071 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
20072 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
20073 * passes.def: Remove pass_check_data_deps.
20074 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
20075 (dump_conflict_function): Same.
20076 (dump_subscript): Same.
20077 (print_direction_vector): Same.
20078 (print_dir_vectors): Same.
20079 (print_lambda_vector): Same.
20080 (print_dist_vectors): Same.
20081 (dump_data_dependence_relation): Same.
20082 (dump_data_dependence_relations): Same.
20083 (dump_dist_dir_vectors): Same.
20085 (init_omega_eq_with_af): Removed.
20086 (omega_extract_distance_vectors): Removed.
20087 (omega_setup_subscript): Removed.
20088 (init_omega_for_ddr_1): Removed.
20089 (init_omega_for_ddr): Removed.
20090 (ddr_consistent_p): Removed.
20091 (compute_affine_dependence): Do not use omega to check data
20093 (compute_data_dependences_for_bb): Removed.
20094 (analyze_all_data_dependences): Removed.
20095 (tree_check_data_deps): Removed.
20096 * tree-data-ref.h: Do not include omega.h.
20097 (compute_data_dependences_for_bb): Removed.
20098 (tree_check_data_deps): Removed.
20099 * tree-ssa-loop.c (pass_check_data_deps): Removed.
20100 (make_pass_check_data_deps): Removed.
20101 * tree-ssa-phiopt.c: Include params.h.
20102 * tree-vect-data-refs.c: Same.
20103 * tree-vect-slp.c: Same.
20105 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20107 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20108 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
20109 (mem->fpreg splitters): Ditto.
20110 (general_operand->nonimmediate_operand splitter): Use explicit modes.
20111 Disable DFmode for TARGET_64BIT.
20113 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
20116 * config/i386/i386.c (ix86_expand_prologue): Replicate static
20117 chain on the stack.
20119 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20121 * config/nvptx/mkoffload.c (process): Constify host data.
20122 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20123 Constify host data.
20124 (generate_host_descr_file): Likewise.
20126 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
20127 Sebastian Pop <s.pop@samsung.com>
20129 PR middle-end/61929
20130 * graphite-dependences.c (add_pdr_constraints): Renamed
20131 pdr->extent to pdr->subscript_sizes.
20132 * graphite-interchange.c (build_linearized_memory_access): Add
20133 back all gcc_assert's that the "isl_int to isl_val conversion"
20134 patch has removed. Refactored.
20135 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20136 * graphite-poly.c (new_poly_dr): Same.
20137 (free_poly_dr): Same.
20138 * graphite-poly.h (struct poly_dr): Same.
20139 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20140 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20141 * graphite-scop-detection.h: Fix space.
20142 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20143 back all gcc_assert's removed by a previous patch.
20144 (wrap): Remove the_isl_ctx global variable that the same patch has
20146 (build_loop_iteration_domains): Same.
20147 (add_param_constraints): Same.
20148 (pdr_add_data_dimensions): Same. Refactored.
20149 (build_poly_dr): Renamed extent to subscript_sizes.
20151 2015-07-17 Marek Polacek <polacek@redhat.com>
20153 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20154 * match.pd: ... here.
20156 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20158 * config/nvptx/mkoffload.c (process): Constify target data.
20159 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20160 Constify target data.
20161 (generate_target_offloadend_file): Likewise.
20163 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
20165 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20166 to allow renaming of PHI arguments on edges incoming from outer
20167 loop header, add corresponding check before start PHI iterator.
20168 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20169 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20170 with true force_vectorize. Set-up dominator for outer loop too.
20171 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20172 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20173 was marked with force_vectorize and has restricted cfg.
20174 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20176 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20177 do peeling for outer loops.
20179 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
20180 Matthias Klose <doko@ubuntu.com>
20182 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20183 build-sysroot, sysroot from the `Miscenalleous configure options' to
20184 the `Directories' section and strip trailing `/' from with_sysroot.
20185 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20186 * configure: Regenerated.
20188 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20191 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20192 (TARGET_HARD_DF_REGS): Ditto.
20193 (TARGET_HARD_XF_REGS): Ditto.
20194 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20195 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20196 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20197 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20198 (*movsf_internal): Add alternatives 16 and 17. Enable
20199 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20201 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20203 PR rtl-optimization/66891
20204 * calls.c (expand_call): Wrap precompute_register_parameters with
20205 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20207 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
20209 * config/nvptx/mkoffload.c (process): Constify mapping variables.
20210 Define target data struct and initialize it.
20212 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
20214 PR rtl-optimization/66626
20215 * ira.h (emit-rtl.h): Include.
20216 (non_spilled_static_chain_regno_p): New.
20217 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20218 unless it is non spilled static chain pseudo.
20219 (assign_hard_rego): Spill memory profitable allocno unless it is
20220 non spilled static chain pseudo.
20221 (allocno_spill_priority_compare): Put non spilled static chain
20222 pseudo at the end of sorted array.
20223 (improve_allocation): Do nothing if we have static chain and
20225 (allocno__priority_compare_func): Put non spilled static chain
20226 pseudo at the beginning of sorted array.
20227 (move_spill_restore): Ignore non spilled static chain pseudo.
20228 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20229 to non spilled static chain pseudo.
20230 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20231 pseudo at the beginning of sorted array.
20232 (spill_for): Spill non spilled static chain pseudo last.
20233 * lra-constraints.c (lra_constraints): Remove static chain pseudo
20234 check for equivalence.
20236 2015-07-16 Martin Liska <mliska@suse.cz>
20239 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20240 dst_ctx if it does not exist.
20242 2015-07-16 Martin Liska <mliska@suse.cz>
20244 * hash-set.h (remove): New function.
20245 (iterator): New iteration class for hash_set.
20247 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20249 * genattrtab.c (make_canonical): Add a file_location parameter.
20250 Use fatal_at rather than fatal.
20251 (get_attr_value): Likewise. Update call to make_canonical.
20252 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20253 (make_internal_attr): Update calls accordingly.
20255 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20257 * read-md.h (message_with_line, error_with_line): Delete.
20258 * read-md.c (message_with_line, error_with_line): Delete.
20259 * gensupport.h: Include read-md.h.
20260 (md_rtx_info): New structure.
20261 (read_md_rtx): Use it. Return a bool success value.
20262 * gensupport.c (read_md_rtx): Likewise.
20263 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20264 (main): Update after interface changes.
20265 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20266 (main): Update after interface changes.
20267 * genattrtab.c (insn_code_number): Delete.
20268 (optimize_attrs): Add a max_insn_code parameter and use it instead
20269 of insn_code_number.
20270 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20271 Use *_at rather than *_with_line functions.
20272 (gen_insn): Likewise.
20273 (gen_delay): Likewise.
20274 (gen_insn_reserv): Likewise.
20275 (gen_bypass): Take an md_rtx_info rather than an rtx.
20276 (main): Update after interface changes. Use a local max_insn_code
20277 variable instead of insn_code_number.
20278 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20279 an rtx. Use fatal_at rather than fatal.
20280 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20281 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20282 (gen_absence_set, gen_final_absence_set, gen_automaton)
20283 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20284 (main): Update after interface changes.
20285 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20287 (main): Update after interface changes.
20288 * genconditions.c (main): Use new read_md_rtx interface.
20289 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20290 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20291 (main): Update after interface changes.
20292 * genemit.c (insn_code_number, insn_index_number): Delete.
20293 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20294 Use fatal_at rather than fatal.
20295 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
20297 (gen_split): Likewise.
20298 (main): Update after interface changes.
20299 * genextract.c (line_no): Delete.
20300 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20301 Update call to walk_rtx.
20302 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
20303 rather than message_with_line.
20304 (walk_rtx): Add an md_rtx_info argument. Update call to
20305 VEC_safe_set_locstr.
20306 (main): Update after interface changes.
20307 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20308 and lineno. Use error_at rather than separate message_with_line
20309 calls and have_error assignments.
20310 (main): Update after interface changes.
20311 * genmddump.c (main): Use new read_md_rtx interface.
20312 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20313 (main): Update after interface changes.
20314 * genoutput.c (next_code_number): Delete.
20315 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20316 (gen_peephole, gen_expand, gen_split): Likewise.
20317 (note_constraint): Likewise. Use *_at rather than *_with_line
20319 (main): Update after interface changes.
20320 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20322 (main): Update after interface changes.
20323 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20324 than an rtx and lineno.
20325 (process_define_constraint): Likewise.
20326 (process_define_register_constraint): Likewise.
20327 (main): Update after interface changes.
20328 * genrecog.c (next_insn_code, pattern_lineno): Delete.
20329 (validate_pattern): Replace top-level rtx with an md_rtx_info.
20330 Use *_at rather than *_with_line functions.
20331 (match_pattern_2): Likewise.
20332 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20333 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20334 Use *_at rather than *_with_line functions.
20335 * gentarget-def.c (add_insn): New function.
20336 (main): Use it. Use new read_md_rtx interface.
20338 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20340 * gensupport.h (compute_test_codes): Take a file_location rather
20341 than a line number.
20342 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
20343 rather than *_with_line functions.
20344 (process_define_predicate): Update call to compute_test_codes.
20345 * genpreds.c (validate_exp): Take a file_location rather than a
20346 line number. Use *_at functions rather than *_with_line functions.
20347 (process_define_predicate): Update call to validate_exp.
20348 (constraint_data): Replace lineno field with a file_location.
20349 (add_constraint): Take a file_location rather than a line number.
20350 Use *_at functions rather than *_with_line functions. Fix error
20351 message for address constraints. Update after changes to
20352 validate_exp, constraint_data and compute_test_codes.
20353 (process_define_constraint): Update accordingly.
20354 (process_define_register_constraint): Likewise.
20356 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20358 * genoutput.c (data): Use a file_location to record the source
20361 (idata, idata_end): Remove initialization.
20362 (constraint_data): Replace lineno with a file_location.
20363 (output_insn_data): Update after changes to data.
20364 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20365 (scan_operands): Likewise, using *_at rather than *_with_line
20367 (process_template): Likewise.
20368 (validate_insn_alternatives): Likewise.
20369 (validate_insn_operands): Likewise.
20370 (validate_optab_operands): Likewise.
20371 (init_insn_for_nothing): Initialize idata and idata_end.
20372 (note_constraint): Update after changes to constraint_data,
20373 using at rather than with_line functions.
20374 (mdep_constraint_len): Take a file_location rather than a
20375 line number. Use at rather than with_line functions.
20377 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20379 * read-md.h (fatal_at): Declare.
20380 * read-md.c (fatal_at): New function.
20381 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20382 to record the source position.
20383 (check_attr_test): Take a file_location instead of a line number.
20384 Use fatal_at instead of fatal.
20385 (check_attr_value): Update after above changes, using "at"
20386 rather than "with_line" reporting functions.
20387 (convert_set_attr_alternative): Likewise.
20388 (gen_attr): Likewise.
20389 (check_defs): Likewise. Don't assign to read_md_filename.
20390 (gen_insn): Update initialization after above changes.
20391 (gen_delay): Likewise.
20392 (write_insn_cases): Print the filename for a define_peephole.
20393 (gen_insn_reserv): Take a line number as argument and update
20394 the call to check_attr_test.
20395 (main): Pass a line number to gen_insn_reserv.
20397 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20399 * read-md.h (file_location): New structure.
20400 (directive_handler_t): Take a file_location rather than a line number.
20401 (message_at, error_at): Declare.
20402 (read_skip_construct): Delete.
20403 * read-md.c (message_with_line_1): Replace with...
20404 (message_at_1): ...this new function.
20405 (message_at, error_at): New functions.
20406 (message_with_line, error_with_line): Update to use message_at_1.
20407 (handle_enum): Take a file_location rather than a line number
20408 and use error_at for error reporting.
20409 (handle_include): Likewise.
20410 (read_skip_construct): Likewise. Make static.
20411 (handle_file): Update after above changes. Pass a file_location
20412 rather than a line number to handle_directive.
20413 * gensupport.c (queue_elem): Replace separate filename and lineno
20414 with a file_location.
20415 (queue_pattern): Replace filename and lineno arguments with a
20416 file_location. Update after change to queue_elem.
20417 (process_define_predicate): Replace lineno argument with a
20418 file_location and use error_at for error reporting. Update
20419 after above changes.
20420 (process_rtx): Likewise.
20421 (subst_pattern_match): Likewise.
20422 (get_alternatives_number): Likewise.
20423 (alter_predicate_for_insn): Likewise.
20424 (rtx_handle_directive): Likewise.
20425 (is_predicable): Update after above changes, using error_at rather
20426 than error_with_line.
20427 (has_subst_attribute): Likewise.
20428 (identify_predicable_attribute): Likewise.
20429 (alter_attrs_for_subst_insn): Likewise.
20430 (process_one_cond_exec): Likewise.
20431 (process_substs_on_one_elem): Likewise.
20432 (process_define_subst): Likewise.
20433 (check_define_attr_duplicates): Likewise.
20434 (read_md_rtx): Update after change to queue_elem.
20436 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20438 * genoutput.c (next_index_number): Delete.
20439 (data): Remove index_number.
20440 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20441 (main): Remove manipulation of next_index_number.
20443 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20445 * genattrtab.c (check_attr_value): Remove handling of null attrs.
20446 (make_canonical): Likewise.
20448 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
20450 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20451 instead of adjust_address_nv.
20452 (restore_stack_nonlocal): Likewise.
20453 (nonlocal_goto): Likewise.
20455 2015-07-16 Tom de Vries <tom@codesourcery.com>
20457 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20458 not have a corresponding loop header phi.
20460 2015-07-16 Tom de Vries <tom@codesourcery.com>
20462 * tree-parloops.c (create_loads_for_reductions): Handle case that
20463 reduction is unused.
20465 2015-07-16 Richard Biener <rguenther@suse.de>
20467 PR tree-optimization/66894
20468 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20469 about deriving NE_EXPR from truncated values.
20471 2015-07-16 Martin Liska <mliska@suse.cz>
20474 (object_allocator): Add new class.
20475 (pool_allocator::initialize): Use the underlying class.
20476 (pool_allocator::allocate): Likewise.
20477 (pool_allocator::remove): Likewise.
20478 (operator new): A new generic allocator.
20479 * asan.c (struct asan_mem_ref): Remove unused members.
20480 (asan_mem_ref_new): Replace new operator with
20481 object_allocator::allocate.
20482 (free_mem_ref_resources): Change deallocation.
20483 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20484 with object_allocator.
20485 * config/sh/sh.c (add_constant): Replace new operator with
20486 object_allocator::allocate.
20487 (sh_reorg): Change call to a release method.
20488 * cselib.c (struct elt_list): Remove unused members.
20489 (new_elt_list): Replace new operator with
20490 object_allocator::allocate.
20491 (new_elt_loc_list): Likewise.
20492 (new_cselib_val): Likewise.
20493 (unchain_one_elt_list): Change delete operator with remove method.
20494 (unchain_one_elt_loc_list): Likewise.
20495 (unchain_one_value): Likewise.
20496 (cselib_finish): Release newly added static allocators.
20497 * cselib.h (struct cselib_val): Remove unused members.
20498 (struct elt_loc_list): Likewise.
20499 * df-problems.c (df_chain_alloc): Replace pool_allocator with
20501 * df-scan.c (struct df_scan_problem_data): Likewise.
20502 (df_scan_alloc): Likewise.
20503 * df.h (struct dataflow): Likewise.
20504 * dse.c (struct read_info_type): Likewise.
20505 (struct insn_info_type): Likewise.
20506 (struct dse_bb_info_type): Likewise.
20507 (struct group_info): Likewise.
20508 (struct deferred_change): Likewise.
20509 (get_group_info): Likewise.
20510 (delete_dead_store_insn): Likewise.
20511 (free_read_records): Likewise.
20512 (replace_read): Likewise.
20513 (check_mem_read_rtx): Likewise.
20514 (scan_insn): Likewise.
20515 (dse_step1): Likewise.
20516 (dse_step7): Likewise.
20517 * et-forest.c (struct et_occ): Remove unused members.
20518 (et_new_occ): Use allocate instead of new operator.
20519 (et_new_tree): Likewise.
20520 (et_free_tree): Call release method explicitly.
20521 (et_free_tree_force): Likewise.
20522 (et_free_pools): Likewise.
20523 (et_split): Use remove instead of delete operator.
20524 * et-forest.h (struct et_node): Remove unused members.
20525 * ipa-cp.c: Change pool_allocator to object_allocator.
20526 * ipa-inline-analysis.c: Likewise.
20527 * ipa-profile.c: Likewise.
20528 * ipa-prop.c: Likewise.
20529 * ipa-prop.h: Likewise.
20530 * ira-build.c (initiate_cost_vectors): Cast return value.
20531 (ira_allocate_cost_vector): Likewise.
20532 * ira-color.c (struct update_cost_record): Remove unused members.
20533 * lra-int.h (struct lra_live_range): Likewise.
20534 (struct lra_copy): Likewise.
20535 (struct lra_insn_reg): Likewise.
20536 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
20537 * lra.c (new_insn_reg): Replace new operator with allocate method.
20538 (free_insn_regs): Same for operator delete.
20539 (finish_insn_regs): Release new static allocator.
20540 (finish_insn_recog_data): Likewise.
20541 (lra_free_copies): Replace delete operator with remove method.
20542 (lra_create_copy): Replace operator new with allocate method.
20543 (invalidate_insn_data_regno_info): Same for remove method.
20544 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
20545 (free_debug_insn_changes): Replace delete operator with remove method.
20546 (replace_oldest_value_reg): Replace operator new with allocate method.
20547 (pass_cprop_hardreg::execute): Release new static variable.
20548 * sched-deps.c (sched_deps_init): Change pool_allocator to
20550 * sel-sched-ir.c: Likewise.
20551 * sel-sched-ir.h: Likewise.
20552 * stmt.c (expand_case): Likewise.
20553 (expand_sjlj_dispatch_table): Likewise.
20554 * tree-sra.c (struct access): Remove unused members.
20555 (struct assign_link): Likewise.
20556 (sra_deinitialize): Release newly added static pools.
20557 (create_access_1):Replace operator new with allocate method.
20558 (build_accesses_from_assign): Likewise.
20559 (create_artificial_child_access): Likewise.
20560 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
20561 pool_allocator to object_allocator.
20562 * tree-ssa-pre.c: Likewise.
20563 * tree-ssa-reassoc.c: Likewise.
20564 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
20565 * tree-ssa-strlen.c: Likewise.
20566 * tree-ssa-structalias.c: Likewise.
20567 * var-tracking.c (onepart_pool_allocate): New function.
20568 (unshare_variable): Use the newly added function.
20569 (variable_merge_over_cur): Likewise.
20570 (variable_from_dropped): Likewise.
20571 (variable_was_changed): Likewise.
20572 (set_slot_part): Likewise.
20573 (emit_notes_for_differences_1): Likewise.
20574 (vt_finalize): Release newly added static pools.
20576 2015-07-16 Martin Jambor <mjambor@suse.cz>
20578 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
20579 all uses. Fix two typos in its general comment.
20580 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
20582 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
20584 * config/i386/linux-common.h (LINK_MPX): New.
20585 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
20586 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
20587 indicating '-z bndplt' support by linker.
20588 * configure: Regenerate.
20589 * config.in: Regenerate.
20591 2015-07-16 Richard Biener <rguenther@suse.de>
20593 * fold-const.c (fold_widened_comparison): Remove.
20594 (fold_sign_changed_comparison): Likewise.
20595 (fold_comparison): Move widened and sign-changed comparison
20597 * match.pd: ... to patterns here.
20598 * generic-match-head.c: Include target.h.
20599 * gimple-match-head.c: Likewise.
20601 2015-07-16 Richard Biener <rguenther@suse.de>
20603 * tree-ssa-dom.c (dom_valueize): New function.
20604 (record_temporary_equivalences): Also record equivalences
20605 for dominating stmts that have uses of equivalences we are
20608 2015-07-16 Bin Cheng <bin.cheng@arm.com>
20610 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
20611 add_autoinc_candidates.
20612 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
20613 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
20614 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
20615 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
20617 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
20618 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
20619 Remove parameter struct iv*. Call add_autoinc_candidates here.
20620 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
20621 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
20623 (find_iv_candidates): Call new functions.
20625 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
20627 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
20628 uninitialized-variable warning.
20630 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
20633 * config/sh/sh.md (movdi): Split simple reg move to two movsi
20634 when the destination is R0.
20636 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
20639 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
20640 * config/i386/i386.c (ix86_expand_pextr): New function.
20641 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
20642 for non-lowpart subregs.
20643 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
20644 (insv<mode>): Use SWI248 mode iterator.
20645 (insv<mode>_1): Ditto.
20647 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20648 Sebastian Pop <s.pop@samsung.com>
20650 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
20651 iterator to use_stmt.
20653 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20654 Sebastian Pop <s.pop@samsung.com>
20656 * graphite-scop-detection.c (build_scops_1): Discard scops for
20659 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20660 Sebastian Pop <s.pop@samsung.com>
20662 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
20663 case of a return statement in scop.
20665 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20666 Sebastian Pop <s.pop@samsung.com>
20668 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
20669 INTEGER_TYPE parameters.
20670 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
20671 VECTOR_CST in scan_tree_for_params.
20672 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
20674 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20676 * gimple-pretty-print.h: Don't include pretty-print.h.
20677 * tree-streamer.h: Don't include lto-streamer.h.
20678 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
20679 * gimple-streamer-in.c: Remove redundant includes.
20680 * gimple-streamer-out.c: Likewise.
20681 * ipa-devirt.c: Likewise.
20682 * ipa-icf.c: Likewise.
20683 * ipa-inline-analysis.c: Likewise.
20684 * ipa-polymorphic-call.c: Likewise.
20685 * ipa-profile.c: Likewise.
20686 * ipa-prop.c: Likewise.
20687 * ipa-pure-const.c: Likewise.
20688 * lto-cgraph.c: Likewise.
20689 * lto-streamer-in.c: Likewise.
20690 * lto-streamer-out.c: Likewise.
20691 * lto-streamer.c: Likewise.
20692 * tree-streamer-in.c: Likewise.
20693 * tree-streamer-out.c: Likewise.
20694 * tree-streamer.c: Likewise.
20696 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20698 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
20700 * opts.c: Remove multiline #include comment.
20702 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
20704 * config/nvptx/mkoffload.c (process): Add C++ protection to
20707 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20710 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
20711 null before IEEE 128-bit floating point support patch.
20713 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20715 * simplify-rtx.c (simplify_ternary_operation): Add simplification
20716 for (!c) != {0,...,0} ? a : b for vector modes.
20718 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
20719 Martin Jambor <mjambor@suse.cz>
20721 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
20722 struct func_body_info* instead of struct ipa_node_params*, expecting
20723 fbi->info to be filled in. Replace throughout. Adjust call to
20724 ipa_load_from_parm_agg.
20725 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
20726 instead of struct ipa_node_params*. Adjust calls to other functions
20727 so that they pass either fbi or fbi->info.
20728 (set_switch_stmt_execution_predicate): Likewise.
20729 (will_be_nonconstant_predicate): Likewise.
20730 (compute_bb_predicates): Likewise.
20731 (estimate_function_body_sizes): Move asserts earlier. Fill in
20732 struct func_body_info, replace parms_info with fbi.info. Adjust
20733 calls to functions that now accept struct func_body_info.
20734 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
20735 (struct func_body_info): Likewise.
20736 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
20737 remove static. Adjust callers.
20738 (ipa_load_from_parm_agg): Remove.
20739 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
20740 (func_body_info): Likewise.
20741 (ipa_load_from_parm_agg): Adjust prototype.
20743 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20745 * gensupport.c (rtx_handle_directive): Adjust.
20746 * read-rtl.c (apply_iterators): Take vector to add rtxs to
20747 instead of expr list rtx.
20748 (add_define_attr_for_define_subst): Likewise.
20749 (add_define_subst_attr): Likewise.
20750 (read_subst_mapping): Likewise.
20751 (read_rtx): Likewise.
20752 * rtl.h (read_rtx): Adjust.
20754 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20756 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
20758 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20761 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
20762 (*tls_local_dynamic_base_64_<mode>): Ditto.
20763 (*tls_local_dynamic_base_64_largepic): Ditto.
20764 (tls_global_dynamic_64_<mode>): Update expander pattern.
20765 (tls_local_dynamic_base_64_<mode>): Ditto.
20767 2015-07-15 Richard Biener <rguenther@suse.de>
20769 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
20770 and bool_var == 1 -> bool_var simplifications ...
20771 * match.pd: ... to patterns here. Factor out negate_expr_p
20772 cases from the A - B -> A + (-B) patterns as negate_expr_p
20773 predicate and add a -(A + B) -> (-B) - A pattern.
20775 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20777 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
20779 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
20780 Robert Suchanek <robert.suchanek@imgtec.com>
20782 * config/mips/mips.c (mips_int_mask): New enum.
20783 (mips_shadow_set): Likewise.
20784 (int_mask): New variable.
20785 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
20786 (machine_function): Add int_mask and use_shadow_register_set.
20787 (mips_attribute_table): Add attribute handlers for interrupt and
20788 use_shadow_register_set.
20789 (mips_interrupt_mask): New static function.
20790 (mips_handle_interrupt_attr): Likewise.
20791 (mips_handle_use_shadow_register_set_attr): Likewise.
20792 (mips_use_shadow_register_set): Change return type to enum
20793 mips_shadow_set. Add argument handling for use_shadow_register_set
20795 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
20796 compare with mips_shadow_set enum.
20797 (mips_compute_frame_info): Add interrupt mask and
20798 use_shadow_register_set to per-function information structure.
20799 Add a stack slot for EPC unconditionally.
20800 (mips_expand_prologue): Compare use_shadow_register_set value
20801 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
20802 masked interrupt register but in EIC mode use K0 and save Cause in K0.
20803 EPC saved and restored unconditionally. Use PMODE_INSN macro when
20804 copying the stack pointer from the shadow register set.
20805 * config/mips/mips.h (SR_IM0): New define.
20806 * config/mips/mips.md (mips_rdpgpr): Rename to...
20807 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
20808 * doc/extend.texi (Declaring Attributes of Functions): Document
20809 optional arguments for interrupt and use_shadow_register_set
20812 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20814 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
20815 interrupt attribute.
20816 (mips_expand_prologue): Disable the floating point unit in an ISR.
20817 * config/mips/mips.h (SR_COP1): New define.
20819 2015-07-15 Richard Biener <rguenther@suse.de>
20821 * genmatch.c (parser::peek, parser::peek_ident): Add argument
20822 to tell how many tokens to peek ahead (default 1).
20823 (parser::eat_token, parser::eat_ident): Return token consumed.
20824 (parser::parse_result): Parse new switch statement.
20825 * match.pd: Use case statements where appropriate.
20827 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20829 PR rtl-optimization/58066
20830 * calls.c (expand_call): Precompute register parameters before stack
20831 alignment is performed.
20833 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20835 PR rtl-optimization/66838
20836 * postreload.c (reload_cse_move2add): Also process
20837 CALL_INSN_FUNCTION_USAGE when resetting information of
20838 call-clobbered registers.
20840 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20841 Cesar Philippidis <cesar@codesourcery.com>
20842 Chung-Lin Tang <cltang@codesourcery.com>
20844 * config/nios2/constraints.md (U, v): New constraints.
20845 * config/nios2/predicates.md (rdprs_dcache_operand): New.
20846 (ldstex_memory_operand): New.
20847 * config/nios2/sync.md: New file.
20848 * config/nios2/nios2.md (unspecv): Add new builtin function
20850 (rdprs, flushd, flushda, wrpie, eni): New patterns.
20851 (top-level): Include sync.md.
20852 * config/nios2/nios2.c (N2_FTYPES): Add function types for
20854 (N2_BUILTINS): Add arch field setting, add new builtins.
20855 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
20857 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
20858 Also handle ldex/stex/ldsex/stsex builtins.
20859 (nios2_expand_rdprs_builtin): New function.
20860 (nios2_expand_cache_builtin): New function.
20861 (nios2_expand_wrpie_builtin): New function.
20862 (nios2_expand_eni_builtin): New function.
20863 (nios2_expand_builtin): Add arch field handling and new builtin
20865 * doc/extend.texi (Altera Nios II Built-in Functions): Document
20867 * doc/md.texi (Machine Constraints): Document U and v constraints.
20869 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20870 Cesar Philippidis <cesar@codesourcery.com>
20871 Chung-Lin Tang <cltang@codesourcery.com>
20873 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
20874 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
20875 callee_save_reg_size and uses_anonymous_args fields.
20876 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
20877 (nios2_create_cfa_notes): New function.
20878 (nios2_adjust_stack): New function for adjusting stack.
20879 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
20880 Use nios2_adjust_stack.
20881 (nios2_expand_epilogue): Likewise.
20882 (nios2_expand_return): New function.
20883 (nios2_can_use_return_insn): Update for CDX pop.n usage.
20884 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
20885 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
20886 * config/nios2/nios2.md (return): Use nios2_expand_return.
20888 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20889 Cesar Philippidis <cesar@codesourcery.com>
20890 Chung-Lin Tang <cltang@codesourcery.com>
20892 * config/nios2/predicates.md (pop_operation): New.
20893 (ldwm_operation, stwm_operation): New.
20894 (nios2_hard_register_operand): New.
20895 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
20896 (ldstwm_operation_p): Declare.
20897 (gen_ldstwm_peep): Declare.
20898 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
20899 (base_reg_adjustment_p): New.
20900 (pop_operation_p): New.
20901 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
20902 (nios2_ldstwm_regset_p): New.
20903 (ldstwm_operation_p): New.
20905 (nios2_ldst_parallel): New.
20906 (struct ldswm_operand): Declare.
20907 (compare_ldstwm_operands): New.
20908 (can_use_cdx_ldstw): New.
20909 (gen_ldstwm_peep): New.
20910 * config/nios2/nios2-ldstwm.sml: New.
20911 * config/nios2/nios2.md: Include ldstwm.md.
20912 * config/nios2/ldstwm.md: Generated.
20914 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20915 Cesar Philippidis <cesar@codesourcery.com>
20916 Chung-Lin Tang <cltang@codesourcery.com>
20918 * config/nios2/nios2.h (LABEL_ALIGN): Define.
20919 (REG_ALLOC_ORDER): Define.
20920 (ADJUST_REG_ALLOC_ORDER): Define.
20921 (HONOR_REG_ALLOC_ORDER): Define.
20922 (CDX_REG_P): Define.
20923 (ANDCLEAR_INT): Define.
20924 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
20925 (nios2_label_align): Declare.
20926 (nios2_cdx_narrow_form_p): Declare.
20927 (nios2_adjust_reg_alloc_order): Declare.
20928 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
20930 (nios2_large_unspec_reloc_p): New function, split from...
20931 (nios2_legitimate_pic_operand_p): ...here.
20932 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
20933 (nios2_print_operand_punct_valid_p): New.
20934 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
20935 (split_mem_address): New.
20936 (split_alu_insn): New.
20938 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
20939 (enum nios2_add_insn_kind): New.
20940 (nios2_add_insn_names, nios2_add_insn_narrow): New.
20941 (nios2_add_insn_classify): New.
20942 (nios2_add_insn_asm): New.
20943 (nios2_cdx_narrow_form_p): New.
20944 (label_align, min_labelno, max_labelno): New.
20945 (nios2_reorg): New.
20946 (nios2_label_align): New.
20947 (nios2_adjust_reg_alloc_order): New.
20948 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20949 (TARGET_MACHINE_DEPENDENT_REORG): Define.
20950 * config/nios2/constraints.md (P): New constraint.
20951 * config/nios2/predicates.md (const_and_operand): New.
20952 (and_operand): New.
20953 (stack_memory_operand): New.
20954 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
20955 (length): Update to use nios2_cdx_narrow_form_p().
20956 (type): Add new insn type values.
20957 (control, alu, st, ld, shift): Update insn reservations with
20958 new insn type values.
20959 (*high, *lo_sum): Define new insn patterns for constant generation.
20960 (movqi_internal, movhi_internal, movsi_internal): Reduce
20961 alternatives, update asm template to handle CDX variants, update
20963 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
20964 template, update type attributes.
20965 (extendhisi2, extendqi<mode>2): Likewise.
20966 (addsi3): Change to use function for asm string.
20967 (subsi3): Add CDX notation to asm template, update type attributes.
20968 (negsi3, one_cmplsi3): Likewise.
20969 (andsi3): New pattern, specialized from logical patterns.
20970 (<code>si3): Remove and case, combine alternatives, update asm
20972 (<shift_op>si3): Add CDX notation, update type attributes.
20973 (rotrsi3): Update type attribute.
20974 (*merge, extzv, insv): New insn patterns.
20975 (return): Change to define_expand.
20976 (simple_return): Add CDX notation, update type attributes.
20977 (indirect_jump): Add CDX notation.
20978 (jump): Update asm cases, update length attribute expression.
20979 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
20980 (nios2_cbranch): Update asm cases and length attribute expression
20981 to handle CDX variants.
20982 (nios2_cmp<code>): Update asm template.
20983 (nop): Add CDX notation, update type attributes.
20984 (trap): Add CDX notation.
20985 (ctrapsi4): Update asm cases and length attribute expression to
20986 handle CDX variant.
20987 * doc/md.texi (Machine Constraints): Document P constraint.
20989 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20990 Cesar Philippidis <cesar@codesourcery.com>
20991 Chung-Lin Tang <cltang@codesourcery.com>
20993 * config/nios2/nios2.h (SMALL_INT12): New macro.
20994 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
20995 (nios2_valid_addr_expr_p): Use it.
20996 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
20997 with implicit "io" instructions on R2.
20998 * config/nios2/constraints.md (w): New constraint.
20999 * config/nios2/predicates.md (ldstio_memory_operand): New.
21000 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
21001 operand predicate and constraint.
21002 (ld<bh>io_signed, st<bhw>io>): Likewise.
21003 * doc/md.texi (Machine Constraints): Document w constraint.
21005 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21006 Cesar Philippidis <cesar@codesourcery.com>
21007 Chung-Lin Tang <cltang@codesourcery.com>
21009 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
21010 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
21011 Nios II architecture level.
21012 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
21013 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
21014 (OPTION_DEFAULT_SPECS): Define.
21015 (ASM_SPEC): Add -march= spec strings.
21016 * config/nios2/nios2.c (nios2_option_override): Check for
21017 conflicts involving new options.
21018 * config.gcc (nios2*-*-*): Support --with-arch=.
21019 * doc/invoke.texi (Option Summary, Nios II Options): Document
21020 -march=, -mbmx, and -mcdx.
21022 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
21024 PR rtl-optimization/66626
21025 * lra-constraints.c (lra_constraints): Prevent equivalence
21026 substitution for static chain pseudo in functions with nonlocal
21029 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21031 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
21032 (nios2_emit_stack_limit_check): Add size parameter. Handle
21033 -fstack-limit-symbol as well as -fstack-limit-register.
21034 (nios2_expand_prologue): Emit only a single stack limit check,
21035 even if multiple stack adjustments are required.
21036 (nios2_option_override): Diagnose unsupported combination of -fpic
21037 and -stack-limit-symbol.
21039 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
21041 * Makefile.in (top_srcdir): New.
21042 * configure.ac: Use AM_ZLIB.
21043 * configure: Regeneated.
21045 2015-07-14 Matthias Klose <doko@ubuntu.com>
21048 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
21050 2015-07-14 Richard Biener <rguenther@suse.de>
21052 PR tree-optimization/66863
21053 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
21054 what we record for conversion use stmt lhs inequalities.
21056 2015-07-14 Richard Biener <rguenther@suse.de>
21058 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
21059 (decision_tree::gen_gimple): Likewise.
21061 2015-07-14 Tom de Vries <tom@codesourcery.com>
21063 * gcc.c (greater_than_spec_func): Declare forward.
21064 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
21065 -ftree-parallelize-loops={0,1}.
21066 (static_spec_functions): Add greater_than_spec_func function with name
21068 (greater_than_spec_func): New function.
21070 2015-07-14 Richard Biener <rguenther@suse.de>
21072 * tree-ssa-dom.c (record_temporary_equivalences): Merge
21073 wideing type conversion case from record_equivalences_from_incoming_edge
21074 and use record_equality to record equivalences.
21075 (record_equivalences_from_incoming_edge): Call
21076 record_temporary_equivalences.
21078 2015-07-14 Richard Biener <rguenther@suse.de>
21080 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
21081 (struct if_expr): New.
21082 (struct with_expr): Likewise.
21083 (is_a_helper): Add helpers for if_expr and with_expr.
21084 (struct simplify): Add simplify_kind enum and member. Remove
21086 (simplify::simplify): Adjust.
21087 (lower_commutative): Adjust.
21088 (lower_opt_convert): Likewise.
21089 (lower_cond): Likewise.
21090 (replace_id): Handle with_expr and if_expr.
21091 (lower_for): Adjust.
21092 (dt_simplify::gen_1): New recursive worker, split out from ...
21093 (dt_simplify::gen): ... here. Deal with if and with expansion
21095 (capture_info::capture_info): Take context argument
21096 (capture_info::walk_result): Only analyze specific result.
21097 (parser::parse_result): New function.
21098 (parser::parse_simplify): Adjust to parse ifs with then end
21100 (parser::parse_if): Simplify.
21101 (parser::parse_pattern): Pass down simplify kind.
21102 * match.pd: Convert if structure to new syntax.
21104 2015-07-13 Marek Polacek <polacek@redhat.com>
21106 * rtl.c (rtx_equal_p_cb): Fix typo.
21108 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
21110 * omega.h: Don't include config.h, don't include params.h again if
21111 omega.h has already been included.
21112 * graphite-poly.h: Include sese.h.
21113 * graphite.c: Don't include sese.h, remove needless includes and
21114 minimize includes outside #ifdef HAVE_isl block.
21115 * graphite-blocking.c: Don't include sese.h, remove needless includes,
21116 and wrap entire file in #ifdef HAVE_isl
21117 * graphite-dependences.c: Likewise.
21118 * graphite-interchange.c: Likewise.
21119 * graphite-isl-ast-to-gimple.c: Likewise.
21120 * graphite-optimize-isl.c: Likewise.
21121 * graphite-poly.c: Likewise.
21122 * graphite-scop-detection.c: Likewise.
21123 * graphite-sese-to-poly.c: Likewise.
21125 2015-07-13 Tom de Vries <tom@codesourcery.com>
21127 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21129 2015-07-13 Renlin Li <renlin.li@arm.com>
21132 * simplify-rtx.c (simplify_const_relational_operation): Add
21133 side_effects_p checks.
21135 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
21137 * bitmap.h: Fix double word typos.
21138 * builtins.c: Same.
21140 * cfgloopmanip.c: Same.
21143 * cgraphclones.c: Same.
21145 * config/aarch64/aarch64-protos.h: Same.
21146 * config/aarch64/aarch64.c: Same.
21147 * config/aarch64/aarch64.md: Same.
21148 * config/arm/arm.md: Same.
21149 * config/arm/arm1020e.md: Same.
21150 * config/arm/arm1026ejs.md: Same.
21151 * config/arm/arm926ejs.md: Same.
21152 * config/arm/fa526.md: Same.
21153 * config/arm/fa606te.md: Same.
21154 * config/arm/fa626te.md: Same.
21155 * config/arm/fa726te.md: Same.
21156 * config/arm/fmp626.md: Same.
21157 * config/darwin.c: Same.
21158 * config/epiphany/epiphany.c: Same.
21159 * config/frv/frv.c: Same.
21160 * config/ft32/ft32.c: Same.
21161 * config/gnu-user.h: Same.
21162 * config/h8300/constraints.md: Same.
21163 * config/i386/i386.c: Same.
21164 * config/i386/i386.md: Same.
21165 * config/iq2000/iq2000.md: Same.
21166 * config/mips/mips.c: Same.
21167 * config/mmix/mmix.md: Same.
21168 * config/moxie/moxie.c: Same.
21169 * config/nds32/nds32.md: Same.
21170 * config/pa/pa.h: Same.
21171 * config/rs6000/aix.h: Same.
21172 * config/rs6000/rs6000.h: Same.
21173 * config/sh/sh.c: Same.
21174 * config/tilegx/tilegx.md: Same.
21175 * config/tilepro/gen-mul-tables.cc: Same.
21178 * doc/invoke.texi: Same.
21180 * dwarf2out.c: Same.
21183 * genmatch.c: Same.
21184 * gimplify.c: Same.
21185 * hash-table.h: Same.
21186 * internal-fn.c: Same.
21188 * ipa-devirt.c: Same.
21191 * ipa-profile.c: Same.
21192 * ipa-prop.c: Same.
21193 * ipa-prop.h: Same.
21196 * reg-stack.c: Same.
21197 * regcprop.c: Same.
21202 * tree-inline.c: Same.
21203 * tree-sra.c: Same.
21204 * tree-ssa-dom.c: Same.
21205 * tree-ssa-loop-ivopts.c: Same.
21206 * tree-ssa-structalias.c: Same.
21207 * tree-ssa-tail-merge.c: Same.
21208 * tree-ssa-ter.c: Same.
21209 * tree-ssa-threadupdate.c: Same.
21210 * tree-ssa-uninit.c: Same.
21211 * tree-ssanames.c: Same.
21212 * tree-vect-loop-manip.c: Same.
21213 * tree-vrp.c: Same.
21215 * valtrack.c: Same.
21218 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21220 PR middle-end/66726
21221 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21222 tree_ssa_phiopt_worker): Call it.
21224 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21226 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21227 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21230 2015-07-11 Marek Polacek <polacek@redhat.com>
21232 PR middle-end/66353
21233 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21234 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21235 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21236 rather than bb_has_abnormal_call_pred.
21237 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21238 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21239 rather than bb_has_abnormal_call_pred.
21241 2015-07-10 Anatoly Sokolov <aesok@post.ru>
21243 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21244 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21245 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21246 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21247 v850_legitimate_address_p): New functions.
21248 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21250 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
21253 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21254 indirect sibcall with register arguments if register available
21255 for argument passing.
21256 (init_cumulative_args): Set cfun->machine->arg_reg_available
21257 to (cum->nregs > 0) or to true if function has a variable
21259 (function_arg_advance_32): Set cfun->machine->arg_reg_available
21260 to false if cum->nregs <= 0.
21261 * config/i386/i386.h (machine_function): Add arg_reg_available.
21263 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21265 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21266 and gen_higpart instead of gen_rtx_SUBREG.
21267 * config/i386/i386.md
21268 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21269 (read-modify peephole2): Use gen_lowpart instead of
21270 gen_rtx_SUBREG for operand 5.
21272 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21274 * config/tilepro/gen-mul-tables.cc (main): Change include list for
21276 * config/tilepro/mul-tables.c: Regenerate.
21277 * config/tilegx/mul-tables.c: Regenerate.
21279 2015-07-10 Richard Biener <rguenther@suse.de>
21281 * fold-const.c (distribute_bit_expr): Remove.
21282 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21283 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21284 to A & (B | C) and simplifying A << C1 << C2 to ...
21285 * match.pd: ... patterns here.
21287 2015-07-10 Jiong Wang <jiong.wang@arm.com>
21289 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21290 Mark mem as READONLY and NOTRAP for PIC symbol.
21292 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21294 * gimple-predict.h: New file.
21295 (gimple_predict_predictor, gimple_predict_set_predictor,
21296 gimple_predict_outcome, gimple_predict_set_outcome,
21297 gimple_build_predict): Relocate here.
21298 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21299 gimple_predict_outcome, gimple_predict_set_outcome): Move to
21301 * gimple.c (gimple_build_predict): Move to gimple-predict.h
21302 * basic-block.h: Don't include cfghooks.h.
21303 * backend.h: Don't include predict.h.
21304 * cfghooks.h: Include predict.h.
21305 * gimple-pretty-print.c: Include gimple-predict.h.
21306 * gimplify.c: Likwise.
21307 * predict.c: Adjust includes.
21308 * tree-inline.c: Likewise.
21309 * asan.c: Likewise.
21310 * auto-inc-dec.c: Likewise.
21311 * auto-profile.c: Likewise.
21312 * bb-reorder.c: Likewise.
21313 * builtins.c: Likewise.
21314 * caller-save.c: Likewise.
21315 * calls.c: Likewise.
21316 * cfganal.c: Likewise.
21317 * cfgbuild.c: Likewise.
21319 * cfgcleanup.c: Likewise.
21320 * cfgexpand.c: Likewise.
21321 * cfghooks.c: Likewise.
21322 * cfgloopanal.c: Likewise.
21323 * cfgloop.c: Likewise.
21324 * cfgloopmanip.c: Likewise.
21325 * cfgrtl.c: Likewise.
21326 * cgraph.c: Likewise.
21327 * cgraphunit.c: Likewise.
21328 * combine.c: Likewise.
21329 * cprop.c: Likewise.
21332 * dojump.c: Likewise.
21334 * except.c: Likewise.
21335 * expmed.c: Likewise.
21336 * expr.c: Likewise.
21337 * final.c: Likewise.
21338 * fold-const.c: Likewise.
21339 * function.c: Likewise.
21340 * fwprop.c: Likewise.
21341 * gcc-plugin.h: Likewise.
21342 * gcse.c: Likewise.
21343 * genattrtab.c: Likewise.
21344 * genemit.c: Likewise.
21345 * gengtype.c: Likewise.
21346 * genopinit.c: Likewise.
21347 * genoutput.c: Likewise.
21348 * genpreds.c: Likewise.
21349 * genrecog.c: Likewise.
21350 * gimple-fold.c: Likewise.
21351 * gimple-iterator.c: Likewise.
21352 * gimple-ssa-isolate-paths.c: Likewise.
21353 * gimple-ssa-strength-reduction.c: Likewise.
21354 * graph.c: Likewise.
21355 * graphite-blocking.c: Likewise.
21356 * graphite.c: Likewise.
21357 * graphite-dependences.c: Likewise.
21358 * graphite-interchange.c: Likewise.
21359 * graphite-isl-ast-to-gimple.c: Likewise.
21360 * graphite-optimize-isl.c: Likewise.
21361 * graphite-poly.c: Likewise.
21362 * graphite-scop-detection.c: Likewise.
21363 * graphite-sese-to-poly.c: Likewise.
21364 * haifa-sched.c: Likewise.
21365 * ifcvt.c: Likewise.
21366 * internal-fn.c: Likewise.
21367 * ipa-cp.c: Likewise.
21368 * ipa-profile.c: Likewise.
21369 * ipa-split.c: Likewise.
21370 * ipa-utils.c: Likewise.
21371 * ira-build.c: Likewise.
21372 * ira-color.c: Likewise.
21373 * ira-conflicts.c: Likewise.
21374 * ira-costs.c: Likewise.
21375 * ira-emit.c: Likewise.
21376 * ira-lives.c: Likewise.
21377 * jump.c: Likewise.
21378 * loop-doloop.c: Likewise.
21379 * loop-init.c: Likewise.
21380 * loop-invariant.c: Likewise.
21381 * loop-unroll.c: Likewise.
21382 * lower-subreg.c: Likewise.
21383 * lra-assigns.c: Likewise.
21385 * lra-coalesce.c: Likewise.
21386 * lra-constraints.c: Likewise.
21387 * lra-lives.c: Likewise.
21388 * lto-cgraph.c: Likewise.
21389 * lto-streamer-in.c: Likewise.
21390 * mode-switching.c: Likewise.
21391 * modulo-sched.c: Likewise.
21392 * omp-low.c: Likewise.
21393 * optabs.c: Likewise.
21394 * passes.c: Likewise.
21395 * postreload.c: Likewise.
21396 * postreload-gcse.c: Likewise.
21397 * profile.c: Likewise.
21398 * recog.c: Likewise.
21399 * regstat.c: Likewise.
21400 * reload1.c: Likewise.
21401 * reorg.c: Likewise.
21402 * rtlanal.c: Likewise.
21403 * sched-ebb.c: Likewise.
21404 * sel-sched-ir.c: Likewise.
21405 * sese.c: Likewise.
21406 * shrink-wrap.c: Likewise.
21407 * simplify-rtx.c: Likewise.
21408 * stmt.c: Likewise.
21409 * store-motion.c: Likewise.
21410 * tracer.c: Likewise.
21411 * trans-mem.c: Likewise.
21412 * tree-call-cdce.c: Likewise.
21413 * tree-cfg.c: Likewise.
21414 * tree-cfgcleanup.c: Likewise.
21415 * tree-chkp.c: Likewise.
21416 * tree-complex.c: Likewise.
21417 * tree-eh.c: Likewise.
21418 * tree-if-conv.c: Likewise.
21419 * tree-loop-distribution.c: Likewise.
21420 * tree-outof-ssa.c: Likewise.
21421 * tree-parloops.c: Likewise.
21422 * tree-predcom.c: Likewise.
21423 * tree-pretty-print.c: Likewise.
21424 * tree-profile.c: Likewise.
21425 * tree-sra.c: Likewise.
21426 * tree-ssa.c: Likewise.
21427 * tree-ssa-coalesce.c: Likewise.
21428 * tree-ssa-dce.c: Likewise.
21429 * tree-ssa-dom.c: Likewise.
21430 * tree-ssa-forwprop.c: Likewise.
21431 * tree-ssa-ifcombine.c: Likewise.
21432 * tree-ssa-loop-ch.c: Likewise.
21433 * tree-ssa-loop-im.c: Likewise.
21434 * tree-ssa-loop-ivcanon.c: Likewise.
21435 * tree-ssa-loop-ivopts.c: Likewise.
21436 * tree-ssa-loop-manip.c: Likewise.
21437 * tree-ssa-loop-prefetch.c: Likewise.
21438 * tree-ssa-loop-unswitch.c: Likewise.
21439 * tree-ssa-math-opts.c: Likewise.
21440 * tree-ssa-phiopt.c: Likewise.
21441 * tree-ssa-pre.c: Likewise.
21442 * tree-ssa-reassoc.c: Likewise.
21443 * tree-ssa-sink.c: Likewise.
21444 * tree-ssa-tail-merge.c: Likewise.
21445 * tree-ssa-threadedge.c: Likewise.
21446 * tree-ssa-threadupdate.c: Likewise.
21447 * tree-switch-conversion.c: Likewise.
21448 * tree-tailcall.c: Likewise.
21449 * tree-vect-data-refs.c: Likewise.
21450 * tree-vect-loop.c: Likewise.
21451 * tree-vect-loop-manip.c: Likewise.
21452 * tree-vectorizer.c: Likewise.
21453 * tree-vrp.c: Likewise.
21454 * ubsan.c: Likewise.
21455 * value-prof.c: Likewise.
21456 * varasm.c: Likewise.
21457 * var-tracking.c: Likewise.
21458 * config/aarch64/aarch64-builtins.c: Likewise.
21459 * config/aarch64/aarch64.c: Likewise.
21460 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21461 * config/alpha/alpha.c: Likewise.
21462 * config/arc/arc.c: Likewise.
21463 * config/arm/arm.c: Likewise.
21464 * config/avr/avr.c: Likewise.
21465 * config/bfin/bfin.c: Likewise.
21466 * config/c6x/c6x.c: Likewise.
21467 * config/cr16/cr16.c: Likewise.
21468 * config/cris/cris.c: Likewise.
21469 * config/darwin.c: Likewise.
21470 * config/darwin-c.c: Likewise.
21471 * config/epiphany/epiphany.c: Likewise.
21472 * config/epiphany/mode-switch-use.c: Likewise.
21473 * config/epiphany/resolve-sw-modes.c: Likewise.
21474 * config/fr30/fr30.c: Likewise.
21475 * config/frv/frv.c: Likewise.
21476 * config/ft32/ft32.c: Likewise.
21477 * config/h8300/h8300.c: Likewise.
21478 * config/i386/i386.c: Likewise.
21479 * config/i386/winnt.c: Likewise.
21480 * config/ia64/ia64.c: Likewise.
21481 * config/iq2000/iq2000.c: Likewise.
21482 * config/lm32/lm32.c: Likewise.
21483 * config/m32c/m32c.c: Likewise.
21484 * config/m32r/m32r.c: Likewise.
21485 * config/m68k/m68k.c: Likewise.
21486 * config/mcore/mcore.c: Likewise.
21487 * config/mep/mep.c: Likewise.
21488 * config/microblaze/microblaze.c: Likewise.
21489 * config/mips/mips.c: Likewise.
21490 * config/mmix/mmix.c: Likewise.
21491 * config/mn10300/mn10300.c: Likewise.
21492 * config/moxie/moxie.c: Likewise.
21493 * config/msp430/msp430.c: Likewise.
21494 * config/nds32/nds32.c: Likewise.
21495 * config/nds32/nds32-cost.c: Likewise.
21496 * config/nds32/nds32-fp-as-gp.c: Likewise.
21497 * config/nds32/nds32-intrinsic.c: Likewise.
21498 * config/nds32/nds32-isr.c: Likewise.
21499 * config/nds32/nds32-md-auxiliary.c: Likewise.
21500 * config/nds32/nds32-memory-manipulation.c: Likewise.
21501 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21502 * config/nds32/nds32-predicates.c: Likewise.
21503 * config/nios2/nios2.c: Likewise.
21504 * config/nvptx/nvptx.c: Likewise.
21505 * config/pa/pa.c: Likewise.
21506 * config/pdp11/pdp11.c: Likewise.
21507 * config/rl78/rl78.c: Likewise.
21508 * config/rs6000/rs6000.c: Likewise.
21509 * config/rx/rx.c: Likewise.
21510 * config/s390/s390.c: Likewise.
21511 * config/sh/sh.c: Likewise.
21512 * config/sh/sh-mem.cc: Likewise.
21513 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21514 * config/sh/sh_treg_combine.cc: Likewise.
21515 * config/sparc/sparc.c: Likewise.
21516 * config/spu/spu.c: Likewise.
21517 * config/stormy16/stormy16.c: Likewise.
21518 * config/tilegx/tilegx.c: Likewise.
21519 * config/tilepro/tilepro.c: Likewise.
21520 * config/v850/v850.c: Likewise.
21521 * config/vax/vax.c: Likewise.
21522 * config/visium/visium.c: Likewise.
21523 * config/xtensa/xtensa.c: Likewise.
21525 2015-07-10 Richard Biener <rguenther@suse.de>
21527 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21528 (decision_tree::gen_gimple): Likewise.
21529 (decision_tree::gen_generic): Likewise.
21531 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21534 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
21535 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
21537 2015-07-10 Jakub Jelinek <jakub@redhat.com>
21539 PR middle-end/66820
21540 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
21541 or ORT_TASK contexts.
21542 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
21545 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21547 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
21550 2015-07-10 Tom de Vries <tom@codesourcery.com>
21552 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
21553 insert nit + 1 bound.
21555 2015-07-10 Richard Biener <rguenther@suse.de>
21557 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
21558 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
21559 (if_convertible_loop_p_1): For this always compute bb predicates.
21560 (if_convertible_loop_p): And free them.
21562 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21564 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
21567 2015-07-10 Richard Biener <rguenther@suse.de>
21569 PR tree-optimization/66823
21570 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
21571 inverted predicate.
21573 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
21575 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
21576 to handle mips[32|64]r3 and mips[32|64]r5.
21578 2015-07-09 Jakub Jelinek <jakub@redhat.com>
21580 PR middle-end/66633
21581 * tree-nested.c (get_static_chain): Or in a flag into
21582 info->static_chain_added.
21583 (get_frame_field, get_nonlocal_debug_decl): Likewise.
21584 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
21585 2015-07-01 changes.
21586 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
21587 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
21590 PR tree-optimization/66718
21591 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
21593 (vect_simd_lane_linear): New function.
21594 (vectorizable_simd_clone_call): Support using linear arguments for
21595 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
21597 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21600 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
21602 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
21604 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
21605 Use machine mode, not enum machine_mode in the prototype.
21607 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
21608 classify 128-bit floating point support.
21609 (FLOAT128_IBM_P): Likewise.
21610 (FLOAT128_VECTOR_P): Likewise.
21611 (FLOAT128_2REG_P): Likewise.
21612 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
21613 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
21614 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
21615 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
21617 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
21618 tests against TFmode/TDmode, since those modes do not use VSX
21620 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
21622 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
21623 tests against TFmode, etc.
21624 (invalid_e500_subreg): Add tests against IFmode/KFmode.
21625 (reg_offset_addressing_ok_p): Likewise.
21626 (rs6000_legitimate_offset_address_p): Likewise.
21627 (rs6000_legitimize_address): Likewise.
21628 (rs6000_legitimize_reload_address): Likewise.
21629 (rs6000_legitimate_address_p): Clean up tests against TFmode and
21630 TDmode to use the new helper macros, which will include IFmode and
21632 (rs6000_emit_move): Likewise.
21633 (rs6000_darwin64_record_arg_recurse): Likewise.
21634 (print_operand): Likewise.
21635 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
21636 that uses a single vector register as a vector and not as a
21637 floating point register in terms of the calling sequence.
21638 (rs6000_discover_homogeneous_aggregate): Likewise.
21639 (rs6000_return_in_memory): Likewise.
21640 (init_cumulative_args): Likewise.
21641 (rs6000_function_arg_boundary): Likewise.
21642 (rs6000_function_arg_advance_1): Likewise.
21643 (rs6000_function_arg): Likewise.
21644 (rs6000_pass_by_reference): Likewise.
21645 (rs6000_gimplify_va_arg): Likewise.
21646 (rs6000_secondary_reload_memory): Use machine_mode not enum
21648 (rs6000_split_multireg_move): Use new helper macros.
21649 (spe_func_has_64bit_regs_p): Likewise.
21650 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
21651 (output_toc): Use new helper macros.
21652 (rs6000_register_move_cost): Likewise.
21653 (rs6000_function_value): Add IEEE 128-bit floating point calling
21655 (rs6000_libcall_value): Likewise.
21656 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
21657 floating point support.
21658 (rs6000_vector_mode_supported_p): Likewise.
21660 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
21662 PR rtl-optimization/66782
21663 * lra-int.h (struct lra_insn_recog_data): Add comment about
21664 clobbered hard regs for arg_hard_regs.
21665 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
21666 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
21667 Add condition for processing used hard regs.
21668 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
21669 Process clobbered hard regs.
21671 2015-07-09 Michael Matz <matz@suse.de>
21673 * genmatch.c (fprintf_indent): New function.
21674 (operand::gen_transform): Add indent parameter.
21675 (expr::gen_transform, c_expr::gen_transform,
21676 capture::gen_transform): Ditto and use fprintf_indent.
21677 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
21678 (dt_operand::gen, dt_operand::gen_predicate,
21679 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
21680 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
21681 (decision_tree::gen_gimple): Adjust calls and indent generated
21683 (decision_tree::gen_generic): Ditto.
21684 (write_predicate): Ditto.
21686 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21689 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
21690 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
21691 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
21692 {GENERAL,SSE,MMX}_REG_P where appropriate.
21694 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21696 * lto-streamer.h: Don't include target.h and alloc-pool.h.
21697 * builtins.c: Adjust includes.
21698 * gimple.c: Likewise.
21699 * ipa-icf.c: Likewise.
21700 * lto-opts.c: Likewise.
21701 * ipa-reference.c: Likewise.
21702 * lto-section-out.c: Likewise.
21703 * lto-streamer-in.c: Likewise.
21704 * lto-streamer-out.c: Likewise.
21705 * opts-global.c: Likewise.
21706 * symtab.c: Likewise.
21707 * tree-chkp.c: Likewise.
21708 * tree-ssa-live.c: Likewise.
21709 * tree-streamer-in.c: Likewise.
21710 * tree-streamer-out.c: Likewise.
21711 * config/darwin.c: Likewise.
21712 * config/i386/winnt.c: Likewise.
21714 2015-07-09 Richard Biener <rguenther@suse.de>
21716 * genmatch.c (struct expr): Add force_single_use flag.
21717 (expr::expr): Add copy constructor.
21718 (capture_info::walk_match): Gather force_single_use captures.
21719 (expr::gen_transform): Use possibly NULLified sequence.
21720 (dt_simplify::gen): Apply single-use restrictions by NULLifying
21721 seq if any constrained expr is not single-use.
21722 (parser::parse_expr): Refactor to allow multiple flags. Handle
21723 's' flag to force an expression have a single-use if the pattern
21724 simplifies to more than one statement.
21725 * match.pd: Convert most single_use conditionals to :s flags.
21727 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21729 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
21730 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21731 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
21733 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21735 * flags.h: Don't include flag-types.h or options.h.
21736 * opts-common.c: Adjust includes.
21737 * opts-global.c: Likewise.
21738 * common/config/epiphany/epiphany-common.c: Likewise.
21740 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21743 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
21746 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21749 * config/i386/i386.c (ix86_return_in_memory): Return true
21750 if int_size_in_bytes returns negative for IA MCU.
21752 2015-07-09 Marek Polacek <polacek@redhat.com>
21754 PR tree-optimization/66718
21755 * Makefile.in (OBJS): Add gimple-laddress.o.
21756 * passes.def: Schedule pass_laddress.
21757 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
21758 * tree-pass.h (make_pass_laddress): Declare.
21759 * gimple-laddress.c: New file.
21761 2015-07-09 Richard Biener <rguenther@suse.de>
21763 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
21765 2015-07-09 Richard Biener <rguenther@suse.de>
21767 PR tree-optimization/66807
21768 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
21770 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
21772 * function.c (stack_protect_epilogue): Use if rather than switch for
21773 check targetm.have_stack_protect_test.
21775 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21777 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
21778 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
21779 * config/arc/arc.h: Likewise.
21780 * config/arm/arm.h: Likewise.
21781 * config/bfin/bfin.h: Likewise.
21782 * config/epiphany/epiphany.h: Likewise.
21783 * config/frv/frv.h: Likewise.
21784 * config/ia64/ia64.h: Likewise.
21785 * config/iq2000/iq2000.h: Likewise.
21786 * config/lm32/lm32.h: Likewise.
21787 * config/m32r/m32r.h: Likewise.
21788 * config/mcore/mcore.h: Likewise.
21789 * config/mep/mep.h: Likewise.
21790 * config/microblaze/microblaze.h: Likewise.
21791 * config/mips/mips.h: Likewise.
21792 * config/mmix/mmix.h: Likewise.
21793 * config/mn10300/mn10300.h: Likewise.
21794 * config/nds32/nds32.h: Likewise.
21795 * config/nios2/nios2.h: Likewise.
21796 * config/pa/pa.h: Likewise.
21797 * config/rl78/rl78.h: Likewise.
21798 * config/sh/sh.h: Likewise.
21799 * config/sparc/sparc.h: Likewise.
21800 * config/stormy16/stormy16.h: Likewise.
21801 * config/tilegx/tilegx.h: Likewise.
21802 * config/tilepro/tilepro.h: Likewise.
21803 * config/v850/v850.h: Likewise.
21804 * config/xtensa/xtensa.h: Likewise.
21805 * doc/tm.texi: Regenerate.
21806 * doc/tm.texi.in: Adjust.
21807 * combine.c (simplify_set): Likewise.
21808 (simplify_comparison): Likewise.
21809 * expr.c (store_constructor): Likewise.
21810 * internal-fn.c (expand_arith_overflow): Likewise.
21811 * reload.c (push_reload): Likewise.
21812 (find_reloads): Likewise.
21813 (find_reloads_subreg_address): Likewise.
21814 * reload1.c (eliminate_regs_1): Likewise.
21815 * rtlanal.c (nonzero_bits1): Likewise.
21816 (num_sign_bit_copies1): Likewise.
21817 * simplify-rtx.c (simplify_truncation): Likewise.
21819 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21821 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
21822 of AUTO_INC_DEC with the preprocessor.
21823 * combine.c (combine_instructions): Likewise.
21824 (can_combine_p): Likewise.
21825 (try_combine): Likewise.
21826 * emit-rtl.c (try_split): Likewise.
21827 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21828 * lower-subreg.c (resolve_simple_move): Likewise.
21829 * lra.c (update_inc_notes): Likewise.
21830 * recog.c (asm_operand_ok): Likewise.
21831 (constrain_operands): Likewise.
21832 * regrename.c (scan_rtx_address): Likewise.
21833 * reload.c (update_auto_inc_notes): Likewise.
21834 (reg_inc_found_and_valid_p): Likewise.
21835 * reload1.c (reload): Likewise.
21836 (emit_input_reload_insns): Likewise.
21837 (delete_output_reload): Likewise.
21838 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21839 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21841 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21843 * rtl.h: Always define AUTO_INC_DEC.
21844 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
21845 * combine.c (combine_instructions): Likewise.
21846 (can_combine_p): Likewise.
21847 (try_combine): Likewise.
21848 * emit-rtl.c (try_split): Likewise.
21849 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21850 * lower-subreg.c (resolve_simple_move): Likewise.
21851 * lra.c (update_inc_notes): Likewise.
21852 * recog.c (asm_operand_ok): Likewise.
21853 (constrain_operands): Likewise.
21854 * regrename.c (scan_rtx_address): Likewise.
21855 * reload.c (update_auto_inc_notes): Likewise.
21856 (find_equiv_reg): Likewise.
21857 * reload1.c (reload): Likewise.
21858 (reload_as_needed): Likewise.
21859 (choose_reload_regs): Likewise.
21860 (emit_input_reload_insns): Likewise.
21861 (delete_output_reload): Likewise.
21862 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21863 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21865 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21867 * combine.c (can_combine_def_p): Don't check the value of
21868 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
21869 (combinable_i3pat): Likewise.
21870 (mark_used_regs_combine): Likewise.
21871 * regrename.c (rename_chains): Likewise.
21872 * reload.c (find_reloads_address): Likewise.
21873 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21875 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21877 * combine.c (update_rsp_from_reg_equal): Don't check if
21878 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
21879 (reg_nonzero_bits_for_combine): Likewise.
21880 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
21882 * config/frv/frv.h: Likewise.
21883 * config/lm32/lm32.h: Likewise.
21884 * config/mep/mep.h: Likewise.
21885 * config/mips/mips.h: Likewise.
21886 * config/rs6000/rs6000.h: Likewise.
21887 * config/sh/sh.h: Likewise.
21888 * config/tilegx/tilegx.h (enum reg_class): Likewise.
21889 * config/tilepro/tilepro.h: Likewise.
21890 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
21891 * doc/tm.texi: Regenerate.
21892 * doc/tm.texi.in: Adjust.
21893 * rtlanal.c (nonzero_bits1): Likewise.
21895 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21897 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
21898 with the preprocessor.
21899 (combine_instructions): Likewise.
21900 (try_combine): Likewise.
21902 (distribute_notes): Likewise.
21904 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21906 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
21908 (simplify_set): Likewise.
21909 * cse.c (cse_insn): Likewise.
21910 * fold-const.c (fold_single_bit_test): Likewise.
21911 (fold_unary_loc): Likewise.
21912 * postreload.c (reload_cse_simplify_set): Likewise.
21913 (reload_cse_simplify_operands): Likewise.
21915 2015-07-08 Jiong Wang <jiong.wang@arm.com>
21917 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
21918 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
21920 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
21923 * config/i386/x86intrin.h: Include <adxintrin.h> even if
21924 __iamcu__ is defined.
21926 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21928 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
21930 2015-07-08 Iain Sandoe <iain@codesourcery.com>
21933 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
21934 names from preservation.
21936 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
21939 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
21941 (function_arg_advance_32): Don't pass vectors in registers for
21943 (function_arg_32): Likewise.
21944 (ix86_return_in_memory): Don't return vectors in registers for
21947 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
21949 PR middle-end/66334
21950 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
21951 hard regno live at the start of BB with incoming abnormal edges.
21952 * lra-lives.c (process_bb_lives): Ditto.
21954 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
21957 * config/nvptx/mkoffload.c (main): Create an offload image only in
21958 64-bit configurations.
21960 2015-07-08 Martin Liska <mliska@suse.cz>
21963 * tree-sra.c (create_access_1): Call ctor without brackets.
21964 (create_artificial_child_access): Likewise.
21966 2015-07-08 Richard Biener <rguenther@suse.de>
21968 PR tree-optimization/66793
21969 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
21970 Properly split the block after stmts ending it.
21972 2015-07-08 Richard Biener <rguenther@suse.de>
21974 PR tree-optimization/66794
21975 * passes.c (execute_function_todo): Assert that post-dominators
21977 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
21978 Free post-dominators.
21980 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21982 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
21985 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21987 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
21988 more than or equal 8 and less than 32 when optimizing for size.
21990 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21992 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
21993 COSTS_N_INSNS (1) and increment it appropriately throughout the
21996 2015-07-08 Richard Biener <rguenther@suse.de>
21998 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
22000 2015-07-08 Alan Modra <amodra@gmail.com>
22002 * target.def (rtx_costs): Remove "code" param, add "mode".
22003 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
22004 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
22005 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
22006 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
22007 call. Track mode when given in rtx.
22008 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
22009 (default_address_cost): Pass Pmode to rtx_cost.
22010 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
22011 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
22013 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
22014 (notreg_cost): Add mode param. Use it.
22015 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
22016 mode param and pass to set_src_cost. Update all calls.
22017 (hash_scan_set): Formatting.
22018 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
22019 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
22021 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
22022 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
22023 emit_store_flag): Update set_src_cost and rtx_cost calls.
22024 * auto-inc-dec.c (attempt_change): Likewise.
22025 * calls.c (precompute_register_parameters): Likewise.
22026 * combine.c (expand_compound_operation, make_extraction,
22027 force_to_mode, distribute_and_simplify_rtx): Likewise.
22028 * dojump.c (prefer_and_bit_test): Likewise.
22029 * dse.c (find_shift_sequence): Likewise.
22030 * expr.c (compress_float_constant): Likewise.
22031 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
22032 * ifcvt.c (noce_try_sign_mask): Likewise.
22033 * loop-doloop.c (doloop_optimize): Likewise.
22034 * loop-invariant.c (create_new_invariant): Likewise.
22035 * lower-subreg.c (shift_cost, compute_costs): Likewise.
22036 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
22037 lshift_cheap_p): Likewise.
22038 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22039 try_replace_in_use, reload_cse_move2add): Likewise.
22040 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
22042 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22043 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22044 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
22045 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22046 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
22047 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
22049 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
22050 * config/arc/arc.c (arc_rtx_costs): Likewise.
22051 * config/arm/arm.c (arm_rtx_costs): Likewise.
22052 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
22053 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
22054 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
22055 * config/cris/cris.c (cris_rtx_costs): Likewise.
22056 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
22057 * config/frv/frv.c (frv_rtx_costs): Likewise.
22058 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
22059 * config/i386/i386.c (ix86_rtx_costs): Likewise.
22060 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
22061 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
22062 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
22063 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
22064 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
22065 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
22066 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
22067 * config/mep/mep.c (mep_rtx_cost): Likewise.
22068 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
22069 * config/mips/mips.c (mips_rtx_costs): Likewise.
22070 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
22071 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
22072 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
22073 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
22074 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
22075 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
22076 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
22077 * config/pa/pa.c (hppa_rtx_costs): Likewise.
22078 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
22079 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
22080 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
22081 * config/s390/s390.c (s390_rtx_costs): Likewise.
22082 * config/sh/sh.c (sh_rtx_costs): Likewise.
22083 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
22084 * config/spu/spu.c (spu_rtx_costs): Likewise.
22085 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
22086 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
22087 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
22088 * config/v850/v850.c (v850_rtx_costs): Likewise.
22089 * config/vax/vax.c (vax_rtx_costs): Likewise.
22090 * config/visium/visium.c (visium_rtx_costs): Likewise.
22091 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
22092 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
22093 "code" param, and pass as outer_code to first rtx_cost call. Pass
22094 mode to rtx_cost calls.
22095 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
22097 (aarch64_rtx_costs_wrapper): Update.
22098 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
22099 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
22101 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
22102 and rtx_cost calls.
22103 (avr_operand_rtx_cost): Similarly.
22104 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22105 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22106 * config/mips/mips.c (mips_stack_address_p): Comment typo.
22107 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22108 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22109 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22111 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22112 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22113 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22114 * doc/tm.texi: Regenerate.
22116 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
22118 * tree-core.h: Include symtab.h.
22119 * rtl.h: Include hard-reg-set.h but not flags.h.
22120 (HARD_CONST): Remove condition compilation involving HARD_CONST since
22121 hard-reg-set.h is always included.
22122 * regs.h: Don't include hard-reg-set.h or rtl.h.
22123 * cfg.h: Include dominance.h.
22124 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22125 * backend.h: New. Aggregate commonly used backend header files.
22126 * gimple-ssa.h: Don't include tree-hasher.h.
22127 * ssa.h: New. Aggregate commonly used SSA header files.
22128 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22129 * sel-sched-ir.h: Flatten includes.
22130 * lra-int.h: Flatten completely.
22131 * sel-sched-dump.h: Flatten includes.
22132 * ira-int.h: Flatten includes.
22133 * gimple-streamer.h: Remove all includes.
22134 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22135 * resource.h: Flatten hard-reg-set.h and df.h.
22136 * sched-int.h: Flatten insn-arrt.h and df.h.
22137 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22138 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22139 * genattrtab.c (write_header): Adjust generated includes.
22140 * genautomata.c (main): Likewise.
22141 * genconditions.c (write-header): Likewise.
22142 * genemit.c (main): Likewise.
22143 * gengtype.c (open_base_files): Likewise.
22144 * genopinit.c (main): Likewise.
22145 * genoutput.c (output_prologue): Likewise.
22146 * genpeep.c (main): Likewise.
22147 * genpreds.c (write_insn_preds_c): Likewise.
22148 * genrecog.c (write_header): Likewise.
22149 * alias.c: Adjust includes.
22150 * asan.c: Likewise.
22151 * attribs.c: Likewise.
22152 * auto-inc-dec.c: Likewise.
22153 * auto-profile.c: Likewise.
22154 * bb-reorder.c: Likewise.
22155 * bt-load.c: Likewise.
22156 * builtins.c: Likewise.
22157 * caller-save.c: Likewise.
22158 * calls.c: Likewise.
22159 * ccmp.c: Likewise.
22161 * cfganal.c: Likewise.
22162 * cfgbuild.c: Likewise.
22163 * cfgcleanup.c: Likewise.
22164 * cfgexpand.c: Likewise.
22165 * cfghooks.c: Likewise.
22166 * cfgloop.c: Likewise.
22167 * cfgloopanal.c: Likewise.
22168 * cfgloopmanip.c: Likewise.
22169 * cfgrtl.c: Likewise.
22170 * cgraph.c: Likewise.
22171 * cgraphbuild.c: Likewise.
22172 * cgraphclones.c: Likewise.
22173 * cgraphunit.c: Likewise.
22174 * cilk-common.c: Likewise.
22175 * combine-stack-adj.c: Likewise.
22176 * combine.c: Likewise.
22177 * compare-elim.c: Likewise.
22178 * convert.c: Likewise.
22179 * coverage.c: Likewise.
22180 * cppbuiltin.c: Likewise.
22181 * cprop.c: Likewise.
22183 * cselib.c: Likewise.
22184 * data-streamer-in.c: Likewise.
22185 * data-streamer-out.c: Likewise.
22186 * data-streamer.c: Likewise.
22187 * dbxout.c: Likewise.
22190 * debug.c: Likewise.
22191 * df-core.c: Likewise.
22192 * df-problems.c: Likewise.
22193 * df-scan.c: Likewise.
22195 * dojump.c: Likewise.
22196 * dominance.c: Likewise.
22197 * domwalk.c: Likewise.
22198 * double-int.c: Likewise.
22200 * dumpfile.c: Likewise.
22201 * dwarf2asm.c: Likewise.
22202 * dwarf2cfi.c: Likewise.
22203 * dwarf2out.c: Likewise.
22204 * emit-rtl.c: Likewise.
22205 * et-forest.c: Likewise.
22206 * except.c: Likewise.
22207 * explow.c: Likewise.
22208 * expmed.c: Likewise.
22209 * expr.c: Likewise.
22210 * final.c: Likewise.
22211 * fixed-value.c: Likewise.
22212 * fold-const.c: Likewise.
22213 * function.c: Likewise.
22214 * fwprop.c: Likewise.
22215 * gcc-plugin.h: Likewise.
22216 * gcse-common.c: Likewise.
22217 * gcse.c: Likewise.
22218 * generic-match-head.c: Likewise.
22219 * ggc-page.c: Likewise.
22220 * gimple-builder.c: Likewise.
22221 * gimple-expr.c: Likewise.
22222 * gimple-fold.c: Likewise.
22223 * gimple-iterator.c: Likewise.
22224 * gimple-low.c: Likewise.
22225 * gimple-match-head.c: Likewise.
22226 * gimple-pretty-print.c: Likewise.
22227 * gimple-ssa-isolate-paths.c: Likewise.
22228 * gimple-ssa-strength-reduction.c: Likewise.
22229 * gimple-streamer-in.c: Likewise.
22230 * gimple-streamer-out.c: Likewise.
22231 * gimple-walk.c: Likewise.
22232 * gimple.c: Likewise.
22233 * gimplify-me.c: Likewise.
22234 * gimplify.c: Likewise.
22235 * godump.c: Likewise.
22236 * graph.c: Likewise.
22237 * graphite-blocking.c: Likewise.
22238 * graphite-dependences.c: Likewise.
22239 * graphite-interchange.c: Likewise.
22240 * graphite-isl-ast-to-gimple.c: Likewise.
22241 * graphite-optimize-isl.c: Likewise.
22242 * graphite-poly.c: Likewise.
22243 * graphite-scop-detection.c: Likewise.
22244 * graphite-sese-to-poly.c: Likewise.
22245 * graphite.c: Likewise.
22246 * haifa-sched.c: Likewise.
22247 * hw-doloop.c: Likewise.
22248 * ifcvt.c: Likewise.
22249 * init-regs.c: Likewise.
22250 * internal-fn.c: Likewise.
22251 * ipa-chkp.c: Likewise.
22252 * ipa-comdats.c: Likewise.
22253 * ipa-cp.c: Likewise.
22254 * ipa-devirt.c: Likewise.
22255 * ipa-icf-gimple.c: Likewise.
22256 * ipa-icf.c: Likewise.
22257 * ipa-inline-analysis.c: Likewise.
22258 * ipa-inline-transform.c: Likewise.
22259 * ipa-inline.c: Likewise.
22260 * ipa-polymorphic-call.c: Likewise.
22261 * ipa-profile.c: Likewise.
22262 * ipa-prop.c: Likewise.
22263 * ipa-pure-const.c: Likewise.
22264 * ipa-ref.c: Likewise.
22265 * ipa-reference.c: Likewise.
22266 * ipa-split.c: Likewise.
22267 * ipa-utils.c: Likewise.
22268 * ipa-visibility.c: Likewise.
22270 * ira-build.c: Likewise.
22271 * ira-color.c: Likewise.
22272 * ira-conflicts.c: Likewise.
22273 * ira-costs.c: Likewise.
22274 * ira-emit.c: Likewise.
22275 * ira-lives.c: Likewise.
22277 * jump.c: Likewise.
22278 * langhooks.c: Likewise.
22280 * loop-doloop.c: Likewise.
22281 * loop-init.c: Likewise.
22282 * loop-invariant.c: Likewise.
22283 * loop-iv.c: Likewise.
22284 * loop-unroll.c: Likewise.
22285 * lower-subreg.c: Likewise.
22286 * lra-assigns.c: Likewise.
22287 * lra-coalesce.c: Likewise.
22288 * lra-constraints.c: Likewise.
22289 * lra-eliminations.c: Likewise.
22290 * lra-lives.c: Likewise.
22291 * lra-remat.c: Likewise.
22292 * lra-spills.c: Likewise.
22294 * lto-cgraph.c: Likewise.
22295 * lto-compress.c: Likewise.
22296 * lto-opts.c: Likewise.
22297 * lto-section-in.c: Likewise.
22298 * lto-section-out.c: Likewise.
22299 * lto-streamer-in.c: Likewise.
22300 * lto-streamer-out.c: Likewise.
22301 * lto-streamer.c: Likewise.
22303 * mode-switching.c: Likewise.
22304 * modulo-sched.c: Likewise.
22305 * omega.c: Likewise.
22306 * omp-low.c: Likewise.
22307 * optabs.c: Likewise.
22308 * opts-global.c: Likewise.
22309 * passes.c: Likewise.
22310 * plugin.c: Likewise.
22311 * postreload-gcse.c: Likewise.
22312 * postreload.c: Likewise.
22313 * predict.c: Likewise.
22314 * print-rtl.c: Likewise.
22315 * print-tree.c: Likewise.
22316 * profile.c: Likewise.
22317 * real.c: Likewise.
22318 * realmpfr.c: Likewise.
22319 * recog.c: Likewise.
22321 * reg-stack.c: Likewise.
22322 * regcprop.c: Likewise.
22323 * reginfo.c: Likewise.
22324 * regrename.c: Likewise.
22325 * regstat.c: Likewise.
22326 * reload.c: Likewise.
22327 * reload1.c: Likewise.
22328 * reorg.c: Likewise.
22329 * resource.c: Likewise.
22330 * rtl-chkp.c: Likewise.
22331 * rtlanal.c: Likewise.
22332 * rtlhooks.c: Likewise.
22333 * sanopt.c: Likewise.
22334 * sched-deps.c: Likewise.
22335 * sched-ebb.c: Likewise.
22336 * sched-rgn.c: Likewise.
22337 * sched-vis.c: Likewise.
22338 * sdbout.c: Likewise.
22339 * sel-sched-dump.c: Likewise.
22340 * sel-sched-ir.c: Likewise.
22341 * sel-sched.c: Likewise.
22342 * sese.c: Likewise.
22343 * shrink-wrap.c: Likewise.
22344 * simplify-rtx.c: Likewise.
22345 * stack-ptr-mod.c: Likewise.
22346 * stmt.c: Likewise.
22347 * stor-layout.c: Likewise.
22348 * store-motion.c: Likewise.
22349 * stringpool.c: Likewise.
22350 * symtab.c: Likewise.
22351 * target-globals.c: Likewise.
22352 * targhooks.c: Likewise.
22353 * toplev.c: Likewise.
22354 * tracer.c: Likewise.
22355 * trans-mem.c: Likewise.
22356 * tree-affine.c: Likewise.
22357 * tree-browser.c: Likewise.
22358 * tree-call-cdce.c: Likewise.
22359 * tree-cfg.c: Likewise.
22360 * tree-cfgcleanup.c: Likewise.
22361 * tree-chkp-opt.c: Likewise.
22362 * tree-chkp.c: Likewise.
22363 * tree-chrec.c: Likewise.
22364 * tree-complex.c: Likewise.
22365 * tree-data-ref.c: Likewise.
22366 * tree-dfa.c: Likewise.
22367 * tree-diagnostic.c: Likewise.
22368 * tree-dump.c: Likewise.
22369 * tree-eh.c: Likewise.
22370 * tree-emutls.c: Likewise.
22371 * tree-if-conv.c: Likewise.
22372 * tree-inline.c: Likewise.
22373 * tree-into-ssa.c: Likewise.
22374 * tree-iterator.c: Likewise.
22375 * tree-loop-distribution.c: Likewise.
22376 * tree-nested.c: Likewise.
22377 * tree-nrv.c: Likewise.
22378 * tree-object-size.c: Likewise.
22379 * tree-outof-ssa.c: Likewise.
22380 * tree-parloops.c: Likewise.
22381 * tree-phinodes.c: Likewise.
22382 * tree-predcom.c: Likewise.
22383 * tree-pretty-print.c: Likewise.
22384 * tree-profile.c: Likewise.
22385 * tree-scalar-evolution.c: Likewise.
22386 * tree-sra.c: Likewise.
22387 * tree-ssa-address.c: Likewise.
22388 * tree-ssa-alias.c: Likewise.
22389 * tree-ssa-ccp.c: Likewise.
22390 * tree-ssa-coalesce.c: Likewise.
22391 * tree-ssa-copy.c: Likewise.
22392 * tree-ssa-copyrename.c: Likewise.
22393 * tree-ssa-dce.c: Likewise.
22394 * tree-ssa-dom.c: Likewise.
22395 * tree-ssa-dse.c: Likewise.
22396 * tree-ssa-forwprop.c: Likewise.
22397 * tree-ssa-ifcombine.c: Likewise.
22398 * tree-ssa-live.c: Likewise.
22399 * tree-ssa-loop-ch.c: Likewise.
22400 * tree-ssa-loop-im.c: Likewise.
22401 * tree-ssa-loop-ivcanon.c: Likewise.
22402 * tree-ssa-loop-ivopts.c: Likewise.
22403 * tree-ssa-loop-manip.c: Likewise.
22404 * tree-ssa-loop-niter.c: Likewise.
22405 * tree-ssa-loop-prefetch.c: Likewise.
22406 * tree-ssa-loop-unswitch.c: Likewise.
22407 * tree-ssa-loop.c: Likewise.
22408 * tree-ssa-math-opts.c: Likewise.
22409 * tree-ssa-operands.c: Likewise.
22410 * tree-ssa-phiopt.c: Likewise.
22411 * tree-ssa-phiprop.c: Likewise.
22412 * tree-ssa-pre.c: Likewise.
22413 * tree-ssa-propagate.c: Likewise.
22414 * tree-ssa-reassoc.c: Likewise.
22415 * tree-ssa-sccvn.c: Likewise.
22416 * tree-ssa-scopedtables.c: Likewise.
22417 * tree-ssa-sink.c: Likewise.
22418 * tree-ssa-strlen.c: Likewise.
22419 * tree-ssa-structalias.c: Likewise.
22420 * tree-ssa-tail-merge.c: Likewise.
22421 * tree-ssa-ter.c: Likewise.
22422 * tree-ssa-threadedge.c: Likewise.
22423 * tree-ssa-threadupdate.c: Likewise.
22424 * tree-ssa-uncprop.c: Likewise.
22425 * tree-ssa-uninit.c: Likewise.
22426 * tree-ssa.c: Likewise.
22427 * tree-ssanames.c: Likewise.
22428 * tree-stdarg.c: Likewise.
22429 * tree-streamer-in.c: Likewise.
22430 * tree-streamer-out.c: Likewise.
22431 * tree-streamer.c: Likewise.
22432 * tree-switch-conversion.c: Likewise.
22433 * tree-tailcall.c: Likewise.
22434 * tree-vect-data-refs.c: Likewise.
22435 * tree-vect-generic.c: Likewise.
22436 * tree-vect-loop-manip.c: Likewise.
22437 * tree-vect-loop.c: Likewise.
22438 * tree-vect-patterns.c: Likewise.
22439 * tree-vect-slp.c: Likewise.
22440 * tree-vect-stmts.c: Likewise.
22441 * tree-vectorizer.c: Likewise.
22442 * tree-vrp.c: Likewise.
22443 * tree.c: Likewise.
22444 * tsan.c: Likewise.
22445 * ubsan.c: Likewise.
22446 * valtrack.c: Likewise.
22447 * value-prof.c: Likewise.
22448 * var-tracking.c: Likewise.
22449 * varasm.c: Likewise.
22450 * varpool.c: Likewise.
22451 * vmsdbgout.c: Likewise.
22452 * vtable-verify.c: Likewise.
22454 * wide-int.cc: Likewise.
22455 * xcoffout.c: Likewise.
22456 * config/aarch64/aarch64-builtins.c: Likewise.
22457 * config/aarch64/aarch64.c: Likewise.
22458 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22459 * config/alpha/alpha.c: Likewise.
22460 * config/arc/arc.c: Likewise.
22461 * config/arm/aarch-common.c: Likewise.
22462 * config/arm/arm-builtins.c: Likewise.
22463 * config/arm/arm-c.c: Likewise.
22464 * config/arm/arm.c: Likewise.
22465 * config/avr/avr-c.c: Likewise.
22466 * config/avr/avr-log.c: Likewise.
22467 * config/avr/avr.c: Likewise.
22468 * config/bfin/bfin.c: Likewise.
22469 * config/c6x/c6x.c: Likewise.
22470 * config/cr16/cr16.c: Likewise.
22471 * config/cris/cris.c: Likewise.
22472 * config/darwin-c.c: Likewise.
22473 * config/darwin.c: Likewise.
22474 * config/epiphany/epiphany.c: Likewise.
22475 * config/epiphany/mode-switch-use.c: Likewise.
22476 * config/epiphany/resolve-sw-modes.c: Likewise.
22477 * config/fr30/fr30.c: Likewise.
22478 * config/frv/frv.c: Likewise.
22479 * config/ft32/ft32.c: Likewise.
22480 * config/h8300/h8300.c: Likewise.
22481 * config/i386/i386-c.c: Likewise.
22482 * config/i386/i386.c: Likewise.
22483 * config/i386/msformat-c.c: Likewise.
22484 * config/i386/winnt-cxx.c: Likewise.
22485 * config/i386/winnt-stubs.c: Likewise.
22486 * config/i386/winnt.c: Likewise.
22487 * config/ia64/ia64-c.c: Likewise.
22488 * config/ia64/ia64.c: Likewise.
22489 * config/iq2000/iq2000.c: Likewise.
22490 * config/lm32/lm32.c: Likewise.
22491 * config/m32c/m32c-pragma.c: Likewise.
22492 * config/m32c/m32c.c: Likewise.
22493 * config/m32r/m32r.c: Likewise.
22494 * config/m68k/m68k.c: Likewise.
22495 * config/mcore/mcore.c: Likewise.
22496 * config/mep/mep-pragma.c: Likewise.
22497 * config/mep/mep.c: Likewise.
22498 * config/microblaze/microblaze-c.c: Likewise.
22499 * config/microblaze/microblaze.c: Likewise.
22500 * config/mips/mips.c: Likewise.
22501 * config/mmix/mmix.c: Likewise.
22502 * config/mn10300/mn10300.c: Likewise.
22503 * config/moxie/moxie.c: Likewise.
22504 * config/msp430/msp430-c.c: Likewise.
22505 * config/msp430/msp430.c: Likewise.
22506 * config/nds32/nds32-cost.c: Likewise.
22507 * config/nds32/nds32-fp-as-gp.c: Likewise.
22508 * config/nds32/nds32-intrinsic.c: Likewise.
22509 * config/nds32/nds32-isr.c: Likewise.
22510 * config/nds32/nds32-md-auxiliary.c: Likewise.
22511 * config/nds32/nds32-memory-manipulation.c: Likewise.
22512 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22513 * config/nds32/nds32-predicates.c: Likewise.
22514 * config/nds32/nds32.c: Likewise.
22515 * config/nios2/nios2.c: Likewise.
22516 * config/nvptx/nvptx.c: Likewise.
22517 * config/pa/pa.c: Likewise.
22518 * config/pdp11/pdp11.c: Likewise.
22519 * config/rl78/rl78-c.c: Likewise.
22520 * config/rl78/rl78.c: Likewise.
22521 * config/rs6000/rs6000-c.c: Likewise.
22522 * config/rs6000/rs6000.c: Likewise.
22523 * config/rx/rx.c: Likewise.
22524 * config/s390/s390-c.c: Likewise.
22525 * config/s390/s390.c: Likewise.
22526 * config/sh/sh-c.c: Likewise.
22527 * config/sh/sh-mem.cc: Likewise.
22528 * config/sh/sh.c: Likewise.
22529 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22530 * config/sh/sh_treg_combine.cc: Likewise.
22531 * config/sol2-c.c: Likewise.
22532 * config/sol2-cxx.c: Likewise.
22533 * config/sol2-stubs.c: Likewise.
22534 * config/sol2.c: Likewise.
22535 * config/sparc/sparc-c.c: Likewise.
22536 * config/sparc/sparc.c: Likewise.
22537 * config/spu/spu-c.c: Likewise.
22538 * config/spu/spu.c: Likewise.
22539 * config/stormy16/stormy16.c: Likewise.
22540 * config/tilegx/mul-tables.c: Likewise.
22541 * config/tilegx/tilegx-c.c: Likewise.
22542 * config/tilegx/tilegx.c: Likewise.
22543 * config/tilepro/mul-tables.c: Likewise.
22544 * config/tilepro/tilepro-c.c: Likewise.
22545 * config/tilepro/tilepro.c: Likewise.
22546 * config/v850/v850-c.c: Likewise.
22547 * config/v850/v850.c: Likewise.
22548 * config/vax/vax.c: Likewise.
22549 * config/visium/visium.c: Likewise.
22550 * config/vms/vms-c.c: Likewise.
22551 * config/vms/vms.c: Likewise.
22552 * config/vxworks.c: Likewise.
22553 * config/xtensa/xtensa.c: Likewise.
22555 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
22557 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
22558 Remove operand constraints. Change operand 2 predicate to
22559 nonmemory operand. Limit const_int values to mode bitsize. Only
22560 allow const_int values less than 32 when optimizing for size.
22561 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
22562 Remove operand constraints.
22563 (*bt<mode>): Use SImode for const_int values less than 32.
22564 (regmode): Remove mode attribute.
22566 2015-07-07 Anatoly Sokolov <aesok@post.ru>
22568 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22569 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
22570 moxie_legitimate_address_p): New functions.
22571 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22573 2015-07-07 Tom de Vries <tom@codesourcery.com>
22575 PR tree-optimization/66642
22576 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
22577 header comment. Rename split_edge variable to edge_at_split. Split
22578 exit edge to create new loop exit bb. Insert loop exit phis in new
22581 2015-07-07 Tom de Vries <tom@codesourcery.com>
22583 * tree-cfg.c (get_virtual_phi): New function.
22584 * tree-cfg.h (get_virtual_phi): Declare.
22585 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
22586 (rewrite_virtuals_into_loop_closed_ssa): New function.
22587 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
22589 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
22590 (transform_to_exit_first_loop_alt): Use
22591 rewrite_virtuals_into_loop_closed_ssa.
22593 2015-07-07 Richard Biener <rguenther@suse.de>
22595 * fold-const.c (fold_binary_loc): Move
22596 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
22597 * match.pd: ... here.
22598 Add (X * C1) % C2 -> 0 simplification pattern derived from
22601 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
22604 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
22605 change for target/65249.
22607 2015-07-07 Paulo Matos <pmatos@broadcom.com>
22609 * symtab.c (address_matters_1): Fix typo in comment above.
22610 (can_increase_alignment_p): Likewise.
22612 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22614 * function.c (free_after_compilation): Clear PROP_cfg in
22615 f->curr_properties.
22617 2015-07-07 Richard Biener <rguenther@suse.de>
22619 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
22621 (add_control_edge): Remove excessive vertical space in dumping.
22622 (process_ssa_edge_worklist): Simulate at most one statement and
22623 return whether we did. Do not simulate PHIs if they are in a
22624 BB not yet simulated.
22625 (ssa_propagate): Adjust to always drain the BB worklist whenever
22626 a BB is available there, likewise the VARYING edges list before
22627 the interesting edge list.
22629 2015-07-07 Christian Bruel <christian.bruel@st.com>
22632 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
22634 2015-07-07 Richard Biener <rguenther@suse.de>
22636 PR middle-end/66739
22637 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
22640 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22642 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
22643 modes for operands 0 and 3. Use SImode for operands 2 and 3.
22644 Copy operand 0 to a temporary if !ext_register_operand. Remove
22645 ancient extract_bit_field workaround.
22646 (insv<mode>_1): Rename from mov<mode>_insv_1.
22647 (*insvqi): Rename from *movqi_insv_2.
22648 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
22649 for renamed insvsi_1.
22650 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
22652 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
22654 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
22655 call to nvptx_reorg_subreg.
22657 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
22659 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
22660 * graphite-dependencies.c, graphite-interchange.c,
22661 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
22662 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
22665 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
22667 * match.pd: Remove element_mode inside HONOR_*.
22668 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
22669 (~X | X -> -1, ~X ^ X -> -1): Merge.
22670 * tree.c (build_each_one_cst): New function.
22671 * tree.h (build_each_one_cst): Likewise.
22673 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22675 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22678 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
22680 * config.gcc <mips*-*-*>: Add fused-madd.opt.
22681 * config/mips/mips.opt (mfused-madd): Remove.
22682 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
22683 * config/mips/mips.h (TARGET_MIPS8000): New.
22684 (ISA_HAS_FP_MADD4_MSUB4): Remove.
22685 (ISA_HAS_FP_MADDF_MSUBF): Remove.
22686 (ISA_HAS_FP_MADD3_MSUB3): Remove.
22687 (ISA_HAS_NMADD4_NMSUB4): Remove.
22688 (ISA_HAS_NMADD3_NMSUB3): Remove.
22689 (ISA_HAS_FUSED_MADD4): New.
22690 (ISA_HAS_UNFUSED_MADD4): New.
22691 (ISA_HAS_FUSED_MADDF): New.
22692 (ISA_HAS_FUSED_MADD3): New.
22693 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
22694 (*fma<mode>4_madd3) New.
22695 (*fma<mode>4_madd4) New.
22696 (*fma<mode>4_maddf) New.
22698 (*fms<mode>4_msub3) New.
22699 (*fms<mode>4_msub4) New.
22701 (*fnma<mode>4_nmadd3) New.
22702 (*fnma<mode>4_nmadd4) New.
22704 (*fnms<mode>4_nmsub3) New.
22705 (*fnms<mode>4_nmsub4) New.
22706 (*madd4<mode>) Modify to be unfused only.
22707 (*msub4<mode>) Modify to be unfused only.
22708 (*nmadd4<mode>) Modify to be unfused only.
22709 (*nmsub4<mode>) Modify to be unfused only.
22710 (*madd3<mode>) Remove.
22711 (*msub3<mode>) Remove.
22712 (*nmadd3<mode>) Remove.
22713 (*nmsub3<mode>) Remove.
22714 (*nmadd3<mode>_fastmath) Remove.
22715 (*nmsub3<mode>_fastmath) Remove.
22716 (*nmadd4<mode>_fastmath) Update condition.
22717 (*nmsub4<mode>_fastmath) Update condition.
22719 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22722 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
22723 alignment attribute, exploring one level down for records and arrays.
22725 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22727 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
22728 modes for operands 0 and 1. Use SImode for operands 2 and 3.
22729 Copy operand 1 to a temporary if !ext_register_operand. Remove
22730 ancient extract_bit_field workaround.
22731 (*extv<mode>): Rename from *mov<mode>_extv_1.
22732 (*extvqi): Rename from *movqi_extv_1.
22733 (extzv<mode>): Rename from extzv. Use SWI248 modes for
22734 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
22735 to a temporary if !ext_register_operand. Remove ancient
22736 extract_bit_field workaround.
22737 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
22738 (*extzvqi): Rename from *movqi_extzv_2.
22739 (*testqi_ext_3): Remove modes from const_int_operand predicated
22740 operands. Add "n" constraint.
22741 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
22742 operand. Add "J" constraint.
22743 (*btsq, *btrq, *btcq peephole2s): Remove mode from
22744 const_0_to_63 predicated operand.
22745 (regmode): New insn attribute.
22746 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
22747 to nonmemory_operand. Use regmode insn attribute.
22748 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
22749 (*jcc_bt<mode>_mask): Remove mode from operand 3.
22750 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
22751 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
22752 operands. Use "N" constraint instead of "n".
22754 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22756 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
22758 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22761 * config/i386/i386.c (iamcu_cost): New.
22762 (m_IAMCU): Likewise.
22763 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
22764 (processor_target_table): Add an entry for "iamcu".
22765 (processor_alias_table): Likewise.
22766 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
22767 (ix86_adjust_cost): Likewise.
22768 (ia32_multipass_dfa_lookahead): Likewise.
22769 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
22770 * config/i386/x86-tune.def: Updated for m_IAMCU.
22772 2015-07-06 Richard Biener <rguenther@suse.de>
22774 PR tree-optimization/66772
22775 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
22776 values are available in the PHI node BB when there are
22777 still unexecutable edges.
22779 2015-07-06 Richard Biener <rguenther@suse.de>
22781 PR tree-optimization/66767
22782 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
22783 Make sure to build the alignment test on a SSA name without
22784 final alignment info valid only if the alignment test
22787 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
22790 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
22791 loop start when inserting LSETUP.
22793 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22796 * config/i386/i386.c (ix86_option_override_internal): Allow
22797 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
22799 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22801 * read-md.c (decimal_string): Rename to ...
22802 (md_decimal_string): ... this.
22803 (handle_enum): Reflect this.
22805 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
22808 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
22810 2015-07-06 Richard Biener <rguenther@suse.de>
22812 PR middle-end/66759
22813 * match.pd: Add missing constraint of y to REAL_CST in
22814 REAL_CST - x CMP y to y - CST CMP x simplification.
22816 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
22818 PR tree-optimization/66757
22819 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
22821 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
22822 Sandra Loosemore <sandra@codesourcery.com>
22824 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
22825 Delete extern declaration.
22826 (gprel_constant_p): Add extern declaration.
22827 * config/nios2/constraints.md ("S"): Use gprel_constant_p
22828 instead of nios2_symbol_ref_in_small_data_p.
22829 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
22830 (nios2_symbol_ref_in_small_data_p): Make static.
22831 (gprel_constant_p): Make non-static.
22833 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
22835 * doc/fragments.texi (Target Fragment): Convert debian.org
22837 * doc/install.texi (Configuration): Ditto.
22839 2015-07-05 Jakub Jelinek <jakub@redhat.com>
22841 PR tree-optimization/66718
22842 * tree-vect-stmts.c (vectorizable_call): Replace uses of
22843 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
22845 PR tree-optimization/66718
22846 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
22847 vectorizable_load, vectorizable_condition): Move vectype,
22848 nunits, ncopies computation after checking what kind of statement
22851 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22853 * target-insns.def (extv, extzv, insv): New targetm instruction
22855 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
22857 * recog.c (simplify_while_replacing): Likewise.
22859 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22861 * target-insns.def (doloop_begin, doloop_end): New targetm
22862 instruction patterns.
22863 * loop-init.c: Include target.h.
22864 (pass_loop2::gate): Use the new targetm patterns instead of
22865 HAVE_*/gen_* interface.
22866 (pass_rtl_doloop::gate): Likewise.
22867 (pass_rtl_doloop::execute): Remove preprocessor condition.
22868 * hw-doloop.c: Build unconditionally.
22869 * loop-doloop.c: Likewise.
22870 (doloop_optimize): Use the new targetm patterns instead of
22871 HAVE_*/gen_* interface.
22872 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
22873 * modulo-sched.c (doloop_register_get): Likewise.
22875 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22877 * target-insns.def (clear_cache): New targetm instruction pattern.
22878 * builtins.c (expand_builtin___clear_cache): Use it instead of
22879 HAVE_*/gen_* interface.
22881 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22883 * target-insns.def (allocate_stack, check_stack, probe_stack)
22884 (probe_stack_address, split_stack_prologue, split_stack_space_check):
22885 New targetm instruction patterns.
22886 * explow.c (allocate_dynamic_stack_space): Use them instead of
22887 HAVE_*/gen_* interface.
22888 (emit_stack_probe): Likewise.
22889 (probe_stack_range): Likewise.
22890 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22892 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22894 * target-insns.def (stack_protect_set, stack_protect_test): New
22895 targetm instruction patterns.
22896 * cfgexpand.c (stack_protect_prologue): Use them instead of
22897 HAVE_*/gen_* interface.
22898 * function.c (stack_protect_epilogue): Likewise.
22900 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22902 * expr.h (gen_move_insn_uncast): Delete.
22903 * expr.c (gen_move_insn_uncast): Delete.
22905 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22907 * target-insns.def (restore_stack_block, restore_stack_function)
22908 (restore_stack_nonlocal, save_stack_block, save_stack_function)
22909 (save_stack_nonlocal): New targetm instruction patterns.
22910 * builtins.c (expand_builtin_apply): Use them instead of
22911 HAVE_*/gen_* interface.
22912 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
22914 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22916 * target-insns.def (trap): New targetm instruction pattern.
22917 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
22919 * explow.c (allocate_dynamic_stack_space): Likewise.
22920 * ifcvt.c (find_if_header): Likewise.
22922 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22924 * target-insns.def (prefetch): New targetm instruction pattern.
22925 * tree-ssa-loop-prefetch.c: Include targeth.
22926 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
22927 of HAVE_*/gen_* interface.
22928 * builtins.c (expand_builtin_prefetch): Likewise.
22929 * toplev.c (process_options): Likewise.
22931 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22933 * target-insns.def (untyped_call, untyped_return): New targetm
22934 instruction patterns.
22935 * builtins.c (expand_builtin_apply): Use them instead of
22936 HAVE_*/gen_* interface.
22937 (result_vector): Define unconditionally.
22939 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22941 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
22942 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
22943 (nonlocal_goto_receiver): New targetm instruction patterns.
22944 * builtins.c (expand_builtin_setjmp_setup): Use them instead
22945 of HAVE_*/gen_* interface.
22946 (expand_builtin_setjmp_receiver): Likewise.
22947 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
22948 * except.c (expand_dw2_landing_pad_for_region): Likewise.
22950 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22952 * target.def: Add code_for_* hooks.
22953 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
22954 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
22955 * target-insns.def (casesi, tablejump): New targetm instruction
22957 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
22958 (do_tablejump): Likewise.
22959 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
22960 (expand_sjlj_dispatch_table): Likewise.
22961 * targhooks.c (default_case_values_threshold): Likewise.
22963 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
22965 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
22966 Use rtx_insn * instead of rtx.
22967 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
22968 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
22969 (nios2_call_tls_get_addr): Likewise.
22970 (nios2_emit_expensive_div): Likewise.
22971 (nios2_emit_move_sequence): Change return type to bool.
22972 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
22973 Change return type to bool.
22975 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22978 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
22980 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
22983 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
22984 of register_operand. Remove constraint.
22986 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
22988 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
22989 the first argument.
22991 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
22993 * attribs.c (decl_attributes): Guard inform with the return value
22994 of the preceding warning.
22996 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22998 * doc/invoke.texi (moverride): Move to correct section.
23000 2015-07-03 Richard Biener <rguenther@suse.de>
23002 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
23004 (dt_operand::gen_gimple_expr): After valueizing operands
23005 re-canonicalize operand order for commutative tree codes.
23007 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
23010 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
23012 (__crc32w): Likewise.
23013 (__crc32d): Likewise.
23014 (__rdpmc): Likewise.
23015 (__rdtscp): Likewise.
23016 (_rdpmc): Likewise.
23017 (_rdtscp): Likewise.
23018 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
23021 2015-07-03 Richard Biener <rguenther@suse.de>
23023 * fold-const.c (fold_mathfn_compare): Remove.
23024 (fold_inf_compare): Likewise.
23025 (fold_comparison): Move floating point comparison simplifications...
23026 * match.pd: ... to patterns here. Introduce simple_comparisons
23027 operator list and use it for patterns formerly in fold_comparison.
23029 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23031 PR tree-optimization/66119
23032 * toplev.c (process_options): Don't set up default values for
23033 the sra_max_scalarization_size_{speed,size} parameters.
23034 * tree-sra (analyze_all_variable_accesses): If no values
23035 have been set for the sra_max_scalarization_size_{speed,size}
23036 parameters, call get_move_ratio to get target defaults.
23038 2015-07-03 Richard Biener <rguenther@suse.de>
23040 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
23041 * match.pd: ... here.
23043 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
23046 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
23047 is not actually the default on FreeBSD.
23049 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23051 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
23053 (CMPGE_8HI): Likewise.
23054 (CMPGE_4SI): Likewise.
23055 (CMPGE_2DI): Likewise.
23056 (CMPGE_U16QI): Likewise.
23057 (CMPGE_U8HI): Likewise.
23058 (CMPGE_U4SI): Likewise.
23059 (CMPGE_U2DI): Likewise.
23060 (CMPLE_16QI): Likewise.
23061 (CMPLE_8HI): Likewise.
23062 (CMPLE_4SI): Likewise.
23063 (CMPLE_2DI): Likewise.
23064 (CMPLE_U16QI): Likewise.
23065 (CMPLE_U8HI): Likewise.
23066 (CMPLE_U4SI): Likewise.
23067 (CMPLE_U2DI): Likewise.
23068 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23069 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
23070 ALTIVEC_BUILTIN_VEC_CMPLE.
23071 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
23072 floating-point vector modes.
23073 (vector_nlt<mode>): New define_expand.
23074 (vector_nltu<mode>): Likewise.
23075 (vector_ngt<mode>): Likewise.
23076 (vector_ngtu<mode>): Likewise.
23078 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
23080 PR rtl-optimization/66706
23081 * combine.c (make_compound_operation): If an AND of SUBREG of
23082 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
23084 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
23086 * tree-pass.h (make_pass_ch_vect): New.
23087 * passes.def: Add pass_ch_vect just before pass_if_conversion.
23089 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
23090 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
23091 make_pass_ch_vect): New.
23092 (pass_ch): Extend ch_base.
23094 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
23095 (ch_base::copy_headers): ...here.
23097 2015-07-02 Richard Biener <rguenther@suse.de>
23099 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
23100 * fold-const.c (get_pointer_modulus_and_residue): Remove.
23101 (fold_binary_loc): Implement (T)ptr & CST in terms of
23102 get_pointer_alignment_1.
23103 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23104 Make sure to build the alignment test on a SSA name without
23105 final alignment info valid only after the prologue.
23107 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
23109 * config/cris/cris.md ("epilogue"): Remove condition.
23110 ("prologue"): Ditto.
23112 2015-07-02 Richard Biener <rguenther@suse.de>
23114 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23115 parameter to record a condition that is false.
23116 (record_conditions): When recording an extra NE_EXPR that is
23117 true also record a EQ_EXPR that is false.
23119 2015-07-02 Bin Cheng <bin.cheng@arm.com>
23121 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23122 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23123 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
23124 (set_iv, find_interesting_uses_address, add_candidate_1): New
23125 argument to alloc_iv.
23126 (find_interesting_uses_op, find_interesting_uses_cond): Don't
23127 duplicate struct iv.
23128 (free_loop_data): Don't free struct iv explicitly.
23129 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23131 2015-07-01 DJ Delorie <dj@redhat.com>
23133 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23135 (SUPPORTS_DISCRIMINATOR): Define.
23137 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23140 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23141 there are no CALLs in the same pattern.
23143 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
23145 PR rtl-optimization/61047
23146 * rtlanal.c (get_initial_register_offset): New function.
23147 (rtx_addr_can_trap_p_1): Check offsets of stack references.
23149 2015-07-01 Richard Biener <rguenther@suse.de>
23151 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23152 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23153 ~X CMP C -> X CMP' ~C to ...
23154 * match.pd: ... patterns here.
23156 2015-07-01 Nick Clifton <nickc@redhat.com>
23158 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23159 a 16-bit value into a 20-bit memory slot.
23161 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23163 * doc/sourcebuild.texi (AArch64-specific attributes): Document
23164 "aarch64_tiny", "aarch64_small", "aarch64_large",
23165 "aarch64_little_endian", "aarch64_big_endian".
23167 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23169 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23170 Document "aarch64_small_fpic".
23172 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23174 * configure.ac: Add check for aarch64 assembler -fpic relocation
23176 * configure: Regenerate.
23177 * config.in: Regenerate.
23178 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23179 to -fPIC if not support of -fpic relocation modifier in assembler.
23181 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23184 * rtl.c (classify_insn): Handle returns in PARALLELs.
23186 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
23188 PR middle-end/66633
23189 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23190 to true if the function is nested and if not optimizing.
23191 (convert_local_omp_clauses): Initialize need_frame to true if the
23192 function contains nested functions and if not optimizing.
23194 2015-07-01 Richard Biener <rguenther@suse.de>
23196 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23197 (X & Y) ^ Y -> ~X & Y transforms to ...
23198 * match.pd: ... here.
23200 2015-07-01 Richard Biener <rguenther@suse.de>
23202 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23203 of converts to avoid uninteresting noise from the conversion
23204 simplifying patterns.
23206 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
23208 * config/c6x/c6x.c (try_rename_operands): Do not depend on
23209 gcc_assert evaluating its argument for side-effect.
23211 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
23214 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23217 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23219 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23220 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23221 (hash_scc): Add this_ref_p and ref_p parameters and pass them
23222 to the inner DFS walk.
23224 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23226 * target-insns.def (jump): New targetm instruction pattern.
23227 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23228 instead of gen_jump.
23229 (fix_up_crossing_landing_pad): Likewise.
23230 (add_labels_and_missing_jumps): Likewise.
23231 (fix_crossing_conditional_branches): Likewise.
23232 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23233 (force_nonfallthru_and_redirect): Likewise.
23234 * cse.c (cse_insn): Likewise.
23235 * expmed.c (expand_divmod): Likewise.
23236 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23237 * haifa-sched.c (init_before_recovery): Likewise.
23238 (sched_create_recovery_edges): Likewise.
23239 * ifcvt.c (find_cond_trap): Likewise.
23240 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23241 (expand_float, expand_fix): Likewise.
23242 * stmt.c (emit_jump): Likewise.
23244 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23246 * defaults.h (HAVE_load_multiple, gen_load_multiple)
23247 (HAVE_store_multiple, gen_store_multiple): Delete.
23248 * target-insns.def (load_multiple, store_multiple): New targetm
23249 instruction patterns.
23250 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23251 of HAVE_*/gen_* interface.
23253 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23255 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23256 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23257 (gen_mem_signal_fence): Delete.
23258 * target-insns.def (mem_signal_fence, mem_thread_fence)
23259 (memory_barrier): New targetm instruction patterns.
23260 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23262 (expand_mem_signal_fence): Likewise.
23264 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23266 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23267 * target-insns.def (epilogue, prologue, sibcall_prologue): New
23268 targetm instruction patterns.
23269 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23271 * calls.c (expand_call): Likewise.
23272 * cfgrtl.c (cfg_layout_finalize): Likewise.
23273 * df-scan.c (df_get_entry_block_def_set): Likewise.
23274 (df_get_exit_block_use_set): Likewise.
23275 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23276 * final.c (final_start_function): Likewise.
23277 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23278 (reposition_prologue_and_epilogue_notes): Likewise.
23279 * reorg.c (find_end_label): Likewise.
23280 * toplev.c (process_options): Likewise.
23282 2015-06-30 David Malcolm <dmalcolm@redhat.com>
23284 * typed-splay-tree.h: New file.
23286 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
23289 * lra-int.h (lra_substitute_pseudo): Add a parameter.
23290 (lra_substitute_pseudo_within_insn): Ditto.
23291 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
23293 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
23294 to lra_substitute_pseudo.
23295 * lra-lives.c (process_bb_lives): Add an argument to
23296 lra_substitute_pseudo_within_insn call.
23297 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23298 argument to lra_substitute_pseudo and
23299 lra_substitute_pseudo_within_insn calls.
23300 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23302 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23304 * configure: Regenerated.
23306 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23308 * config.gcc: Support i[34567]86-*-elfiamcu target.
23309 * config/i386/iamcu.h: New.
23310 * config/i386/i386.opt: Add -miamcu.
23311 * doc/invoke.texi: Document -miamcu.
23312 * common/config/i386/i386-common.c (ix86_handle_option): Turn
23313 off x87/MMX/SSE/AVX codegen for -miamcu.
23314 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23315 __iamcu/__iamcu__ for -miamcu.
23316 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23317 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23318 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23319 * config/i386/i386.c (ix86_option_override_internal): Ignore and
23320 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
23321 MCU by default. Default long double to 64-bit for Intel MCU.
23322 Turn on -freg-struct-return for Intel MCU. Issue an error when
23323 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23325 (function_arg_advance_32): Pass value whose size is no larger
23326 than 8 bytes in registers for Intel MCU.
23327 (function_arg_32): Likewise.
23328 (ix86_return_in_memory): Return value whose size is no larger
23329 than 8 bytes in registers for Intel MCU.
23330 (iamcu_alignment): New function.
23331 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23333 (ix86_local_alignment): Don't increase alignment for Intel MCU.
23334 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23337 2015-06-30 Marek Polacek <polacek@redhat.com>
23339 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
23340 both operands of the resulting expression.
23342 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
23343 the final expression with the operand's type and then convert
23344 it to the type of the expression.
23346 2015-06-30 Richard Biener <rguenther@suse.de>
23348 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23349 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23350 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23351 * match.pd: ... to patterns here.
23353 2015-06-30 Richard Biener <rguenther@suse.de>
23355 PR tree-optimization/66704
23356 * tree-vect-data-refs.c (vect_setup_realignment): Use
23357 make_ssa_name for non-SSA name source.
23359 2015-06-30 Jakub Jelinek <jakub@redhat.com>
23361 PR middle-end/66702
23362 * omp-low.c (simd_clone_adjust): Handle addressable linear
23363 or uniform parameters or non-gimple type uniform parameters.
23365 2015-06-30 Richard Biener <rguenther@suse.de>
23367 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23368 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23369 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23370 * match.pd: ... here.
23371 Add a few cases of A - B -> A + (-B) when B "easily" negates.
23372 Move (x & y) | x -> x and friends before
23373 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23375 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23377 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23378 -mfix-ut699 is not specified.
23379 (leon3_load): Rename into...
23380 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
23383 2015-06-30 Marek Polacek <polacek@redhat.com>
23385 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23386 * match.pd: ... here.
23388 2015-06-30 Richard Biener <rguenther@suse.de>
23390 * target-insns.def (canonicalize_funcptr_for_compare): Add.
23391 * fold-const.c (build_range_check): Replace uses of
23392 HAVE_canonicalize_funcptr_for_compare.
23393 (fold_widened_comparison): Likewise.
23394 (fold_sign_changed_comparison): Likewise.
23395 * dojump.c: Include "target.h".
23396 (do_compare_and_jump): Replace uses of
23397 HAVE_canonicalize_funcptr_for_compare and
23398 gen_canonicalize_funcptr_for_compare.
23399 * expr.c (do_store_flag): Likewise.
23401 2015-06-30 Tom de Vries <tom@codesourcery.com>
23403 PR tree-optimization/66652
23404 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23405 max_loop_iterations to determine if nit + 1 overflows.
23407 2015-06-30 Richard Biener <rguenther@suse.de>
23409 * tree-vrp.c (register_edge_assert_for_2): Also register
23410 asserts for dominating conversion results.
23412 2015-06-30 Bin Cheng <bin.cheng@arm.com>
23414 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23415 field in struct iv.
23417 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
23420 * configure.ac: Fix filds and fildq test for 64-bit.
23421 * configure: Regenerated.
23423 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
23425 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23426 (nvptx_reorg): Here. Keep the non-subreg pieces.
23428 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
23430 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23431 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23433 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
23435 * config/i386/i386.md (*jcc_1): Use %! in asm template.
23436 Set attribute "length_nobnd" instead of "length".
23439 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23441 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
23443 * config/nios2/nios2.c (nios2_delegitimize_address): Make
23444 assert less restrictive.
23446 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
23449 * cgraphunit.c (cgraph_node::finalize_function): Do not call
23450 do_warn_unused_parameter.
23451 * function.c (do_warn_unused_parameter): Move from here.
23452 * function.h (do_warn_unused_parameter): Do not declare.
23454 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23457 * gcc.target/arm/armv-sync-comp-swap.c: New.
23458 * gcc.target/arm/armv-sync-op-acquire.c: New.
23459 * gcc.target/arm/armv-sync-op-full.c: New.
23460 * gcc.target/arm/armv-sync-op-release.c: New.
23462 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23465 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23466 initial acquire barrier with final barrier.
23468 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23471 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23472 initial acquire barrier with final barrier.
23474 2015-06-29 Richard Henderson <rth@redhat.com>
23476 * config/i386/constraints.md (Bf): New constraint.
23477 * config/i386/i386-c.c (ix86_target_macros): Define
23478 __GCC_ASM_FLAG_OUTPUTS__.
23479 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23481 * doc/extend.texi (FlagOutputOperands): Document them.
23483 2015-06-29 Jiong Wang <jiong.wang@arm.com>
23485 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23486 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23488 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23489 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23490 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23491 (aarch64_symbol_context): Ditto.
23492 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23493 and use new pattern name.
23494 (aarch64_expand_mov_immediate): Ditto.
23495 (aarch64_print_operand): Ditto.
23496 (aarch64_classify_tls_symbol): Ditto.
23498 2015-06-29 Marek Polacek <polacek@redhat.com>
23499 Marc Glisse <marc.glisse@inria.fr>
23501 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23502 * match.pd: ... pattern here.
23504 2015-06-29 Tom de Vries <tom@codesourcery.com>
23506 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23507 function structure.
23509 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23511 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23512 feature description, split out the native option, add a link to
23513 the feature documentation, rearrange and slightly rewrite text.
23514 (Aarch64 options, -mcpu): Likewise.
23515 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
23516 +rdma implies Adv. SIMD.
23518 2015-06-29 Marek Polacek <polacek@redhat.com>
23521 * function.c (stack_protect_epilogue): Remove a cast to int.
23522 * doc/invoke.texi: Update -Wswitch-bool description.
23524 2015-06-29 Richard Biener <rguenther@suse.de>
23526 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23527 * fold-const.c (fold_binary_loc): Move &A - &B simplification
23528 via ptr_difference_const ...
23529 * match.pd: ... here.
23530 When matching (X ^ Y) == Y also match with swapped operands.
23532 2015-06-29 Richard Biener <rguenther@suse.de>
23534 * lto-streamer.h (LTO_major_version): Bump to 5.
23536 2015-06-29 Richard Biener <rguenther@suse.de>
23538 PR tree-optimization/66677
23539 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
23540 STMT_VINFO_VEC_STMT clobbering less strict.
23542 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
23544 PR middle-end/64130
23545 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
23546 division, compute max and min when value ranges for dividend and
23547 divisor are available.
23549 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
23550 Sandra Loosemore <sandra@codesourcery.com>
23552 * regrename.h (regrename_do_replace): Change to return bool.
23553 * regrename.c (rename_chains): Check return value of
23554 regname_do_replace.
23555 (regrename_do_replace): Re-validate the modified insns and
23556 return bool status.
23557 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
23558 Update to match rename_chains changes.
23559 * config/c6x/c6x.c (try_rename_operands): Assert that
23560 regrename_do_replace returns true.
23562 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
23564 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
23565 operand 2 here. Use copy_addr_to_reg to copy non-index
23566 register operand 2 to a temporary.
23567 (<mode>_stx): Ditto for operand 1.
23568 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
23569 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
23570 (ix86_store_bounds): Ditto.
23572 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
23574 * print-tree.c (print_node) [TREE_VEC]: Print its length.
23576 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
23578 * gimple.c (gimple_call_set_fndecl): Remove.
23579 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
23580 build1_loc directly instead of build_fold_addr_expr_loc.
23582 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23584 * hash-map.h (hash_map::traverse): Use the definition of the
23585 Key typedef rather than the typedef itself.
23587 2015-06-26 Martin Jambor <mjambor@suse.cz>
23590 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
23591 NULL instead of calling dump_enabled_p.
23593 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23595 * config/aarch64/aarch64.opt: (override): New.
23596 * doc/invoke.texi (override): Document.
23597 * config/aarch64/aarch64.c (aarch64_flag_desc): New
23598 (aarch64_fusible_pairs): Likewise.
23599 (aarch64_tuning_flags): Likewise.
23600 (aarch64_tuning_override_function): Likewise.
23601 (aarch64_tuning_override_functions): Likewise.
23602 (aarch64_parse_one_option_token): Likewise.
23603 (aarch64_parse_boolean_options): Likewise.
23604 (aarch64_parse_fuse_string): Likewise.
23605 (aarch64_parse_tune_string): Likewise.
23606 (aarch64_parse_one_override_token): Likewise.
23607 (aarch64_parse_override_string): Likewise.
23608 (aarch64_override_options): Parse the -override string if it
23611 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23613 * config/aarch64/aarch64-protos.h (tune_params): Remove
23614 const from members.
23615 (aarch64_tune_params): Remove const, change to no longer be
23617 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
23618 change to no longer be a pointer, initialize to generic_tunings.
23619 (aarch64_min_divisions_for_recip_mul): Change dereference of
23620 aarch64_tune_params to member access.
23621 (aarch64_reassociation_width): Likewise.
23622 (aarch64_rtx_mult_cost): Likewise.
23623 (aarch64_address_cost): Likewise.
23624 (aarch64_branch_cost): Likewise.
23625 (aarch64_rtx_costs): Likewise.
23626 (aarch64_register_move_cost): Likewise.
23627 (aarch64_memory_move_cost): Likewise.
23628 (aarch64_sched_issue_rate): Likewise.
23629 (aarch64_builtin_vectorization_cost): Likewise.
23630 (aarch64_override_options): Take a copy of the selected tuning
23631 struct in to aarch64_tune_params, rather than just setting
23632 a pointer, change dereferences of aarch64_tune_params to member
23634 (aarch64_override_options_after_change): Change dereferences of
23635 aarch64_tune_params to member access.
23636 (aarch64_macro_fusion_p): Likewise.
23637 (aarch_macro_fusion_pair_p): Likewise.
23638 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
23640 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23642 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
23643 (aarch64_tune_flags): Likewise.
23644 (AARCH64_TUNE_FMA_STEERING): Likewise.
23645 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
23646 to AARCH64_FL_USE_FMA_STEERING_PASS.
23647 (cortex-a57.cortex-a53): Likewise.
23648 (cortex-a72): Use cortexa72_tunings.
23649 (cortex-a72.cortex-a53): Likewise.
23650 (exynos-m1): Likewise.
23651 * config/aarch64/aarch64-protos.h (tune_params): Add
23652 a field: extra_tuning_flags.
23653 * config/aarch64/aarch64-tuning-flags.def: New.
23654 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
23655 (aarch64_extra_tuning_flags): Likewise.
23656 (aarch64_tune_params): Declare here.
23657 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
23658 (cortexa53_tunings): Likewise.
23659 (cortexa57_tunings): Likewise.
23660 (thunderx_tunings): Likewise.
23661 (xgene1_tunings): Likewise.
23662 (cortexa72_tunings): New.
23663 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
23664 (gate): Check against aarch64_tune_params.
23665 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
23668 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23670 * config/aarch64/aarch64-fusion-pairs.def: New.
23671 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
23672 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
23673 aarch64_fusion_pairs.
23674 (AARCH64_FUSE_MOV_MOVK): Likewise.
23675 (AARCH64_FUSE_ADRP_ADD): Likewise.
23676 (AARCH64_FUSE_MOVK_MOVK): Likewise.
23677 (AARCH64_FUSE_ADRP_LDR): Likewise.
23678 (AARCH64_FUSE_CMP_BRANCH): Likewise.
23680 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23682 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
23683 SYMBOL_SMALL_GOT_28K.
23684 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
23685 relocation modifiers.
23686 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
23687 (ldr_got_small_28k_<mode>): New.
23688 (ldr_got_small_28k_sidi): New.
23689 * config/aarch64/iterators.md (got_modifier): New mode iterator.
23690 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
23691 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
23692 SYMBOL_SMALL_GOT_28K.
23693 (aarch64_rtx_costs): Add costs for new instruction sequences.
23694 (initialize_aarch64_code_model): Initialize new model.
23695 (aarch64_classify_symbol): Recognize new model and new symbol classification.
23696 (aarch64_asm_preferred_eh_data_format): Support new model.
23697 (aarch64_load_symref_appropriately): Generate new instruction
23698 sequences for -fpic.
23699 (TARGET_USE_PSEUDO_PIC_REG): New definition.
23700 (aarch64_use_pseudo_pic_reg): New function.
23702 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23704 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
23705 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
23706 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
23707 (aarch64_expand_mov_immediate): Ditto.
23708 (aarch64_print_operand): Ditto.
23709 (aarch64_classify_symbol): Ditto.
23711 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
23713 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
23715 2015-06-26 Bin Cheng <bin.cheng@arm.com>
23718 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
23719 assertion failed. Remove assertion itself.
23721 2015-06-26 Richard Biener <rguenther@suse.de>
23723 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
23724 and -A CMP CST -> A CMP -CST which is redundant with a pattern
23726 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
23727 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
23728 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
23729 * match.pd: ... patterns here.
23731 2015-06-26 Marek Polacek <polacek@redhat.com>
23733 * match.pd ((x | y) & ~(x & y) -> x ^ y,
23734 (x | y) & (~x ^ y) -> x & y): New patterns.
23736 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23738 * rtl.h (emit): Add an optional boolean parameter to control
23739 whether barriers are emitted.
23740 * emit-rtl.c (emit): Likewise.
23741 * gensupport.c (get_emit_function): Return null rather than "emit".
23742 * genemit.c (gen_emit_seq): Handle the null return value.
23743 Don't emit barriers after the final instruction in the sequence.
23744 * gentarget-def.c (main): Don't emit barriers after the instruction.
23746 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23748 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
23749 TARGET_UNIFIED_ASM.
23751 2015-06-26 Richard Biener <rguenther@suse.de>
23753 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
23755 2015-06-26 Richard Biener <rguenther@suse.de>
23757 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
23758 irrespective on whether the inner operation has a single use
23759 of both off are constant.
23761 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
23762 Segher Boessenkool <segher@kernel.crashing.org>
23765 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
23766 before doing PUT_MODE or PUT_CODE on operands to avoid
23767 in-place RTX modification.
23769 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23771 * gentarget-def.c (def_target_insn): Cast return of strtol to
23774 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23776 * gimple.h (gimple_call_set_fn): Move inline function.
23777 * gimple.c (gimple_call_set_fn): Relocate here.
23779 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
23783 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
23784 the replacement insn will work.
23786 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23788 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
23791 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23793 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
23794 * cgraph.h: Include ipa-ref.h and plugin-api.h.
23795 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
23796 (symtab_node::address_can_be_compared_p): Move function.
23797 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
23799 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
23800 * auto-profile.c: Likewise.
23801 * bb-reorder.c: Likewise.
23802 * builtins.c: Likewise.
23803 * calls.c: Likewise.
23804 * cfgexpand.c: Likewise.
23805 * cgraphbuild.c: Likewise.
23806 * cgraphclones.c: Likewise.
23807 * cgraphunit.c: Likewise.
23808 * combine.c: Likewise.
23809 * coverage.c: Likewise.
23810 * data-streamer-in.c: Likewise.
23811 * data-streamer-out.c: Likewise.
23812 * data-streamer.c: Likewise.
23813 * dbxout.c: Likewise.
23814 * dwarf2out.c: Likewise.
23815 * except.c: Likewise.
23816 * expr.c: Likewise.
23817 * final.c: Likewise.
23818 * fold-const.c: Likewise.
23819 * ggc-page.c: Likewise.
23820 * gimple-fold.c: Likewise.
23821 * gimple-iterator.c: Likewise.
23822 * gimple-pretty-print.c: Likewise.
23823 * gimple-streamer-in.c: Likewise.
23824 * gimple-streamer-out.c: Likewise.
23825 * gimple.c: Likewise.
23826 * gimplify.c: Likewise.
23827 * ipa-chkp.c: Likewise.
23828 * ipa-comdats.c: Likewise.
23829 * ipa-cp.c: Likewise.
23830 * ipa-devirt.c: Likewise.
23831 * ipa-icf-gimple.c: Likewise.
23832 * ipa-icf.c: Likewise.
23833 * ipa-inline-analysis.c: Likewise.
23834 * ipa-inline-transform.c: Likewise.
23835 * ipa-inline.c: Likewise.
23836 * ipa-polymorphic-call.c: Likewise.
23837 * ipa-profile.c: Likewise.
23838 * ipa-prop.c: Likewise.
23839 * ipa-pure-const.c: Likewise.
23840 * ipa-ref.c: Likewise.
23841 * ipa-reference.c: Likewise.
23842 * ipa-split.c: Likewise.
23843 * ipa-utils.c: Likewise.
23844 * ipa-visibility.c: Likewise.
23846 * langhooks.c: Likewise.
23847 * lto-cgraph.c: Likewise.
23848 * lto-compress.c: Likewise.
23849 * lto-opts.c: Likewise.
23850 * lto-section-in.c: Likewise.
23851 * lto-section-out.c: Likewise.
23852 * lto-streamer-in.c: Likewise.
23853 * lto-streamer-out.c: Likewise.
23854 * lto-streamer.c: Likewise.
23855 * omp-low.c: Likewise.
23856 * opts-global.c: Likewise.
23857 * passes.c: Likewise.
23858 * predict.c: Likewise.
23859 * print-tree.c: Likewise.
23860 * profile.c: Likewise.
23862 * sanopt.c: Likewise.
23863 * stor-layout.c: Likewise.
23864 * symtab.c: Likewise.
23865 * toplev.c: Likewise.
23866 * trans-mem.c: Likewise.
23867 * tree-cfg.c: Likewise.
23868 * tree-chkp.c: Likewise.
23869 * tree-eh.c: Likewise.
23870 * tree-emutls.c: Likewise.
23871 * tree-inline.c: Likewise.
23872 * tree-nested.c: Likewise.
23873 * tree-parloops.c: Likewise.
23874 * tree-pretty-print.c: Likewise.
23875 * tree-profile.c: Likewise.
23876 * tree-sra.c: Likewise.
23877 * tree-ssa-alias.c: Likewise.
23878 * tree-ssa-live.c: Likewise.
23879 * tree-ssa-loop-ivcanon.c: Likewise.
23880 * tree-ssa-loop-ivopts.c: Likewise.
23881 * tree-ssa-pre.c: Likewise.
23882 * tree-ssa-sccvn.c: Likewise.
23883 * tree-ssa-strlen.c: Likewise.
23884 * tree-ssa-structalias.c: Likewise.
23885 * tree-streamer-in.c: Likewise.
23886 * tree-streamer-out.c: Likewise.
23887 * tree-streamer.c: Likewise.
23888 * tree-switch-conversion.c: Likewise.
23889 * tree-tailcall.c: Likewise.
23890 * tree-vect-data-refs.c: Likewise.
23891 * tree-vect-stmts.c: Likewise.
23892 * tree-vectorizer.c: Likewise.
23893 * tree.c: Likewise.
23894 * tsan.c: Likewise.
23895 * ubsan.c: Likewise.
23896 * value-prof.c: Likewise.
23897 * varasm.c: Likewise.
23898 * varpool.c: Likewise.
23899 * config/arm/arm.c: Likewise.
23900 * config/bfin/bfin.c: Likewise.
23901 * config/c6x/c6x.c: Likewise.
23902 * config/cris/cris.c: Likewise.
23903 * config/darwin-c.c: Likewise.
23904 * config/darwin.c: Likewise.
23905 * config/i386/i386.c: Likewise.
23906 * config/i386/winnt.c: Likewise.
23907 * config/microblaze/microblaze.c: Likewise.
23908 * config/mips/mips.c: Likewise.
23909 * config/rs6000/rs6000.c: Likewise.
23910 * config/rx/rx.c: Likewise.
23911 * config/s390/s390.c: Likewise.
23912 * config/tilegx/mul-tables.c: Likewise.
23914 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23916 * config/aarch64/aarch64.c, config/alpha/alpha.c,
23917 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
23918 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
23919 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
23920 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23921 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23922 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23923 config/microblaze/microblaze.c, config/mips/mips.c,
23924 config/mmix/mmix.c, config/mn10300/mn10300.c,
23925 config/moxie/moxie.c, config/msp430/msp430.c,
23926 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23927 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23928 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23929 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23930 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23931 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23932 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
23933 target-def.h include.
23934 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
23936 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23938 * Makefile.in (TARGET_DEF): Add target-insns.def.
23939 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
23940 (build/gentarget-def.o): New rule.
23941 (genprogrtl): Add target-def.
23942 * target-insns.def, gentarget-def.c: New files.
23943 * target.def: Add targetm.have_* and targetm.gen_* hooks,
23944 based on the contents of target-insns.def.
23945 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
23946 (HAVE_return, gen_return): Delete.
23947 * target-def.h: Include insn-target-def.h.
23948 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
23949 instead of direct calls. Rely on them to do the appropriate assertions.
23950 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
23951 (convert_jumps_to_returns): Use targetm interface instead of
23953 (thread_prologue_and_epilogue_insns): Likewise.
23954 * reorg.c (find_end_label, dbr_schedule): Likewise.
23955 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
23956 * shrink-wrap.c (convert_to_simple_return): Likewise.
23957 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
23959 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23961 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
23962 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23963 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
23964 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
23965 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23966 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23967 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23968 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
23969 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
23970 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23971 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23972 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23973 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23974 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23975 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23976 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
23979 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23981 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
23982 (unbounded_int_hashmap_traits::key_type): Likewise.
23983 * hash-map.h (hash_map): Get the key type from the traits.
23984 * hash-traits.h (default_hash_traits): By default, inherit from the
23985 template parameter.
23986 * alias.c (alias_set_traits): Delete.
23987 (alias_set_entry_d::children): Use alias_set_hash as the first
23988 template parameter.
23989 (record_alias_subset): Update accordingly.
23990 * except.c (tree_hash_traits): Delete.
23991 (type_to_runtime_map): Use tree_hash as the first template parameter.
23992 (init_eh): Update accordingly.
23993 * genmatch.c (capture_id_map_hasher): Delete.
23994 (cid_map_t): Use nofree_string_hash as first template parameter.
23995 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
23996 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23997 Use symbol_compare_hash as the first template parameter in
23998 subdivide_hash_map.
23999 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
24000 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
24001 template parameter.
24002 * passes.c (pass_registry_hasher): Delete.
24003 (name_to_pass_map): Use nofree_string_hash as the first template
24005 (register_pass_name): Update accordingly.
24006 * sanopt.c (sanopt_tree_map_traits): Delete.
24007 (sanopt_tree_triplet_map_traits): Delete.
24008 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
24009 template parameter.
24010 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
24011 the first template parameter.
24012 * sese.c (rename_map_hasher): Delete.
24013 (rename_map_type): Use tree_ssa_name_hash as the first template
24015 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
24016 (function_summary::m_map): Use map_hash as the first template
24018 (function_summary::release): Update accordingly.
24019 * tree-if-conv.c (phi_args_hash_traits): Delete.
24020 (predicate_scalar_phi): Use tree_operand_hash as the first template
24021 parameter to phi_arg_map.
24022 * tree-inline.h (dependence_hasher): Delete.
24023 (copy_body_data::dependence_map): Use dependence_hash as the first
24024 template parameter.
24025 * tree-inline.c (remap_dependence_clique): Update accordingly.
24026 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
24027 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
24029 (addr_stridxptr): Update accordingly.
24030 * value-prof.c (profile_id_traits): Delete.
24031 (cgraph_node_map): Use profile_id_hash as the first template
24033 (init_node_map): Update accordingly.
24034 * config/alpha/alpha.c (string_traits): Delete.
24035 (machine_function::links): Use nofree_string_hash as the first
24036 template parameter.
24037 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
24038 * config/m32c/m32c.c (pragma_traits): Delete.
24039 (pragma_htab): Use nofree_string_hash as the first template parameter.
24040 (m32c_note_pragma_address): Update accordingly.
24041 * config/mep/mep.c (pragma_traits): Delete.
24042 (pragma_htab): Use nofree_string_hash as the first template parameter.
24043 (mep_note_pragma_flag): Update accordingly.
24044 * config/mips/mips.c (mips16_flip_traits): Delete.
24045 (mflip_mips16_htab): Use nofree_string_hash as the first template
24047 (mflip_mips16_use_mips16_p): Update accordingly.
24048 (local_alias_traits): Delete.
24049 (mips16_local_aliases): Use nofree_string_hash as the first template
24051 (mips16_local_alias): Update accordingly.
24053 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24055 * hash-map-traits.h (default_hashmap_traits): Delete.
24057 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24059 * hash-map-traits.h (unbounded_hashmap_traits): New class.
24060 (unbounded_int_hashmap_traits): Likewise.
24061 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
24063 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24065 * ipa-icf.h (symbol_compare_hash): New class.
24066 (symbol_compare_hashmap_traits): Use it.
24067 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
24068 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
24069 (mem_alloc_description::reverse_mem_map_t): Remove redundant
24070 default_hashmap_traits.
24071 * sanopt.c (sanopt_tree_triplet_hash): New class.
24072 (sanopt_tree_triplet_map_traits): Use it.
24074 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24076 * gengtype-parse.c (require_template_declaration): Allow '+' in
24077 template parameters. Consolidate cases.
24078 * hash-traits.h (int_hash): New class.
24079 * alias.c (alias_set_hash): New structure.
24080 (alias_set_traits): Use it.
24081 * symbol-summary.h (function_summary::map_hash): New class.
24082 (function_summary::summary_hashmap_traits): Use it.
24083 * tree-inline.h (dependence_hash): New class.
24084 (dependence_hasher): Use it.
24085 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
24086 * value-prof.c (profile_id_hash): New class.
24087 (profile_id_traits): Use it.
24089 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24091 * config/mips/mips.c (mips16_flip_traits): Use it.
24092 (local_alias_traits, mips16_local_aliases): Convert from a map of
24093 rtxes to a map of symbol names.
24094 (mips16_local_alias): Update accordingly.
24096 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24098 * hash-traits.h (string_hash, nofree_string_hash): New classes.
24099 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
24100 * passes.c (pass_registry_hasher): Likewise.
24101 * config/alpha/alpha.c (string_traits): Likewise.
24102 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
24103 * config/m32c/m32c.c (pragma_traits): Likewise.
24104 * config/mep/mep.c (pragma_traits): Likewise.
24106 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24108 * tree-hash-traits.h (tree_hash): New class.
24109 * except.c: Include tree-hash-traits.h.
24110 (tree_hash_traits): Use tree_hash.
24112 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24114 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24115 * sese.c: Include tree-hash-traits.h.
24116 (rename_map_hasher): Use tree_ssa_name_hasher.
24118 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24120 * tree-hash-traits.h (tree_decl_hash): New class.
24121 * tree-ssa-strlen.c: Include tree-hash-traits.h.
24122 (stridxlist_hash_traits): Use tree_decl_hash.
24124 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24126 * tree-hash-traits.h: New file.
24127 (tree_operand_hash): New class.
24128 * sanopt.c: Include tree-hash-traits.h.
24129 (sanopt_tree_map_traits): Use tree_operand_hash.
24130 * tree-if-conv.c: Include tree-hash-traits.h.
24131 (phi_args_hash_traits): Use tree_operand_hash.
24132 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24133 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24135 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24137 * hash-map-traits.h: Include hash-traits.h.
24138 (simple_hashmap_traits): New class.
24139 * mem-stats.h (hash_map): Change the default traits to
24140 simple_hashmap_traits<default_hash_traits<Key> >.
24142 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24144 * hash-table.h: Update comments.
24146 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24148 * hash-traits.h (default_hash_traits): New structure.
24149 * hash-set.h (default_hashset_traits): Delete.
24150 (hash_set): Use default_hash_traits<Key> instead of
24151 default_hashset_traits. Delete hash_entry type and use Key directly.
24152 * ipa-devirt.c (pair_traits): Delete.
24153 (default_hash_traits <type_pair>): Override.
24154 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24155 (odr_types_equivalent_p, add_type_duplicate): Likewise.
24157 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24159 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24161 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24163 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24164 (has_is_empty, is_empty_helper): Delete.
24165 (has_mark_deleted, mark_deleted_helper): Delete.
24166 (has_mark_empty, mark_empty_helper): Delete.
24167 (hash_table::is_deleted): Call the Descriptor unconditionally.
24168 (hash_table::is_empty): Likewise.
24169 (hash_table::mark_deleted): Likewise.
24170 (hash_table::mark_empty): Likewise.
24172 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24174 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
24175 redundant typedefs and members.
24176 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
24177 redundant typedefs.
24178 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24179 * ipa-devirt.c (odr_name_hasher): Likewise.
24180 (polymorphic_call_target_hasher): Likewise.
24181 * ira-costs.c (cost_classes_hasher): Likewise.
24182 * statistics.c (stats_counter_hasher): Likewise.
24183 * trans-mem.c (log_entry_hasher): Likewise.
24184 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24185 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24186 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24187 * var-tracking.c (variable_hasher): Likewise.
24188 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24189 Remove redundant typedefs and members.
24191 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24193 * hash-traits.h (ggc_cache_hasher): Rename to...
24194 (ggc_cache_remove): ...this and remove typedefs.
24195 (ggc_cache_ptr_hash): New class.
24196 * hash-table.h: Update commentary.
24197 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24198 rather than ggc_cache_hasher.
24199 (const_wide_int_hasher, reg_attr_hasher): Likewise.
24200 (const_double_hasher, const_fixed_hasher): Likewise.
24201 * function.c (insn_cache_hasher): Likewise.
24202 * trans-mem.c (tm_wrapper_hasher): Likewise.
24203 * tree.h (tree_decl_map_cache_hasher): Likewise.
24204 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24205 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24206 * ubsan.c (tree_type_map_cache_hasher): Likewise.
24207 * varasm.c (tm_clone_hasher): Likewise.
24208 * config/i386/i386.c (dllimport_hasher): Likewise.
24209 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24210 (tree_hasher): Likewise.
24212 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24214 * hash-traits.h (ggc_hasher): Rename to...
24215 (ggc_remover): ...this and remove typedefs.
24216 (ggc_cache_hasher): Update accordingly. Add typedefs.
24217 (ggc_ptr_hash): New class.
24218 * hash-table.h: Update comment.
24219 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24221 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24222 (tree_descriptor_hasher): Likewise.
24223 * cgraph.c (function_version_hasher): Likewise.
24224 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24225 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24226 (dw_loc_list_hasher, addr_hasher): Likewise.
24227 * function.h (used_type_hasher): Likewise.
24228 * function.c (temp_address_hasher): Likewise.
24229 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24230 * libfuncs.h (libfunc_hasher): Likewise.
24231 * lto-streamer.h (decl_state_hasher): Likewise.
24232 * optabs.c (libfunc_decl_hasher): Likewise.
24233 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24234 * varasm.c (section_hasher, object_block_hasher): Likewise.
24235 (const_rtx_desc_hasher): Likewise.
24236 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24237 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24239 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24241 * hash-traits.h (free_ptr_hash): New class.
24242 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24243 rather than typed_free_remove. Remove redudant typedefs.
24244 (external_ref_hasher): Likewise.
24245 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24246 (ehspec_hasher): Likewise.
24247 * ggc-common.c (saving_hasher): Likewise.
24248 * gimplify.c (gimplify_hasher): Likewise.
24249 * haifa-sched.c (delay_i2_hasher): Likewise.
24250 * loop-invariant.c (invariant_expr_hasher): Likewise.
24251 * loop-iv.c (biv_entry_hasher): Likewise.
24252 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24253 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24254 * tree-cfg.c (locus_discrim_hasher): Likewise.
24255 * tree-eh.c (finally_tree_hasher): Likewise.
24256 * tree-into-ssa.c (var_info_hasher): Likewise.
24257 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24258 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24259 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24260 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24261 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24262 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24263 (shared_bitmap_hasher): Likewise.
24264 * tree-ssa-threadupdate.c (redirection_data): Likewise.
24265 * tree-vectorizer.h (peel_info_hasher): Likewise.
24266 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24267 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24269 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24271 * hash-table.h: Update comments.
24272 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24273 (nofree_ptr_hash): New class.
24274 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24275 than typed_noop_remove. Remove redudant typedefs.
24276 * attribs.c (attribute_hasher): Likewise.
24277 * cfg.c (bb_copy_hasher): Likewise.
24278 * cselib.c (cselib_hasher): Likewise.
24279 * dse.c (invariant_group_base_hasher): Likewise.
24280 * dwarf2cfi.c (trace_info_hasher): Likewise.
24281 * dwarf2out.c (macinfo_entry_hasher): Likewise.
24282 (comdat_type_hasher, loc_list_hasher): Likewise.
24283 * gcse.c (pre_ldst_expr_hasher): Likewise.
24284 * genmatch.c (id_base): Likewise.
24285 * genrecog.c (test_pattern_hasher): Likewise.
24286 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24287 * haifa-sched.c (delay_i1_hasher): Likewise.
24288 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24289 * ipa-icf.h (congruence_class_group_hash): Likewise.
24290 * ipa-profile.c (histogram_hash): Likewise.
24291 * ira-color.c (allocno_hard_regs_hasher): Likewise.
24292 * lto-streamer.h (string_slot_hasher): Likewise.
24293 * lto-streamer.c (tree_entry_hasher): Likewise.
24294 * plugin.c (event_hasher): Likewise.
24295 * postreload-gcse.c (expr_hasher): Likewise.
24296 * store-motion.c (st_expr_hasher): Likewise.
24297 * tree-sra.c (uid_decl_hasher): Likewise.
24298 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24299 (ssa_name_var_hash): Likewise.
24300 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24301 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24302 * tree-ssa-pre.c (pre_expr_d): Likewise.
24303 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24304 * vtable-verify.h (registration_hasher): Likewise.
24305 * vtable-verify.c (vtbl_map_hasher): Likewise.
24306 * config/arm/arm.c (libcall_hasher): Likewise.
24307 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24308 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24309 * config/sol2.c (comdat_entry_hasher): Likewise.
24310 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24311 (print_fold_checksum, fold_checksum_tree): Likewise.
24312 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24313 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24314 (fold_build_call_array_loc): Likewise.
24315 * tree-ssa-ccp.c (gimple_htab): Likewise.
24316 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24317 rather than pointer_type.
24319 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24321 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24322 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24324 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24326 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24327 (ggc_hasher::ggc_mx): Likewise.
24328 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
24329 that duplicate ggc_hasher ones.
24331 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24333 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24334 (gt_cleare_cache): Check here for deleted and empty entries.
24335 Replace handle_cache_entry with a call to keep_cache_entry.
24336 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24337 (ggc_cache_hasher::keep_cache_entry): New function.
24338 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24339 (tm_wrapper_hasher::keep_cache_entry): New function.
24340 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24341 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24342 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24343 (type_cache_hasher::keep_cache_entry): New function.
24344 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24345 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24346 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24347 (tree_type_map_cache_hasher::keep_cache_entry): New function.
24348 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24349 (tm_clone_hasher::keep_cache_entry): New function.
24350 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24351 (dllimport_hasher::keep_cache_entry): New function.
24353 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24355 * hash-table.h: Include hash-traits.h.
24356 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24357 (ggc_cache_hasher): Move to...
24358 * hash-traits.h: ...this new file.
24360 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24362 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24363 struct cl_optimization.
24364 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24365 * tree.c (make_node_stat): Allocate cl_optimization struct.
24366 (copy_node_stat): Allocate and copy cl_optimization struct.
24368 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24370 * function.h (struct incoming_args): Move struct.
24371 (pass_by_reference, reference_callee_copied): Remove prototypes.
24372 * emit-rtl.h (struct incoming_args): Relocate struct here.
24373 * calls.h (pass_by_reference, reference_callee_copied): Relocate
24375 * function.c (pass_by_reference, reference_callee_copied): Move.
24376 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24377 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24378 * ipa-chkp.c: Include calls.h.
24380 2015-06-25 Andrew Macleod <amacleod@redhat.com>
24382 * alias.h (alias_set_type): Move typedef.
24383 * coretypes.h (alias_set_type): Relocate typedef here.
24384 * rtl.h: Don't include alias.h.
24386 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24388 * cgraph.h (cgraph_rtl_info): Move to rtl.h
24389 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24391 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24392 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24394 * calls.c: Include hard-reg-set.h before rtl.h.
24397 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24398 Vladimir Makarov <vmakarov@redhat.com>
24400 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24403 2015-06-25 Richard Biener <rguenther@suse.de>
24405 * fold-const.c (fold_binary_loc): Move simplification of
24406 (X <<>> C1) & C2 ...
24407 * match.pd: ... here.
24409 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
24411 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24413 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24415 * match.pd: Add patterns for vec_conds between 1 and 0.
24417 2015-06-25 Richard Biener <rguenther@suse.de>
24419 * tree-vect-stmts.c (vectorizable_conversion): Do not set
24420 STMT_VINFO_VEC_STMT for SLP.
24421 (vectorizable_store): Likewise.
24422 (vectorizable_load): Likewise.
24423 (vect_transform_stmt): Catch SLP vectorization clobbering
24424 STMT_VINFO_VEC_STMT.
24426 2015-06-25 Richard Biener <rguenther@suse.de>
24428 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24430 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24431 cleanup resulting dead code and parameters.
24432 (vect_transform_slp_perm_load): Adjust.
24434 2015-06-25 Nick Clifton <nickc@redhat.com>
24436 * config/bfin/bfin.c (bfin_expand_prologue): Set
24437 current_function_static_stack_size if flag_stack_usage_info is set.
24438 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24439 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24440 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24441 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24443 2015-06-25 Tom de Vries <tom@codesourcery.com>
24445 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24446 comment that the generated IV is unsigned.
24448 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24451 * config/arm/arm.c (arm_dbx_register_number): Return
24452 DWARF_FRAME_REGISTERS by default.
24454 2015-06-25 Tom de Vries <tom@codesourcery.com>
24456 * dominance.c (calculate_dominance_info): Fix verify_dominators call
24457 argument. Call verify_dominator when reusing dominator info.
24459 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
24462 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24463 an additional element of the unspec vector. Modify indices
24465 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24466 * config/sh/sh.c (prepare_move_operands): Pass incremented
24467 const_int to gen_GOTaddr2picreg.
24468 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24470 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24472 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24473 Condition on TARGET_FLOAT.
24475 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24477 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24480 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24482 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24484 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24485 aarch64_err_no_fpadvsimd.
24487 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24488 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24489 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24490 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24491 Turn error into assert, test TARGET_FLOAT.
24492 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24495 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
24498 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24500 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
24502 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24504 2015-06-24 Renlin Li <renlin.li@arm.com>
24506 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24507 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24509 2015-06-24 Richard Biener <rguenther@suse.de>
24511 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24513 (lower_opt_convert): Support lowering of conditional view_convert.
24514 (parser::parse_operation): Likewise.
24515 (parser::parse_for): Likewise.
24517 2015-06-24 Renlin Li <renlin.li@arm.com>
24519 * varasm.c (emit_local): Use unsigned int for align variable.
24521 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24524 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24525 for negative numbers.
24527 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24529 PR rtl-optimization/66306
24530 * reload.c (find_reloads): Swap the match_dup info for
24531 commutative operands.
24533 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24535 * config/s390/vx-builtins.md
24536 ("vec_scatter_element<mode>_<non_vec_int>")
24537 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
24538 attribute with bhfgq.
24540 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24542 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
24544 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24546 * config/s390/s390-builtin-types.def: Add flag to indicate the
24547 options under which the function type is needed.
24548 * config/s390/s390-builtins.def: Add flag to indicate the options
24549 under which the builtin is enabled.
24550 * config/s390/s390-builtins.h: Add flags parameter to macro
24552 (bflags_for_builtin): New function.
24553 (flags_for_builtin): Renamed to ...
24554 (opflags_for_builtin): ... this.
24555 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
24556 flags_for_builtin to bflags_for_builtin and
24557 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
24558 * config/s390/s390.c: Add initialization of bflags_builtin and
24559 opflags_builtin arrays.
24560 Remove code for flags_builtin.
24561 (s390_init_builtins): Only create builtin function types if one of
24562 their flags is active.
24563 Only create builtins if all of their flags are active.
24564 (s390_expand_builtin): Rename flags_for_builtin to
24565 opflags_for_builtin.
24567 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24569 * config/s390/vecintrin.h: Remove internal builtins.
24571 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24573 * config/s390/s390.c (s390_secondary_reload): Fix check for
24574 GENERAL_REGS register class.
24576 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24578 * config/s390/s390.c (s390_support_vector_misalignment): Call
24579 default implementation for !TARGET_VX.
24581 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24583 * config/s390/s390.c (s390_legitimate_constant_p): Add
24586 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24588 * config/s390/s390.c (s390_vector_abi): New variable definition.
24589 (s390_check_type_for_vector_abi): New function.
24590 (TARGET_ASM_FILE_END): New macro definition.
24591 (s390_asm_file_end): New function.
24592 (s390_function_arg): Call s390_check_type_for_vector_abi.
24593 (s390_gimplify_va_arg): Likewise.
24594 * configure: Regenerate.
24595 * configure.ac: Check for .gnu_attribute Binutils feature.
24597 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
24600 * config/bfin/bfin.c (hwloop_optimize): Initialize
24601 JUMP_LABEL for newly created jump.
24603 2015-06-23 Tristan Gingold <gingold@adacore.com>
24605 * collect-utils.c (collect_wait): Unlink the response file here
24607 (do_wait): ...here.
24608 (utils_cleanup): ...and here.
24610 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
24612 * df-scan.c: Don't include target-def.h.
24613 * targhooks.c: Likewise.
24614 * config/arm/arm-c.c: Likewise.
24615 * config/i386/i386-c.c: Likewise.
24616 * config/nds32/nds32-cost.c: Likewise.
24617 * config/nds32/nds32-fp-as-gp.c: Likewise.
24618 * config/nds32/nds32-intrinsic.c: Likewise.
24619 * config/nds32/nds32-isr.c: Likewise.
24620 * config/nds32/nds32-md-auxiliary.c: Likewise.
24621 * config/nds32/nds32-memory-manipulation.c: Likewise.
24622 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24623 * config/nds32/nds32-predicates.c: Likewise.
24625 2015-06-23 Richard Biener <rguenther@suse.de>
24627 PR tree-optimization/66636
24628 * tree-vect-stmts.c (vectorizable_store): Properly compute the
24629 def type for further defs for strided stores.
24631 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
24633 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
24634 conditional selects.
24635 (setcc_int<mode>, setcc_float<mode>): Reformat.
24637 2015-06-23 Marek Polacek <polacek@redhat.com>
24639 * match.pd ((x + y) - (x | y) -> x & y,
24640 (x + y) - (x & y) -> x | y): New patterns.
24642 2015-06-23 Ludovic Courtès <ludo@gnu.org>
24645 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
24646 '-dynamic-linker' within %{!shared: ...}.
24648 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
24651 * config/i386/predicates.md (addsub_vm_operator): New predicate.
24652 (addsub_vs_operator): Ditto.
24653 (addsub_vs_parallel): Ditto.
24654 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
24655 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
24656 Put minus RTX before plus and adjust vec_merge selector.
24657 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
24658 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
24659 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
24660 (addsub vec_merge splitters): New combiner splitters.
24661 (addsub vec_select/vec_concat splitters): Ditto.
24663 2015-06-23 Bin Cheng <bin.cheng@arm.com>
24665 PR tree-optimization/66449
24666 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
24667 POINTER_PLUS_EXPR for pointers.
24669 2015-06-23 Alan Modra <amodra@gmail.com>
24671 * rtlanal.c (commutative_operand_precedence): Correct comments.
24672 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
24673 declaration. Return an int. Distinguish REG,REG return from
24675 (struct simplify_plus_minus_op_data): Make local to function.
24676 (simplify_plus_minus): Don't set canonicalized if merely sorting
24677 registers. Avoid packing ops if nothing changes. White space fixes.
24679 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
24681 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
24682 -fdump-ada-spec is passed but not if -fsyntax-only is.
24684 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
24687 * lra-lives.c (process_bb_lives): Check insn copying the same
24688 reload pseudo and don't create a copy for it.
24690 2015-06-22 Tom de Vries <tom@codesourcery.com>
24692 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
24695 2015-06-22 Tom de Vries <tom@codesourcery.com>
24697 * builtins.def (DEF_GOMP_BUILTIN): Test
24698 'flag_tree_parallelize_loops > 1' instead of
24699 'flag_tree_parallelize_loops'. Test flag_cilkplus.
24701 2015-06-22 Tom de Vries <tom@codesourcery.com>
24703 * dominance.c (calculate_dominance_info): Verify dominators if
24706 2015-06-22 Marek Polacek <polacek@redhat.com>
24708 * match.pd ((x ^ y) ^ (x | y) -> x & y,
24709 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
24710 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
24711 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
24713 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
24716 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
24717 cost of embedded comparison.
24719 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24722 * config/rs6000/predicates.md (altivec_register_operand): Permit
24723 virtual stack registers.
24724 (vsx_register_operand): Likewise.
24725 (vfloat_operand): Likewise.
24726 (vint_operand): Likewise.
24727 (vlogical_operand): Likewise.
24729 2015-06-22 Richard Biener <rguenther@suse.de>
24731 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
24732 and single_scalar_iteration_cost members.
24733 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
24734 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
24735 (vect_get_single_scalar_iteration_cost): Remove.
24736 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24737 Use LOOP_VINFO_SCALAR_ITERATION_COST.
24738 * tree-vect-loop.c (destroy_loop_vec_info): Free
24740 (vect_get_single_scalar_iteration_cost): Compute result into
24741 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
24742 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
24743 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
24744 (vect_estimate_min_profitable_iters): Use them.
24746 2015-06-22 Christian Bruel <christian.bruel@st.com>
24749 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
24750 (TARGET_INSERT_ATTRIBUTES): Define.
24751 (thumb_flipper): New var.
24752 * config/arm/arm.opt (-mflip-thumb): New switch.
24754 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24755 Martin Liska <mliska@suse.cz>
24758 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
24759 construction of arg_types.
24760 (sem_function::sem_function): Likewise.
24761 (sem_function::~sem_function): Remove destruction of arg_types.
24762 (sem_function::compatible_parm_types_p): New function.
24763 (sem_function::equals_wpa): Reorg matching of return values
24764 and parameter types.
24765 (sem_function::equals_private): Reorg mathcing of argument types.
24766 (sem_function::parse_tree_args): Remove.
24767 * ipa-icf.h (init_wpa): Do not call it.
24768 (parse_tree_args): Remove.
24769 (compatible_parm_types_p): Declare.
24770 (result_type): Remove.
24771 (arg_types): Remove.
24773 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24776 * ipa-polymorphic-call.c
24777 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
24778 initializing alias oracle; fix formating; set base_alias_set if it
24781 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
24783 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
24784 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
24785 (find_inc): Likewise.
24786 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
24788 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
24789 * df-scan.c (df_swap_refs): Remove.
24790 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
24791 * dominance.c (link_roots): Use std::swap instead of manually swapping.
24792 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
24793 * fold-const.c (fold_relational_const): Likewise.
24794 * genattrtab.c (simplify_test_exp): Likewise.
24795 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
24796 gimple_simplify): Likewise.
24797 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
24798 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
24799 * ipa-devirt.c (add_type_duplicate): Likewise.
24800 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
24801 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
24802 * lra.c (lra_create_copy): Likewise.
24803 * lto-streamer-out.c (DFS::DFS): Likewise.
24804 * modulo-sched.c (get_sched_window): Likewise.
24805 * omega.c (omega_pretty_print_problem): Likewise.
24806 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
24807 * reload1.c (reloads_unique_chain_p): Likewise.
24808 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
24809 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
24811 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
24813 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
24814 predicate_mem_writes): Likewise.
24815 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
24816 * tree-predcom.c (combine_chains): Likewise.
24817 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
24818 refs_may_alias_p_1): Likewise.
24819 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
24820 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24821 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
24822 number_of_iterations_cond): Likewise.
24823 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24824 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
24825 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
24826 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
24827 * tree-vrp.c (extract_range_from_binary_expr_1,
24828 extract_range_from_unary_expr_1): Likewise.
24830 2015-06-20 Marek Polacek <polacek@redhat.com>
24832 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
24834 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
24837 * config/sh/sh.c (prepare_move_operands): Replace subreg
24838 index term with R0 for base and index addressing.
24840 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
24842 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
24844 (movsf_aarch64): Change condition from register_operand to
24845 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
24846 load1. Change type for alternative 7 to store1.
24847 (movdf_aarch64): Likewise.
24849 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
24851 * config/vax/vax.md: Adjust sign/zero extend patterns to
24852 handle SUBREGs in operands[1].
24854 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24856 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
24857 of manually swapping.
24858 (expand_vec_perm_interleave2): Likewise.
24860 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
24862 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
24863 reuse bounds created for abnormal ssa names.
24865 2015-06-19 Jakub Jelinek <jakub@redhat.com>
24867 * config/nvptx/nvptx.md (allocate_stack): Rename to...
24868 (allocate_stack_<mode>): ... this, and add :P on both
24869 match_operand and unspec.
24870 (allocate_stack): New expander.
24872 2015-06-19 Christian Bruel <christian.bruel@st.com>
24876 * config/arm/arm.c (arm_set_current_function): Handle
24877 explicit default options.
24879 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24881 * config/i386/i386.md (*movsicc_noc_zext): New insn.
24882 (zero-extended cmove with mem peephole2): New pattern.
24883 (cmove with mem peephole2): Merge patterns.
24885 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
24887 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
24889 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
24891 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
24892 * config/mips/mips.md (*madd4<mode>): Ditto.
24893 (*nmadd3<mode>) Ditto.
24894 (*nmadd4<mode>_fastmath): Ditto.
24895 (*nmadd3<mode>_fastmath): Ditto.
24896 (*nmsub4<mode>): Ditto.
24897 (*nmsub3<mode>): Ditto.
24898 (*nmsub4<mode>_fastmath): Ditto.
24899 (*nmsub3<mode>_fastmath): Ditto.
24901 2015-06-18 Michael Matz <matz@suse.de>
24903 PR middle-end/66253
24904 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
24905 grouped strided stores.
24906 (vectorizable_load): Don't use the DR from first_stmt in
24907 the non-SLP grouped strided case.
24909 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24912 * function.c (assign_bounds): Add arguments assign_regs,
24913 assign_special, assign_bt.
24914 (assign_parms): For vararg functions handle bounds in BT
24915 and special slots after incoming vararg bounds.
24917 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24919 PR middle-end/66568
24920 * cfgexpand.c (expand_return): Handle missing bounds.
24921 (expand_gimple_stmt_1): Likewise.
24922 * tree-chkp.c (chkp_expand_zero_bounds): New.
24923 * tree-chkp.h (chkp_expand_zero_bounds): New.
24925 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24927 PR middle-end/66567
24928 * ipa-chkp.c (chkp_maybe_create_clone): Require
24929 functions to be instrumentable.
24930 * tree-chkp.c (chkp_replace_function_pointer): Use
24931 chkp_instrumentable_p instead of attribute check.
24933 2015-06-18 Richard Biener <rguenther@suse.de>
24935 PR tree-optimization/66510
24936 * tree-vect-stmts.c (vectorizable_load): Properly compute the
24937 number of vector loads for SLP permuted loads.
24938 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
24939 check the stride for loop vectorization.
24940 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
24941 vectorization factor.
24942 (vect_analyze_group_access): If the group size is not a power
24943 of two require a epilogue loop.
24944 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
24945 compute and optimizing and alias test pruning after final
24946 vectorization factor computation.
24947 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
24949 (vect_transform_slp_perm_load): Properly compute the original
24950 number of vector load stmts.
24952 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24954 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
24955 "unlikely character , in @var" warning.
24957 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
24959 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
24960 (ix86_function_arg_advance): Ditto.
24961 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
24963 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24965 * function.h (struct rtl_data): Remove struct and accessor macros.
24966 * emit-rtl.h (struct rtl_data): Relocate to here.
24967 * Makefile.in (GTFILES): Add emit-rtl.h.
24968 * df-core.c: Include emit-rtl.h.
24969 * genattrtab.c: Likewise.
24970 * genconditions.c: Likewise.
24971 * genpreds.c: Likewise.
24972 * genrecog.c: Likewise.
24973 * regcprop.c: Likewise.
24974 * resource.c: Likewise.
24975 * sched-rgn.c: Likewise.
24976 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24977 * config/i386/winnt.c: Likewise.
24979 2015-06-17 Jakub Jelinek <jakub@redhat.com>
24981 PR middle-end/66429
24982 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
24983 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
24984 and has_force_vectorize_loops flags from cfun into
24986 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
24987 if simduid is non-NULL.
24988 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
24989 * passes.def (pass_simduid_cleanup): Add new pass after loop
24991 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
24992 indirection from htab argument's type.
24993 (shrink_simd_arrays): New function.
24994 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
24995 Don't call adjust_simduid_builtins if there are no loops.
24996 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
24997 (pass_simduid_cleanup::execute): New method.
24998 (make_pass_simduid_cleanup): New function.
25000 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
25002 * tree-core.h (tree_target_option): Make opts field a pointer to a
25003 cl_target_option instead of an instance of the struct.
25004 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
25006 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
25007 TARGET_OPTION_NODE.
25008 (copy_node_stat): Allocate and copy struct cl_target_option.
25010 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25012 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
25013 Remove conditional exposure of prototypes.
25014 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
25015 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
25016 definitions in tree.h with functions.
25017 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
25019 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
25021 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
25023 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
25024 (*cmp<mode>_signed): ... this.
25025 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
25026 (*cmp<mode>_unsigned): ... this. Remove %b.
25028 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25030 * coretypes.h: Include input.h and as-a.h.
25031 * rtl.h: Include input.h and as-a.h for generator files.
25032 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
25033 * vec.c: Don't include diagnostic-core.h.
25034 * alias.c: Do not include input.h, line-map.h or is-a.h.
25035 * asan.c: Likewise.
25036 * attribs.c: Likewise.
25037 * auto-inc-dec.c: Likewise.
25038 * auto-profile.c: Likewise.
25039 * bb-reorder.c: Likewise.
25040 * bt-load.c: Likewise.
25041 * builtins.c: Likewise.
25042 * caller-save.c: Likewise.
25043 * calls.c: Likewise.
25044 * ccmp.c: Likewise.
25046 * cfganal.c: Likewise.
25047 * cfgbuild.c: Likewise.
25048 * cfgcleanup.c: Likewise.
25049 * cfgexpand.c: Likewise.
25050 * cfghooks.c: Likewise.
25051 * cfgloop.c: Likewise.
25052 * cfgloop.h: Likewise.
25053 * cfgloopanal.c: Likewise.
25054 * cfgloopmanip.c: Likewise.
25055 * cfgrtl.c: Likewise.
25056 * cgraph.c: Likewise.
25057 * cgraphbuild.c: Likewise.
25058 * cgraphclones.c: Likewise.
25059 * cgraphunit.c: Likewise.
25060 * cilk-common.c: Likewise.
25061 * combine-stack-adj.c: Likewise.
25062 * combine.c: Likewise.
25063 * compare-elim.c: Likewise.
25064 * convert.c: Likewise.
25065 * coverage.c: Likewise.
25066 * cppbuiltin.c: Likewise.
25067 * cprop.c: Likewise.
25069 * cselib.c: Likewise.
25070 * data-streamer-in.c: Likewise.
25071 * data-streamer-out.c: Likewise.
25072 * data-streamer.c: Likewise.
25073 * dbxout.c: Likewise.
25076 * debug.c: Likewise.
25077 * df-core.c: Likewise.
25078 * df-problems.c: Likewise.
25079 * df-scan.c: Likewise.
25082 * diagnostic-core.h: Likewise.
25083 * diagnostic.c: Likewise.
25084 * dojump.c: Likewise.
25085 * dominance.c: Likewise.
25086 * domwalk.c: Likewise.
25087 * double-int.c: Likewise.
25089 * dumpfile.c: Likewise.
25090 * dumpfile.h: Likewise.
25091 * dwarf2asm.c: Likewise.
25092 * dwarf2cfi.c: Likewise.
25093 * dwarf2out.c: Likewise.
25094 * emit-rtl.c: Likewise.
25095 * et-forest.c: Likewise.
25096 * except.c: Likewise.
25097 * explow.c: Likewise.
25098 * expmed.c: Likewise.
25099 * expr.c: Likewise.
25100 * final.c: Likewise.
25101 * fixed-value.c: Likewise.
25102 * fold-const.c: Likewise.
25103 * function.c: Likewise.
25104 * fwprop.c: Likewise.
25105 * gcc-plugin.h: Likewise.
25106 * gcse.c: Likewise.
25107 * generic-match-head.c: Likewise.
25108 * ggc-page.c: Likewise.
25109 * gimple-builder.c: Likewise.
25110 * gimple-expr.c: Likewise.
25111 * gimple-fold.c: Likewise.
25112 * gimple-iterator.c: Likewise.
25113 * gimple-low.c: Likewise.
25114 * gimple-match-head.c: Likewise.
25115 * gimple-pretty-print.c: Likewise.
25116 * gimple-ssa-isolate-paths.c: Likewise.
25117 * gimple-ssa-strength-reduction.c: Likewise.
25118 * gimple-streamer-in.c: Likewise.
25119 * gimple-streamer-out.c: Likewise.
25120 * gimple-streamer.h: Likewise.
25121 * gimple-walk.c: Likewise.
25122 * gimple.c: Likewise.
25123 * gimplify-me.c: Likewise.
25124 * gimplify.c: Likewise.
25125 * godump.c: Likewise.
25126 * graph.c: Likewise.
25127 * graphite-blocking.c: Likewise.
25128 * graphite-dependences.c: Likewise.
25129 * graphite-interchange.c: Likewise.
25130 * graphite-isl-ast-to-gimple.c: Likewise.
25131 * graphite-optimize-isl.c: Likewise.
25132 * graphite-poly.c: Likewise.
25133 * graphite-scop-detection.c: Likewise.
25134 * graphite-sese-to-poly.c: Likewise.
25135 * graphite.c: Likewise.
25136 * haifa-sched.c: Likewise.
25137 * hw-doloop.c: Likewise.
25138 * ifcvt.c: Likewise.
25139 * init-regs.c: Likewise.
25140 * input.c: Likewise.
25141 * internal-fn.c: Likewise.
25142 * ipa-chkp.c: Likewise.
25143 * ipa-comdats.c: Likewise.
25144 * ipa-cp.c: Likewise.
25145 * ipa-devirt.c: Likewise.
25146 * ipa-icf-gimple.c: Likewise.
25147 * ipa-icf.c: Likewise.
25148 * ipa-inline-analysis.c: Likewise.
25149 * ipa-inline-transform.c: Likewise.
25150 * ipa-inline.c: Likewise.
25151 * ipa-polymorphic-call.c: Likewise.
25152 * ipa-profile.c: Likewise.
25153 * ipa-prop.c: Likewise.
25154 * ipa-pure-const.c: Likewise.
25155 * ipa-ref.c: Likewise.
25156 * ipa-reference.c: Likewise.
25157 * ipa-split.c: Likewise.
25158 * ipa-utils.c: Likewise.
25159 * ipa-visibility.c: Likewise.
25161 * ira-build.c: Likewise.
25162 * ira-color.c: Likewise.
25163 * ira-conflicts.c: Likewise.
25164 * ira-costs.c: Likewise.
25165 * ira-emit.c: Likewise.
25166 * ira-lives.c: Likewise.
25168 * jump.c: Likewise.
25169 * langhooks.c: Likewise.
25171 * loop-doloop.c: Likewise.
25172 * loop-init.c: Likewise.
25173 * loop-invariant.c: Likewise.
25174 * loop-iv.c: Likewise.
25175 * loop-unroll.c: Likewise.
25176 * lower-subreg.c: Likewise.
25177 * lra-assigns.c: Likewise.
25178 * lra-coalesce.c: Likewise.
25179 * lra-constraints.c: Likewise.
25180 * lra-eliminations.c: Likewise.
25181 * lra-lives.c: Likewise.
25182 * lra-remat.c: Likewise.
25183 * lra-spills.c: Likewise.
25185 * lto-cgraph.c: Likewise.
25186 * lto-compress.c: Likewise.
25187 * lto-opts.c: Likewise.
25188 * lto-section-in.c: Likewise.
25189 * lto-section-out.c: Likewise.
25190 * lto-streamer-in.c: Likewise.
25191 * lto-streamer-out.c: Likewise.
25192 * lto-streamer.c: Likewise.
25194 * mode-switching.c: Likewise.
25195 * modulo-sched.c: Likewise.
25196 * omega.c: Likewise.
25197 * omp-low.c: Likewise.
25198 * optabs.c: Likewise.
25199 * opts-global.c: Likewise.
25200 * opts.h: Likewise.
25201 * passes.c: Likewise.
25202 * plugin.c: Likewise.
25203 * postreload-gcse.c: Likewise.
25204 * postreload.c: Likewise.
25205 * predict.c: Likewise.
25206 * pretty-print.h: Likewise.
25207 * print-rtl.c: Likewise.
25208 * print-tree.c: Likewise.
25209 * profile.c: Likewise.
25210 * real.c: Likewise.
25211 * realmpfr.c: Likewise.
25212 * recog.c: Likewise.
25214 * reg-stack.c: Likewise.
25215 * regcprop.c: Likewise.
25216 * reginfo.c: Likewise.
25217 * regrename.c: Likewise.
25218 * regstat.c: Likewise.
25219 * reload.c: Likewise.
25220 * reload1.c: Likewise.
25221 * reorg.c: Likewise.
25222 * resource.c: Likewise.
25223 * rtl-chkp.c: Likewise.
25224 * rtl-error.c: Likewise.
25225 * rtlanal.c: Likewise.
25226 * rtlhooks.c: Likewise.
25227 * sanopt.c: Likewise.
25228 * sched-deps.c: Likewise.
25229 * sched-ebb.c: Likewise.
25230 * sched-rgn.c: Likewise.
25231 * sched-vis.c: Likewise.
25232 * sdbout.c: Likewise.
25233 * sel-sched-dump.c: Likewise.
25234 * sel-sched-ir.c: Likewise.
25235 * sel-sched.c: Likewise.
25236 * sese.c: Likewise.
25237 * shrink-wrap.c: Likewise.
25238 * simplify-rtx.c: Likewise.
25239 * stack-ptr-mod.c: Likewise.
25240 * statistics.c: Likewise.
25241 * stmt.c: Likewise.
25242 * stor-layout.c: Likewise.
25243 * store-motion.c: Likewise.
25244 * streamer-hooks.c: Likewise.
25245 * stringpool.c: Likewise.
25246 * symtab.c: Likewise.
25247 * target-globals.c: Likewise.
25248 * targhooks.c: Likewise.
25249 * toplev.c: Likewise.
25250 * tracer.c: Likewise.
25251 * trans-mem.c: Likewise.
25252 * tree-affine.c: Likewise.
25253 * tree-browser.c: Likewise.
25254 * tree-call-cdce.c: Likewise.
25255 * tree-cfg.c: Likewise.
25256 * tree-cfgcleanup.c: Likewise.
25257 * tree-chkp-opt.c: Likewise.
25258 * tree-chkp.c: Likewise.
25259 * tree-chrec.c: Likewise.
25260 * tree-complex.c: Likewise.
25261 * tree-data-ref.c: Likewise.
25262 * tree-dfa.c: Likewise.
25263 * tree-diagnostic.c: Likewise.
25264 * tree-dump.c: Likewise.
25265 * tree-eh.c: Likewise.
25266 * tree-emutls.c: Likewise.
25267 * tree-if-conv.c: Likewise.
25268 * tree-inline.c: Likewise.
25269 * tree-into-ssa.c: Likewise.
25270 * tree-iterator.c: Likewise.
25271 * tree-loop-distribution.c: Likewise.
25272 * tree-nested.c: Likewise.
25273 * tree-nrv.c: Likewise.
25274 * tree-object-size.c: Likewise.
25275 * tree-outof-ssa.c: Likewise.
25276 * tree-parloops.c: Likewise.
25277 * tree-phinodes.c: Likewise.
25278 * tree-predcom.c: Likewise.
25279 * tree-pretty-print.c: Likewise.
25280 * tree-profile.c: Likewise.
25281 * tree-scalar-evolution.c: Likewise.
25282 * tree-sra.c: Likewise.
25283 * tree-ssa-address.c: Likewise.
25284 * tree-ssa-alias.c: Likewise.
25285 * tree-ssa-ccp.c: Likewise.
25286 * tree-ssa-coalesce.c: Likewise.
25287 * tree-ssa-copy.c: Likewise.
25288 * tree-ssa-copyrename.c: Likewise.
25289 * tree-ssa-dce.c: Likewise.
25290 * tree-ssa-dom.c: Likewise.
25291 * tree-ssa-dse.c: Likewise.
25292 * tree-ssa-forwprop.c: Likewise.
25293 * tree-ssa-ifcombine.c: Likewise.
25294 * tree-ssa-live.c: Likewise.
25295 * tree-ssa-loop-ch.c: Likewise.
25296 * tree-ssa-loop-im.c: Likewise.
25297 * tree-ssa-loop-ivcanon.c: Likewise.
25298 * tree-ssa-loop-ivopts.c: Likewise.
25299 * tree-ssa-loop-manip.c: Likewise.
25300 * tree-ssa-loop-niter.c: Likewise.
25301 * tree-ssa-loop-prefetch.c: Likewise.
25302 * tree-ssa-loop-unswitch.c: Likewise.
25303 * tree-ssa-loop.c: Likewise.
25304 * tree-ssa-math-opts.c: Likewise.
25305 * tree-ssa-operands.c: Likewise.
25306 * tree-ssa-phiopt.c: Likewise.
25307 * tree-ssa-phiprop.c: Likewise.
25308 * tree-ssa-pre.c: Likewise.
25309 * tree-ssa-propagate.c: Likewise.
25310 * tree-ssa-reassoc.c: Likewise.
25311 * tree-ssa-sccvn.c: Likewise.
25312 * tree-ssa-scopedtables.c: Likewise.
25313 * tree-ssa-sink.c: Likewise.
25314 * tree-ssa-strlen.c: Likewise.
25315 * tree-ssa-structalias.c: Likewise.
25316 * tree-ssa-tail-merge.c: Likewise.
25317 * tree-ssa-ter.c: Likewise.
25318 * tree-ssa-threadedge.c: Likewise.
25319 * tree-ssa-threadupdate.c: Likewise.
25320 * tree-ssa-uncprop.c: Likewise.
25321 * tree-ssa-uninit.c: Likewise.
25322 * tree-ssa.c: Likewise.
25323 * tree-ssanames.c: Likewise.
25324 * tree-stdarg.c: Likewise.
25325 * tree-streamer-in.c: Likewise.
25326 * tree-streamer-out.c: Likewise.
25327 * tree-streamer.c: Likewise.
25328 * tree-switch-conversion.c: Likewise.
25329 * tree-tailcall.c: Likewise.
25330 * tree-vect-data-refs.c: Likewise.
25331 * tree-vect-generic.c: Likewise.
25332 * tree-vect-loop-manip.c: Likewise.
25333 * tree-vect-loop.c: Likewise.
25334 * tree-vect-patterns.c: Likewise.
25335 * tree-vect-slp.c: Likewise.
25336 * tree-vect-stmts.c: Likewise.
25337 * tree-vectorizer.c: Likewise.
25338 * tree-vrp.c: Likewise.
25339 * tree.c: Likewise.
25340 * tsan.c: Likewise.
25341 * ubsan.c: Likewise.
25342 * valtrack.c: Likewise.
25343 * value-prof.c: Likewise.
25344 * var-tracking.c: Likewise.
25345 * varasm.c: Likewise.
25346 * varpool.c: Likewise.
25347 * vmsdbgout.c: Likewise.
25348 * vtable-verify.c: Likewise.
25350 * wide-int.cc: Likewise.
25351 * xcoffout.c: Likewise.
25352 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25353 * common/common-targhooks.c: Likewise.
25354 * config/aarch64/aarch64-builtins.c: Likewise.
25355 * config/aarch64/aarch64.c: Likewise.
25356 * config/alpha/alpha.c: Likewise.
25357 * config/arc/arc.c: Likewise.
25358 * config/arm/aarch-common.c: Likewise.
25359 * config/arm/arm-builtins.c: Likewise.
25360 * config/arm/arm-c.c: Likewise.
25361 * config/arm/arm.c: Likewise.
25362 * config/avr/avr-c.c: Likewise.
25363 * config/avr/avr-log.c: Likewise.
25364 * config/avr/avr.c: Likewise.
25365 * config/bfin/bfin.c: Likewise.
25366 * config/c6x/c6x.c: Likewise.
25367 * config/cr16/cr16.c: Likewise.
25368 * config/cris/cris.c: Likewise.
25369 * config/darwin-c.c: Likewise.
25370 * config/darwin.c: Likewise.
25371 * config/default-c.c: Likewise.
25372 * config/epiphany/epiphany.c: Likewise.
25373 * config/epiphany/mode-switch-use.c: Likewise.
25374 * config/epiphany/resolve-sw-modes.c: Likewise.
25375 * config/fr30/fr30.c: Likewise.
25376 * config/frv/frv.c: Likewise.
25377 * config/ft32/ft32.c: Likewise.
25378 * config/glibc-c.c: Likewise.
25379 * config/h8300/h8300.c: Likewise.
25380 * config/i386/i386-c.c: Likewise.
25381 * config/i386/i386.c: Likewise.
25382 * config/i386/msformat-c.c: Likewise.
25383 * config/i386/winnt-cxx.c: Likewise.
25384 * config/i386/winnt-stubs.c: Likewise.
25385 * config/i386/winnt.c: Likewise.
25386 * config/ia64/ia64-c.c: Likewise.
25387 * config/ia64/ia64.c: Likewise.
25388 * config/iq2000/iq2000.c: Likewise.
25389 * config/lm32/lm32.c: Likewise.
25390 * config/m32c/m32c-pragma.c: Likewise.
25391 * config/m32c/m32c.c: Likewise.
25392 * config/m32r/m32r.c: Likewise.
25393 * config/m68k/m68k.c: Likewise.
25394 * config/mcore/mcore.c: Likewise.
25395 * config/mep/mep-pragma.c: Likewise.
25396 * config/mep/mep.c: Likewise.
25397 * config/microblaze/microblaze-c.c: Likewise.
25398 * config/microblaze/microblaze.c: Likewise.
25399 * config/mips/mips.c: Likewise.
25400 * config/mmix/mmix.c: Likewise.
25401 * config/mn10300/mn10300.c: Likewise.
25402 * config/moxie/moxie.c: Likewise.
25403 * config/msp430/msp430-c.c: Likewise.
25404 * config/msp430/msp430.c: Likewise.
25405 * config/nds32/nds32-cost.c: Likewise.
25406 * config/nds32/nds32-fp-as-gp.c: Likewise.
25407 * config/nds32/nds32-intrinsic.c: Likewise.
25408 * config/nds32/nds32-isr.c: Likewise.
25409 * config/nds32/nds32-md-auxiliary.c: Likewise.
25410 * config/nds32/nds32-memory-manipulation.c: Likewise.
25411 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25412 * config/nds32/nds32-predicates.c: Likewise.
25413 * config/nds32/nds32.c: Likewise.
25414 * config/nios2/nios2.c: Likewise.
25415 * config/nvptx/nvptx.c: Likewise.
25416 * config/pa/pa.c: Likewise.
25417 * config/pdp11/pdp11.c: Likewise.
25418 * config/rl78/rl78-c.c: Likewise.
25419 * config/rl78/rl78.c: Likewise.
25420 * config/rs6000/rs6000-c.c: Likewise.
25421 * config/rs6000/rs6000.c: Likewise.
25422 * config/rx/rx.c: Likewise.
25423 * config/s390/s390-c.c: Likewise.
25424 * config/s390/s390.c: Likewise.
25425 * config/sh/sh-c.c: Likewise.
25426 * config/sh/sh-mem.cc: Likewise.
25427 * config/sh/sh.c: Likewise.
25428 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25429 * config/sh/sh_treg_combine.cc: Likewise.
25430 * config/sol2-c.c: Likewise.
25431 * config/sol2-cxx.c: Likewise.
25432 * config/sol2-stubs.c: Likewise.
25433 * config/sol2.c: Likewise.
25434 * config/sparc/sparc-c.c: Likewise.
25435 * config/sparc/sparc.c: Likewise.
25436 * config/spu/spu-c.c: Likewise.
25437 * config/spu/spu.c: Likewise.
25438 * config/stormy16/stormy16.c: Likewise.
25439 * config/tilegx/mul-tables.c: Likewise.
25440 * config/tilegx/tilegx-c.c: Likewise.
25441 * config/tilegx/tilegx.c: Likewise.
25442 * config/tilepro/mul-tables.c: Likewise.
25443 * config/tilepro/tilepro-c.c: Likewise.
25444 * config/tilepro/tilepro.c: Likewise.
25445 * config/v850/v850-c.c: Likewise.
25446 * config/v850/v850.c: Likewise.
25447 * config/vax/vax.c: Likewise.
25448 * config/visium/visium.c: Likewise.
25449 * config/vms/vms-c.c: Likewise.
25450 * config/vms/vms.c: Likewise.
25451 * config/vxworks.c: Likewise.
25452 * config/winnt-c.c: Likewise.
25453 * config/xtensa/xtensa.c: Likewise.
25455 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
25457 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25459 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25461 2015-06-17 Richard Biener <rguenther@suse.de>
25463 PR tree-optimization/66251
25464 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25465 stmts for SLP strided stores.
25468 2015-05-22 Richard Biener <rguenther@suse.de>
25470 PR tree-optimization/66251
25471 * tree-vect-stmts.c (vectorizable_conversion): Properly
25472 set STMT_VINFO_VEC_STMT even for the SLP case.
25474 2015-05-26 Michael Matz <matz@suse.de>
25476 PR middle-end/66251
25477 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25478 STMT_VINFO_VEC_STMT, also with SLP.
25480 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
25483 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25484 (*avx_addsubv4df3_1s): Ditto.
25485 (*sse3_addsubv2df3_1): Ditto.
25486 (*sse3_addsubv2df3_1s): Ditto.
25487 (*avx_addsubv8sf3_1): Ditto.
25488 (*avx_addsubv8sf3_1s): Ditto.
25489 (*sse3_addsubv4sf3_1): Ditto.
25490 (*sse3_addsubv4sf3_1s): Ditto.
25492 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
25494 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25495 (SYSROOT_SUFFIX_SPEC): Update.
25496 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25497 (STARTFILE_PREFIX_SPEC): Update.
25498 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25499 (MULTILIB_REQUIRED): New.
25500 (MULTILIB_OSDIRNAMES): New.
25501 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25502 (MULTILIB_REQUIRED): New.
25503 (MULTILIB_OSDIRNAMES): New.
25505 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
25507 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25508 * config/aarch64/aarch64-options-extensions.def: Update "fP",
25509 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
25510 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25511 (AARCH64_FL_PAN): New.
25512 (AARCH64_FL_LOR): New.
25513 (AARCH64_FL_RDMA): New.
25514 (AARCH64_FL_FOR_ARCH8_1): New.
25515 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25516 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25518 2015-06-16 Martin Liska <mliska@suse.cz>
25520 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25521 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25524 2015-06-16 Richard Biener <rguenther@suse.de>
25526 * tree-vect-stmts.c (vectorizable_store): Adjust.
25527 (vectorizable_load): Likewise.
25528 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25530 (vect_create_data_ref_ptr): Likewise.
25531 (bump_vector_ptr): Adjust.
25533 2015-06-16 Richard Biener <rguenther@suse.de>
25535 * tree-vect-stmts.c (vectorizable_load): Properly start loads
25536 with the first element if this is grouped loads.
25538 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
25540 * config/arm/arm-protos.h (struct tune_params): Rename
25541 log_op_non_sc to log_op_non_short_circuit, and rename enum
25542 values to expand SC to SHORT_CIRCUIT.
25543 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
25544 to LOG_OP_NON_SHORT_CIRCUIT.
25545 (arm_fastmul_tune):Likewise
25546 (arm_strongarm_tune): Likewise.
25547 (arm_xscale_tune): Likewise.
25548 (arm_9e_tune): Likewise.
25549 (arm_marvell_pj4_tune): Likewise.
25550 (arm_v6t2_tune): Likewise.
25551 (arm_cortex_tune): Likewise.
25552 (arm_cortex_a8_tune): Likewise.
25553 (arm_cortex_a7_tune): Likewise.
25554 (arm_cortex_a15_tune): Likewise.
25555 (arm_cortex_a53_tune): Likewise.
25556 (arm_cortex_a57_tune): Likewise.
25557 (arm_xgene1_tune): Likewise.
25558 (arm_cortex_a5_tune): Likewise.
25559 (arm_cortex_a9_tune): Likewise.
25560 (arm_cortex_a12_tune): Likewise.
25561 (arm_v7m_tune): Likewise.
25562 (arm_cortex_m7_tune): Likewise.
25563 (arm_v6m_tune): Likewise.
25564 (arm_fa726te_tune): Likewise.
25566 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
25568 * altivec.md: Delete UNSPEC_VMLADDUHM.
25569 (mulv4si3_p8): New pattern.
25570 (mulv4si3): Use it for POWER8.
25571 (mulv8hi3): Use vmladduhm with zero addend.
25572 (altivec_vmladduhm): Descriptive RTL.
25574 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
25576 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
25577 to use neon_move instead of mov_imm.
25578 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
25579 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
25581 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
25582 aarch64_float_const_zero_rtx_p check before TFmode check.
25583 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
25585 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
25586 code and attributes to match. Change condition from register_operand
25587 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
25588 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
25591 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
25594 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
25595 there is no parent.
25597 2015-06-14 Shiva Chen <shiva0217@gmail.com>
25599 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
25600 HOST_WIDE_INT parameter.
25602 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
25605 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
25606 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
25608 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
25610 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
25612 * rtl.h (classify_insn): Declare.
25613 * emit-rtl.c (classify_insn): Move to...
25614 * rtl.c: ...here and add generator support.
25615 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
25616 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
25617 * genemit.c (gen_emit_seq): New function.
25618 (gen_expand, gen_split): Use it.
25620 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
25622 * tree.c (make_vector_stat): Fix comment to state that the
25623 function returns a VECTOR_CST.
25625 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
25627 * gensupport.h (add_implicit_parallel): Declare.
25628 * genrecog.c (add_implicit_parallel): Move to...
25629 * gensupport.c (add_implicit_parallel): ...here.
25630 (process_one_cond_exec): Use it.
25631 * genemit.c (gen_insn): Likewise.
25633 2015-06-13 Iain Sandoe <iain@codesourcery.com>
25636 * passes.c (rest_of_decl_compilation): Do not register globals for
25637 early debug if they are declared in built-ins.
25639 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
25641 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
25643 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25645 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
25647 (noce_try_cmove_arith): Likewise.
25648 (noce_get_alt_condition): Likewise.
25650 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25652 * common/config/i386/i386-common.c
25653 (OPTION_MASK_ISA_MWAITX_SET): New.
25654 (ix86_handle_option): Handle mwaitx.
25655 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
25656 (x86_64-*-*): Likewise.
25657 * config/i386/mwaitxintrin.h: New header.
25658 * config/i386/cpuid.h (bit_MWAITX): Define.
25659 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25661 * config/i386/i386.opt (mwaitx): New.
25662 * config/i386/i386-builtin-types.def
25663 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
25664 * config/i386/i386-c.c: Define __MWAITX__ if needed.
25665 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
25667 (ix86_option_override_internal): Handle new option.
25668 (processor_alias_table): Added PTA_MWAITX.
25669 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
25670 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
25671 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
25672 IX86_BUILTIN_MONITORX built-ins.
25673 * config/i386/i386.h (TARGET_MWAITX): New.
25674 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
25676 (mwaitx): New pattern.
25677 (monitorx_<mode>): New pattern.
25678 * config/i386/x86intrin.h: Include mwaitxintrin.h.
25679 * doc/extend.texi: Document monitorx and mwaitx builtins.
25680 * doc/invoke.texi: Document -mmwaitx option.
25682 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
25684 * emit-rtl.c (need_atomic_barrier_p): Mask model with
25685 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
25687 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25689 * dbxout.c (xcoff_debug_hooks): Provide a function for
25690 register_main_translation_unit hook.
25692 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25694 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
25695 variants cases from switch.
25696 (rs6000_post_atomic_barrier): Same.
25697 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
25698 (rs6000_expand_atomic_exchange): Same.
25699 (rs6000_expand_atomic_op): Same.
25700 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
25701 SYNC variants cases from switch.
25702 (atomic_load): Same.
25703 (atomic_store): Same.
25705 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
25707 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
25708 CONST_INT for goto.
25710 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
25713 * dwarf2out.c (check_die): Check for common duplicate attributes.
25714 (add_location_or_const_value_attribute): Do not add duplicate
25716 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
25718 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
25719 (gen_type_die_with_usage): Call check_die.
25720 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
25722 2015-06-11 Jason Merrill <jason@redhat.com>
25724 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
25727 2015-06-11 Marek Polacek <polacek@redhat.com>
25729 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
25731 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
25734 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
25735 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
25736 (*addx_extend_sp32): Fix pasto.
25737 (*subx_extend): Rename into...
25738 (*subx_extend_sp32): ...this.
25739 (*adddi3_extend_sp32): Add earlyclobber.
25740 (*subdi3_insn_sp32): Likewise.
25741 (*subdi3_extend_sp32): Likewise.
25742 (*and_not_di_sp32): Likewise.
25743 (*or_not_di_sp32): Likewise.
25744 (*xor_not_di_sp32): Likewise.
25745 (*negdi2_sp32): Likewise.
25746 (*one_cmpldi2_sp32): Likewise.
25748 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
25750 * debug.h (struct gcc_debug_hooks): Add a
25751 register_main_translation_unit hook.
25752 * debug.c (do_nothing_debug_hooks): Provide a function for this
25754 * dbxout.c (dbx_debug_hooks): Likewise.
25755 * sdbout.c (sdb_debug_hooks): Likewise.
25756 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25757 * dwarf2out.c (main_translation_unit): New global variable.
25758 (dwarf2out_register_main_translation_unit): New function
25759 implementing the new hook.
25760 (dwarf2_debug_hooks): Assign
25761 dwarf2out_register_main_translation_unit to this new hook.
25762 (dwarf2out_init): Associate any main translation unit to
25765 2015-06-11 Marek Polacek <polacek@redhat.com>
25767 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
25769 2015-06-11 Marek Polacek <polacek@redhat.com>
25771 * match.pd: Use single_use throughout.
25773 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25775 * config/arm/arm.c (arm_option_params_internal): When optimising
25776 for speed set max_insns_skipped when arm_restrict_it.
25778 2015-06-11 Christian Bruel <christian.bruel@st.com>
25781 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
25783 (arm_cpu_builtins): New function.
25784 (arm_pragma_target_parse): Call arm_cpu_builtins.
25785 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
25786 (arm_register_target_pragmas): Likewise.
25787 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
25788 Call arm_register_target_pragmas.
25789 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
25790 (arm_pragma_target_parse): Likewise.
25792 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
25794 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
25795 of the second operand.
25797 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
25800 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
25801 to prepare mask operand for AVX512 modes.
25803 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25806 * doc/md.texi (Machine Constraints): Document that on the PowerPC
25807 if you use a constraint that targets a VSX register, you must use
25808 %x<n> in the template.
25810 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
25812 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
25813 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
25814 (define_insn "trap"): New definition.
25816 2015-06-10 Richard Biener <rguenther@suse.de>
25818 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
25820 (vect_supported_load_permutation_p): ... here. Handle
25821 supportable permutations in reductions.
25822 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
25823 for vectorizing strided group loads.
25825 2015-06-10 Jakub Jelinek <jakub@redhat.com>
25828 * config/i386/i386.c (ix86_split_long_move): For collisions
25829 involving direct tls segment refs, move the UNSPEC_TP possibly
25830 wrapped in ZERO_EXTEND out of the address for lea, to each of
25833 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25835 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
25836 dmb sy. Adjust tabs.
25838 2015-06-10 Tom de Vries <tom@codesourcery.com>
25840 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
25842 2015-06-10 Martin Liska <mliska@suse.cz>
25845 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
25846 all enum values in mem_alloc_origin.
25847 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
25849 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
25850 * bitmap.c (bitmap_register): Likewise.
25851 (dump_bitmap_statistics): Likewise.
25852 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
25853 (ggc_record_overhead): Likewise.
25854 * hash-map.h: Likewise.
25855 * hash-set.h: Likewise.
25856 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
25857 * hash-table.h: Likewise.
25858 * vec.c (vec_prefix::register_overhead): Likewise.
25859 (vec_prefix::release_overhead): Likewise.
25860 (dump_vec_loc_statistics): Likewise.
25862 2015-06-09 Christian Bruel <christian.bruel@st.com>
25865 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
25866 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
25867 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
25868 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
25869 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
25870 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
25871 (arm_valid_target_attribute_p): Likewise.
25872 (arm_set_current_function, arm_can_inline_p): Likewise.
25873 (arm_valid_target_attribute_rec): Likewise.
25874 (arm_previous_fndecl): New variable.
25875 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
25876 (TARGET_CAN_INLINE_P): Define.
25877 (arm_asm_trampoline_template): Emit mode.
25878 (arm_file_start): Don't set unified syntax.
25879 (arm_declare_function_name): Set unified syntax and mode.
25880 (arm_option_override): Init target_option_default_node.
25881 and target_option_current_node.
25882 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
25883 (*call_symbol): Likewise.
25884 * doc/extend.texi: Document ARM/Thumb target attribute.
25885 * doc/invoke.texi: Likewise.
25887 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25890 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25891 PR rtl-optimization/64164
25892 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25893 * tree-ssa-copyrename.c: Removed.
25894 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25895 -ftree-coalesce-vars.
25896 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25897 * common.opt (ftree-copyrename): Ignore.
25898 (ftree-coalesce-inlined-vars): Likewise.
25899 * doc/invoke.texi: Remove the ignored options above.
25900 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25901 * tree-ssa-coalesce.h: ... here.
25902 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25903 headers required by it.
25904 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25905 across variables when flag_tree_coalesce_vars. Check register
25906 use and promoted modes to allow coalescing. Moved to
25907 tree-ssa-coalesce.c.
25908 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25909 with its member functions to tree-ssa-coalesce.c.
25910 (var_map_base_init): Likewise. Renamed to
25911 compute_samebase_partition_bases.
25912 (partition_view_normal): Drop want_bases parameter.
25913 (partition_view_bitmap): Likewise.
25914 * tree-ssa-live.h: Adjust declarations.
25915 * tree-ssa-coalesce.c: Include explow.h.
25916 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25917 default defs at the entry point.
25918 (dump_part_var_map): New.
25919 (compute_optimized_partition_bases): New, called by...
25920 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25921 of compute_samebase_partition_bases. Adjust.
25922 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25923 * cfgexpand.c (leader_merge): New.
25924 (get_rtl_for_parm_ssa_default_def): New.
25925 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25926 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25927 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25928 redundant MEM attr setting.
25929 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25931 (expand_one_stack_var): ... this. New wrapper to check and
25932 skip already expanded SSA partitions.
25933 (record_alignment_for_reg_var): New, factored out of...
25934 (expand_one_var): ... this.
25935 (expand_one_ssa_partition): New.
25936 (adjust_one_expanded_partition_var): New.
25937 (expand_one_register_var): Check and skip already expanded SSA
25939 (expand_used_vars): Don't create DECLs for anonymous SSA
25940 names. Expand all SSA partitions, then adjust all SSA names.
25941 (pass::execute): Replace the loops that set
25942 SA.partition_to_pseudo from partition leaders and cleared
25943 DECL_RTL for multi-location variables, and that which used to
25944 rename vars and set attrs, with one that clears DECL_RTL and
25945 checks that PARMs and RESULTs default_defs match DECL_RTL.
25946 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25947 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25948 * explow.c (promote_ssa_mode): New.
25949 * explow.h (promote_ssa_mode): Declare.
25950 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25951 * function.c: Include cfgexpand.h.
25952 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25953 (use_register_for_parm_decl): Wrapper for the above to
25954 special-case the result_ptr.
25955 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25956 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25957 multiple locations.
25958 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25959 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25960 (assign_parm_setup_block): Prefer SSA-assigned location.
25961 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25962 if stack_parm is NULL.
25963 (assign_parm_setup_stack): Prefer SSA-assigned location.
25964 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25965 rtl before testing for pointer bounds. Special-case result_ptr.
25966 (expand_function_start): Maybe reset DECL_RTL of result.
25967 Prefer SSA-assigned location for result and static chain.
25968 Factor out DECL_RESULT and SET_DECL_RTL.
25969 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25970 anonymous SSA names. Use promote_ssa_mode.
25971 (get_temp_reg): Likewise.
25972 (remove_ssa_form): Adjust.
25973 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25974 and get its reg_usage for reg invalidation.
25975 (compute_bb_dataflow): Pass it insn.
25976 (emit_notes_in_bb): Likewise.
25977 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25978 fail assert on conversion between unsigned types.
25980 2015-06-09 Tom de Vries <tom@codesourcery.com>
25982 PR tree-optimization/65460
25983 * omp-low.c (expand_omp_target): Set parallelized_function on
25984 cgraph_node for child_fn.
25986 2015-06-09 Tom de Vries <tom@codesourcery.com>
25988 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
25989 parallelized_function before add_new_function.
25991 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
25993 * gcc-plugin.h: Move decls to plugin.h and include it.
25994 * plugin.h: Relocate decls from gcc-plugin.h
25995 * ggc-page.c: Include required header files.
25996 * passes.c: Likewise.
25997 * cgraphunit.c: Likewise.
25999 2015-06-09 Tom de Vries <tom@codesourcery.com>
26001 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
26003 2015-06-09 Jason Merrill <jason@redhat.com>
26006 * toplev.c (check_global_declaration): Don't warn about a clone.
26008 2015-06-09 Marek Polacek <polacek@redhat.com>
26010 PR tree-optimization/66299
26011 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
26012 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
26015 2015-06-09 Richard Biener <rguenther@suse.de>
26017 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
26018 (vect_analyze_slp_instance): Instead do not falsely drop
26021 2015-06-09 Richard Biener <rguenther@suse.de>
26023 PR middle-end/66423
26024 * match.pd: Handle A % (unsigned)(1 << B).
26026 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
26028 * varasm.c (output_object_block_htab): Remove.
26029 (output_object_block_compare): New.
26030 (output_object_blocks): Sort named object_blocks before outputting
26033 2015-06-09 Richard Biener <rguenther@suse.de>
26035 PR tree-optimization/66419
26036 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
26037 consider GROUP_GAP when detecting a perfect subchain.
26039 2015-06-09 Nick Clifton <nickc@redhat.com>
26041 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
26042 place read only data in the .frodata section.
26044 2015-06-09 Shiva Chen <shiva0217@gmail.com>
26046 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
26047 (atomic_store<mode>): Likewise.
26049 2015-06-09 Richard Biener <rguenther@suse.de>
26051 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
26053 2015-06-09 Richard Biener <rguenther@suse.de>
26055 PR middle-end/66413
26056 * tree-inline.c (insert_init_debug_bind): Unshare value.
26058 2015-06-09 Richard Biener <rguenther@suse.de>
26060 PR tree-optimization/66396
26061 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
26062 Rename virtual operands.
26064 2015-06-09 Tom de Vries <tom@codesourcery.com>
26066 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
26067 always return false.
26069 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26071 PR rtl-optimization/64164
26072 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26073 * tree-ssa-copyrename.c: Removed.
26074 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26075 -ftree-coalesce-vars.
26076 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26077 * common.opt (ftree-copyrename): Ignore.
26078 (ftree-coalesce-inlined-vars): Likewise.
26079 * doc/invoke.texi: Remove the ignored options above.
26080 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26081 * tree-ssa-coalesce.h: ... here.
26082 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26083 headers required by it.
26084 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26085 across variables when flag_tree_coalesce_vars. Check register
26086 use and promoted modes to allow coalescing. Moved to
26087 tree-ssa-coalesce.c.
26088 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26089 with its member functions to tree-ssa-coalesce.c.
26090 (var_map_base_init): Likewise. Renamed to
26091 compute_samebase_partition_bases.
26092 (partition_view_normal): Drop want_bases parameter.
26093 (partition_view_bitmap): Likewise.
26094 * tree-ssa-live.h: Adjust declarations.
26095 * tree-ssa-coalesce.c: Include explow.h.
26096 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26097 default defs at the entry point.
26098 (dump_part_var_map): New.
26099 (compute_optimized_partition_bases): New, called by...
26100 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26101 of compute_samebase_partition_bases. Adjust.
26102 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26103 * cfgexpand.c (leader_merge): New.
26104 (get_rtl_for_parm_ssa_default_def): New.
26105 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26106 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26107 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26108 redundant MEM attr setting.
26109 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26111 (expand_one_stack_var): ... this. New wrapper to check and
26112 skip already expanded SSA partitions.
26113 (record_alignment_for_reg_var): New, factored out of...
26114 (expand_one_var): ... this.
26115 (expand_one_ssa_partition): New.
26116 (adjust_one_expanded_partition_var): New.
26117 (expand_one_register_var): Check and skip already expanded SSA
26119 (expand_used_vars): Don't create DECLs for anonymous SSA
26120 names. Expand all SSA partitions, then adjust all SSA names.
26121 (pass::execute): Replace the loops that set
26122 SA.partition_to_pseudo from partition leaders and cleared
26123 DECL_RTL for multi-location variables, and that which used to
26124 rename vars and set attrs, with one that clears DECL_RTL and
26125 checks that PARMs and RESULTs default_defs match DECL_RTL.
26126 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26127 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26128 * explow.c (promote_ssa_mode): New.
26129 * explow.h (promote_ssa_mode): Declare.
26130 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26131 * function.c: Include cfgexpand.h.
26132 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26133 (use_register_for_parm_decl): Wrapper for the above to
26134 special-case the result_ptr.
26135 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26136 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26137 multiple locations.
26138 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26139 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26140 (assign_parm_setup_block): Prefer SSA-assigned location.
26141 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26142 if stack_parm is NULL.
26143 (assign_parm_setup_stack): Prefer SSA-assigned location.
26144 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26145 rtl before testing for pointer bounds. Special-case result_ptr.
26146 (expand_function_start): Maybe reset DECL_RTL of result.
26147 Prefer SSA-assigned location for result and static chain.
26148 Factor out DECL_RESULT and SET_DECL_RTL.
26149 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26150 anonymous SSA names. Use promote_ssa_mode.
26151 (get_temp_reg): Likewise.
26152 (remove_ssa_form): Adjust.
26153 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26154 and get its reg_usage for reg invalidation.
26155 (compute_bb_dataflow): Pass it insn.
26156 (emit_notes_in_bb): Likewise.
26157 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26158 fail assert on conversion between unsigned types.
26160 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26163 * tree-inline.c (reset_debug_binding): New.
26164 (reset_debug_bindings): Likewise.
26165 (expand_call_inline): Call it.
26167 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26169 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26172 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26174 * lto-streamer-out.c (lto_output_location): Stream
26175 reserved locations correctly.
26176 * lto-streamer-in.c (lto_output_location): Likewise.
26178 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
26180 * coretypes.h: Include hash-table.h and hash-set.h for host files.
26181 * ggc.h: Don't include statistics.h>
26182 * hash-map.h: Remove all includes.
26183 * hash-set.h: Likewise.
26184 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26185 the include list. Remove <new>.
26186 * inchash.h: Remove all includes.
26187 * mem-stats.h: Likewise.
26188 * vec.h: No special processing for generators or ggc.
26189 * alias.c : Adjust include files.
26190 * alloc-pool.c : Likewise.
26191 * alloc-pool.h : Likewise.
26192 * asan.c : Likewise.
26193 * attribs.c : Likewise.
26194 * auto-inc-dec.c : Likewise.
26195 * auto-profile.c : Likewise.
26196 * bb-reorder.c : Likewise.
26197 * bitmap.c : Likewise.
26198 * bitmap.h : Likewise.
26199 * bt-load.c : Likewise.
26200 * builtins.c : Likewise.
26201 * caller-save.c : Likewise.
26202 * calls.c : Likewise.
26203 * ccmp.c : Likewise.
26204 * cfg.c : Likewise.
26205 * cfganal.c : Likewise.
26206 * cfgbuild.c : Likewise.
26207 * cfgcleanup.c : Likewise.
26208 * cfgexpand.c : Likewise.
26209 * cfghooks.c : Likewise.
26210 * cfgloop.c : Likewise.
26211 * cfgloop.h : Likewise.
26212 * cfgloopanal.c : Likewise.
26213 * cfgloopmanip.c : Likewise.
26214 * cfgrtl.c : Likewise.
26215 * cgraph.c : Likewise.
26216 * cgraphbuild.c : Likewise.
26217 * cgraphclones.c : Likewise.
26218 * cgraphunit.c : Likewise.
26219 * cilk-common.c : Likewise.
26220 * combine-stack-adj.c : Likewise.
26221 * combine.c : Likewise.
26222 * compare-elim.c : Likewise.
26223 * context.c : Likewise.
26224 * convert.c : Likewise.
26225 * coverage.c : Likewise.
26226 * cppbuiltin.c : Likewise.
26227 * cprop.c : Likewise.
26228 * cse.c : Likewise.
26229 * cselib.c : Likewise.
26230 * data-streamer-in.c : Likewise.
26231 * data-streamer-out.c : Likewise.
26232 * data-streamer.c : Likewise.
26233 * data-streamer.h : Likewise.
26234 * dbxout.c : Likewise.
26235 * dce.c : Likewise.
26236 * ddg.c : Likewise.
26237 * debug.c : Likewise.
26238 * df-core.c : Likewise.
26239 * df-problems.c : Likewise.
26240 * df-scan.c : Likewise.
26242 * dfp.c : Likewise.
26243 * dojump.c : Likewise.
26244 * dominance.c : Likewise.
26245 * domwalk.c : Likewise.
26246 * double-int.c : Likewise.
26247 * dse.c : Likewise.
26248 * dumpfile.c : Likewise.
26249 * dwarf2asm.c : Likewise.
26250 * dwarf2cfi.c : Likewise.
26251 * dwarf2out.c : Likewise.
26252 * emit-rtl.c : Likewise.
26253 * et-forest.c : Likewise.
26254 * except.c : Likewise.
26255 * except.h : Likewise.
26256 * explow.c : Likewise.
26257 * expmed.c : Likewise.
26258 * expr.c : Likewise.
26259 * final.c : Likewise.
26260 * fixed-value.c : Likewise.
26261 * fold-const.c : Likewise.
26262 * function.c : Likewise.
26263 * fwprop.c : Likewise.
26264 * gcc-plugin.h : Likewise.
26265 * gcc.c : Likewise.
26266 * gcse-common.c : Likewise.
26267 * gcse.c : Likewise.
26268 * genattrtab.c : Likewise.
26269 * genautomata.c : Likewise.
26270 * genconditions.c : Likewise.
26271 * genemit.c : Likewise.
26272 * generic-match-head.c : Likewise.
26273 * genextract.c : Likewise.
26274 * gengtype-state.c : Likewise.
26275 * gengtype.c : Likewise.
26276 * genhooks.c : Likewise.
26277 * genmatch.c : Likewise.
26278 * genmodes.c : Likewise.
26279 * genrecog.c : Likewise.
26280 * gensupport.c : Likewise.
26281 * ggc-common.c : Likewise.
26282 * ggc-internal.h : Likewise.
26283 * ggc-none.c : Likewise.
26284 * ggc-page.c : Likewise.
26285 * gimple-builder.c : Likewise.
26286 * gimple-expr.c : Likewise.
26287 * gimple-fold.c : Likewise.
26288 * gimple-iterator.c : Likewise.
26289 * gimple-low.c : Likewise.
26290 * gimple-match-head.c : Likewise.
26291 * gimple-pretty-print.c : Likewise.
26292 * gimple-ssa-isolate-paths.c : Likewise.
26293 * gimple-ssa-strength-reduction.c : Likewise.
26294 * gimple-ssa.h : Likewise.
26295 * gimple-streamer-in.c : Likewise.
26296 * gimple-streamer-out.c : Likewise.
26297 * gimple-streamer.h : Likewise.
26298 * gimple-walk.c : Likewise.
26299 * gimple.c : Likewise.
26300 * gimplify-me.c : Likewise.
26301 * gimplify.c : Likewise.
26302 * godump.c : Likewise.
26303 * graph.c : Likewise.
26304 * graphds.c : Likewise.
26305 * graphite-blocking.c : Likewise.
26306 * graphite-dependences.c : Likewise.
26307 * graphite-interchange.c : Likewise.
26308 * graphite-isl-ast-to-gimple.c : Likewise.
26309 * graphite-optimize-isl.c : Likewise.
26310 * graphite-poly.c : Likewise.
26311 * graphite-scop-detection.c : Likewise.
26312 * graphite-sese-to-poly.c : Likewise.
26313 * graphite.c : Likewise.
26314 * haifa-sched.c : Likewise.
26315 * hard-reg-set.h : Likewise.
26316 * hw-doloop.c : Likewise.
26317 * ifcvt.c : Likewise.
26318 * inchash.c : Likewise.
26319 * incpath.c : Likewise.
26320 * init-regs.c : Likewise.
26321 * input.c : Likewise.
26322 * internal-fn.c : Likewise.
26323 * ipa-chkp.c : Likewise.
26324 * ipa-comdats.c : Likewise.
26325 * ipa-cp.c : Likewise.
26326 * ipa-devirt.c : Likewise.
26327 * ipa-icf-gimple.c : Likewise.
26328 * ipa-icf.c : Likewise.
26329 * ipa-inline-analysis.c : Likewise.
26330 * ipa-inline-transform.c : Likewise.
26331 * ipa-inline.c : Likewise.
26332 * ipa-polymorphic-call.c : Likewise.
26333 * ipa-profile.c : Likewise.
26334 * ipa-prop.c : Likewise.
26335 * ipa-pure-const.c : Likewise.
26336 * ipa-ref.c : Likewise.
26337 * ipa-reference.c : Likewise.
26338 * ipa-split.c : Likewise.
26339 * ipa-utils.c : Likewise.
26340 * ipa-visibility.c : Likewise.
26341 * ipa.c : Likewise.
26342 * ira-build.c : Likewise.
26343 * ira-color.c : Likewise.
26344 * ira-conflicts.c : Likewise.
26345 * ira-costs.c : Likewise.
26346 * ira-emit.c : Likewise.
26347 * ira-lives.c : Likewise.
26348 * ira.c : Likewise.
26349 * jump.c : Likewise.
26350 * langhooks.c : Likewise.
26351 * lcm.c : Likewise.
26352 * libfuncs.h : Likewise.
26353 * lists.c : Likewise.
26354 * loop-doloop.c : Likewise.
26355 * loop-init.c : Likewise.
26356 * loop-invariant.c : Likewise.
26357 * loop-iv.c : Likewise.
26358 * loop-unroll.c : Likewise.
26359 * lower-subreg.c : Likewise.
26360 * lra-assigns.c : Likewise.
26361 * lra-coalesce.c : Likewise.
26362 * lra-constraints.c : Likewise.
26363 * lra-eliminations.c : Likewise.
26364 * lra-lives.c : Likewise.
26365 * lra-remat.c : Likewise.
26366 * lra-spills.c : Likewise.
26367 * lra.c : Likewise.
26368 * lto-cgraph.c : Likewise.
26369 * lto-compress.c : Likewise.
26370 * lto-opts.c : Likewise.
26371 * lto-section-in.c : Likewise.
26372 * lto-section-out.c : Likewise.
26373 * lto-streamer-in.c : Likewise.
26374 * lto-streamer-out.c : Likewise.
26375 * lto-streamer.c : Likewise.
26376 * lto-streamer.h : Likewise.
26377 * mcf.c : Likewise.
26378 * mode-switching.c : Likewise.
26379 * modulo-sched.c : Likewise.
26380 * omega.c : Likewise.
26381 * omp-low.c : Likewise.
26382 * optabs.c : Likewise.
26383 * opts-global.c : Likewise.
26384 * opts.h : Likewise.
26385 * passes.c : Likewise.
26386 * plugin.c : Likewise.
26387 * postreload-gcse.c : Likewise.
26388 * postreload.c : Likewise.
26389 * predict.c : Likewise.
26390 * print-rtl.c : Likewise.
26391 * print-tree.c : Likewise.
26392 * profile.c : Likewise.
26393 * read-md.c : Likewise.
26394 * read-md.h : Likewise.
26395 * read-rtl.c : Likewise.
26396 * real.c : Likewise.
26397 * realmpfr.c : Likewise.
26398 * recog.c : Likewise.
26399 * ree.c : Likewise.
26400 * reg-stack.c : Likewise.
26401 * regcprop.c : Likewise.
26402 * reginfo.c : Likewise.
26403 * regrename.c : Likewise.
26404 * regstat.c : Likewise.
26405 * reload.c : Likewise.
26406 * reload1.c : Likewise.
26407 * reorg.c : Likewise.
26408 * resource.c : Likewise.
26409 * rtl-chkp.c : Likewise.
26410 * rtl.c : Likewise.
26411 * rtl.h : Likewise.
26412 * rtlanal.c : Likewise.
26413 * rtlhash.c : Likewise.
26414 * rtlhash.h : Likewise.
26415 * rtlhooks.c : Likewise.
26416 * sanopt.c : Likewise.
26417 * sched-deps.c : Likewise.
26418 * sched-ebb.c : Likewise.
26419 * sched-rgn.c : Likewise.
26420 * sched-vis.c : Likewise.
26421 * sdbout.c : Likewise.
26422 * sel-sched-dump.c : Likewise.
26423 * sel-sched-ir.c : Likewise.
26424 * sel-sched-ir.h : Likewise.
26425 * sel-sched.c : Likewise.
26426 * sese.c : Likewise.
26427 * shrink-wrap.c : Likewise.
26428 * shrink-wrap.h : Likewise.
26429 * simplify-rtx.c : Likewise.
26430 * stack-ptr-mod.c : Likewise.
26431 * statistics.c : Likewise.
26432 * stmt.c : Likewise.
26433 * stor-layout.c : Likewise.
26434 * store-motion.c : Likewise.
26435 * stringpool.c : Likewise.
26436 * symtab.c : Likewise.
26437 * target-globals.c : Likewise.
26438 * targhooks.c : Likewise.
26439 * tlink.c : Likewise.
26440 * toplev.c : Likewise.
26441 * tracer.c : Likewise.
26442 * trans-mem.c : Likewise.
26443 * tree-affine.c : Likewise.
26444 * tree-affine.h : Likewise.
26445 * tree-browser.c : Likewise.
26446 * tree-call-cdce.c : Likewise.
26447 * tree-cfg.c : Likewise.
26448 * tree-cfgcleanup.c : Likewise.
26449 * tree-chkp-opt.c : Likewise.
26450 * tree-chkp.c : Likewise.
26451 * tree-chrec.c : Likewise.
26452 * tree-complex.c : Likewise.
26453 * tree-data-ref.c : Likewise.
26454 * tree-dfa.c : Likewise.
26455 * tree-diagnostic.c : Likewise.
26456 * tree-dump.c : Likewise.
26457 * tree-eh.c : Likewise.
26458 * tree-eh.h : Likewise.
26459 * tree-emutls.c : Likewise.
26460 * tree-hasher.h : Likewise.
26461 * tree-if-conv.c : Likewise.
26462 * tree-inline.c : Likewise.
26463 * tree-inline.h : Likewise.
26464 * tree-into-ssa.c : Likewise.
26465 * tree-iterator.c : Likewise.
26466 * tree-loop-distribution.c : Likewise.
26467 * tree-nested.c : Likewise.
26468 * tree-nrv.c : Likewise.
26469 * tree-object-size.c : Likewise.
26470 * tree-outof-ssa.c : Likewise.
26471 * tree-parloops.c : Likewise.
26472 * tree-phinodes.c : Likewise.
26473 * tree-predcom.c : Likewise.
26474 * tree-pretty-print.c : Likewise.
26475 * tree-profile.c : Likewise.
26476 * tree-scalar-evolution.c : Likewise.
26477 * tree-sra.c : Likewise.
26478 * tree-ssa-address.c : Likewise.
26479 * tree-ssa-alias.c : Likewise.
26480 * tree-ssa-ccp.c : Likewise.
26481 * tree-ssa-coalesce.c : Likewise.
26482 * tree-ssa-copy.c : Likewise.
26483 * tree-ssa-copyrename.c : Likewise.
26484 * tree-ssa-dce.c : Likewise.
26485 * tree-ssa-dom.c : Likewise.
26486 * tree-ssa-dse.c : Likewise.
26487 * tree-ssa-forwprop.c : Likewise.
26488 * tree-ssa-ifcombine.c : Likewise.
26489 * tree-ssa-live.c : Likewise.
26490 * tree-ssa-loop-ch.c : Likewise.
26491 * tree-ssa-loop-im.c : Likewise.
26492 * tree-ssa-loop-ivcanon.c : Likewise.
26493 * tree-ssa-loop-ivopts.c : Likewise.
26494 * tree-ssa-loop-manip.c : Likewise.
26495 * tree-ssa-loop-niter.c : Likewise.
26496 * tree-ssa-loop-prefetch.c : Likewise.
26497 * tree-ssa-loop-unswitch.c : Likewise.
26498 * tree-ssa-loop.c : Likewise.
26499 * tree-ssa-math-opts.c : Likewise.
26500 * tree-ssa-operands.c : Likewise.
26501 * tree-ssa-phiopt.c : Likewise.
26502 * tree-ssa-phiprop.c : Likewise.
26503 * tree-ssa-pre.c : Likewise.
26504 * tree-ssa-propagate.c : Likewise.
26505 * tree-ssa-reassoc.c : Likewise.
26506 * tree-ssa-sccvn.c : Likewise.
26507 * tree-ssa-scopedtables.c : Likewise.
26508 * tree-ssa-sink.c : Likewise.
26509 * tree-ssa-strlen.c : Likewise.
26510 * tree-ssa-structalias.c : Likewise.
26511 * tree-ssa-tail-merge.c : Likewise.
26512 * tree-ssa-ter.c : Likewise.
26513 * tree-ssa-threadedge.c : Likewise.
26514 * tree-ssa-threadupdate.c : Likewise.
26515 * tree-ssa-uncprop.c : Likewise.
26516 * tree-ssa-uninit.c : Likewise.
26517 * tree-ssa.c : Likewise.
26518 * tree-ssanames.c : Likewise.
26519 * tree-stdarg.c : Likewise.
26520 * tree-streamer-in.c : Likewise.
26521 * tree-streamer-out.c : Likewise.
26522 * tree-streamer.c : Likewise.
26523 * tree-streamer.h : Likewise.
26524 * tree-switch-conversion.c : Likewise.
26525 * tree-tailcall.c : Likewise.
26526 * tree-vect-data-refs.c : Likewise.
26527 * tree-vect-generic.c : Likewise.
26528 * tree-vect-loop-manip.c : Likewise.
26529 * tree-vect-loop.c : Likewise.
26530 * tree-vect-patterns.c : Likewise.
26531 * tree-vect-slp.c : Likewise.
26532 * tree-vect-stmts.c : Likewise.
26533 * tree-vectorizer.c : Likewise.
26534 * tree-vectorizer.h : Likewise.
26535 * tree-vrp.c : Likewise.
26536 * tree.c : Likewise.
26537 * tsan.c : Likewise.
26538 * ubsan.c : Likewise.
26539 * valtrack.c : Likewise.
26540 * valtrack.h : Likewise.
26541 * value-prof.c : Likewise.
26542 * var-tracking.c : Likewise.
26543 * varasm.c : Likewise.
26544 * varpool.c : Likewise.
26546 * vmsdbgout.c : Likewise.
26547 * vtable-verify.c : Likewise.
26548 * vtable-verify.h : Likewise.
26549 * web.c : Likewise.
26550 * wide-int.cc : Likewise.
26551 * xcoffout.c : Likewise.
26552 * config/aarch64/aarch64-builtins.c : Likewise.
26553 * config/aarch64/aarch64.c : Likewise.
26554 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
26555 * config/alpha/alpha.c : Likewise.
26556 * config/arc/arc.c : Likewise.
26557 * config/arm/aarch-common.c : Likewise.
26558 * config/arm/arm-builtins.c : Likewise.
26559 * config/arm/arm-c.c : Likewise.
26560 * config/arm/arm.c : Likewise.
26561 * config/avr/avr-c.c : Likewise.
26562 * config/avr/avr-log.c : Likewise.
26563 * config/avr/avr.c : Likewise.
26564 * config/bfin/bfin.c : Likewise.
26565 * config/c6x/c6x.c : Likewise.
26566 * config/cr16/cr16.c : Likewise.
26567 * config/cris/cris.c : Likewise.
26568 * config/darwin-c.c : Likewise.
26569 * config/darwin.c : Likewise.
26570 * config/default-c.c : Likewise.
26571 * config/epiphany/epiphany.c : Likewise.
26572 * config/epiphany/mode-switch-use.c : Likewise.
26573 * config/epiphany/resolve-sw-modes.c : Likewise.
26574 * config/fr30/fr30.c : Likewise.
26575 * config/frv/frv.c : Likewise.
26576 * config/ft32/ft32.c : Likewise.
26577 * config/glibc-c.c : Likewise.
26578 * config/h8300/h8300.c : Likewise.
26579 * config/i386/i386-c.c : Likewise.
26580 * config/i386/i386.c : Likewise.
26581 * config/i386/msformat-c.c : Likewise.
26582 * config/i386/winnt-cxx.c : Likewise.
26583 * config/i386/winnt-stubs.c : Likewise.
26584 * config/i386/winnt.c : Likewise.
26585 * config/ia64/ia64-c.c : Likewise.
26586 * config/ia64/ia64.c : Likewise.
26587 * config/iq2000/iq2000.c : Likewise.
26588 * config/lm32/lm32.c : Likewise.
26589 * config/m32c/m32c-pragma.c : Likewise.
26590 * config/m32c/m32c.c : Likewise.
26591 * config/m32r/m32r.c : Likewise.
26592 * config/m68k/m68k.c : Likewise.
26593 * config/mcore/mcore.c : Likewise.
26594 * config/mep/mep-pragma.c : Likewise.
26595 * config/mep/mep.c : Likewise.
26596 * config/microblaze/microblaze-c.c : Likewise.
26597 * config/microblaze/microblaze.c : Likewise.
26598 * config/mips/mips.c : Likewise.
26599 * config/mmix/mmix.c : Likewise.
26600 * config/mn10300/mn10300.c : Likewise.
26601 * config/moxie/moxie.c : Likewise.
26602 * config/msp430/msp430-c.c : Likewise.
26603 * config/msp430/msp430.c : Likewise.
26604 * config/nds32/nds32-cost.c : Likewise.
26605 * config/nds32/nds32-fp-as-gp.c : Likewise.
26606 * config/nds32/nds32-intrinsic.c : Likewise.
26607 * config/nds32/nds32-isr.c : Likewise.
26608 * config/nds32/nds32-md-auxiliary.c : Likewise.
26609 * config/nds32/nds32-memory-manipulation.c : Likewise.
26610 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
26611 * config/nds32/nds32-predicates.c : Likewise.
26612 * config/nds32/nds32.c : Likewise.
26613 * config/nios2/nios2.c : Likewise.
26614 * config/nvptx/nvptx.c : Likewise.
26615 * config/pa/pa.c : Likewise.
26616 * config/pdp11/pdp11.c : Likewise.
26617 * config/rl78/rl78-c.c : Likewise.
26618 * config/rl78/rl78.c : Likewise.
26619 * config/rs6000/rs6000-c.c : Likewise.
26620 * config/rs6000/rs6000.c : Likewise.
26621 * config/rx/rx.c : Likewise.
26622 * config/s390/s390-c.c : Likewise.
26623 * config/s390/s390.c : Likewise.
26624 * config/sh/sh-c.c : Likewise.
26625 * config/sh/sh-mem.cc : Likewise.
26626 * config/sh/sh.c : Likewise.
26627 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
26628 * config/sh/sh_treg_combine.cc : Likewise.
26629 * config/sol2-c.c : Likewise.
26630 * config/sol2-cxx.c : Likewise.
26631 * config/sol2-stubs.c : Likewise.
26632 * config/sol2.c : Likewise.
26633 * config/sparc/sparc-c.c : Likewise.
26634 * config/sparc/sparc.c : Likewise.
26635 * config/spu/spu-c.c : Likewise.
26636 * config/spu/spu.c : Likewise.
26637 * config/stormy16/stormy16.c : Likewise.
26638 * config/tilegx/mul-tables.c : Likewise.
26639 * config/tilegx/tilegx-c.c : Likewise.
26640 * config/tilegx/tilegx.c : Likewise.
26641 * config/tilepro/mul-tables.c : Likewise.
26642 * config/tilepro/tilepro-c.c : Likewise.
26643 * config/tilepro/tilepro.c : Likewise.
26644 * config/v850/v850-c.c : Likewise.
26645 * config/v850/v850.c : Likewise.
26646 * config/vax/vax.c : Likewise.
26647 * config/visium/visium.c : Likewise.
26648 * config/vms/vms-c.c : Likewise.
26649 * config/vms/vms.c : Likewise.
26650 * config/vxworks.c : Likewise.
26651 * config/winnt-c.c : Likewise.
26652 * config/xtensa/xtensa.c : Likewise.
26654 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26657 * ipa-utils.h (warn_types_mismatch): Update prototype.
26658 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
26660 (type_mismatch_p): New function.
26661 (warn_types_mismatch): Reorg to work better on non-C++ types.
26662 (odr_types_equivalent_p): Add loc1/loc2 parameters.
26663 (add_type_duplicate): Update.
26665 2015-06-08 Tom de Vries <tom@codesourcery.com>
26667 PR rtl-optimization/66444
26668 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
26671 2015-06-08 Richard Biener <rguenther@suse.de>
26673 PR tree-optimization/66422
26674 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
26675 block after inserted gcc_unreachable.
26677 2015-06-08 Nick Clifton <nickc@redhat.com>
26679 * config/rx/rx.c (rx_function_value): Do not promote vector types.
26680 (rx_promote_function_mode): Likewise.
26681 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
26683 2015-06-08 Jakub Jelinek <jakub@redhat.com>
26685 * genattrtab.c (insn_alternatives): Change type from int *
26687 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
26688 (get_attr_value): Change type of num_alt to uint64_t.
26689 (compute_alternative_mask): Change return type from
26690 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
26691 (make_alternative_compare, mk_attr_alt): Change argument type
26692 from int to uint64_t.
26693 (simplify_test_exp): Change type of i from int to uint64_t.
26694 Shift ((uint64_t) 1) instead of 1 up.
26695 (main): Adjust oballocvec first argument from int to uint64_t.
26696 Shift ((uint64_t) 1) instead of 1 up.
26698 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
26701 * gdbhooks.py: Import sys.
26702 (intptr): New function. Replace int(...) by intptr(...).
26704 2015-06-08 Richard Biener <rguenther@suse.de>
26706 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
26707 adjustment for gaps at the end of a SLP load group properly.
26708 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
26709 all permutations we can generate.
26710 (vect_transform_slp_perm_load): Use the correct group-size.
26712 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
26714 * genmatch.c (expr::gen_transform): For conditions, guess the type
26715 from the second operand.
26717 2015-06-08 Tom de Vries <tom@codesourcery.com>
26719 PR tree-optimization/66442
26720 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
26721 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
26722 if the loop latch is not a singleton. Use
26723 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
26725 2015-06-08 Marek Polacek <polacek@redhat.com>
26728 * toplev.c (check_global_declaration): Don't warn about artificial
26731 2015-06-08 Tom de Vries <tom@codesourcery.com>
26733 PR tree-optimization/66436
26734 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
26736 * gimplify.c: Add tree-dump.h include.
26737 (gimplify_function_tree): Dump function to gimple dump file.
26738 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
26741 2015-06-08 Tom de Vries <tom@codesourcery.com>
26743 PR tree-optimization/66435
26744 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
26747 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
26749 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
26750 of ptr_type_node to not be ptr_to_node.
26751 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
26752 TREE_TYPE of pointers.
26753 * gimple-expr.c (useless_type_conversion): Reorder the check for
26754 function pointers and TYPE_CANONICAL.
26756 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
26759 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
26760 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
26761 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
26763 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
26764 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
26765 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
26766 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
26767 and non iso if unix2003.
26769 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
26771 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
26773 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
26775 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
26776 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
26777 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
26778 except.c, final.c, function.c, gcse-common.c, genemit.c,
26779 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
26780 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
26781 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
26782 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
26785 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
26787 * combine.c (combine_split_insns): Remove cast.
26788 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
26789 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
26790 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
26791 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
26792 * genemit.c (gen_split): Change return type of generated functions to
26794 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
26795 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
26796 gen_peephole2_* functions.
26797 (print_subroutine, main): Likewise.
26798 * recog.c (peephole2_optimize): Remove cast.
26799 (peep2_next_insn): Promote return type to rtx_insn.
26800 * recog.h (peep2_next_insn): Fix prototype.
26801 * rtl.h (try_split, split_insns): Likewise.
26803 2015-06-06 DJ Delorie <dj@redhat.com>
26805 * config/msp430/msp430.c (msp430_asm_integer): Support addition
26806 and subtraction too.
26808 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
26811 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
26812 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
26813 instead of Snd. Disparage Sid/z alternative with '^'.
26815 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
26817 * dwarf2out.c: Remove deferred_locations*.
26818 (dwarf2_debug_hooks): Add early_finish hook.
26819 Remove global_decl hook.
26820 Add early_global_decl and late_global_decl hook.
26821 New global early_dwarf.
26822 New structure set_early_dwarf.
26823 (output_die): Indicate whether a DIE was generated early
26824 when generating assembly with -dA.
26825 (struct limbo_die_struct): Document created_for field.
26826 Remove file_table_last_lookup.
26827 (remove_AT): Return TRUE if successful.
26828 (remove_child_TAG): Clear die_parent.
26829 (reparent_child): New function abstracted from...
26830 (splice_child_die): ...here.
26831 (new_die): ICE if a DIE ends up in limbo too late.
26833 (defer_location): Remove.
26834 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
26835 (fill_variable_array_bounds): New.
26836 (decl_start_label): Call fill_variable_array_bounds.
26837 (gen_formal_parameter_die): Rewrite to reuse previously generated
26839 (gen_subprogram_die): Same.
26840 (gen_variable_die): Same.
26841 (gen_const_die): Same.
26842 (gen_label_die): Same.
26843 (gen_lexical_block_die): Same.
26844 (decl_will_get_specification_p): New.
26845 (local_function_static): New.
26846 (gen_struct_or_union_type_die): Fill in variable-length fields.
26847 (gen_typedef_die): Fill in variable-length typedefs.
26848 (gen_tagged_type_die): Gracefully return on error_mark_node.
26849 Handle re-entrancy.
26850 (gen_type_die_with_usage): Handle variable-length types.
26851 Remove duplicate code for ARRAY_TYPE case.
26852 (process_scope_var): Only process imported modules during early
26854 (dwarf2out_early_global_decl): New.
26855 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
26856 (dwarf2out_type_decl): Set early_dwarf while calling
26858 (dwarf2out_decl): Verify that we did not recreate a previously
26860 Do not return on DECL_EXTERNALs in VAR_DECLs.
26861 Abstract some code to local_function_static.
26862 (lookup_filename): Remove use of file_table_last_lookup.
26863 Gracefully exit on missing file_name.
26864 (dwarf2out_finish): Verify limbo list.
26865 Remove deferred_locations_list use.
26866 Move deferred_asm_name and limbo flushing to...
26867 (dwarf2out_early_finish): ...here. New.
26868 (dwarf2out_c_finalize): Remove set of deferred_location_list,
26869 deferred_asm_name, and file_table_last_lookup.
26870 * cgraph.h (referred_to_p): Add default argument.
26871 * cgraphunit.c (referred_to_p): Add and handle include_self
26873 (analyze_functions): Add first_time argument.
26874 Call check_global_declaration for all symbols.
26875 Call late_global_decl for nodes for moribund nodes.
26876 (finalize_compilation_unit): Add new argument to
26878 Call early_global_decl for functions.
26879 Call early_finish debug hook.
26880 * dbxout.c (dbxout_early_global_decl): New.
26881 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
26882 (dbx_debug_hooks): Add new hooks.
26883 (xcoff_debug_hooks): Same.
26884 * debug.c (do_nothing_debug_hooks): Add early_finish field.
26885 Add early and late debug hooks.
26886 Remove global_decl hook.
26887 * debug.h (struct gcc_debug_hooks): Add early_finish,
26888 early_global_decl, and late_global_decl fields.
26889 Remove global_decl field.
26890 Document gcc_debug_hooks.
26891 * gengtype.c (output_typename): Remove.
26892 * godump.c (go_early_global_decl): New.
26893 (go_late_global_decl): New.
26894 (go_global_decl): Remove.
26895 (dump_go_spec_init): Remove global_decl. Add
26896 {early,late}_global_decl.
26897 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
26898 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
26899 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
26900 (write_global_declarations): Remove.
26901 (global_decl_processing): New.
26902 * langhooks.h (struct lang_hooks_for_decls): Remove
26903 final_write_globals field.
26904 Add post_compilation_parsing_cleanups field.
26905 * passes.c (rest_of_decl_compilation): Call early_global_decl.
26906 * sdbout.c: Add early and late_global_decl hooks. Remove
26907 sdbout_global_decl hook.
26908 Add early_finish field for sdb_debug_hooks.
26909 (sdbout_global_decl): Remove.
26910 (sdbout_early_global_decl): New.
26911 (sdbout_late_global_decl): New.
26912 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
26913 * toplev.c (check_global_declaration): Rename from
26914 check_global_declaration_1.
26915 Adapt to use symtab infrastructure.
26916 (check_global_declarations): Remove.
26917 (emit_debug_global_declarations): Remove.
26918 (compile_file): Remove call to final_write_globals langhook.
26919 Run the actual compilation process.
26920 Perform any post compilation parser cleanups.
26921 Generate late debug info.
26922 * toplev.h (check_global_declaration): New.
26923 (check_global_declaration_1): Remove.
26924 (check_global_declarations): Remove.
26925 (write_global_declarations): Remove.
26926 (emit_debug_global_declarations): Remove.
26927 (global_decl_processing): New.
26928 * tree-core.h (struct tree_block): Add DIE field.
26929 * tree.h (BLOCK_DIE): New.
26930 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
26932 (vmsdbgout_early_global_decl): New.
26933 (vmsdbgout_late_global_decl): New.
26934 Add early_finish debug hook field to vmsdbg_debug_hooks.
26935 Remove vmsdbgout_decl to vmsdbgout_function_decl.
26936 Add early and late_global_decl debug hooks.
26938 2015-06-05 Julian Brown <julian@codesourcery.com>
26939 Sandra Loosemore <sandra@codesourcery.com>
26941 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
26942 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
26943 to print-sysroot-suffix.sh script.
26945 2015-06-05 Tom de Vries <tom@codesourcery.com>
26947 merge from gomp4 branch:
26948 2015-05-28 Tom de Vries <tom@codesourcery.com>
26950 PR tree-optimization/65443
26951 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
26952 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
26953 (try_transform_to_exit_first_loop_alt): New function.
26954 (transform_to_exit_first_loop): Use
26955 try_transform_to_exit_first_loop_alt.
26957 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
26959 * builtins.c (expand_builtin_atomic_compare_exchange): Call
26960 emit_cmp_and_jump_insns with the mode of target.
26962 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26964 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
26966 2015-06-04 DJ Delorie <dj@redhat.com>
26968 * config/msp430/msp430.md (movsi_s): New. Special case for
26969 storing a 20-bit symbol into a 32-bit register.
26970 * config/msp430/msp430.c (msp430_subreg): Add support for it.
26971 * config/msp430/predicates.md (msp430_symbol_operand): New.
26973 2015-06-04 Sriraman Tallam <tmsriram@google.com>
26975 * calls.c (prepare_call_address): Check for noplt
26977 * config/i386/i386.c (ix86_expand_call): Check
26978 for noplt attribute.
26979 (ix86_nopic_noplt_attribute_p): New function.
26980 (ix86_output_call_insn): Output indirect call for non-pic
26982 * doc/extend.texi (noplt): Document new attribute.
26983 * doc/invoke.texi: Document new attribute.
26985 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
26987 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
26988 real.h, and fixed-value.h when included in host source files.
26989 * double-int.h: Remove redundant #includes listed above.
26990 * fixed-value.h: Likewise.
26991 * real.h: Likewise.
26992 * wide-int.h: Likewise.
26993 * inchash.h: Likewise.
26994 * rtl.h: Add some include files When included from a generator file.
26995 * target.h: Remove wide-int.h and insn-modes.h from the include list.
26996 * internal-fn.h: Don't include coretypes.h.
26997 * alias.c: Adjust includes for restructured coretypes.h.
26998 * asan.c: Likewise.
26999 * attribs.c: Likewise.
27000 * auto-inc-dec.c: Likewise.
27001 * auto-profile.c: Likewise.
27002 * bb-reorder.c: Likewise.
27003 * bt-load.c: Likewise.
27004 * builtins.c: Likewise.
27005 * caller-save.c: Likewise.
27006 * calls.c: Likewise.
27007 * ccmp.c: Likewise.
27009 * cfganal.c: Likewise.
27010 * cfgbuild.c: Likewise.
27011 * cfgcleanup.c: Likewise.
27012 * cfgexpand.c: Likewise.
27013 * cfghooks.c: Likewise.
27014 * cfgloop.c: Likewise.
27015 * cfgloop.h: Likewise.
27016 * cfgloopanal.c: Likewise.
27017 * cfgloopmanip.c: Likewise.
27018 * cfgrtl.c: Likewise.
27019 * cgraph.c: Likewise.
27020 * cgraphbuild.c: Likewise.
27021 * cgraphclones.c: Likewise.
27022 * cgraphunit.c: Likewise.
27023 * cilk-common.c: Likewise.
27024 * combine-stack-adj.c: Likewise.
27025 * combine.c: Likewise.
27026 * compare-elim.c: Likewise.
27027 * convert.c: Likewise.
27028 * coverage.c: Likewise.
27029 * cppbuiltin.c: Likewise.
27030 * cprop.c: Likewise.
27032 * cselib.c: Likewise.
27033 * data-streamer-in.c: Likewise.
27034 * data-streamer-out.c: Likewise.
27035 * data-streamer.c: Likewise.
27036 * dbxout.c: Likewise.
27039 * debug.c: Likewise.
27040 * df-core.c: Likewise.
27041 * df-problems.c: Likewise.
27042 * df-scan.c: Likewise.
27045 * dojump.c: Likewise.
27046 * dominance.c: Likewise.
27047 * domwalk.c: Likewise.
27048 * double-int.c: Likewise.
27050 * dumpfile.c: Likewise.
27051 * dwarf2asm.c: Likewise.
27052 * dwarf2cfi.c: Likewise.
27053 * dwarf2out.c: Likewise.
27054 * dwarf2out.h: Likewise.
27055 * emit-rtl.c: Likewise.
27056 * et-forest.c: Likewise.
27057 * except.c: Likewise.
27058 * explow.c: Likewise.
27059 * expmed.c: Likewise.
27060 * expr.c: Likewise.
27061 * final.c: Likewise.
27062 * fixed-value.c: Likewise.
27063 * fold-const.c: Likewise.
27064 * function.c: Likewise.
27065 * fwprop.c: Likewise.
27066 * gcc-plugin.h: Likewise.
27067 * gcse.c: Likewise.
27068 * generic-match-head.c: Likewise.
27069 * ggc-page.c: Likewise.
27070 * gimple-builder.c: Likewise.
27071 * gimple-expr.c: Likewise.
27072 * gimple-fold.c: Likewise.
27073 * gimple-iterator.c: Likewise.
27074 * gimple-low.c: Likewise.
27075 * gimple-match-head.c: Likewise.
27076 * gimple-pretty-print.c: Likewise.
27077 * gimple-ssa-isolate-paths.c: Likewise.
27078 * gimple-ssa-strength-reduction.c: Likewise.
27079 * gimple-streamer-in.c: Likewise.
27080 * gimple-streamer-out.c: Likewise.
27081 * gimple-streamer.h: Likewise.
27082 * gimple-walk.c: Likewise.
27083 * gimple.c: Likewise.
27084 * gimplify-me.c: Likewise.
27085 * gimplify.c: Likewise.
27086 * godump.c: Likewise.
27087 * graph.c: Likewise.
27088 * graphite-blocking.c: Likewise.
27089 * graphite-dependences.c: Likewise.
27090 * graphite-interchange.c: Likewise.
27091 * graphite-isl-ast-to-gimple.c: Likewise.
27092 * graphite-optimize-isl.c: Likewise.
27093 * graphite-poly.c: Likewise.
27094 * graphite-scop-detection.c: Likewise.
27095 * graphite-sese-to-poly.c: Likewise.
27096 * graphite.c: Likewise.
27097 * haifa-sched.c: Likewise.
27098 * hooks.h: Likewise.
27099 * hw-doloop.c: Likewise.
27100 * ifcvt.c: Likewise.
27101 * incpath.c: Likewise.
27102 * init-regs.c: Likewise.
27103 * internal-fn.c: Likewise.
27104 * ipa-chkp.c: Likewise.
27105 * ipa-comdats.c: Likewise.
27106 * ipa-cp.c: Likewise.
27107 * ipa-devirt.c: Likewise.
27108 * ipa-icf-gimple.c: Likewise.
27109 * ipa-icf.c: Likewise.
27110 * ipa-inline-analysis.c: Likewise.
27111 * ipa-inline-transform.c: Likewise.
27112 * ipa-inline.c: Likewise.
27113 * ipa-polymorphic-call.c: Likewise.
27114 * ipa-profile.c: Likewise.
27115 * ipa-prop.c: Likewise.
27116 * ipa-pure-const.c: Likewise.
27117 * ipa-ref.c: Likewise.
27118 * ipa-reference.c: Likewise.
27119 * ipa-split.c: Likewise.
27120 * ipa-utils.c: Likewise.
27121 * ipa-visibility.c: Likewise.
27123 * ira-build.c: Likewise.
27124 * ira-color.c: Likewise.
27125 * ira-conflicts.c: Likewise.
27126 * ira-costs.c: Likewise.
27127 * ira-emit.c: Likewise.
27128 * ira-lives.c: Likewise.
27130 * jump.c: Likewise.
27131 * langhooks.c: Likewise.
27133 * loop-doloop.c: Likewise.
27134 * loop-init.c: Likewise.
27135 * loop-invariant.c: Likewise.
27136 * loop-iv.c: Likewise.
27137 * loop-unroll.c: Likewise.
27138 * lower-subreg.c: Likewise.
27139 * lra-assigns.c: Likewise.
27140 * lra-coalesce.c: Likewise.
27141 * lra-constraints.c: Likewise.
27142 * lra-eliminations.c: Likewise.
27143 * lra-lives.c: Likewise.
27144 * lra-remat.c: Likewise.
27145 * lra-spills.c: Likewise.
27147 * lto-cgraph.c: Likewise.
27148 * lto-compress.c: Likewise.
27149 * lto-opts.c: Likewise.
27150 * lto-section-in.c: Likewise.
27151 * lto-section-out.c: Likewise.
27152 * lto-streamer-in.c: Likewise.
27153 * lto-streamer-out.c: Likewise.
27154 * lto-streamer.c: Likewise.
27156 * mode-switching.c: Likewise.
27157 * modulo-sched.c: Likewise.
27158 * omega.c: Likewise.
27159 * omp-low.c: Likewise.
27160 * optabs.c: Likewise.
27161 * opts-global.c: Likewise.
27162 * passes.c: Likewise.
27163 * plugin.c: Likewise.
27164 * postreload-gcse.c: Likewise.
27165 * postreload.c: Likewise.
27166 * predict.c: Likewise.
27167 * print-rtl.c: Likewise.
27168 * print-tree.c: Likewise.
27169 * profile.c: Likewise.
27170 * real.c: Likewise.
27171 * realmpfr.c: Likewise.
27172 * realmpfr.h: Likewise.
27173 * recog.c: Likewise.
27175 * reg-stack.c: Likewise.
27176 * regcprop.c: Likewise.
27177 * reginfo.c: Likewise.
27178 * regrename.c: Likewise.
27179 * regs.h: Likewise.
27180 * regstat.c: Likewise.
27181 * reload.c: Likewise.
27182 * reload1.c: Likewise.
27183 * reorg.c: Likewise.
27184 * resource.c: Likewise.
27185 * rtl-chkp.c: Likewise.
27186 * rtlanal.c: Likewise.
27187 * rtlhooks.c: Likewise.
27188 * sanopt.c: Likewise.
27189 * sched-deps.c: Likewise.
27190 * sched-ebb.c: Likewise.
27191 * sched-rgn.c: Likewise.
27192 * sched-vis.c: Likewise.
27193 * sdbout.c: Likewise.
27194 * sel-sched-dump.c: Likewise.
27195 * sel-sched-ir.c: Likewise.
27196 * sel-sched.c: Likewise.
27197 * sese.c: Likewise.
27198 * shrink-wrap.c: Likewise.
27199 * shrink-wrap.h: Likewise.
27200 * simplify-rtx.c: Likewise.
27201 * stack-ptr-mod.c: Likewise.
27202 * statistics.c: Likewise.
27203 * stmt.c: Likewise.
27204 * stor-layout.c: Likewise.
27205 * store-motion.c: Likewise.
27206 * stringpool.c: Likewise.
27207 * symtab.c: Likewise.
27208 * target-globals.c: Likewise.
27209 * targhooks.c: Likewise.
27210 * toplev.c: Likewise.
27211 * tracer.c: Likewise.
27212 * trans-mem.c: Likewise.
27213 * tree-affine.c: Likewise.
27214 * tree-affine.h: Likewise.
27215 * tree-browser.c: Likewise.
27216 * tree-call-cdce.c: Likewise.
27217 * tree-cfg.c: Likewise.
27218 * tree-cfgcleanup.c: Likewise.
27219 * tree-chkp-opt.c: Likewise.
27220 * tree-chkp.c: Likewise.
27221 * tree-chrec.c: Likewise.
27222 * tree-complex.c: Likewise.
27223 * tree-data-ref.c: Likewise.
27224 * tree-dfa.c: Likewise.
27225 * tree-diagnostic.c: Likewise.
27226 * tree-dump.c: Likewise.
27227 * tree-eh.c: Likewise.
27228 * tree-emutls.c: Likewise.
27229 * tree-if-conv.c: Likewise.
27230 * tree-inline.c: Likewise.
27231 * tree-into-ssa.c: Likewise.
27232 * tree-iterator.c: Likewise.
27233 * tree-loop-distribution.c: Likewise.
27234 * tree-nested.c: Likewise.
27235 * tree-nrv.c: Likewise.
27236 * tree-object-size.c: Likewise.
27237 * tree-outof-ssa.c: Likewise.
27238 * tree-parloops.c: Likewise.
27239 * tree-phinodes.c: Likewise.
27240 * tree-predcom.c: Likewise.
27241 * tree-pretty-print.c: Likewise.
27242 * tree-pretty-print.h: Likewise.
27243 * tree-profile.c: Likewise.
27244 * tree-scalar-evolution.c: Likewise.
27245 * tree-sra.c: Likewise.
27246 * tree-ssa-address.c: Likewise.
27247 * tree-ssa-alias.c: Likewise.
27248 * tree-ssa-ccp.c: Likewise.
27249 * tree-ssa-coalesce.c: Likewise.
27250 * tree-ssa-copy.c: Likewise.
27251 * tree-ssa-copyrename.c: Likewise.
27252 * tree-ssa-dce.c: Likewise.
27253 * tree-ssa-dom.c: Likewise.
27254 * tree-ssa-dse.c: Likewise.
27255 * tree-ssa-forwprop.c: Likewise.
27256 * tree-ssa-ifcombine.c: Likewise.
27257 * tree-ssa-live.c: Likewise.
27258 * tree-ssa-loop-ch.c: Likewise.
27259 * tree-ssa-loop-im.c: Likewise.
27260 * tree-ssa-loop-ivcanon.c: Likewise.
27261 * tree-ssa-loop-ivopts.c: Likewise.
27262 * tree-ssa-loop-manip.c: Likewise.
27263 * tree-ssa-loop-niter.c: Likewise.
27264 * tree-ssa-loop-prefetch.c: Likewise.
27265 * tree-ssa-loop-unswitch.c: Likewise.
27266 * tree-ssa-loop.c: Likewise.
27267 * tree-ssa-loop.h: Likewise.
27268 * tree-ssa-math-opts.c: Likewise.
27269 * tree-ssa-operands.c: Likewise.
27270 * tree-ssa-phiopt.c: Likewise.
27271 * tree-ssa-phiprop.c: Likewise.
27272 * tree-ssa-pre.c: Likewise.
27273 * tree-ssa-propagate.c: Likewise.
27274 * tree-ssa-reassoc.c: Likewise.
27275 * tree-ssa-sccvn.c: Likewise.
27276 * tree-ssa-scopedtables.c: Likewise.
27277 * tree-ssa-sink.c: Likewise.
27278 * tree-ssa-strlen.c: Likewise.
27279 * tree-ssa-structalias.c: Likewise.
27280 * tree-ssa-tail-merge.c: Likewise.
27281 * tree-ssa-ter.c: Likewise.
27282 * tree-ssa-threadedge.c: Likewise.
27283 * tree-ssa-threadupdate.c: Likewise.
27284 * tree-ssa-uncprop.c: Likewise.
27285 * tree-ssa-uninit.c: Likewise.
27286 * tree-ssa.c: Likewise.
27287 * tree-ssanames.c: Likewise.
27288 * tree-stdarg.c: Likewise.
27289 * tree-streamer-in.c: Likewise.
27290 * tree-streamer-out.c: Likewise.
27291 * tree-streamer.c: Likewise.
27292 * tree-switch-conversion.c: Likewise.
27293 * tree-tailcall.c: Likewise.
27294 * tree-vect-data-refs.c: Likewise.
27295 * tree-vect-generic.c: Likewise.
27296 * tree-vect-loop-manip.c: Likewise.
27297 * tree-vect-loop.c: Likewise.
27298 * tree-vect-patterns.c: Likewise.
27299 * tree-vect-slp.c: Likewise.
27300 * tree-vect-stmts.c: Likewise.
27301 * tree-vectorizer.c: Likewise.
27302 * tree-vrp.c: Likewise.
27303 * tree.c: Likewise.
27304 * tsan.c: Likewise.
27305 * ubsan.c: Likewise.
27306 * valtrack.c: Likewise.
27307 * value-prof.c: Likewise.
27308 * var-tracking.c: Likewise.
27309 * varasm.c: Likewise.
27310 * varpool.c: Likewise.
27311 * vmsdbgout.c: Likewise.
27312 * vtable-verify.c: Likewise.
27314 * wide-int-print.cc: Likewise.
27315 * wide-int-print.h: Likewise.
27316 * wide-int.cc: Likewise.
27317 * xcoffout.c: Likewise.
27318 * config/aarch64/aarch64-builtins.c: Likewise.
27319 * config/aarch64/aarch64.c: Likewise.
27320 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27321 * config/alpha/alpha.c: Likewise.
27322 * config/arc/arc.c: Likewise.
27323 * config/arm/aarch-common.c: Likewise.
27324 * config/arm/arm-builtins.c: Likewise.
27325 * config/arm/arm-c.c: Likewise.
27326 * config/arm/arm.c: Likewise.
27327 * config/avr/avr-c.c: Likewise.
27328 * config/avr/avr-log.c: Likewise.
27329 * config/avr/avr.c: Likewise.
27330 * config/bfin/bfin.c: Likewise.
27331 * config/c6x/c6x.c: Likewise.
27332 * config/cr16/cr16.c: Likewise.
27333 * config/cris/cris.c: Likewise.
27334 * config/darwin-c.c: Likewise.
27335 * config/darwin.c: Likewise.
27336 * config/default-c.c: Likewise.
27337 * config/epiphany/epiphany.c: Likewise.
27338 * config/epiphany/mode-switch-use.c: Likewise.
27339 * config/epiphany/resolve-sw-modes.c: Likewise.
27340 * config/fr30/fr30.c: Likewise.
27341 * config/frv/frv.c: Likewise.
27342 * config/ft32/ft32.c: Likewise.
27343 * config/glibc-c.c: Likewise.
27344 * config/h8300/h8300.c: Likewise.
27345 * config/i386/i386-c.c: Likewise.
27346 * config/i386/i386.c: Likewise.
27347 * config/i386/msformat-c.c: Likewise.
27348 * config/i386/winnt-cxx.c: Likewise.
27349 * config/i386/winnt-stubs.c: Likewise.
27350 * config/i386/winnt.c: Likewise.
27351 * config/ia64/ia64-c.c: Likewise.
27352 * config/ia64/ia64.c: Likewise.
27353 * config/iq2000/iq2000.c: Likewise.
27354 * config/lm32/lm32.c: Likewise.
27355 * config/m32c/m32c-pragma.c: Likewise.
27356 * config/m32c/m32c.c: Likewise.
27357 * config/m32r/m32r.c: Likewise.
27358 * config/m68k/m68k.c: Likewise.
27359 * config/mcore/mcore.c: Likewise.
27360 * config/mep/mep-pragma.c: Likewise.
27361 * config/mep/mep.c: Likewise.
27362 * config/microblaze/microblaze-c.c: Likewise.
27363 * config/microblaze/microblaze.c: Likewise.
27364 * config/mips/mips.c: Likewise.
27365 * config/mmix/mmix.c: Likewise.
27366 * config/mn10300/mn10300.c: Likewise.
27367 * config/moxie/moxie.c: Likewise.
27368 * config/msp430/msp430-c.c: Likewise.
27369 * config/msp430/msp430.c: Likewise.
27370 * config/nds32/nds32-cost.c: Likewise.
27371 * config/nds32/nds32-fp-as-gp.c: Likewise.
27372 * config/nds32/nds32-intrinsic.c: Likewise.
27373 * config/nds32/nds32-isr.c: Likewise.
27374 * config/nds32/nds32-md-auxiliary.c: Likewise.
27375 * config/nds32/nds32-memory-manipulation.c: Likewise.
27376 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27377 * config/nds32/nds32-predicates.c: Likewise.
27378 * config/nds32/nds32.c: Likewise.
27379 * config/nios2/nios2.c: Likewise.
27380 * config/nvptx/nvptx.c: Likewise.
27381 * config/pa/pa.c: Likewise.
27382 * config/pdp11/pdp11.c: Likewise.
27383 * config/rl78/rl78-c.c: Likewise.
27384 * config/rl78/rl78.c: Likewise.
27385 * config/rs6000/rs6000-c.c: Likewise.
27386 * config/rs6000/rs6000.c: Likewise.
27387 * config/rx/rx.c: Likewise.
27388 * config/s390/s390-c.c: Likewise.
27389 * config/s390/s390.c: Likewise.
27390 * config/sh/sh-c.c: Likewise.
27391 * config/sh/sh-mem.cc: Likewise.
27392 * config/sh/sh.c: Likewise.
27393 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27394 * config/sh/sh_treg_combine.cc: Likewise.
27395 * config/sol2-c.c: Likewise.
27396 * config/sol2-cxx.c: Likewise.
27397 * config/sol2-stubs.c: Likewise.
27398 * config/sol2.c: Likewise.
27399 * config/sparc/sparc-c.c: Likewise.
27400 * config/sparc/sparc.c: Likewise.
27401 * config/spu/spu-c.c: Likewise.
27402 * config/spu/spu.c: Likewise.
27403 * config/stormy16/stormy16.c: Likewise.
27404 * config/tilegx/mul-tables.c: Likewise.
27405 * config/tilegx/tilegx-c.c: Likewise.
27406 * config/tilegx/tilegx.c: Likewise.
27407 * config/tilepro/mul-tables.c: Likewise.
27408 * config/tilepro/tilepro-c.c: Likewise.
27409 * config/tilepro/tilepro.c: Likewise.
27410 * config/v850/v850-c.c: Likewise.
27411 * config/v850/v850.c: Likewise.
27412 * config/vax/vax.c: Likewise.
27413 * config/visium/visium.c: Likewise.
27414 * config/vms/vms-c.c: Likewise.
27415 * config/vms/vms.c: Likewise.
27416 * config/vxworks.c: Likewise.
27417 * config/winnt-c.c: Likewise.
27418 * config/xtensa/xtensa.c: Likewise.
27419 * common/config/bfin/bfin-common.c: Likewise.
27421 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
27423 * tree.h (tree_code_for_canonical_type_merging): New function.
27424 * tree.c (gimple_canonical_types_compatible_p): Use
27425 tree_code_for_canonical_type_merging..
27427 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27431 * doc/tm.texi: Regenerate.
27432 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27433 * target.def (TARGET_RELAXED_ORDERING): Likewise.
27434 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27435 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27436 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27437 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27438 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27439 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27440 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27442 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27444 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27445 register fma steering pass.
27446 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27447 AARCH64_TUNE_FMA_STEERING.
27449 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
27451 * tree.c (verify_type_variant): Verify that type and variant is
27453 (gimple_canonical_types_compatible_p): Look for main variants.
27455 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27457 * config.gcc (powerpc*-*-*): Add support for a new configure
27458 option --with-advance-toolchain=<xxx> which overrides using the
27459 default header files, libraries and dynamic linker.
27461 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27462 specs to support the configure --with-advance-toolchain=<xxx>
27464 (INCLUDE_EXTRA_SPEC): Likewise.
27465 (LINK_OS_EXTRA_SPEC32): Likewise.
27466 (LINK_OK_EXTRA_SPEC64): Likewise.
27467 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27468 (DYNAMIC_LINKER_PREFIX): Likewise.
27469 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27471 (GLIBC_DYNAMIC_LINKER32): Likewise.
27472 (GLIBC_DYNAMIC_LINKER64): Likewise.
27473 (LINK_OS_LINUX_SPEC32): Likewise.
27474 (LINK_OS_LINUX_SPEC64): Likewise.
27476 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27477 configuration option.
27479 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
27482 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27483 to determine current function ABI.
27484 (ix86_function_value_regno_p): Ditto.
27486 2015-06-03 Martin Liska <mliska@suse.cz>
27488 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27489 * bitmap.h (struct bitmap_usage): Likewise.
27490 * ggc-common.c (struct ggc_usage): Likewise.
27491 * mem-stats.h (struct mem_location): Likewise.
27492 (struct mem_usage): Likewise.
27493 * vec.c (struct vec_usage): Likewise.
27495 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
27497 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27500 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
27502 * doc/plugins.texi (enum plugin_event): New event.
27503 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27504 and PLUGIN_FINISH_FUNCTION.
27505 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27506 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27508 2015-06-03 Richard Biener <rguenther@suse.de>
27510 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27511 compute GROUP_GAP for the first element.
27512 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27515 2015-06-03 Nick Clifton <nickc@redhat.com>
27517 * config/rl78/rl78-real.md: Add peepholes to avoid a register
27518 copy when calling a function.
27519 * config/rl78/rl78.c (need_to_save): Do not push the frame
27520 pointer in an interrupt handler prologue if it is never used.
27522 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27524 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27526 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27528 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27529 reference when cloning alias node.
27531 2015-06-03 Martin Liska <mliska@suse.cz>
27533 * alloc-pool.h (struct pool_usage): Correct space padding.
27534 * ggc-page.c (ggc_print_statistics): Align columns in a report.
27535 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
27536 * tree.c (dump_tree_statistics): Align columns in a report.
27538 2015-06-03 Martin Liska <mliska@suse.cz>
27540 * alloc-pool.c (allocate_pool_descriptor): Remove.
27541 (struct pool_output_info): Likewise.
27542 (print_alloc_pool_statistics): Likewise.
27543 (dump_alloc_pool_statistics): Likewise.
27544 * alloc-pool.h (struct pool_usage): New struct.
27545 (pool_allocator::initialize): Change usage of memory statistics
27546 to a new interface.
27547 (pool_allocator::release): Likewise.
27548 (pool_allocator::allocate): Likewise.
27549 (pool_allocator::remove): Likewise.
27550 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
27551 for a pool allocator.
27552 * mem-stats.h (struct mem_location): Add new ctor.
27553 (struct mem_usage): Add counter for number of
27555 (mem_alloc_description::register_descriptor): New overload of
27556 * mem-stats.h (mem_location::to_string): New function.
27557 * bitmap.h (struct bitmap_usage): Use this new function.
27558 * ggc-common.c (struct ggc_usage): Likewise.
27561 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27563 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
27564 of GCC_INSN_FLAGS_H block.
27566 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
27568 * explow.c (plus_constant): Update check after force_const_mem call
27569 to see if the value returned is not a NULL_RTX.
27571 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27573 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
27574 remove instumentation thunks calling reachable functions.
27575 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
27576 * lto/lto-partition.c (privatize_symbol_name_1): New.
27577 (privatize_symbol_name): Privatize both decl and orig_decl
27578 names for instrumented functions.
27579 * cgraph.c (cgraph_node::verify_node): Add transparent
27580 alias chain check for instrumented node.
27582 2015-06-03 Marek Polacek <polacek@redhat.com>
27586 * tree.c (attribute_value_equal): Handle attribute format.
27587 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
27589 2015-06-03 Richard Biener <rguenther@suse.de>
27591 PR tree-optimization/63916
27592 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
27593 Forward-propagate non-invariant addresses by splicing their
27594 reference ops if the result isn't going to be used by PRE.
27595 (vn_reference_lookup_3): Remove pointless assert.
27597 2015-06-03 Richard Biener <rguenther@suse.de>
27599 PR tree-optimization/66375
27600 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
27601 add to the evolution before following SSA edges.
27603 2015-06-03 Bin Cheng <bin.cheng@arm.com>
27605 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
27606 (dump_use, dump_cand, find_induction_variables): Pass new argument
27608 (record_use): Preserve the ssa name information in IV.
27610 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27612 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
27614 (add_mode_tests): Don't add mode tests if the predicate only
27615 accepts scalar constant integers. Otherwise, allow the mode
27616 of "op" to be VOIDmode if the predicate does accept such integers.
27618 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
27621 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
27622 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
27623 (aarch64_secondary_reload): Likewise
27624 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
27626 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
27629 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
27630 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27633 * cprop.c (try_replace_reg): Check cost of constants before propagating.
27635 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27637 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
27638 provide access to the IBM extended double floating point mode if
27639 long double is IEEE 128-bit floating point.
27640 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
27641 point if long double is the IBM extended double type.
27643 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
27644 enable adding IEEE 128-bit floating point support.
27645 (-mfloat128-software): Likewise.
27646 (-mfloat128-sw): Likewise.
27648 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
27649 128-bit floating point types to occupy any register if
27650 -mlong-double-64. Do not allow use of IFmode/KFmode unless
27651 -mfloat128-software is enabled.
27652 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
27654 (rs6000_option_override_internal): Add -mfloat128-* support.
27655 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
27657 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
27658 and float128 type nodes.
27659 (ieee128_float_type_node): Likewise.
27660 (ibm128_float_type_node): Likewise.
27662 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27665 * config/aarch64/geniterators.sh: Rewrite in awk.
27667 2015-06-02 Martin Liska <mliska@suse.cz>
27669 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
27670 values to avoid -Wmaybe-uninitialized errors.
27672 2015-06-02 Richard Biener <rguenther@suse.de>
27675 * dwarf2out.c (lookup_context_die): New function.
27676 (resolve_addr): Avoid forcing a full DIE for the
27677 target of a DW_TAG_GNU_call_site during late compilation.
27678 Instead create a stub DIE without a type if we have a
27679 context DIE present.
27681 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
27683 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
27685 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27687 PR tree-optimization/48052
27688 * cfgloop.h (struct control_iv): New.
27689 (struct loop): New field control_ivs.
27690 * tree-ssa-loop-niter.c : Include "stor-layout.h".
27691 (number_of_iterations_lt): Set no_overflow information.
27692 (number_of_iterations_exit): Init control iv in niter struct.
27693 (record_control_iv): New.
27694 (estimate_numbers_of_iterations_loop): Call record_control_iv.
27695 (loop_exits_before_overflow): New. Interface factored out of
27696 scev_probably_wraps_p.
27697 (scev_probably_wraps_p): Factor loop niter related code into
27698 loop_exits_before_overflow.
27699 (free_numbers_of_iterations_estimates_loop): Free control ivs.
27700 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
27702 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
27704 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
27705 the target doesn't belong to the current function.
27707 2015-06-02 Marek Polacek <polacek@redhat.com>
27709 PR middle-end/66345
27710 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
27711 get_maxval_strlen does not produce an INTEGER_CST.
27713 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
27715 * config/arc/constraints.md: Use lower-case names in match_code.
27716 * config/mmix/constraints.md: Likewise.
27718 2015-06-02 Richard Biener <rguenther@suse.de>
27720 PR tree-optimization/65961
27721 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
27722 check and clarify dump message.
27723 (vect_build_slp_tree): If all children are built up from scalars
27724 build up the parent from scalars instead.
27725 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
27727 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
27730 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
27731 instead of print ... .
27733 2015-06-02 Alan Modra <amodra@gmail.com>
27735 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
27738 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27740 PR tree-optimization/52563
27741 PR tree-optimization/62173
27742 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
27743 (alloc_iv, set_iv): New parameter.
27744 (determine_biv_step): Delete.
27745 (find_bivs): Inline original determine_biv_step. Pass new
27746 argument to set_iv.
27747 (idx_find_step): Use no_overflow information for conversion.
27748 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
27749 resolve_mixers handle folded_casts.
27750 (instantiate_scev_name): Change bool parameter to bool pointer.
27751 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
27752 (instantiate_array_ref, instantiate_scev_not): Ditto.
27753 (instantiate_scev_3, instantiate_scev_2): Ditto.
27754 (instantiate_scev_1, instantiate_scev_r): Ditto.
27755 (instantiate_scev_convert, ): Change parameter. Pass argument
27756 to chrec_convert_aggressive.
27757 (instantiate_scev): Change argument.
27758 (resolve_mixers): New parameter and set it.
27759 (scev_const_prop): New argument.
27760 * tree-scalar-evolution.h (resolve_mixers): New parameter.
27761 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
27763 (chrec_convert): New parameter. Move definition below.
27764 (chrec_convert_aggressive): New parameter and set it. Call
27765 convert_affine_scev.
27766 * tree-chrec.h (chrec_convert): New parameter.
27767 (chrec_convert_aggressive): Ditto.
27769 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27771 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
27772 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
27773 the LHS of a no-return call if its type has variable size.
27774 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
27775 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
27777 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
27779 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
27780 * config.in: Regenerate.
27782 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27784 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
27785 consecutive accesses within outer-loop with force_vectorize
27786 for references with zero step in inner-loop.
27788 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27790 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
27791 rather than from gcc/build directory.
27793 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27796 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
27797 for __sync memory models, emit initial loads and final barriers as
27800 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27803 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
27804 (aarch64_split_atomic_op): Check for __sync memory models, emit
27805 appropriate initial loads and final barriers.
27807 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27809 * Makefile.in: Fix gcov dependencies that should
27810 not point to a build folder.
27812 2015-06-01 Richard Biener <rguenther@suse.de>
27815 2015-05-29 Richard Biener <rguenther@suse.de>
27817 PR tree-optimization/66314
27818 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27819 parameter that says which loop the new block belongs to.
27820 (ssa_create_duplicates): Blocks duplicated for the threaded
27821 path belong to the loop of the thread destination.
27823 2015-06-01 Martin Liska <mliska@suse.cz>
27825 * sched-deps.c: Include pool-alloc.h before
27826 cselib.h header file is included.
27828 2015-06-01 Richard Biener <rguenther@suse.de>
27830 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
27833 2015-06-01 Martin Liska <mliska@suse.cz>
27835 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
27836 a function local variable.
27838 2015-06-01 Martin Liska <mliska@suse.cz>
27840 * alloc-pool.c (create_alloc_pool): Remove.
27841 (empty_alloc_pool): Likewise.
27842 (free_alloc_pool): Likewise.
27843 (free_alloc_pool_if_empty): Likewise.
27844 (pool_alloc): Likewise.
27845 (pool_free): Likewise.
27846 * alloc-pool.h: Remove old declarations.
27848 2015-06-01 Martin Liska <mliska@suse.cz>
27850 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
27851 (ira_create_object): Likewise.
27852 (ira_create_allocno): Likewise.
27853 (ira_create_live_range): Likewise.
27854 (copy_live_range): Likewise.
27855 (ira_finish_live_range): Likewise.
27856 (ira_free_allocno_costs): Likewise.
27857 (finish_allocno): Likewise.
27858 (finish_allocnos): Likewise.
27859 (initiate_prefs): Likewise.
27860 (ira_create_pref): Likewise.
27861 (finish_pref): Likewise.
27862 (finish_prefs): Likewise.
27863 (initiate_copies): Likewise.
27864 (ira_create_copy): Likewise.
27865 (finish_copy): Likewise.
27866 (finish_copies): Likewise.
27867 (finish_prefs): Likewise.
27869 2015-06-01 Martin Liska <mliska@suse.cz>
27871 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
27872 (allocate_and_init_ipcp_value): Likewise.
27873 (ipcp_lattice::add_value): Likewise.
27874 (merge_agg_lats_step): Likewise.
27875 (ipcp_driver): Likewise.
27876 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
27877 (ipa_free_all_structures_after_iinln): Likewise.
27878 * ipa-prop.h: Likewise.
27880 2015-06-01 Martin Liska <mliska@suse.cz>
27882 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
27884 (set_hint_predicate): Likewise.
27885 (inline_summary_alloc): Likewise.
27886 (reset_inline_edge_summary): Likewise.
27887 (reset_inline_summary): Likewise.
27888 (set_cond_stmt_execution_predicate): Likewise.
27889 (set_switch_stmt_execution_predicate): Likewise.
27890 (compute_bb_predicates): Likewise.
27891 (estimate_function_body_sizes): Likewise.
27892 (inline_free_summary): Likewise.
27894 2015-06-01 Martin Liska <mliska@suse.cz>
27896 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
27897 (ipa_edge_duplication_hook): Likewise.
27898 (ipa_free_all_structures_after_ipa_cp): Likewise.
27899 (ipa_free_all_structures_after_iinln): Likewise.
27901 2015-06-01 Martin Liska <mliska@suse.cz>
27903 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
27904 (ipa_profile_generate_summary): Likewise.
27905 (ipa_profile_read_summary): Likewise.
27906 (ipa_profile): Likewise.
27908 2015-06-01 Martin Liska <mliska@suse.cz>
27910 * tree-ssa-structalias.c (new_var_info): Use new type-based
27912 (new_constraint): Likewise.
27913 (init_alias_vars): Likewise.
27914 (delete_points_to_sets): Likewise.
27916 2015-06-01 Martin Liska <mliska@suse.cz>
27918 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
27919 (free_strinfo): Likewise.
27920 (pass_strlen::execute): Likewise.
27922 2015-06-01 Martin Liska <mliska@suse.cz>
27924 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
27926 (vn_reference_insert_pieces): Likewise.
27927 (vn_phi_insert): Likewise.
27928 (visit_reference_op_call): Likewise.
27929 (copy_phi): Likewise.
27930 (copy_reference): Likewise.
27931 (process_scc): Likewise.
27932 (allocate_vn_table): Likewise.
27933 (free_vn_table): Likewise.
27935 2015-06-01 Martin Liska <mliska@suse.cz>
27937 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
27939 (add_repeat_to_ops_vec): Likewise.
27940 (get_ops): Likewise.
27941 (maybe_optimize_range_tests): Likewise.
27942 (init_reassoc): Likewise.
27943 (fini_reassoc): Likewise.
27945 2015-06-01 Martin Liska <mliska@suse.cz>
27947 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
27949 (bitmap_set_new): Likewise.
27950 (get_or_alloc_expr_for_constant): Likewise.
27951 (get_or_alloc_expr_for): Likewise.
27952 (phi_translate_1): Likewise.
27953 (compute_avail): Likewise.
27954 (init_pre): Likewise.
27955 (fini_pre): Likewise.
27957 2015-06-01 Martin Liska <mliska@suse.cz>
27959 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
27960 (delete_dep_node): Likewise.
27961 (create_deps_list): Likewise.
27962 (free_deps_list): Likewise.
27963 (sched_deps_init): Likewise.
27964 (sched_deps_finish): Likewise.
27966 2015-06-01 Martin Liska <mliska@suse.cz>
27968 * regcprop.c (free_debug_insn_changes): Use new type-based
27970 (replace_oldest_value_reg): Likewise.
27971 (pass_cprop_hardreg::execute): Likewise.
27973 2015-06-01 Martin Liska <mliska@suse.cz>
27975 * ira-build.c (initiate_cost_vectors): Use new type-based
27977 (ira_allocate_cost_vector): Likewise.
27978 (ira_free_cost_vector): Likewise.
27979 (finish_cost_vectors): Likewise.
27981 2015-06-01 Martin Liska <mliska@suse.cz>
27983 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
27985 (free_sched_pools): Likewise.
27986 * sel-sched-ir.h (_list_alloc): Likewise.
27987 (_list_remove): Likewise.
27989 2015-06-01 Martin Liska <mliska@suse.cz>
27991 * stmt.c (add_case_node): Use new type-based pool allocator.
27992 (expand_case): Likewise.
27993 (expand_sjlj_dispatch_table): Likewise.
27995 2015-06-01 Martin Liska <mliska@suse.cz>
27997 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
27998 (free_bb): Likewise.
27999 (pass_cse_reciprocals::execute): Likewise.
28001 2015-06-01 Martin Liska <mliska@suse.cz>
28003 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
28004 (sra_deinitialize) Likewise.
28005 (create_access_1) Likewise.
28006 (build_accesses_from_assign) Likewise.
28007 (create_artificial_child_access) Likewise.
28009 2015-06-01 Martin Liska <mliska@suse.cz>
28011 * dse.c (get_group_info):Use new type-based pool allocator.
28012 (dse_step0) Likewise.
28013 (free_store_info) Likewise.
28014 (delete_dead_store_insn) Likewise.
28015 (free_read_records) Likewise.
28016 (record_store) Likewise.
28017 (replace_read) Likewise.
28018 (check_mem_read_rtx) Likewise.
28019 (scan_insn) Likewise.
28020 (dse_step1) Likewise.
28021 (dse_step7) Likewise.
28023 2015-06-01 Martin Liska <mliska@suse.cz>
28025 * df-scan.c (struct df_scan_problem_data):Use new type-based
28027 (df_scan_free_internal) Likewise.
28028 (df_scan_alloc) Likewise.
28029 (df_grow_reg_info) Likewise.
28030 (df_free_ref) Likewise.
28031 (df_insn_create_insn_record) Likewise.
28032 (df_mw_hardreg_chain_delete) Likewise.
28033 (df_insn_info_delete) Likewise.
28034 (df_free_collection_rec) Likewise.
28035 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
28036 (df_sort_and_compress_mws) Likewise.
28037 (df_ref_create_structure) Likewise.
28038 (df_ref_record) Likewise.
28040 2015-06-01 Martin Liska <mliska@suse.cz>
28042 * df-problems.c (df_chain_create):Use new type-based pool allocator.
28043 (df_chain_unlink_1) Likewise.
28044 (df_chain_unlink) Likewise.
28045 (df_chain_remove_problem) Likewise.
28046 (df_chain_alloc) Likewise.
28047 (df_chain_free) Likewise.
28048 * df.h (struct dataflow) Likewise.
28050 2015-06-01 Martin Liska <mliska@suse.cz>
28052 * cselib.c (new_elt_list):Use new type-based pool allocator.
28053 (new_elt_loc_list) Likewise.
28054 (unchain_one_elt_list) Likewise.
28055 (unchain_one_elt_loc_list) Likewise.
28056 (unchain_one_value) Likewise.
28057 (new_cselib_val) Likewise.
28058 (cselib_init) Likewise.
28059 (cselib_finish) Likewise.
28061 2015-06-01 Martin Liska <mliska@suse.cz>
28063 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
28064 (sh_reorg) Likewise.
28066 2015-06-01 Martin Liska <mliska@suse.cz>
28068 * cfg.c (initialize_original_copy_tables):Use new type-based
28070 (free_original_copy_tables) Likewise.
28071 (copy_original_table_clear) Likewise.
28072 (copy_original_table_set) Likewise.
28074 2015-06-01 Martin Liska <mliska@suse.cz>
28076 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
28078 (asan_mem_ref_new) Likewise.
28079 (free_mem_ref_resources) Likewise.
28081 2015-06-01 Martin Liska <mliska@suse.cz>
28083 * var-tracking.c (variable_htab_free):Use new type-based
28085 (attrs_list_clear) Likewise.
28086 (attrs_list_insert) Likewise.
28087 (attrs_list_copy) Likewise.
28088 (shared_hash_unshare) Likewise.
28089 (shared_hash_destroy) Likewise.
28090 (unshare_variable) Likewise.
28091 (var_reg_delete_and_set) Likewise.
28092 (var_reg_delete) Likewise.
28093 (var_regno_delete) Likewise.
28094 (drop_overlapping_mem_locs) Likewise.
28095 (variable_union) Likewise.
28096 (insert_into_intersection) Likewise.
28097 (canonicalize_values_star) Likewise.
28098 (variable_merge_over_cur) Likewise.
28099 (dataflow_set_merge) Likewise.
28100 (remove_duplicate_values) Likewise.
28101 (variable_post_merge_new_vals) Likewise.
28102 (dataflow_set_preserve_mem_locs) Likewise.
28103 (dataflow_set_remove_mem_locs) Likewise.
28104 (variable_from_dropped) Likewise.
28105 (variable_was_changed) Likewise.
28106 (set_slot_part) Likewise.
28107 (clobber_slot_part) Likewise.
28108 (delete_slot_part) Likewise.
28109 (loc_exp_insert_dep) Likewise.
28110 (notify_dependents_of_changed_value) Likewise.
28111 (emit_notes_for_differences_1) Likewise.
28112 (vt_emit_notes) Likewise.
28113 (vt_initialize) Likewise.
28114 (vt_finalize) Likewise.
28116 2015-06-01 Martin Liska <mliska@suse.cz>
28118 * ira-color.c (init_update_cost_records):Use new type-based
28120 (get_update_cost_record) Likewise.
28121 (free_update_cost_record_list) Likewise.
28122 (finish_update_cost_records) Likewise.
28123 (initiate_cost_update) Likewise.
28125 2015-06-01 Martin Liska <mliska@suse.cz>
28127 * lra.c (init_insn_regs): Use new type-based pool allocator.
28128 (new_insn_reg) Likewise.
28129 (free_insn_reg) Likewise.
28130 (free_insn_regs) Likewise.
28131 (finish_insn_regs) Likewise.
28132 (init_insn_recog_data) Likewise.
28133 (init_reg_info) Likewise.
28134 (finish_reg_info) Likewise.
28135 (lra_free_copies) Likewise.
28136 (lra_create_copy) Likewise.
28137 (invalidate_insn_data_regno_info) Likewise.
28139 2015-06-01 Martin Liska <mliska@suse.cz>
28141 * lra-lives.c (free_live_range): Use new type-based pool allocator.
28142 (free_live_range_list) Likewise.
28143 (create_live_range) Likewise.
28144 (copy_live_range) Likewise.
28145 (lra_merge_live_ranges) Likewise.
28146 (remove_some_program_points_and_update_live_ranges) Likewise.
28147 (lra_live_ranges_init) Likewise.
28148 (lra_live_ranges_finish) Likewise.
28150 2015-06-01 Martin Liska <mliska@suse.cz>
28152 * et-forest.c (et_new_occ): Use new type-based pool allocator.
28153 (et_new_tree): Likewise.
28154 (et_free_tree): Likewise.
28155 (et_free_tree_force): Likewise.
28156 (et_free_pools): Likewise.
28157 (et_split): Likewise.
28159 2015-06-01 Martin Liska <mliska@suse.cz>
28161 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28163 * alloc-pool.h (pool_allocator::pool_allocator): New function.
28164 (pool_allocator::release): Likewise.
28165 (inline pool_allocator::release_if_empty): Likewise.
28166 (inline pool_allocator::~pool_allocator): Likewise.
28167 (pool_allocator::allocate): Likewise.
28168 (pool_allocator::remove): Likewise.
28170 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28172 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28175 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28177 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28179 * config/arm/arm.c (arm_print_tune_info): Likewise.
28180 (arm_macro_fusion_p): Likewise.
28181 (arm_macro_fusion_pair_p): Likewise.
28183 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28185 * config/aarch64/aarch64-protos.h (tune_params): Rename
28186 fuseable_ops to fusible_ops.
28187 * config/aarch64/aarch64.c (generic_tunings): Rename
28188 fuseable_ops to fusible_ops.
28189 (cortexa53_tunings): Likewise.
28190 (cortexa57_tunings): Likewise.
28191 (thunderx_tunings): Likewise.
28192 (xgene1_tunings): Likewise.
28193 (aarch64_macro_fusion_p): Likewise.
28194 (aarch64_macro_fusion_pair_p): Likewise.
28196 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
28198 * config/s390/driver-native.c: New file.
28199 * config/s390/x-native: New file.
28200 * config.host: Add new files for s390.
28201 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28203 * config.gcc: Likewise.
28204 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28205 * config/s390/s390-opts.h (enum processor_type): Ditto.
28206 * config/s390/s390.c (s390_option_override): Catch unhandled
28209 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
28212 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28213 redirection for instrumented calls.
28214 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28215 (append_compiler_options): Append -fcheck-pointer-bounds.
28216 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28217 (chkp_redirect_edge): New.
28218 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28219 (chkp_redirect_edge): New.
28221 2015-06-01 Richard Biener <rguenther@suse.de>
28223 PR tree-optimization/66280
28224 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28227 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28229 * config/aarch64/aarch64.md
28230 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28233 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28235 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28236 Remove obsolete kludge.
28238 2015-06-01 Richard Biener <rguenther@suse.de>
28240 * tree-ssa-reassoc.c (get_rank): Simplify.
28242 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
28244 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28245 * configure: Regenerated.
28247 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
28249 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28250 issue (add space between string literal and macro).
28251 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28253 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
28255 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28256 implict or explicit -fPIE or -fpie.
28258 2015-05-30 Mike Frysinger <vapier@gentoo.org>
28260 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28262 2015-05-28 DJ Delorie <dj@redhat.com>
28264 * expmed.c (extract_bit_field_1): Avoid clobbering a
28265 yet-to-be-used base/index register.
28267 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
28269 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28270 (alias_stats): Add num_universal.
28271 (alias_set_subset_of): Special case pointers; be ready for NULL
28273 (alias_sets_conflict_p): Special case pointers; be ready for NULL
28275 (init_alias_set_entry): Break out from ...
28276 (record_alias_subset): ... here; propagate new fields;
28277 allocate children only when really needed.
28278 (get_alias_set): Do less generous pointer globbing.
28279 (dump_alias_stats_in_alias_c): Update statistics.
28281 2015-05-30 Alan Modra <amodra@gmail.com>
28283 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28284 correct block for use of r12.
28285 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28287 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28290 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28293 2015-05-29 Jakub Jelinek <jakub@redhat.com>
28295 PR tree-optimization/66142
28296 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28297 virtual phis that feed themselves.
28299 2015-05-29 Richard Biener <rguenther@suse.de>
28301 PR tree-optimization/66314
28302 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28303 parameter that says which loop the new block belongs to.
28304 (ssa_create_duplicates): Blocks duplicated for the threaded
28305 path belong to the loop of the thread destination.
28307 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28309 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28310 to cleanup-saved-temps.
28311 * doc/sourcebuild.texi (Clean up generated test files): Expand
28313 (dg-keep-saved-temps): Document new proc.
28314 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28315 cleanup-saved-temps): Remove.
28317 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
28319 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28320 gcc_AC_CHECK_DECLS.
28321 * configure: Regenerate.
28323 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28325 * config/nios2/linux.h (CPP_SPEC): Define.
28327 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28329 * config/microblaze/linux.h (CPP_SPEC): Define.
28331 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28333 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28334 -pthread is specified.
28336 2015-05-28 Richard Biener <rguenther@suse.de>
28338 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28339 (vect_fixup_scalar_cycles_with_patterns): Likewise.
28340 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28341 after pattern recog.
28342 (vect_create_epilog_for_reduction): Properly handle reductions
28344 (vectorizable_reduction): Likewise.
28345 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28347 (vect_get_constant_vectors): Create the correct number of
28348 initial values for reductions.
28349 (vect_schedule_slp_instance): Handle reduction chains that are
28350 type changing properly.
28351 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28353 2015-05-28 Richard Biener <rguenther@suse.de>
28355 PR tree-optimization/66142
28356 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28357 values better in memcpy destination handling. Handle non-aliasing
28360 2015-05-28 Lawrence Velázquez <vq@larryv.me>
28363 * config/darwin-c.c (version_components): New global enum.
28364 (parse_version, version_as_legacy_macro)
28365 (version_as_modern_macro, macosx_version_as_macro): New functions.
28366 (version_as_macro): Remove.
28367 (darwin_cpp_builtins): Use new function.
28369 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
28371 * builtins.c (expand_builtin_acc_on_device): Mark parameters
28372 with ATTRIBUTE_UNUSED.
28374 2015-05-28 Julian Brown <julian@codesourcery.com>
28378 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28379 sequence for !ACCEL_COMPILER.
28381 2015-05-28 Nick Clifton <nickc@redhat.com>
28383 * config/rx/rx.c (push_regs): New function. Extracts code from...
28384 (rx_expand_prologue): ... here. Use push_regs to push even small
28385 spans of registers.
28386 (pop_regs): New function.
28387 (rx_expand_epilogue): Use pop_regs to pop even small spans of
28390 2015-05-28 Richard Biener <rguenther@suse.de>
28392 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28394 (SLP_INSTANCE_BODY_COST_VEC): Remove.
28395 (vect_update_slp_costs_according_to_vf): Likewise.
28396 (vect_slp_analyze_operations): Update prototype.
28397 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28398 vect_update_slp_costs_according_to_vf, adjust.
28399 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28400 (vect_analyze_slp_cost_1): Likewise.
28401 (vect_analyze_slp_cost): Likewise. Properly deal with
28402 widening reduction ops. Commit body costs.
28403 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
28404 cost for loops from here.
28405 (vect_slp_analyze_operations): But do it from here when
28406 the vectorization factor is known and stmts are analyzed.
28407 (vect_bb_vectorization_profitable_p): Simplify.
28408 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28409 (vect_update_slp_costs_according_to_vf): Remove.
28411 2015-05-27 Magnus Granberg <zorry@gentoo.org>
28412 H.J. Lu <hongjiu.lu@intel.com>
28414 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28415 (BUILD_CFLAGS): Likewise.
28416 (BUILD_CXXFLAGS): Likewise.
28417 (LINKER): Add @NO_PIE_FLAG@.
28418 (BUILD_LDFLAGS): Likewise.
28419 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28420 --enable-default-pie.
28421 * common.opt (fPIE): Initialize to -1.
28423 (no-pie): New option.
28424 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28425 * configure.ac: Add --enable-default-pie.
28426 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
28427 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
28428 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
28429 * gcc.c (NO_PIE_SPEC): New.
28430 (PIE_SPEC): Likewise.
28431 (NO_FPIE1_SPEC): Likewise.
28432 (FPIE1_SPEC): Likewise.
28433 (NO_FPIE2_SPEC): Likewise.
28434 (FPIE2_SPEC): Likewise.
28435 (NO_FPIE2_SPEC): Likewise.
28436 (FPIE_SPEC): Likewise.
28437 (NO_FPIE_SPEC): Likewise.
28438 (NO_FPIC1_SPEC): Likewise.
28439 (FPIC1_SPEC): Likewise.
28440 (NO_FPIC2_SPEC): Likewise.
28441 (FPIC2_SPEC): Likewise.
28442 (NO_FPIC2_SPEC): Likewise.
28443 (FPIC_SPEC): Likewise.
28444 (NO_FPIC_SPEC): Likewise.
28445 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28446 (FPIE1_OR_FPIC1_SPEC): Likewise.
28447 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28448 (FPIE2_OR_FPIC2_SPEC): Likewise.
28449 (NO_FPIE_AND_FPIC_SPEC): Likewise.
28450 (FPIE_OR_FPIC_SPEC): Likewise.
28451 (LD_PIE_SPEC): Likewise.
28452 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
28453 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28454 * config/darwin.h (PIE_SPEC): Renamed to ...
28455 (DARWIN_PIE_SPEC): This.
28456 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28457 * config/darwin9.h (PIE_SPEC): Renamed to ...
28458 (DARWIN_PIE_SPEC): This.
28459 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28460 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28461 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28462 FPIE2_OR_FPIC2_SPEC.
28463 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28464 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28465 * config/sol2.h (ASM_PIC_SPEC): Likewise.
28466 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28467 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28468 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28469 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28470 * config/m32r/m32r.h (ASM_SPEC): Likewise.
28471 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28472 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28473 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28474 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28475 * config/sparc/linux.h (ASM_SPEC): Likewise.
28476 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28477 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28478 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28479 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28480 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28481 * config/sparc/sparc.h (ASM_SPEC): Likewise.
28482 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28483 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28484 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28485 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28486 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28487 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28488 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28489 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28490 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28491 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28492 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28493 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28494 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28495 * config/vax/linux.h (ASM_SPEC): Likewise.
28496 * doc/install.texi: Document --enable-default-pie.
28497 * doc/invoke.texi: Document -no-pie.
28498 * config.in: Regenerated.
28499 * configure: Likewise.
28501 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28503 PR rtl-optimization/66168
28504 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28505 can_move_invariant_reg.
28507 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
28510 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28511 REG_EQUAL note when doing insert.
28513 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28514 instead of "%d" for 'o' operand.
28516 2015-05-27 Nathan Sidwell <nathan@acm.org>
28519 * tree.c (build_pointer_type_for_mode): Canonical type does not
28520 inherit can_alias_all.
28521 (build_reference_type_for_mode): Likewise.
28523 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
28525 * expr.h (array_at_struct_end_p): Move to...
28526 (array_ref_element_size): Likewise.
28527 (component_ref_field_offset): Likewise.
28528 * tree.h (array_ref_element_size): ...here.
28529 (array_at_struct_end_p): Likewise.
28530 (component_ref_field_offset): Likewise.
28531 * expr.c (array_ref_element_size): Move to...
28532 (array_ref_low_bound): Likewise.
28533 (array_at_struct_end_p): Likewise.
28534 (array_ref_up_bound): Likewise.
28535 (component_ref_field_offset): Likewise.
28536 * tree.c (array_ref_element_size): ...here.
28537 (array_ref_low_bound): Likewise.
28538 (array_ref_up_bound): Likewise.
28539 (array_at_struct_end_p): Likewise.
28540 (component_ref_field_offset): Likewise.
28542 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28543 Szabolcs Nagy <szabolcs.nagy@arm.com>
28545 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
28547 2015-05-27 Jason Merrill <jason@redhat.com>
28550 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
28551 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
28552 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
28554 2015-05-22 Aditya Kumar <hiraditya@msn.com>
28556 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
28559 * statistics.c (statistics_fini_pass): Print pass name.
28561 2015-05-27 Richard Biener <rguenther@suse.de>
28563 PR tree-optimization/66272
28565 2014-08-15 Richard Biener <rguenther@suse.de>
28567 PR tree-optimization/62031
28568 * tree-data-ref.c (dr_analyze_indices): Do not set
28569 DR_UNCONSTRAINED_BASE.
28570 (dr_may_alias_p): All indirect accesses have to go the
28571 formerly DR_UNCONSTRAINED_BASE path.
28572 * tree-data-ref.h (struct indices): Remove
28573 unconstrained_base member.
28574 (DR_UNCONSTRAINED_BASE): Remove.
28576 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
28578 * dwarf2out.c: Remove block_map.
28579 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
28580 (gen_lexical_block_die): Same.
28581 (dwarf2out_function_decl): Remove block_map use.
28582 (dwarf2out_c_finalize): Same.
28583 * tree-core.h (struct tree_block): Add die field.
28584 * tree.h (BLOCK_DIE): New.
28586 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28589 * expr.c (memory_load_overlap): New function.
28590 (emit_push_insn): When pushing partial args to the stack would
28591 clobber the register part load the overlapping part into a pseudo
28592 and put it into the hard reg after pushing. Change return type
28593 to bool. Add bool argument.
28594 * expr.h (emit_push_insn): Change return type to bool.
28596 * calls.c (expand_call): Cancel sibcall optimization when encountering
28597 partial argument on targets with ARGS_GROW_DOWNWARD and
28598 !STACK_GROWS_DOWNWARD.
28599 (emit_library_call_value_1): Update callsite of emit_push_insn.
28600 (store_one_arg): Likewise.
28602 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28604 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
28606 2015-05-27 Martin Liska <mliska@suse.cz>
28608 * Makefile.in: Add additional dependencies related to memory report
28610 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
28611 * bitmap.c (struct bitmap_descriptor_d): Remove.
28612 (struct loc): Likewise.
28613 (struct bitmap_desc_hasher): Likewise.
28614 (bitmap_desc_hasher::hash): Likewise.
28615 (bitmap_desc_hasher::equal): Likewise.
28616 (get_bitmap_descriptor): Likewise.
28617 (bitmap_register): User new memory descriptor API.
28618 (register_overhead): Likewise.
28619 (bitmap_find_bit): Register nsearches and search_iter statistics.
28620 (struct bitmap_output_info): Remove.
28621 (print_statistics): Likewise.
28622 (dump_bitmap_statistics): Use new memory descriptor.
28623 * bitmap.h (struct bitmap_usage): New class.
28624 * genmatch.c: Extend header file inclusion.
28625 * genpreds.c: Likewise.
28626 * ggc-common.c (struct ggc_usage): New class.
28627 (struct ggc_loc_desc_hasher): Remove.
28628 (ggc_loc_desc_hasher::hash): Likewise.
28629 (ggc_loc_desc_hasher::equal): Likewise.
28630 (struct ggc_ptr_hash_entry): Likewise.
28631 (struct ptr_hash_hasher): Likewise.
28632 (ptr_hash_hasher::hash): Likewise.
28633 (ptr_hash_hasher::equal): Likewise.
28634 (make_loc_descriptor): Likewise.
28635 (ggc_prune_ptr): Likewise.
28636 (dump_ggc_loc_statistics): Use new memory descriptor.
28637 (ggc_record_overhead): Likewise.
28638 (ggc_free_overhead): Likewise.
28639 (final_cmp_statistic): Remove.
28640 (cmp_statistic): Likewise.
28641 (ggc_add_statistics): Liekwise.
28642 (ggc_prune_overhead_list): Likewise.
28643 * hash-map-traits.h: New file.
28644 * hash-map.h (struct default_hashmap_traits): Move the traits to a
28645 separate header file.
28646 * hash-set.h: Pass memory statistics info to ctor.
28647 * hash-table.c (void dump_hash_table_loc_statistics): New function.
28648 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
28649 (hash_table::~hash_table): Register memory release operation.
28650 (hash_table::alloc_entries): Handle memory allocation operation.
28651 (hash_table::expand): Likewise.
28652 * inchash.c (iterative_hash_hashval_t): Move implementation to header
28654 (iterative_hash_host_wide_int): Likewise.
28655 * inchash.h (class hash): Likewise.
28656 * mem-stats-traits.h: New file.
28657 * mem-stats.h: New file.
28658 (mem_location): Add new class.
28659 (mem_usage): Likewise.
28660 (mem_alloc_description): Likewise.
28661 * sese.c: Add new header file inclusision.
28662 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
28664 * tree-sra.c: Add new header file inclusision.
28665 * vec.c (struct vec_descriptor): Remove.
28666 (hash_descriptor): Likewise.
28667 (struct vec_usage): Likewise.
28668 (struct ptr_hash_entry): Likewise.
28669 (hash_ptr): Likewise.
28670 (eq_ptr): Likewise.
28671 (vec_prefix::register_overhead): Use new memory descriptor API.
28672 (vec_prefix::release_overhead): Likewise.
28673 (add_statistics): Remove.
28674 (dump_vec_loc_statistics): Use new memory descriptor API.
28675 * vec.h (struct vec_prefix): Likewise.
28676 (va_heap::reserve): Likewise.
28677 (va_heap::release): Likewise.
28678 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
28680 2015-05-27 Richard Biener <rguenther@suse.de>
28682 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
28683 earlier and remove ??? comment.
28684 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
28685 and got called from loop analysis bail out. Always pass the SLP
28686 node to the vectorizable_* functions.
28687 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
28688 the premature SLP check here.
28689 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
28690 detected SLP stmts.
28691 (vect_detect_hybrid_slp_1): Likewise.
28693 2015-05-26 Jeff Law <law@redhat.com>
28695 * combine.c (find_split_point): Verify that the shift count is a
28696 constant when choosing (plus (ashift ...)) as a split point.
28698 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
28699 No functional changes.
28701 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
28703 * ipa-polymorphic-call.c
28704 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
28705 case when call target is already known.
28707 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
28710 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
28711 take into account the case that operands[1] and operands[2]
28712 are the same register.
28714 2015-05-26 Michael Matz <matz@suse.de>
28716 PR middle-end/66251
28718 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
28720 (vect_create_vectorized_demotion_stmts): Always set
28721 STMT_VINFO_VEC_STMT, also with SLP.
28722 (vectorizable_store): Handle strided group stores.
28724 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28727 * config/aarch64/aarch64.md
28728 (*adds_shift_imm_<mode>): New pattern.
28729 (*subs_shift_imm_<mode>): Likewise.
28730 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28731 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28732 (*add_uxt<mode>_shift2): Likewise.
28733 (*add_uxtsi_shift2_uxtw): Likewise.
28734 (*sub_uxt<mode>_shift2): Likewise.
28735 (*sub_uxtsi_shift2_uxtw): Likewise.
28737 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
28739 * config/rs6000/constraints.md (Y, U): Use match_test.
28741 2015-05-26 Christian Bruel <christian.bruel@st.com>
28744 * config/arm/arm.c (arm_option_check_internal)
28745 (arm_option_params_internal): Check opts->target_flags to set macros.
28746 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28747 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
28748 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28749 (builtin_define): Replaced with def_or_undef_macro.
28750 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28751 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
28752 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28753 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
28754 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
28755 (TARGET_ARM_FEATURE_LDREX_P)
28756 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
28757 * config/arm/arm-c.c (def_or_undef_macro): New function.
28758 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
28760 2015-05-26 Christian Bruel <christian.bruel@st.com>
28762 * c-common.h (builtin_define_with_int_value)
28763 (builtin_define_type_sizeof): Declare.
28764 * c-cppbuiltin.c (builtin_define_with_int_value)
28765 (builtin_define_type_sizeof): Externalize.
28766 (builtin_define_std): Cleanup declaration.
28767 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
28768 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
28769 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
28770 (builtin_define, builtin_assert): New macros.
28772 2015-05-26 Richard Biener <rguenther@suse.de>
28774 PR tree-optimization/66142
28775 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
28776 MEM_REFs for the same base address.
28778 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28781 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
28783 2015-05-26 Jason Merrill <jason@redhat.com>
28785 * configure.ac: Set CXXFLAGS for ISL test.
28786 * configure: Regenerate.
28788 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
28789 strstr and basename.
28790 * configure: Regenerate.
28792 2015-05-26 Richard Biener <rguenther@suse.de>
28794 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
28795 X % C -> X & (C - 1) for C being a power-of two to ...
28796 * match.pd: ... patterns.
28798 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
28800 * match.pd (swapped_tcc_comparison): New operator list.
28801 (-A CMP -B): New simplification.
28802 * fold-const.c (fold_comparison): Remove corresponding code.
28804 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28806 * caller-save.c (init_caller_save): Base temporary register numbers
28807 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
28808 * cfgloopanal.c (init_set_costs): Likewise.
28809 * dojump.c (prefer_and_bit_test): Likewise.
28810 * expr.c (init_expr_target): Likewise.
28811 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28812 * lower-subreg.c (init_lower_subreg): Likewise.
28813 * postreload.c (reload_cse_regs_1): Likewise.
28815 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28817 * gensupport.h (compute_test_codes): Declare.
28818 * gensupport.c (compute_predicate_codes): Rename to...
28819 (compute_test_codes): ...this. Generalize error message.
28820 (process_define_predicate): Update accordingly.
28821 * genpreds.c (compute_maybe_allows): Delete.
28822 (add_constraint): Use compute_test_codes to determine whether
28823 something can accept a SUBREG, REG or MEM.
28825 2015-05-26 Torvald Riegel <triegel@redhat.com>
28827 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
28828 'memory model' to align with C++11; fix description of memory orders;
28831 2015-05-26 Richard Biener <rguenther@suse.de>
28833 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
28834 (vect_analyze_loop_operations): ... here. Remove slp parameter,
28835 detect whether we apply SLP. Remove call to
28836 vect_update_slp_costs_according_to_vf.
28837 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
28838 vect_update_slp_costs_according_to_vf from here. Dispatch
28839 to vect_slp_analyze_operations to analyze SLP stmts.
28840 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
28841 unused bb_vec_info parameter, adjust assert.
28842 (vect_slp_analyze_operations): Pass in the slp instance tree
28843 instead of bb_vec_info.
28844 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
28845 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
28847 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28849 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
28850 Q_REGS. Expand comment.
28851 (REG_CLASS_NAMES): Ditto.
28852 (REG_CLASS_CONTENTS): Ditto.
28854 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
28857 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
28858 when LEGACY_INT_REGNO_P is processed.
28860 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28862 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
28864 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28866 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
28867 register if not marked dead/unused, before return.
28869 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28872 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
28873 is set; check for assembler name at LTO time.
28874 (type_in_anonymous_namespace): Remove hacks, check that all
28875 anonymous types are called "<anon>"
28876 (odr_type_p): Simplify; add check for "<anon>"
28877 (odr_subtypes_equivalent): Add odr_type_p check.
28878 * tree.c (need_assembler_name_p): Even anonymous namespace needs
28881 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28883 * ipa-utils.h (method_class_type): Remove.
28884 * cgraphunit.c (walk_polymorphic_call_targets): Use
28885 TYPE_METHOD_BASETYPE.
28886 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
28887 on main variants only.
28888 (method_class_type): Remove.
28889 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
28890 (build_type_inheritance_graph): Likewise.
28891 * ipa-icf.c (sem_function::equals_wpa): Likewise.
28892 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
28893 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
28895 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28897 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
28898 is_typedef_decl, typedef_variant_p): Constify.
28899 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
28900 is_typedef_decl, typedef_variant_p): Constify.
28902 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28904 * defaults.h (gen_tablejump): New function.
28905 (HAVE_tablejump): Add default value.
28907 * stmt.c: Likewise.
28909 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28911 * defaults.h (gen_store_multiple): New function.
28912 (HAVE_store_multiple): Add default value.
28913 * expr.c (move_block_from_reg): Adjust.
28915 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28917 * defaults.h (gen_load_multiple): New function.
28918 (HAVE_load_multiple): Add default value.
28919 * expr.c (move_block_to_reg): Adjust.
28921 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28923 * defaults.h (gen_mem_signal_fence): New function.
28924 (HAVE_mem_signal_fence): Add default value.
28925 * optabs.c: Adjust.
28927 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28929 * defaults.h (gen_memory_barrier): New function.
28930 (HAVE_memory_barrier): Add default value.
28931 * optabs.c: Adjust.
28933 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28935 * defaults.h (gen_mem_thread_fence): New function.
28936 (HAVE_mem_thread_fence): Add default definition.
28937 * optabs.c: Adjust.
28939 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28941 * combine.c (find_split_point): Check the value of HAVE_lo_sum
28942 instead of if it is defined.
28943 (combine_simplify_rtx): Likewise.
28944 * lra-constraints.c (process_address_1): Likewise.
28945 * config/darwin.c: Adjust.
28946 * genconfig.c (main): Always define HAVE_lo_sum.
28948 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28950 * genmatch.c (parser::parse_operation): Reject expanding
28951 operator-list inside 'for'.
28953 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28955 * genmatch.c (parser::parse_for): Reject iterator if used as
28958 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28960 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
28961 after end of id-list.
28963 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28965 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
28966 we do not try to compute canonical type for type that does not need
28968 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
28970 * tree.h (type_with_alias_set_p): New.
28972 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28974 * tree.c (gimple_canonical_types_compatible_p): Do not compare
28975 function attributes.
28976 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
28978 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
28980 * Makefile.in (check_gcc_parallelize): Delete.
28981 (lang_checks_parallelized): Update comment.
28983 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
28985 PR rtl-optimization/66237
28986 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
28987 location of an "as_a" cast.
28989 2015-05-22 Jeff Law <law@redhat.com>
28991 * config/pa/pa.md (non-canonical shift-add insns): Remove.
28992 (peepholes with non-canonical RTL sources): Remove.
28993 (peepholes for indexed stores of FP regs in integer modes): Match and
28994 generate canonical RTL.
28996 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28998 PR tree-optimization/63387
28999 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
29000 ((x ord x) & (y ord y) -> (x ord y),
29001 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
29002 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
29003 vectors like scalars.
29005 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29007 * convert.c (convert_to_integer, convert_to_vector): Include the
29008 types in the error message.
29010 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29012 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
29015 2015-05-22 Jeff Law <law@redhat.com>
29017 * config/pa/pa.md (integer_indexed_store splitters): Use
29018 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
29019 insns -- adjusting the constant 2nd operand accordingly.
29021 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
29022 (plus (ashift X log2) Y) if it is a split point.
29024 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
29025 out of hppa_legitimize_address to handle both forms of a multiply
29027 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
29028 Always generate the ASHIFT variant as the result is not directly
29029 used in a MEM. Update comments and refactor slightly to improve
29032 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29035 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
29036 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
29037 (aarch64_composite_type_p): Return false if given type and mode are
29038 for a short vector.
29040 2015-05-22 Richard Biener <rguenther@suse.de>
29042 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
29044 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
29045 patterns when determining whether SLP is pure.
29046 (vect_is_slp_reduction): Remove check for pattern stmts.
29047 (vect_is_simple_reduction_1): Remove dead code.
29048 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
29049 (vect_get_and_check_slp_defs): Pass in the stmt number.
29050 Allow the first def in a reduction to be not a pattern stmt when
29051 the rest of the stmts def are patterns.
29052 (vect_build_slp_tree_1): Allow tcc_expression codes like
29053 SAD_EXPR and DOT_PROD_EXPR.
29054 (vect_build_slp_tree): Adjust.
29055 (vect_analyze_slp): Refactor and move BB vect error message ...
29056 (vect_slp_analyze_bb_1): ... here.
29058 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
29060 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
29061 for CSWTCH temporary.
29063 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29065 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
29066 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
29069 2015-05-22 Richard Biener <rguenther@suse.de>
29071 PR tree-optimization/66251
29072 * tree-vect-stmts.c (vectorizable_conversion): Properly
29073 set STMT_VINFO_VEC_STMT even for the SLP case.
29075 2015-05-22 Marek Polacek <polacek@redhat.com>
29077 * doc/extend.texi: Use @pxref instead of @xref.
29079 2015-05-22 hiraditya <hiraditya@msn.com>
29081 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
29084 2015-05-22 Richard Biener <rguenther@suse.de>
29086 PR tree-optimization/65701
29087 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29088 Move peeling cost models into one place. Peel for alignment
29089 for single loads only if an aligned load is cheaper than
29092 2015-05-22 Marek Polacek <polacek@redhat.com>
29095 * doc/extend.texi (Enumerator Attributes): New section.
29096 Document syntax of enumerator attributes.
29098 2015-05-22 Richard Biener <rguenther@suse.de>
29100 * tree-vect-loop.c (get_reduction_op): New function.
29101 (vect_model_reduction_cost): Use it, add reduc_index parameter.
29102 Make ready for BB reductions.
29103 (vect_create_epilog_for_reduction): Use get_reduction_op.
29104 (vectorizable_reduction): Init reduc_index to a valid value.
29105 Adjust vect_model_reduction_cost call.
29106 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29107 operand for reduction defaults. Add SAD_EXPR support.
29108 Assert we have a neutral op for SLP reductions.
29109 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29110 walking pattern stmt ops only recurse to SSA names.
29112 2015-05-22 Richard Biener <rguenther@suse.de>
29114 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29115 assert with guard, remove check on detected reduction.
29116 (vect_recog_sad_pattern): Likewise.
29117 (vect_recog_widen_sum_pattern): Likewise.
29119 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29121 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29122 __always_inline__ attribute.
29123 (vaesdq_u8): Likewise.
29124 (vaesmcq_u8): Likewise.
29125 (vaesimcq_u8): Likewise.
29126 (vsha1cq_u32): Likewise.
29127 (vsha1mq_u32): Likewise.
29128 (vsha1pq_u32): Likewise.
29129 (vsha1h_u32): Likewise.
29130 (vsha1su0q_u32): Likewise.
29131 (vsha1su1q_u32): Likewise.
29132 (vsha256hq_u32): Likewise.
29133 (vsha256h2q_u32): Likewise.
29134 (vsha256su0q_u32): Likewise.
29135 (vsha256su1q_u32): Likewise.
29136 (vmull_p64): Likewise.
29137 (vmull_high_p64): Likewise.
29139 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29141 * final.c (final_scan_insn): Don't check HAVE_peephole with the
29143 * output.h: Likewise.
29144 * genconfig.c (main): Alwways define HAVE_peephole.
29145 * genpeep.c: Don't emit checks of HAVE_peephole.
29147 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29149 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29150 check HAVE_conditional_move with the preprocessor.
29152 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29154 * genconfig.c (main): Always define HAVE_conditional_move.
29155 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29156 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29159 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29161 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29162 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29163 and FRAME_POINTER_REGNUM with the preprocessor.
29165 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29167 * defaults.h: Add default for STACK_PUSH_CODE.
29168 * expr.c: Don't redefine STACK_PUSH_CODE.
29169 * recog.c: Likewise.
29171 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29173 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29174 sched-deps.c: Use if instead of preprocessor checks with
29175 STACK_GROWS_DOWNWARD.
29177 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29179 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29181 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29182 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29183 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29184 * doc/tm.texi: Regenerate.
29186 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
29189 * config/i386/constraints.md (Bg): New constraint for GOT memory
29191 * config/i386/i386.md (*call_got_x32): New pattern.
29192 (*call_value_got_x32): Likewise.
29193 * config/i386/predicates.md (GOT_memory_operand): New predicate.
29195 2015-05-21 Jakub Jelinek <jakub@redhat.com>
29197 PR tree-optimization/66233
29198 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29201 2015-05-21 Jeff Law <law@redhat.com>
29203 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29204 than MULT for shadd sequences.
29206 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
29208 * alias.c (alias_stats): New static var.
29209 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29210 (dump_alias_stats_in_alias_c): New function.
29211 * alias.h (dump_alias_stats_in_alias_c): Declare.
29212 * tree-ssa-alias.c (dump_alias_stats): Call it.
29214 2015-05-08 Michael Matz <matz@suse.de>
29216 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29218 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29219 (STMT_VINFO_STRIDED_P): ... this.
29220 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29221 (vect_verify_datarefs_alignment): Likewise.
29222 (vect_enhance_data_refs_alignment): Likewise.
29223 (vect_analyze_data_ref_access): Likewise.
29224 (vect_analyze_data_refs): Accept strided stores.
29225 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29226 (vect_model_load_cost): Adjust for macro rename.
29227 (vectorizable_mask_load_store): Likewise.
29228 (vectorizable_load): Likewise.
29229 (vectorizable_store): Open code strided stores.
29231 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29233 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29234 Document sqrt_insn.
29236 2015-05-21 Richard Biener <rguenther@suse.de>
29239 * match.pd: Guard pattern optimzing (int)(float)int
29240 conversions to apply only on GIMPLE.
29242 2015-05-21 Jeff Law <law@redhat.com>
29244 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29245 multiply-accumulate/shift-add insn generation.
29247 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
29250 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29251 operands[1] are the same.
29253 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
29255 PR middle-end/66221
29256 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29257 build_distinct_type_copy to copy bounds.
29259 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
29261 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29262 Change to unsigned int.
29264 2015-05-20 Jeff Law <law@redhat.com>
29266 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29267 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29268 (pa_shadd_constant_p): Allow constants for shadd insns rather
29269 than valid scaling constants for memory addresses.
29270 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29271 * config/pa/predicates.md (mem_shadd_operand): New predicate.
29272 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29273 (shift-add insns using ASHIFT): New patterns.
29275 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
29277 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29279 (fix_up_fall_thru_edges): Likewise.
29280 (fix_crossing_conditional_branches): Likewise. Promote jump targets
29281 from to rtx_insn to rtx_code_label where feasible.
29282 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29283 gen_move_insn (returned type changed to rtx_insn).
29284 * builtins.c (expand_errno_check): Fix arguments of
29285 do_compare_rtx_and_jump (now expects rtx_code_label).
29286 (expand_builtin_acc_on_device): Likewise.
29287 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29288 invert_jump (now exprects rtx_jump_insn).
29289 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29290 (construct_init_block): Use rtx_code_label.
29291 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29292 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29293 calling redirect_jump.
29294 (patch_jump_insn): Likewise.
29295 (redirect_branch_edge): Likewise.
29296 (force_nonfallthru_and_redirect): Likewise.
29297 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29299 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29300 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29301 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29302 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29303 to store the value retured by gen_label_rtx.
29304 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29306 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29307 (split_branches): Fix calls of redirect_jump.
29308 * dojump.c (jumpifnot): Promote argument type from rtx to
29310 (jumpifnot_1): Likewise.
29311 (jumpif): Likewise.
29312 (jumpif_1): Likewise.
29313 (do_jump_1): Likewise.
29314 (do_jump): Likewise. Use rtx_code_label when feasible.
29315 (do_jump_by_parts_greater_rtx): Likewise.
29316 (do_jump_by_parts_zero_rtx): Likewise.
29317 (do_jump_by_parts_equality_rtx): Likewise.
29318 (do_compare_rtx_and_jump): Likewise.
29319 * dojump.h: Update function prototypes.
29320 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29322 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29324 (emit_label_before): Likewise.
29325 (emit_jump_insn_after_noloc): Likewise.
29326 (emit_jump_insn_after_setloc): Likewise.
29327 (emit_jump_insn_after): Likewise
29328 (emit_jump_insn_before_setloc): Likewise.
29329 (emit_jump_insn_before): Likewise.
29330 (emit_label_before): Promote return type to rtx_code_label.
29331 (emit_label): Likewise.
29332 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29333 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29335 (emit_stack_restore): Likewise.
29336 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29337 (do_cmp_and_jump): Likewise.
29338 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29339 from rtx to rtx_code_label.
29340 (gen_move_insn_uncast): New function.
29341 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29342 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29343 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29344 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29345 invert_jump_1 and redirect_jump_1.
29346 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29347 do_compare_rtx_and_jump.
29348 (expand_addsub_overflow): Likewise.
29349 (expand_neg_overflow): Likewise.
29350 (expand_mul_overflow): Likewise.
29351 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29352 return value of gen_move_insn.
29353 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29354 * loop-doloop.c (add_test): Use rtx_code_label.
29355 (doloop_modify): Likewise.
29356 (doloop_optimize): Likewise.
29357 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29358 * lra-constraints.c (emit_spill_move): Remove cast of value returned
29360 (inherit_reload_reg): Add cast when calling dump_insn_slim.
29361 (split_reg): Likewise.
29362 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29364 * optabs.c (expand_binop_directly): Remove casts of values returned by
29366 (expand_unop_direct): Likewise.
29367 (expand_abs): Likewise.
29368 (maybe_emit_unop_insn): Likewise.
29369 (maybe_gen_insn): Promote return type to rtx_insn.
29370 * optabs.h: Update prototype of maybe_gen_insn.
29371 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29373 * recog.c (struct peep2_insn_data): Promote type of insn field to
29375 (peep2_reinit_state): Use NULL instead of NULL_RTX.
29376 (peep2_attempt): Remove casts of insn in peep2_insn_data.
29377 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29378 * recog.h (struct insn_gen_fn): Promote return types of function
29379 pointers and operator ().from rtx to rtx_insn.
29380 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29381 (fill_eager_delay_slots): Likewise.
29382 (relax_delay_slots): Likewise.
29383 (make_return_insns): Likewise.
29384 (dbr_schedule): Likewise.
29385 (optimize_skips): Likewise.
29386 (reorg_redirect_jump): Likewise.
29387 (fill_slots_from_thread): Likewise.
29388 * reorg.h: Update prototypes.
29389 * resource.c (find_dead_or_set_registers): Use dyn_cast to
29390 rtx_jump_insn instead of check. Use it's jump_target method.
29391 * rtl.h (rtx_jump_insn::jump_label): Define new method.
29392 (rtx_jump_insn::jump_target): Define new method.
29393 (rtx_jump_insn::set_jump_target): Define new method.
29394 * rtlanal.c (tablejump_p): Promote type of one local variable.
29395 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29396 (sched_analyze_insn): Likewise.
29397 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29398 (print_insn): Likewise.
29399 * stmt.c (label_rtx): Promote return type to rtx_insn.
29400 (force_label_rtx): Likewise.
29401 (jump_target_rtx): Define new function.
29402 (expand_label): Use it, get rid of one cast.
29403 (expand_naked_return): Promote rtx to rtx_code_label.
29404 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29405 (expand_case): Use rtx_code_label instread of rtx where feasible.
29406 (expand_sjlj_dispatch_table): Likewise.
29407 (emit_case_nodes): Likewise.
29408 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
29409 * store-motion.c (insert_store): Make use of new return type of
29410 gen_move_insn and remove a cast.
29411 (replace_store_insn): Likewise.
29413 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
29415 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29416 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29418 2015-05-20 Jeff Law <law@redhat.com>
29420 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29421 dispose of the jump thread path when the jump threading
29422 opportunity is cancelled.
29424 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29426 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29427 when printing the caret character.
29429 2015-05-20 Marek Polacek <polacek@redhat.com>
29431 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29433 2015-05-20 Marek Polacek <polacek@redhat.com>
29435 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29436 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29437 * gimple-fold.c (canonicalize_bool): Likewise.
29438 (same_bool_result_p): Likewise.
29439 * tree-if-conv.c (parse_predicate): Likewise.
29441 2015-05-20 Marek Polacek <polacek@redhat.com>
29443 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29444 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29446 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29448 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29449 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29452 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
29454 * config/mips/mips.h (micromips_globals): Declare.
29456 2015-05-20 David Malcolm <dmalcolm@redhat.com>
29458 * timevar.def (TV_INITIALIZE_RTL): New.
29459 * toplev.c (initialize_rtl): Use an auto_timevar to account this
29460 function's time to TV_INITIALIZE_RTL.
29462 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
29464 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29465 gimple_build_nop calls.
29466 (chkp_find_bounds_for_elem): Likewise.
29467 (chkp_get_zero_bounds): Likewise.
29468 (chkp_get_none_bounds): Likewise.
29469 (chkp_get_bounds_by_definition): Likewise.
29470 (chkp_generate_extern_var_bounds): Likewise.
29471 (chkp_get_bounds_for_decl_addr): Likewise.
29472 (chkp_get_bounds_for_string_cst): Likewise.
29474 2015-05-20 Bin Cheng <bin.cheng@arm.com>
29476 PR tree-optimization/65447
29477 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29478 (dump_use, dump_uses): Support to dump sub use.
29479 (record_use): New parameters to support sub use. Remove call to
29481 (record_sub_use, record_group_use): New functions.
29482 (compute_max_addr_offset, split_all_small_groups): New functions.
29483 (group_address_uses, rewrite_use_address): New functions.
29484 (strip_offset): New declaration.
29485 (find_interesting_uses_address): Call record_group_use.
29486 (add_candidate): New assertion.
29487 (infinite_cost_p): Move definition forward.
29488 (add_costs): Check INFTY cost and return immediately.
29489 (get_computation_cost_at): Clear setup cost and dependent bitmap
29491 (determine_use_iv_cost_address): Compute cost for sub uses.
29492 (rewrite_use_address_1): Rename from old rewrite_use_address.
29493 (free_loop_data): Free sub uses.
29494 (tree_ssa_iv_optimize_loop): Call group_address_uses.
29496 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29497 Jim Wilson <jim.wilson@linaro.org>
29499 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29500 new fields loadv and storev.
29501 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29502 Initialize loadv and storev.
29503 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29504 (cortexa53_extra_costs): Likewise.
29505 (cortexa57_extra_costs): Likewise.
29506 (xgene1_extra_costs): Likewise.
29507 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29510 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29512 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29514 (cortexa8_extra_costs): Likewise.
29515 (cortexa5_extra_costs): Likewise.
29516 (cortexa7_extra_costs): Likewise.
29517 (cortexa12_extra_costs): Likewise.
29518 (cortexa15_extra_costs): Likewise.
29519 (v7m_extra_costs): Likewise.
29521 2015-05-20 Jeff Law <law@redhat.com>
29523 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29524 instead of open-coded version. Also delete the jump thread created
29525 within this function.
29527 2015-05-20 Alan Modra <amodra@gmail.com>
29529 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
29530 stack adjusting insn. Formatting.
29531 (rs6000_emit_prologue): Track stack adjusting insn, and use of
29532 r12. If possible, emit first -fsplit-stack arg pointer insn
29533 before stack adjust. Don't use r12 to save cr if split-stack.
29535 2015-05-20 Alan Modra <amodra@gmail.com>
29537 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
29539 (rs6000_supports_split_stack): New function.
29540 * config/rs6000/rs6000.c (machine_function): Add
29541 split_stack_arg_pointer.
29542 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
29543 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
29544 rather than virtual_incoming_args_rtx.
29545 (rs6000_va_start): Likewise.
29546 (split_stack_arg_pointer_used_p): New function.
29547 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
29548 (morestack_ref): New var.
29549 (gen_add3_const, rs6000_expand_split_stack_prologue,
29550 rs6000_internal_arg_pointer, rs6000_live_on_entry,
29551 rs6000_split_stack_space_check): New functions.
29552 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
29553 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
29554 (UNSPECV_SPLIT_STACK_RETURN): Define.
29555 (split_stack_prologue, load_split_stack_limit,
29556 load_split_stack_limit_di, load_split_stack_limit_si,
29557 split_stack_return, split_stack_space_check): New expands and insns.
29558 * config/rs6000/rs6000-protos.h
29559 (rs6000_expand_split_stack_prologue): Declare.
29560 (rs6000_split_stack_space_check): Declare.
29562 2015-05-20 Alan Modra <amodra@gmail.com>
29564 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
29565 (direct_return): Test vrsave_size rather than vrsave_mask.
29566 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
29567 (rs6000_emit_epilogue): Likewise.
29569 2015-05-20 Alan Modra <amodra@gmail.com>
29571 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
29572 when not saving registers.
29573 (debug_stack_info): Adjust to omit printing unused offsets,
29575 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
29578 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29581 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
29582 value_type to const char *.
29584 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
29586 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
29587 to build a biarch toolchain again.
29589 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29591 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
29592 or implicit declarations.
29593 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
29595 (get_odr_type): Check type has linkage before adding bases.
29596 (register_odr_type): Check that type has linkage before adding it.
29597 (type_known_to_have_no_deriavations_p): Rename to ..
29598 (type_known_to_have_no_derivations_p): This one.
29599 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
29600 (type_known_to_have_no_derivations_p): This one.
29601 * ipa-polymorphic-call.c
29602 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
29605 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29607 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
29608 (layout_type): Use RECORD_OR_UNION_TYPE_P.
29610 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29612 * config/s390/s390.c (s390_vector_bool_type_p): New function.
29613 (s390_invalid_binary_op): New function.
29614 (TARGET_INVALID_BINARY_OP): Define macro.
29616 2015-05-19 David Sherwood <david.sherwood@arm.com>
29618 * loop-invariant.c (create_new_invariant): Don't calculate address cost
29619 if mode is not a scalar integer.
29620 (get_inv_cost): Increase computational cost for unused invariants.
29622 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29624 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
29625 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
29626 * config/s390/s390-builtin-types.def: New file.
29627 * config/s390/s390-builtins.def: New file.
29628 * config/s390/s390-builtins.h: New file.
29629 * config/s390/s390-c.c: New file.
29630 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
29631 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
29632 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
29633 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
29635 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
29637 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
29638 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
29639 variable definitions.
29640 (s390_const_operand_ok): New function.
29641 (s390_expand_builtin): Rewrite.
29642 (s390_init_builtins): New function.
29643 (s390_handle_vectorbool_attribute): New function.
29644 (s390_attribute_table): Add s390_vector_bool attribute.
29645 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
29646 (s390_branch_condition_mask): Generate masks for new modes.
29647 (s390_expand_vec_compare_cc): New function.
29648 (s390_mangle_type): Add mangling for vector bool types.
29649 (enum s390_builtin): Remove.
29650 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
29652 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
29653 s390_cpu_cpp_builtins.
29654 (REGISTER_TARGET_PRAGMAS): New macro.
29655 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
29656 (insn_cmp mode attribute): Add new CC modes.
29657 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
29658 (lcbb): New pattern definition.
29659 * config/s390/s390intrin.h: Include vecintrin.h.
29660 * config/s390/t-s390: New file.
29661 * config/s390/vecintrin.h: New file.
29662 * config/s390/vector.md: Include vx-builtins.md.
29663 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
29666 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29668 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
29670 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
29671 (s390_select_ccmode): Likewise.
29672 (s390_canonicalize_comparison): Swap operands if necessary.
29673 (s390_expand_vec_compare_scalar): Expand DFmode compare using
29674 single element vector instructions.
29675 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
29676 (s390_branch_condition_mask): Generate CC masks for the new modes.
29677 * config/s390/s390.md (v0, vf, vd): New mode attributes.
29678 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
29679 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
29680 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
29681 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
29682 (*extend<DSF:mode><BFP:mode>2): New insn definition.
29683 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
29684 (extend<DSF:mode><BFP:mode>2): Turn into expander.
29685 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
29686 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
29687 (sqrt<mode>2): Add vector instruction.
29689 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29691 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
29693 * config/s390/predicates.md (const0_operand, constm1_operand)
29694 (constable_operand): Accept vector operands.
29695 * config/s390/s390-modes.def: Add supported vector modes.
29696 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
29697 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
29698 (s390_bytemask_vector_p, s390_expand_vec_strlen)
29699 (s390_expand_vec_compare, s390_expand_vcond)
29700 (s390_expand_vec_init): Add prototypes.
29701 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
29702 (s390_vector_mode_supported_p): New function.
29703 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
29704 (s390_contiguous_bitmask_vector_p): New function.
29705 (s390_bytemask_vector_p): New function.
29706 (s390_split_ok_p): Vector regs don't work either.
29707 (regclass_map): Add VEC_REGS.
29708 (s390_legitimate_constant_p): Handle vector constants.
29709 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
29710 (legitimate_reload_vector_constant_p): New function.
29711 (s390_preferred_reload_class): Handle CONST_VECTOR.
29712 (s390_reload_symref_address): Likewise.
29713 (s390_secondary_reload): Vector memory instructions only support
29714 short displacements. Rename reload*_nonoffmem* to reload*_la*.
29715 (s390_emit_ccraw_jump): New function.
29716 (s390_expand_vec_strlen): New function.
29717 (s390_expand_vec_compare): New function.
29718 (s390_expand_vcond): New function.
29719 (s390_expand_vec_init): New function.
29720 (s390_dwarf_frame_reg_mode): New function.
29721 (print_operand): Handle addresses with 'O' and 'R' constraints.
29722 (NR_C_MODES, constant_modes): Add vector modes.
29723 (s390_output_pool_entry): Handle vector constants.
29724 (s390_hard_regno_mode_ok): Handle vector registers.
29725 (s390_class_max_nregs): Likewise.
29726 (s390_cannot_change_mode_class): New function.
29727 (s390_invalid_arg_for_unprototyped_fn): New function.
29728 (s390_function_arg_vector): New function.
29729 (s390_function_arg_float): Remove size variable.
29730 (s390_pass_by_reference): Handle vector arguments.
29731 (s390_function_arg_advance): Likewise.
29732 (s390_function_arg): Likewise.
29733 (s390_return_in_memory): Vector values are returned in a VR if
29735 (s390_function_and_libcall_value): Handle vector arguments.
29736 (s390_gimplify_va_arg): Likewise.
29737 (s390_call_saved_register_used): Consider the arguments named.
29738 (s390_conditional_register_usage): Disable v16-v31 for non-vec
29740 (s390_preferred_simd_mode): New function.
29741 (s390_support_vector_misalignment): New function.
29742 (s390_vector_alignment): New function.
29743 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
29744 (TARGET_VECTOR_MODE_SUPPORTED_P)
29745 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
29746 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
29747 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
29748 (TARGET_VECTOR_ALIGNMENT): Define target macro.
29749 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
29750 (FIRST_PSEUDO_REGISTER): Increase value.
29751 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
29752 (VECTOR_REG_P): Define macros.
29753 (FIXED_REGISTERS, CALL_USED_REGISTERS)
29754 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
29755 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
29756 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
29757 Add vector registers.
29758 (CANNOT_CHANGE_MODE_CLASS): Call C function.
29759 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
29760 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
29762 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
29763 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
29764 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
29765 (VR*_REGNUM): New constants.
29766 (ALL): New mode iterator.
29767 (INTALL): Remove mode iterator.
29769 (movti): Implement TImode moves for VRs.
29770 Disable TImode splitter for VR targets.
29771 Implement splitting TImode GPR<->VR moves.
29772 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
29773 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
29774 reload<mode>_la_in, reload<mode>_la_out.
29775 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
29776 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
29777 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
29778 (mov<mode> SF SD): Prefer lder, lde for loading.
29779 Add lrl and strl instructions.
29780 Add vector instructions.
29781 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
29782 Call s390_expand_vec_strlen on z13.
29783 (*cc_to_int): Change predicate to nonimmediate_operand.
29784 (addti3): Rename to *addti3. New expander.
29785 (subti3): Rename to *subti3. New expander.
29786 * config/s390/vector.md: New file.
29788 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29790 * common/config/s390/s390-common.c (processor_flags_table): Add
29792 * config.gcc: Add z13.
29793 * config/s390/s390-opts.h (enum processor_type): Add
29794 PROCESSOR_2964_Z13.
29795 * config/s390/s390.c (s390_adjust_priority): Check for
29796 PROCESSOR_2964_Z13.
29797 (s390_reorg): Likewise.
29798 (s390_sched_reorder): Likewise.
29799 (s390_sched_variable_issue): Likewise.
29800 (s390_loop_unroll_adjust): Likewise.
29801 (s390_option_override): Likewise. Default to -mvx when available.
29802 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
29803 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
29804 (TARGET_VX_ABI): Define macros.
29806 (TARGET_DEFAULT): Add MASK_OPT_VX.
29807 * config/s390/s390.md ("cpu" attribute): Add z13.
29808 ("cpu_facility" attribute): Add vec.
29809 * config/s390/s390.opt (processor_type): Add z13.
29810 (mvx): New options.
29811 * doc/invoke.texi: Add z13 option for -march.
29813 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29815 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
29816 mode check to make sure that only scalar integer values are
29819 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29821 * tree.c (verify_type_variant): Fix #undef.
29822 (gimple_canonical_types_compatible_p): Move here from lto.c
29823 (verify_type): Verify TYPE_CANONICAL compatibility.
29824 * tree.h (gimple_canonical_types_compatible_p): Declare.
29826 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29828 PR middle-end/66199
29829 * tree.h (OMP_TEAMS_COMBINED): Define.
29830 * gimplify.c (enum gimplify_omp_var_data): Add
29831 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
29832 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
29833 (omp_notice_variable): Accept both ORT_TEAMS
29834 and ORT_COMBINED_TEAMS. Don't recurse if
29835 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
29836 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
29838 (omp_no_lastprivate): New function.
29839 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
29840 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
29841 notice_outer and set appropriate bits, otherwise make
29842 sure default(none) combined constructs won't complain.
29843 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
29844 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
29845 omp_no_lastprivate either remove the clause or turn it
29846 into OMP_CLAUSE_PRIVATE.
29847 (gimplify_omp_for): Fix up handling of implicit
29848 lastprivate or linear iterators.
29849 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
29850 ORT_COMBINED_TEAMS.
29851 * omp-low.c (lower_omp_for_lastprivate): For combined
29852 for simd use fd.loop.n2 from the for rather than simd.
29854 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29856 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
29857 instead of gen_rtx_raw_REG.
29858 (cris_expand_epilogue): Likewise.
29859 * config/microblaze/microblaze.c (microblaze_classify_address):
29861 * config/sparc/sparc.md: Likewise.
29863 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
29865 * config/alpha/alpha.c (alpha_legitimize_reload_address)
29866 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
29867 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
29868 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
29869 Use CASE_CONST_SCALAR_INT.
29870 (print_operand) <case 'M'>: Use mode_width_operand to check the
29871 value of the constant.
29872 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
29873 * config/alpha/predicates.md (input_operand): Use general_operand
29874 instead of match_code as operand check.
29875 (symbolic_operand): Use match_code with subexpression digits.
29876 * config/alpha/constraints.md (Q): Ditto.
29878 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29880 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
29882 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29884 * config/s390/s390.c (s390_secondary_reload): Fix check for
29885 load/store relative.
29887 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29889 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
29890 alternative_mask to uint64_t.
29892 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29894 PR tree-optimization/66187
29895 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
29896 Pass TYPE_SIGN to tree_int_cst_min_precision. If
29897 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
29899 2015-05-19 David Malcolm <dmalcolm@redhat.com>
29901 * diagnostic.c (diagnostic_report_current_module): Strengthen
29902 local "new_map" from const line_map * to
29903 const line_map_ordinary *.
29904 * genmatch.c (error_cb): Likewise for local "map".
29905 (output_line_directive): Likewise for local "map".
29906 * input.c (expand_location_1): Likewise for local "map".
29907 Pass NULL rather than &map to
29908 linemap_unwind_to_first_non_reserved_loc, since the value is never
29909 read from there, and the value written back not read from here.
29910 (is_location_from_builtin_token): Strengthen local "map" from
29911 const line_map * to const line_map_ordinary *.
29912 (dump_location_info): Strengthen locals "map" from
29913 line_map *, one to const line_map_ordinary *, the other
29914 to const line_map_macro *.
29915 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
29916 const line_map * to const line_map_macro *.
29917 (maybe_unwind_expanded_macro_loc): Add a call to
29918 linemap_check_macro when writing to the "map" field of the
29920 Introduce local const line_map_ordinary * "ord_map", using it in
29921 place of "map" in the part of the function where we know we have
29922 an ordinary map. Strengthen local "m" from const line_map * to
29923 const line_map_ordinary *.
29925 2015-05-19 Nick Clifton <nickc@redhat.com>
29928 * config/msp430/msp430.md (zero_extendhisi2): Add support for
29929 separate source and destination registers.
29931 2015-05-19 Richard Biener <rguenther@suse.de>
29933 PR tree-optimization/66165
29934 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
29935 for no load permutation.
29937 PR tree-optimization/66185
29938 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
29939 when building the SLP node from scalars.
29941 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29942 Tristan Gingold <gingold@adacore.com>
29944 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
29945 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
29946 (expand_stack_restore): Call record_new_stack_level.
29947 (expand_stack_save): Do not call do_pending_stack_adjust.
29948 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
29949 * calls.c (expand_call): Call record_new_stack_level for alloca.
29950 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
29951 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
29952 (update_sjlj_context): New global function.
29953 * except.h (update_sjlj_context): Declare.
29954 * explow.c (record_new_stack_level): New global function.
29955 (allocate_dynamic_stack_space): Call record_new_stack_level.
29956 * explow.h (record_new_stack_level): Declare.
29957 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
29958 * cfgrtl.c (duplicate_insn_chain): Likewise.
29960 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29962 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
29963 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
29964 STACK_GROWS_DOWNWARD as normal if.
29965 (expand_call): Likewise.
29967 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
29970 * config/sh/sh.md (*round_int_even): New insn_and_split and
29971 accompanying new unnamed split.
29973 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29975 * bitmap.c (bitmap_set_range): Handle count==1 specially.
29976 (bitmap_clear_range): Likewise.
29977 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
29978 bitmap_set_range unconditionally.
29979 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29980 * df-scan.c (df_mark_reg): Likewise.
29981 * haifa-sched.c (setup_ref_regs): Likewise.
29982 * sched-rgn.c (update_live_1): Likewise.
29984 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29986 * regs.h (END_HARD_REGNO): Delete.
29987 (END_REGNO): Move to...
29989 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
29990 * caller-save.c (mark_set_regs): Likewise.
29991 * combine.c (move_deaths, distribute_notes): Likewise.
29992 * cse.c (invalidate, invalidate_for_call): Likewise.
29993 * df-scan.c (df_ref_record): Likewise.
29994 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
29995 (record_last_reg_set_info): Likewise.
29996 * reg-stack.c (convert_regs_exit): Likewise.
29997 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
29998 * resource.c (update_live_status): Likewise.
29999 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
30001 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30003 * rtl.h (reg_info): Add an nregs field.
30004 (REG_NREGS): Use it.
30005 (SET_REGNO_RAW): Delete.
30006 (set_regno_raw): New function.
30007 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
30008 (END_REGNO): Redefine in terms of REG_NREGS.
30009 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
30011 * emit-rtl.c (set_mode_and_regno): Likewise.
30012 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
30013 instead of SET_REGNO_RAW.
30015 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30017 * rtl.h (PUT_MODE_RAW): New macro.
30018 (PUT_REG_NOTE_KIND): Use it.
30019 (set_mode_and_regno): Declare.
30020 (gen_raw_REG): Change regno to "unsigned int".
30021 (gen_rtx_REG): Change "unsigned" to "unsigned int".
30022 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
30023 use set_mode_and_regno to change the mode of registers.
30024 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
30025 * emit-rtl.c (set_mode_and_regno): New function.
30026 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
30027 * caller-save.c (reg_save_code): Use set_mode_and_regno.
30028 * expr.c (init_expr_target): Likewise.
30029 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30030 * postreload.c (reload_cse_simplify_operands): Likewise.
30032 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30034 * caller-save.c (init_caller_save): Use word_mode and
30035 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
30036 * expr.c (init_expr_target): Likewise.
30037 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30038 * postreload.c (reload_cse_regs_1): Likewise.
30040 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30042 * rtl.def (REG): Change format to "r".
30043 * rtl.h (rtunion): Remove rt_reg.
30044 (reg_info): New structure.
30045 (rtx_def): Add reg field to main union.
30046 (X0REGATTR): Delete.
30047 (REG_CHECK): New macro.
30048 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
30049 * rtl.c (rtx_format): Document "r".
30050 (rtx_code_size): Handle REG specially.
30051 * gengenrtl.c (special_format): Return true for formats
30053 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
30054 Deal with REG_ATTRS after the field loop.
30055 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
30056 * expmed.c (init_expmed): Call gen_raw_REG instead of
30058 * expr.c (init_expr_target): Likewise.
30059 * regcprop.c (maybe_mode_change): Likewise.
30060 * varasm.c (make_decl_rtl): Likewise.
30061 * final.c (leaf_renumber_regs_insn): Return early after
30063 * genemit.c (gen_exp): Handle 'r' fields.
30064 * genpeep.c (match_rtx): Likewise.
30065 * gensupport.c (subst_pattern_match): Likewise.
30066 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
30067 (alter_constraints, subst_dup): Likewise.
30068 * read-rtl.c (read_rtx_code): Likewise.
30069 * print-rtl.c (print_rtx): Likewise.
30070 * genrecog.c (find_operand, find_matching_operand): Likewise.
30071 (validate_pattern, match_pattern_2): Likewise.
30072 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
30073 (rtx_test::regno_field): New function.
30074 (operator ==, safe_to_hoist_p, transition_parameter_type)
30075 (parameter_type_string, print_parameter_value)
30076 (print_nonbool_test, print_test): Handle new enum values.
30077 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
30078 * lra-constraints.c (operands_match_p): Likewise.
30080 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30082 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
30083 Change type of new_regno to unsigned int.
30084 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
30085 new_regno to unsigned int.
30086 (df_ref_change_reg_with_loc): Remove old_regno parameter.
30087 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
30088 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
30089 (SET_REGNO_RAW): Add space after ",".
30091 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30093 * rtl.h (REG_NREGS): New macro
30094 * alias.c (record_set): Use it.
30095 * cfgcleanup.c (mark_effect): Likewise.
30096 * combine.c (likely_spilled_retval_1): Likewise.
30097 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
30098 (move_deaths, distribute_notes): Likewise.
30099 * cselib.c (cselib_record_set): Likewise.
30100 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30101 * df-scan.c (df_mark_reg): Likewise.
30102 * dse.c (look_for_hardregs): Likewise.
30103 * dwarf2out.c (reg_loc_descriptor): Likewise.
30104 (multiple_reg_loc_descriptor): Likewise.
30105 * expr.c (write_complex_part, read_complex_part): Likewise.
30106 (emit_move_complex): Likewise.
30107 * haifa-sched.c (setup_ref_regs): Likewise.
30108 * ira-lives.c (mark_hard_reg_live): Likewise.
30109 * lra.c (lra_set_insn_recog_data): Likewise.
30110 * mode-switching.c (create_pre_exit): Likewise.
30111 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30112 (reload_combine_recognize_pattern): Likewise.
30113 (reload_combine_note_use, move2add_record_mode): Likewise.
30114 (reload_cse_move2add): Likewise.
30115 * reg-stack.c (subst_stack_regs_pat): Likewise.
30116 * regcprop.c (kill_value, copy_value): Likewise.
30117 (copyprop_hardreg_forward_1): Likewise.
30118 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30119 (build_def_use): Likewise.
30120 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30121 (deps_analyze_insn): Likewise.
30122 * sched-rgn.c (check_live_1, update_live_1): Likewise.
30123 * sel-sched.c (count_occurrences_equiv): Likewise.
30124 * valtrack.c (dead_debug_insert_temp): Likewise.
30126 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30128 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30129 * dse.c (note_add_store): Likewise.
30130 * ira-lives.c (mark_hard_reg_dead): Likewise.
30131 * loop-invariant.c (mark_reg_store): Likewise.
30132 (mark_reg_death): Likewise.
30133 * postreload.c (reload_combine): Likewise.
30134 (reload_combine_note_store): Likewise.
30135 (reload_combine_note_use): Likewise.
30136 * recog.c (peep2_reg_dead_p): Likewise.
30138 2015-05-19 Alan Modra <amodra@gmail.com>
30140 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30141 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30142 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30144 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30145 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
30146 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30147 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30149 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
30151 * config/mips/mips.md (JOIN_MODE): New mode iterator.
30152 (join2_load_Store<JOIN_MODE:mode>): New pattern.
30153 (join2_loadhi): Likewise.
30154 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30155 load-load and store-stores.
30156 * config/mips/mips.opt (mload-store-pairs): New option.
30157 (TARGET_LOAD_STORE_PAIRS): New macro.
30158 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30159 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30160 * config/mips/mips.c (mips_load_store_bonding_p): New function.
30162 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
30164 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30166 * dojump.c (do_compare_rtx_and_jump): Likewise.
30167 * expmed.c (emit_store_flag_1): Likewise.
30168 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30169 * final.c (sprint_ul): Use std::reverse for reversing a string.
30170 * fold-const.c (extract_muldiv_1): Use std::swap.
30171 * genmodes.c (emit_mode_int_n): Likewise.
30172 * ifcvt.c (dead_or_predicable): Likewise.
30173 * ira-build.c (ira_merge_live_ranges): Likewise.
30174 (swap_allocno_copy_ends_if_necessary): Likewise.
30175 * ira.c (ira_setup_alts): Likewise.
30176 * loop-iv.c (iv_analyze_expr): Likewise.
30177 (implies_p): Likewise.
30178 (canon_condition): Likewise.
30179 * lra-constraints.c (swap_operands): Likewise.
30180 * lra-lives.c (lra_merge_live_ranges): Likewise.
30181 * omega.c (swap): Remove.
30183 (omega_unprotect_1): Use std::swap.
30184 (omega_solve_geq): Likewise.
30185 * optabs.c (expand_binop_directly): Likewise.
30186 (expand_binop): Likewise.
30187 (emit_conditional_move): Likewise.
30188 (emit_conditional_add): Likewise.
30189 * postreload.c (reload_cse_simplify_operands): Likewise.
30190 * reg-stack.c (emit_swap_insn): Likewise.
30191 (swap_to_top): Likewise.
30192 (compare_for_stack_reg): Likewise.
30193 (subst_asm_stack_regs): Likewise.
30194 * reload.c (find_reloads): Likewise.
30195 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30196 * sel-sched.c (invoke_reorder_hooks): Likewise.
30197 (create_block_for_bookkeeping): Likewise.
30198 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30199 (lambda_matrix_right_hermite): Use std::swap.
30200 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30201 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30202 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30203 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30204 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30205 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30206 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30207 * tree-vrp.c (compare_ranges): Likewise.
30208 * var-tracking.c (add_with_sets): Likewise.
30209 (vt_find_locations): Likewise.
30211 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
30213 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30215 (FBSD_ENDFILE_SPEC): Likewise.
30216 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30217 config/freebsd-spec.h.
30218 (ENDFILE_SPEC): Likewise.
30220 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
30221 Richard Henderson <rth@redhat.com>
30224 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30225 Check for a memory location that is not a reference (using an AND)
30226 to an unaligned location here.
30227 * config/alpha/predicates.md (normal_memory_operand): Remove.
30229 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
30231 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30232 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30234 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
30236 * config/mips/mips.c (micromips_globals): New variable.
30237 (mips_set_compression_mode): Save and reinitialize target-dependent
30238 state for microMIPS.
30240 2015-05-18 Martin Liska <mliska@suse.cz>
30242 * dbgcnt.def: Add new counter.
30243 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30245 2015-05-18 Martin Liska <mliska@suse.cz>
30247 * dbgcnt.def: Sort counters.
30248 * opts.c (common_handle_option): Do not compile if
30249 -fdbg-cnt-list is enabled.
30251 2015-05-18 Tom de Vries <tom@codesourcery.com>
30253 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30254 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
30255 address operator to va_list operand.
30256 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30258 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30260 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30261 * config/s390/s390.c (s390_gimplify_va_arg): Same.
30262 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30264 2015-05-18 Tom de Vries <tom@codesourcery.com>
30266 * tree-ssa-tail-merge.c: Fix whitespace.
30268 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
30270 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30271 cortex-a17, and cortex-a17.cortex-a7.
30273 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
30276 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30278 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
30281 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30282 QImode inner modes for TARGET_AVX512BW. Force mask operand
30283 to a register for AVX512F modes.
30285 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30287 * toplev.c (emit_debug_global_declarations): Do not output debug info
30288 when doing slim LTO objects.
30290 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30292 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30293 odr_types_equivalent_p): Declare.
30294 (odr_type_p): Use gcc_checking_assert.
30295 (type_in_anonymous_namespace_p) Declare.
30296 (type_with_linkage_p): Declare.
30297 * common.opt (Wlto-type-mismatch): New warning.
30298 * ipa-devirt.c (compound_type_base): New function.
30299 (odr_or_derived_type_p): New function.
30300 (odr_types_equivalent_p): New function.
30301 (add_type_duplicate): Simplify.
30302 (type_with_linkage_p): Add hack to prevent false positives on C types
30303 (type_in_anonymous_namespace_p): Likewise.
30304 * tree.c (need_assembler_name_p): Use type_with_linkage.
30305 * tree.h (type_in_anonymous_namespace_p): Remove.
30306 * doc/invoke.texi (-Wlto-type-mismatch): Document
30308 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30310 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30311 (verify_type): Verify STRING_FLAG.
30313 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
30316 * tree-pretty-print.c (percent_K_format): Replace locus pointer
30317 with accessor function.
30318 * tree-diagnostic.c (diagnostic_report_current_function): Use
30319 diagnostic_location function.
30320 (maybe_unwind_expanded_macro_loc): Likewise.
30321 (virt_loc_aware_diagnostic_finalizer): Likewise.
30322 (default_tree_printer): Replace locus pointer with accessor function.
30323 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30324 (diagnostic_set_info_translated): Initialize second location.
30325 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30326 (diagnostic_show_locus): Handle two locations. Call
30327 diagnostic_print_caret_line.
30328 (diagnostic_print_caret_line): New.
30329 (default_diagnostic_starter): Use diagnostic_location function.
30330 (diagnostic_report_diagnostic): Use diagnostic_location function.
30331 (verbatim): Do not set text.locus.
30332 * diagnostic.h (struct diagnostic_info): Remove location field.
30333 (struct diagnostic_context): Make caret_chars an array of two.
30334 (diagnostic_location): New inline.
30335 (diagnostic_expand_location): Handle two locations.
30336 (diagnostic_same_line): New inline.
30337 (diagnostic_print_caret_line): Declare.
30338 (CARET_LINE_MARGIN): New constant.
30339 * pretty-print.c (pp_printf): Do not set text.locus.
30340 (pp_verbatim): Do not set text.locus.
30341 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30342 (struct text_info): Replace locus pointer with locations
30343 array. Add accessor functions.
30345 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
30346 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30349 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30350 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30351 large constants in register instead of splitting them.
30353 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
30356 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30357 replacements in memory addresses.
30358 (get_unaligned_address): Ditto.
30360 2015-05-16 James Bowman <james.bowman@ftdichip.com>
30362 * config/ft32/*: New files for FT32 port.
30363 * doc/install.texi: Add FT32 information.
30364 * doc/invoke.texi: Add FT32 information.
30365 * doc/md.texi: Add FT32 information.
30366 * doc/contrib.texi: Self added.
30368 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
30370 PR tree-optimization/64454
30371 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30372 (-1 - A -> ~A): Remove unnecessary condition.
30374 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
30376 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30377 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30378 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30380 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
30382 * ipa-chkp.h (chkp_wrap_function): New.
30383 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30384 (chkp_wrap_function_name): New.
30385 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30386 to get wrapper name.
30387 * lto-cgraph.c: Include ipa-chkp.h.
30388 (input_cgraph_1): Avoid alias chain for wrappers.
30390 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30392 PR middle-end/66134
30393 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30394 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30396 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30398 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30399 (AARCH64_FL_SLOWMUL): Delete.
30400 (AARCH64_FL_CRC): Redefine to 1<<3.
30401 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30403 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30405 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30408 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30410 * config/alpha/alpha.md (extendqidi2): Use general_operand
30411 instead of some_operand for operand[1] predicate.
30412 (extendhidi2): Ditto.
30413 (cbranchdi4): Use general_operand instead of some_operand
30414 for operand[1] and operands[2] predicates.
30415 (cstoredi4): Ditto.
30416 * config/alpha/predicates.md (some_operand): Remove unused predicate.
30417 (some_ni_operand): Ditto.
30419 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30421 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30422 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
30423 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30424 low part of the constant using alpha_emit_set_const_1.
30425 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30427 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
30429 * varasm.c (output_constant_pool_1): Pass down alignment from
30430 constant pool entry's descriptor to output_constant_pool_2.
30431 (output_object_block): Add comment prior to call to
30432 output_constant_pool_1.
30434 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
30436 PR rtl-optimization/65862
30437 * target.def (ira_change_pseudo_allocno_class): New hook.
30438 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30440 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30441 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30443 * ira-costs.c (find_costs_and_classes): Call the hook and change
30444 classes when it is necessary.
30445 * doc/tm.texi: Update.
30447 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
30449 * config/i386/i386.md (sibcall_memory): Check that register with
30450 callee address is not also used as one of the arguments, instead
30451 of checking that it is not live after the sibcall.
30452 (sibcall_pop_memory): Ditto.
30453 (sibcall_value_memory): Ditto.
30454 (sibcall_value_pop_memory): Ditto.
30456 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
30458 * generic-match-head.c (types_match): Handle non-types.
30459 * gimple-match-head.c (types_match): Likewise.
30460 * match.pd: Remove unnecessary TREE_TYPE for types_match.
30462 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
30464 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30465 (csneg3<mode>_insn): Enable expansion of pattern.
30467 2015-05-14 Nick Clifton <nickc@redhat.com>
30469 * config/rl78/rl78.c (rl78_select_section): Select the correct
30470 default section based upon the category of the decl.
30472 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30474 PR rtl-optimization/30967
30475 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30476 destination mode for the cost of scc patterns.
30478 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30480 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30481 using SWIM248 mode iterator.
30482 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30483 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
30484 for operand[2] constraint.
30485 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30487 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30489 PR middle-end/66133
30490 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30491 make sure it is never noreturn, even when the task body does not
30493 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30494 right before GIMPLE_OMP_RETURN.
30495 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30496 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
30497 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30499 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30501 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30502 * tree-ssa-math-opts.c: Include params.h
30503 (pow_synth_sqrt_info): New struct.
30504 (representable_as_half_series_p): New function.
30505 (get_fn_chain): Likewise.
30506 (print_nested_fn): Likewise.
30507 (dump_fractional_sqrt_sequence): Likewise.
30508 (dump_integer_part): Likewise.
30509 (expand_pow_as_sqrts): Likewise.
30510 (gimple_expand_builtin_pow): Use above to attempt to expand
30511 pow as series of square roots. Removed now unused variables.
30513 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30515 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30516 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30517 Remove *p0 and *p1 arguments. Rewrite function.
30518 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30519 (alpha_split_const_mov): Update calls to alpha_extract_integer and
30520 alpha_emit_set_long_const.
30521 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30522 (alpha_output_mi_thunk_osf): Ditto.
30523 * config/alpha/alpha.md (movti): Do not check operands[1]
30526 2015-05-13 Richard Biener <rguenther@suse.de>
30528 PR tree-optimization/66129
30529 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
30531 (vect_schedule_slp_instance): Fix typo.
30533 2015-05-13 David Malcolm <dmalcolm@redhat.com>
30535 * common.opt (fdump-internal-locations): New option.
30536 * input.c: Include diagnostic-core.h.
30537 (get_end_location): New function.
30538 (write_digit): New function.
30539 (write_digit_row): New function.
30540 (dump_location_range): New function.
30541 (dump_labelled_location_range): New function.
30542 (dump_location_info): New function.
30543 * input.h (dump_location_info): New prototype.
30544 * toplev.c (compile_file): Handle flag_dump_locations.
30546 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
30548 * gimple-expr.h (is_gimple_constant): Reorder.
30549 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
30551 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30553 * combine.c (simplify_set): When generating a CC set, if the
30554 source already is in the correct mode, do not wrap it in a
30555 compare. Simplify the rest of that code.
30557 2015-05-13 Richard Biener <rguenther@suse.de>
30559 PR tree-optimization/66123
30560 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
30563 2015-05-13 Richard Biener <rguenther@suse.de>
30565 PR middle-end/66110
30566 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
30568 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
30570 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30572 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
30573 * aclocal.m4: Regenerated with automake-1.11.6.
30575 2015-05-13 Tom de Vries <tom@codesourcery.com>
30577 PR tree-optimization/66010
30578 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
30579 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
30580 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
30581 and rval based on do_deref.
30583 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30586 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
30587 link time constants into adress expressions and therefore set
30590 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30593 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
30594 Use SWI248 iterator instead of SWI.
30595 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
30596 Use eq_attr "alternative" "0" instead of match_test in
30597 length_immediate attribute computation.
30598 (*mulvhi4, *mulvhi4_1): New define_insns.
30601 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
30602 SIGNED to get precision of non-negative value.
30604 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30607 * function.c (diddle_return_value_1): Process bounds first.
30608 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
30611 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
30613 PR rtl-optimization/64616
30614 * loop-invariant.c (can_move_invariant_reg): New.
30615 (move_invariant_reg): Call above new function to decide whether
30616 instruction can just be moved, skipping creation of temporary
30619 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30621 PR target/pr66047.c
30622 * i386.c (ix86_function_sseregparm): Only return -1 if local function
30623 with implied regparm is called from -mno-sse function.
30624 (init_cumulative_args): Output error if ix86_function_sseregparm
30625 return -1 and SSE register would be needed.
30626 (function_arg_advance_32): Likewise.
30627 (function_arg_32): Likewise.
30628 * i386.h (ix86_args): Add decl field.
30630 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30633 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
30634 inlines across optimization boundary.
30636 2015-05-12 Jason Merrill <jason@redhat.com>
30638 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
30639 string literal and macro name.
30641 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
30643 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
30644 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
30645 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
30647 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30649 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
30650 (-Wmisleading-indentation): New option.
30651 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
30653 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
30655 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
30656 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
30657 (alpha_extract_integer): Ditto.
30658 (alpha_legitimate_constant_p): Ditto.
30659 (alpha_split_tmode_pair): Ditto.
30660 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
30661 (alpha_expand_mov): Ditto.
30662 (print_operand): Remove handling of 'H' modifier.
30663 <case 'm'>: Remove CONST_DOUBLE handling.
30664 (summarize_insn): Handle CONST_WIDE_INT.
30665 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
30667 (movti): Handle CONST_WIDE_INT.
30668 * config/alpha/constraints.md ('H'): Remove constraint definition.
30669 ('G'): Do not match MODE_FLOAT class.
30670 * config/alpha/predicates.md (const0_operand): Also match
30672 (non_add_const_operand): Ditto.
30673 (non_zero_const_operand): Ditto.
30674 (some_operand): Ditto.
30675 (input_operand): Ditto. Handle CONST_WIDE_INT.
30676 (and_operand): Do not match const_double.
30677 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
30679 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
30682 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
30683 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
30684 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
30685 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
30686 is_mm_seq_cst, is_mm_sync): New accessor functions.
30687 * builtins.c (expand_builtin_sync_operation,
30688 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
30689 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
30690 (get_memmodel, expand_builtin_atomic_compare_exchange,
30691 expand_builtin_atomic_load, expand_builtin_atomic_store,
30692 expand_builtin_atomic_clear): Use new accessor routines.
30693 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
30694 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
30695 (maybe_emit_sync_lock_test_and_set): Use new accessors and
30696 MEMMODEL_SYNC_ACQUIRE.
30697 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
30698 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
30699 expand_atomic_store): Use new accessors.
30700 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
30701 * tsan.c (instrument_builtin_call): Update check for memory model beyond
30702 final enum to use MEMMODEL_LAST.
30703 * c-family/c-common.c: Use new accessor for memmodel_base.
30704 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
30706 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
30707 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
30708 mem_thread_fence, *dmb): Likewise.
30709 * config/alpha/alpha.c (alpha_split_compare_and_swap,
30710 alpha_split_compare_and_swap_12): Likewise.
30711 * config/arm/arm.c (arm_expand_compare_and_swap,
30712 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
30713 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
30714 atomic_loaddi): Likewise.
30715 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
30717 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
30718 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
30720 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
30721 atomic_store<mode>, atomic_compare_and_swap<mode>,
30722 atomic_exchange<mode>): Use new accessors.
30723 * config/mips/mips.c (mips_process_sync_loop): Likewise.
30724 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
30725 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
30726 rs6000_post_atomic_barrier): Add new cases.
30727 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
30728 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
30729 (atomic_load<mode>): Add new cases and use new accessors.
30730 (store_quadpti): Add new cases.
30731 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
30733 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
30734 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
30737 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30739 * ipa-devirt.c (type_with_linkage_p): New function.
30740 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
30742 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
30743 (can_be_name_hashed_p): Simplify.
30744 (hash_odr_name): Check that type has linkage before checking if it is
30746 (types_same_for_odr): Likewise.
30747 (odr_name_hasher::equal): Likewise.
30748 (odr_subtypes_equivalent_p): Likewise.
30749 (warn_types_mismatch): Likewise.
30750 (get_odr_type): Likewise.
30751 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
30752 * ipa-utils.h (odr_type_p): Move offline.
30753 * tree.c (need_assembler_name_p): Fix handling of types
30755 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
30757 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30759 * timevar.c (timevar_enable): Delete in favor of...
30760 (g_timer): New global.
30761 (struct timevar_def): Move to timevar.h inside class timer.
30762 (struct timevar_stack_def): Likewise.
30763 (timevars): Delete global in favor of field "m_timevars" within
30764 class timer in timevar.h
30765 (stack): Likewise, in favor of field "m_stack".
30766 (unused_stack_instances): Likewise, in favor of field
30767 "m_unused_stack_instances".
30768 (start_time): Likewise, in favor of field "m_start_time".
30769 (get_time): Eliminate check for timevar_enable.
30770 (timer::timer): New function, built from part of timevar_init.
30771 (timevar_init): Rewrite idempotency test from using
30772 "timevar_enable" bool to using dynamic allocation of "g_timer".
30773 Move rest of implementation into timer's constructor.
30774 (timevar_push_1): Rename to...
30775 (timer::push): ...this, adding "m_" prefixes to variables that
30776 are now fields of timer.
30777 (timevar_pop_1): Likewise, rename to...
30778 (timer::pop): ...this, and add "m_" prefixes.
30779 (timevar_start): Replace test for "timevar_enable" with one for
30780 "g_timer", and move bulk of implementation to...
30781 (timer::start): ...here, adding "m_" prefixes.
30782 (timevar_stop): Likewise, from here...
30783 (timer::stop): ...to here.
30784 (timevar_cond_start): Likewise, from here...
30785 (timer::cond_start): ...to here.
30786 (timevar_cond_stop): Likewise, from here...
30787 (timer::cond_stop): ...to here.
30788 (validate_phases): Rename to...
30789 (timer::validate_phases): ...this, and add "m_" prefixes. Make
30790 locals "total" and "tv" const.
30791 (timevar_print): Rename to...
30792 (timer::print): ...this, and add "m_" prefixes. Make locals
30793 "total" and "tv" const. Eliminate test for timevar_enable.
30794 * timevar.h (timevar_enable): Eliminate.
30795 (g_timer): New declaration.
30796 (timevar_push_1): Eliminate.
30797 (timevar_pop_1): Eliminate.
30798 (timevar_print): Eliminate.
30799 (class timer): New class.
30800 (timevar_push): Rewrite to use g_timer.
30801 (timevar_pop): Likewise.
30802 * toplev.c (toplev::~toplev): Likewise.
30804 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
30806 * arm-protos.h (arm_sched_autopref): Delete.
30807 (tune_params): Re-organize, use enums for flag values.
30808 (FUSE_OPS): New macro.
30809 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
30810 (ARM_PREFETCH_BENEFICIAL): Likewise.
30811 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
30812 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
30813 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
30814 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
30815 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
30816 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
30817 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
30818 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
30820 (arm_option_override, thumb2_reorg, arm_print_tune_info)
30821 (aarch_macro_fusion_pair_p): Update uses of current_tune.
30822 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
30824 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
30826 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
30829 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
30830 Sandra Loosemore <sandra@codesourcery.com>
30832 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
30834 (REG_CLASS_NAMES): Add "IJMP_REGS".
30835 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
30836 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
30837 use new "c" register constraint.
30838 * config/nios2/constraint.md (c): New register constraint
30839 corresponding to IJMP_REGS.
30841 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30843 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
30844 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
30845 define_splits): Delete, revamp, transmogrify into ...
30846 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
30847 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
30848 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
30851 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30853 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
30854 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
30856 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30858 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
30859 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
30860 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
30861 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
30862 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
30863 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
30864 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
30865 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
30866 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
30867 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
30868 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
30869 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
30870 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
30871 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
30872 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
30873 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
30874 and 30 corresponding splitters): Delete.
30876 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30878 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
30881 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30883 * combine.c (recog_for_combine_1): New function, factored out
30884 from recog_for_combine.
30885 (change_zero_ext): New function.
30886 (recog_for_combine): If recog fails, try again with the pattern
30887 modified by change_zero_ext; if that still fails, restore the
30890 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30892 * combine.c (get_undo_marker): New function.
30893 (undo_to_marker): New function, largely factored out from ...
30894 (undo_all): ... this. Adjust.
30896 2015-05-12 Richard Biener <rguenther@suse.de>
30898 PR tree-optimization/66101
30899 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
30900 fixup if we turn a loop exit edge to a fallthru edge.
30902 2015-05-12 Richard Biener <rguenther@suse.de>
30904 PR tree-optimization/37021
30905 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
30906 (SLP_TREE_TWO_OPERATORS): New define.
30907 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
30908 SLP_TREE_TWO_OPERATORS.
30909 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
30911 (vect_build_slp_tree): Adjust.
30912 (vect_analyze_slp_cost_1): Likewise.
30913 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
30914 emitting two vector stmts and mixing the results.
30916 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
30918 * call.c (print_z_candidates): Remove dead code.
30920 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30922 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
30923 and zEC12_simple_fp.
30924 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
30927 2015-05-12 Tom de Vries <tom@codesourcery.com>
30929 PR tree-optimization/66010
30930 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
30932 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
30933 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
30934 va_lists are passed, and remove corresponding handling.
30935 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
30936 do_deref argument to ifn_va_arg.
30937 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
30940 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30943 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
30944 REG before taking its REGNO.
30946 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30948 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
30949 rsp->sign_bit_copies and rsp->nonzero_bits into ...
30950 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
30951 present to get more accurate information about the number of sign bit
30952 copies and non zero bits.
30954 2015-05-12 Richard Biener <rguenther@suse.de>
30956 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
30957 do not allow unrolling.
30959 2015-05-11 Richard Henderson <rth@redhat.com>
30961 * config/i386/i386-modes.def (CCP): New.
30962 * config/i386/i386.c (put_condition_code): Handle it.
30963 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
30965 2015-05-11 Richard Henderson <rth@redhat.com>
30967 * target.def (md_asm_clobbers): Replace with...
30968 (md_asm_adjust): this.
30969 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
30970 (TARGET_MD_ASM_ADJUST): New.
30971 * tm.texi: Rebuild.
30972 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
30973 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
30974 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
30976 * cfgexpand.c (check_operand_nalternatives): Accept vector of
30977 constraints instead of lists of outputs and inputs.
30978 (expand_asm_stmt): Save and restore input_location around the
30979 body of the function. Move asm data into vectors instead of
30980 building tree lists. Generate cleanup sequences as needed,
30981 rather than waiting til the end. Use new md_asm_adjust hook.
30983 * config/vxworks.c: Include vec.h before target.h.
30984 * gimple.c: Likewise.
30985 * incpath.c: Likewise.
30986 * mode-switching.c: Likewise.
30988 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
30989 (cris_md_asm_adjust): this.
30990 (TARGET_MD_ASM_CLOBBERS): Remove.
30991 (TARGET_MD_ASM_ADJUST): New.
30992 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
30993 (ix86_md_asm_adjust): this.
30994 (TARGET_MD_ASM_CLOBBERS): Remove.
30995 (TARGET_MD_ASM_ADJUST): New.
30996 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
30997 (mn10300_md_asm_adjust): this.
30998 (TARGET_MD_ASM_CLOBBERS): Remove.
30999 (TARGET_MD_ASM_ADJUST): New.
31000 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
31001 (rs6000_md_asm_adjust): this.
31002 (TARGET_MD_ASM_CLOBBERS): Remove.
31003 (TARGET_MD_ASM_ADJUST): New.
31004 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
31005 (visium_md_asm_adjust): this.
31006 (TARGET_MD_ASM_CLOBBERS): Remove.
31007 (TARGET_MD_ASM_ADJUST): New.
31009 2015-05-11 Richard Henderson <rth@redhat.com>
31011 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
31012 if noutputs is zero.
31013 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
31015 * cfgexpand.c (expand_asm_operands): Merge into...
31016 (expand_asm_stmt): ... here.
31018 * cfgexpand.c (expand_asm_operands): Don't call
31019 resolve_asm_operand_names.
31020 * stmt.c (resolve_asm_operand_names): Clarify block comment.
31022 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
31024 * dwarf2out.c (gen_member_die): Sanity check that we access
31025 TYPE_MAIN_VARIANT for TYPE_METHODS.
31026 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
31027 checking TYPE_METHODS.
31028 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
31030 (build_distinct_type_copy): Clear TYPE_METHODS.
31031 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
31032 (verify_type): Allow TYPE_METHODS to be error_mark_node.
31033 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
31035 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
31037 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
31038 (emit_pattern_before_setloc): Likewise.
31040 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31042 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
31043 for define_peephole2s.
31044 (get_peephole2_pattern): New function.
31045 (main): Use it. Call validate_pattern.
31047 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31049 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
31050 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
31051 (Last callee saved reg is different for AVR_TINY architecture)
31053 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31055 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
31056 when looking for memory references.
31058 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31061 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
31062 via function pointers.
31064 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31066 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
31067 indirect call by forcing address into a pseudo with -fno-plt.
31068 * common.opt (flag_plt): New option.
31069 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
31070 ([-fno-plt]): Document.
31072 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
31075 * config/rs6000/option-defaults.h: Add space between string literal
31078 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
31080 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
31081 accross ARM targets.
31083 2015-05-11 Christian Bruel <christian.bruel@st.com>
31085 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
31086 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
31088 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31090 PR rtl-optimization/66076
31091 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
31092 Don't grow the heap array if it is already big enough from a
31093 previous iteration.
31095 2015-05-11 Christian Bruel <christian.bruel@st.com>
31097 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
31098 (is_called_in_ARM_mode): Remove.
31099 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
31100 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
31101 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31102 arm_declare_function_name.
31104 2015-05-11 Christian Bruel <christian.bruel@st.com>
31106 * config/arm/arm.c (arm_option_override): Reoganized and split into :
31107 (arm_option_params_internal); New function.
31108 (arm_option_check_internal): New function.
31109 (arm_option_override_internal): New function.
31110 (thumb_code, thumb1_code): Remove.
31111 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31112 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31113 (thumb_code, thumb1_code): Remove.
31114 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31116 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31118 * config/alpha/alpha.c (alpha_emit_set_const_1)
31119 (alpha_emit_set_long_const, alpha_extract_integer)
31120 (alpha_legitimate_constant_p, alpha_split_const_mov)
31121 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31122 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31123 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31125 * config/alpha/predicates.md (mode_mask_operand): Do not match
31127 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31128 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31129 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31130 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31131 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31133 2015-05-11 Jakub Jelinek <jakub@redhat.com>
31136 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31137 default_binds_local_p_2.
31138 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31139 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31141 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31143 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31145 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31147 Patch by Richard Biener
31148 * coverage.c (coverage_obj_init): Delay building of type variant
31149 until the type is finished.
31151 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31153 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31154 mismatch between C and C++ type; compoare correctly ARG_TYPES
31155 for non-prototypes and output correctly parameter index for METHOD_TYPE.
31156 (odr_types_equivalent_p): Fix wording of warning about attributes;
31157 it is OK to match prototype and non-prototype.
31159 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31161 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31162 TYPE_ARG_TYPES list.
31163 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31164 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31166 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31168 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31169 * tree.h (is_lang_specific): Constify.
31171 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
31173 PR tree-optimization/64454
31174 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31177 2015-05-08 Jason Merrill <jason@redhat.com>
31179 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31180 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31181 config/darwin.h, config/darwin9.h, config/elfos.h,
31182 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31183 config/microblaze/microblaze.h, config/mips/mips.h,
31184 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31185 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31186 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31187 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31188 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31189 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31190 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31191 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31192 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31193 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31194 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31195 between string literal and macro name.
31197 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31199 * jump.c: Change argument types to rtx_insn *.
31202 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31204 * lra-constraints.c: Change argument type to rtx_insn *.
31206 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31208 * df-problems.c: Change argument type to rtx_insn *.
31210 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31212 * combine.c: Change argument type to rtx_insn *.
31214 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31217 * rtlanal.c: Change argument type to rtx_insn *.
31219 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31221 * sched-deps.c: Change argument types to rtx_insn *.
31222 * sched-int.h: Adjust.
31224 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31226 * dwarf2cfi.c: Change argument type to rtx_insn *.
31228 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31230 * ira.c (decrease_live_ranges_number): Changetype of local
31231 variable to rtx_insn *.
31232 * recog.c: Change argument types to rtx_insn *.
31235 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31237 * reorg.c: Change argument types to rtx_insn *.
31239 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31241 * ira-color.c: Change argument types to rtx_insn *.
31242 * lra-eliminations.c: Likewise.
31245 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31247 * gcse.c: Change argument types to rtx_insn *.
31249 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31251 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31253 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31255 * emit-rtl.c (emit_debug_insn_before): Change argument type to
31259 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31261 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31264 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31266 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31269 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31271 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31274 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31276 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31279 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31281 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31285 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31287 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31291 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31293 * except.c (can_nonlocal_goto): Change type of argument to
31297 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31299 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31302 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31304 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31305 * cfgrtl.c (can_delete_label_p): Adjust.
31308 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31310 * reorg.c (stop_search_p): Change argument to rtx_insn *.
31312 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31314 * except.c (make_reg_eh_region_note): Change argument to
31316 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31317 * except.h: Adjust.
31319 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31321 * mode-switching.c (commit_mode_sets): Change type of local
31322 variable from rtx to rtx_insn *.
31324 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
31326 * doc/install.texi (--enable-languages): Add missing jit and lto info.
31327 Add ^ to grep command.
31328 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31329 arg to last gimple_simplify declaration. Add missing gimple_build
31330 declaration for built-in function case with four tree args.
31332 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31333 Szabolcs Nagy <szabolcs.nagy@arm.com>
31335 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31336 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31337 (GNU_USER_DYNAMIC_LINKERN32): Update.
31339 2015-05-08 Richard Biener <rguenther@suse.de>
31341 PR tree-optimization/66036
31342 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31343 Handle strided group loads.
31344 (vect_verify_datarefs_alignment): Likewise.
31345 (vect_enhance_data_refs_alignment): Likewise.
31346 (vect_analyze_group_access): Likewise.
31347 (vect_analyze_data_ref_access): Likewise.
31348 (vect_analyze_data_ref_accesses): Likewise.
31349 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31350 (vectorizable_load): Likewise.
31352 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
31354 * config/rs6000/rs6000.md: Require operand inequality in one
31357 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
31358 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
31360 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31362 * config/rx/rx.md (movdi, movdf): Likewise.
31363 Likewise for define_peephole2s.
31365 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31367 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31368 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31369 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31370 vtst_u64): Rewrite using gcc vector extensions.
31372 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31374 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31375 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31377 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31379 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31381 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
31383 * config/glibc-stdint.h (OPTION_MUSL): Define.
31384 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31385 Change the definition based on OPTION_MUSL for 64 bit targets.
31386 * config/linux.h (OPTION_MUSL): Redefine.
31387 * config/alpha/linux.h (OPTION_MUSL): Redefine.
31388 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31389 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31391 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31392 Szabolcs Nagy <szabolcs.nagy@arm.com>
31394 * config.gcc (LIBC_MUSL): New tm_defines macro.
31395 * config/linux.h (OPTION_MUSL): Define.
31396 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31397 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31398 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31399 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31400 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31401 * config/linux.opt (mmusl): New option.
31402 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31403 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31404 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31405 * configure: Regenerate.
31407 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
31408 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31411 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31412 * config/i386/knetbsd-gnu64.h: New file.
31414 2015-05-08 Marek Polacek <polacek@redhat.com>
31417 * doc/invoke.texi: Document -Woverride-init-side-effects.
31419 2015-05-07 Marek Polacek <polacek@redhat.com>
31422 * doc/invoke.texi: Document -Wshift-negative-value.
31424 2015-05-06 Aditya Kumar <hiraditya@msn.com>
31426 * gcov-tool.c (do_merge): Refactore to remove int ret.
31427 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31428 !type == FUNC to type != FUNC.
31429 * reload.h (struct target_reload): Changee to type of
31430 x_spill_indirect_levels from bool to unsigned char.
31432 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
31434 * rtl.h (always_void_p): New function.
31435 * gengenrtl.c (always_void_p): Likewise.
31436 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31437 with code foo are always VOIDmode.
31438 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31439 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31440 compare-elim.c, config/aarch64/aarch64.c,
31441 config/aarch64/aarch64.md, config/alpha/alpha.c,
31442 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31443 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31444 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31445 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31446 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31447 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31448 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31449 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31450 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31451 config/ia64/vect.md, config/iq2000/iq2000.c,
31452 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31453 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31454 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31455 config/mep/mep.c, config/microblaze/microblaze.c,
31456 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31457 config/mn10300/mn10300.c, config/msp430/msp430.c,
31458 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31459 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31460 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31461 config/rs6000/altivec.md, config/rs6000/rs6000.c,
31462 config/rs6000/rs6000.md, config/rs6000/vector.md,
31463 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31464 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31465 config/sh/sh.md, config/sh/sh_treg_combine.cc,
31466 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31467 config/spu/spu.md, config/stormy16/stormy16.c,
31468 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31469 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31470 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31471 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31472 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31473 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31474 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31475 var-tracking.c: Update calls accordingly.
31477 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
31480 PR middle-end/54303
31481 * varasm.c (function_mergeable_rodata_prefix): New function.
31482 (mergeable_string_section): Use it.
31483 (mergeable_constant_section): Use it.
31485 2015-05-07 Jeff Law <law@redhat.com>
31488 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31489 simplifier to narrow arithmetic.
31490 * generic-match-head.c: (types_match, single_use): New functions.
31491 * gimple-match-head.c: (types_match, single_use): New functions.
31493 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31495 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31498 2015-05-07 Richard Biener <rguenther@suse.de>
31500 PR tree-optimization/66002
31501 * passes.def: Schedule another pass_merge_phi after ifcombine, right
31504 2015-05-07 Marek Polacek <polacek@redhat.com>
31505 Martin Uecker <uecker@eecs.berkeley.edu>
31507 * doc/invoke.texi: Document -fsanitize=bounds-strict.
31508 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31509 into SANITIZE_NONDEFAULT.
31510 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31512 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
31515 * config/alpha/alpha.c (alpha_override_options_after_change): New.
31516 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31517 (alpha_override_options): Move align_loops, align_jumps and
31518 align_functions handling into alpha_override_options_after_change.
31520 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
31521 Chris Jones <chrisj@nvidia.com>
31522 Joshua Conner <jconner@nvidia.com>
31524 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31525 linking of crtfastmath.o.
31526 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31528 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
31530 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
31531 (cstore<mode>4_unsigned_imm): New expander.
31532 (cstore<mode>4): Remove empty constraint strings. Use the new
31535 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
31538 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
31541 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
31543 * config/aarch64/geniterators.sh: Use standard BRE in sed.
31545 2015-05-06 Alan Modra <amodra@gmail.com>
31548 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
31549 (UNSPEC_NOP): Define.
31550 (reload_vsx_from_gpr<mode>): Add missing DONE.
31551 (reload_gpr_from_vsx<mode>): Likewise.
31552 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
31553 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
31555 2015-05-06 Christian Bruel <christian.bruel@st.com>
31558 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
31559 align_jumps, align_functions into aarch64_override_options_after_change.
31561 2015-05-06 Richard Biener <rguenther@suse.de>
31563 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
31564 vect_transform_slp_perm_load to check if we support a permutation
31565 for basic-block vectorization.
31567 2015-05-06 Nick Clifton <nickc@redhat.com>
31569 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
31570 used, even if it is not being used as a frame pointer.
31572 2015-05-05 Jason Merrill <jason@redhat.com>
31574 * dwarf2out.c (gen_member_die): Don't emit anything for an
31575 anonymous class constructor.
31577 2015-05-05 David Malcolm <dmalcolm@redhat.com>
31579 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
31580 that it reflects the block structure.
31581 (afdo_propagate_edge): Likewise.
31582 (afdo_calculate_branch_prob): Likewise.
31583 (afdo_annotate_cfg): Likewise.
31584 * cfgcleanup.c (equal_different_set_p): Likewise.
31585 (try_crossjump_to_edge): Likewise.
31586 * cgraph.c (cgraph_node::verify_node): Likewise.
31587 * cgraphunit.c (expand_all_functions): Likewise.
31588 * config/i386/i386.c (ix86_expand_copysign): Likewise.
31589 (exact_dependency_1): Likewise.
31590 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
31591 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
31592 * gensupport.c (process_define_subst): Likewise.
31593 * lto-wrapper.c (merge_and_complain): Likewise.
31594 * tree-if-conv.c (if_convertible_bb_p): Likewise.
31595 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
31596 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31597 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
31598 * tree-vect-loop.c (vectorizable_reduction): Likewise.
31599 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31600 * tree-vect-stmts.c (vectorizable_shift): Likewise.
31601 * tree-vrp.c (vrp_finalize): Likewise.
31602 * tree.c (variably_modified_type_p): Likewise.
31604 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
31606 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
31607 on darwin12 and later.
31608 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
31609 file to pass -rdynamic on darwin12 and later.
31610 * config/darwin.opt (rdynamic): Add.
31612 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31614 * doc/extend.texi (C Extensions): Update menu for moved Variable
31615 Attributes and Type Attributes sections.
31617 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31620 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
31621 if rep_8byte stringop strategy was specified for 32-bit target.
31623 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
31626 * config/i386/i386.md (vector convert to float spltiter): Check for
31627 xmm16+, when splitting scalar float conversion.
31628 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
31630 2015-05-05 Nick Clifton <nickc@redhat.com>
31632 * config/msp430/msp430-opts.h (enum msp430_regions): New.
31633 * config/msp430/msp430.c (msp430_override_options): Complain if
31634 -mcode-region or -mdata-region is used on a non MSP430X.
31635 (msp430_section_attr): New function. Checks lower, upper and
31637 (msp430_attribute_table): Add lower, upper and either.
31638 (gen_prefix): New function. Generates a prefix for a section
31640 (msp430_select_section): New function - handles the choice of
31641 section for an object. Takes into account memory region
31642 attributes and options.
31643 (msp430_function_section): Use gen_prefix.
31644 (TARGET_SECTION_TYPE_FLAGS): Define.
31645 (msp430_section_type_flags): New function.
31646 (TARGET_ASM_UNIQUE_SECTION): Define.
31647 (msp430_unique_section): New function.
31648 (msp430_output_aligned_decl_common): New function.
31649 (msp430_do_not_relax_short_jumps): New function.
31650 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
31652 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
31653 * config/msp430/msp430-protos.h
31654 (msp430_do_not_relax_short_jumps): New prototype.
31655 (msp430_output_aligned_decl_common): New prototype.
31656 * config/msp430/msp430.md (length): New attribute.
31657 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
31658 then use a long code sequence for short jumps.
31659 * config/msp430/msp430.opt (mcode-region): New.
31660 (mdata-region): New.
31661 * doc/invoke.texi: Document new options.
31662 * doc/extend.texi: Document new attributes.
31664 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31666 * config/aarch64-protos.h (struct cpu_branch_cost): New.
31667 (tune_params): Add field branch_costs.
31668 (aarch64_branch_cost): Declare.
31669 * config/aarch64.c (generic_branch_cost): New.
31670 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
31671 (cortexa53_tunings): Likewise.
31672 (cortexa57_tunings): Likewise.
31673 (thunderx_tunings): Likewise.
31674 (xgene1_tunings): Likewise.
31675 (aarch64_branch_cost): Define.
31676 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
31678 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31680 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
31681 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
31682 * config/i386/i386.md: Ditto.
31683 * config/i386/winnt.c: Ditto.
31685 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31687 * doc/extend.texi (__atomic Builtins): Move implementation details
31688 to the end of the description, rewrite opening paragraphs, state
31689 difference with __sync builtins, state C11/C++11 assumptions,
31690 weaken itemized descriptions, add explanation of memory model
31691 behaviour, expand description of compare-exchange, simplify text.
31693 2015-05-05 Renlin Li <renlin.li@arm.com>
31695 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
31697 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
31699 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
31700 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31701 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
31702 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31703 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
31704 * configure: Regenerate.
31705 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
31706 * doc/install.texi (aarch64*-*-*): Document new
31707 --enable-fix-cortex-a53-843419 option.
31708 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
31709 and -mno-fix-cortex-a53-843419 options.
31711 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31714 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
31716 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
31718 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
31719 fix overactive TYPE_MIN_VALUE check and add FIXME for type
31720 compatibility problems.
31722 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31724 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
31726 (cbranchsi4_reg): New.
31727 * config/microblaze/microblaze.c
31728 (microblaze_expand_conditional_branch_reg): New.
31729 * config/microblaze/microblaze-protos.h
31730 (microblaze_expand_conditional_branch_reg): New prototype.
31732 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31734 * config/microblaze/microblaze.md (peephole2): New.
31736 2015-05-04 Jeff Law <law@redhat.com>
31739 2015-05-04 Jeff Law <law@redhat.com>
31741 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31742 simplifier to narrow arithmetic.
31743 * generic-match-head.c: (types_match, single_use): New functions.
31744 * gimple-match-head.c: (types_match, single_use): New functions.
31746 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
31749 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
31750 (split_branches): Likewise.
31752 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
31754 * common.opt (fdelete-null-pointer-checks): Init to -1.
31755 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
31756 override flag_delete_null_pointer_checks default.
31757 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
31758 behavior re address zero. Better document target-specific behavior.
31759 (-fisolate-errneous-paths-dereference): Mention relationship to
31760 -fdelete-null-pointer-checks.
31762 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31764 PR tree-optimization/65984
31765 * ubsan.c: Include tree-cfg.h.
31766 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
31767 stmt_could_throw_p test, rename can_throw variable to ends_bb.
31769 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31771 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
31772 to CONST_DOUBLE_P predicate.
31773 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
31774 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
31775 allow only operands that satisfy standard_sse_constant_p predicate.
31776 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
31777 to CONST_DOUBLE_P predicate.
31779 2015-05-04 Jeff Law <law@redhat.com>
31781 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31782 simplifier to narrow arithmetic.
31783 * generic-match-head.c: (types_match, single_use): New functions.
31784 * gimple-match-head.c: (types_match, single_use): New functions.
31786 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
31788 * config/arm/arm.c: Restore bootstrap.
31790 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31792 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
31793 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
31794 as CONST_WIDE_INT, not CONST_DOUBLE.
31795 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
31796 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
31797 (ix86_find_base_term): Do not check for CONST_DOUBLE.
31798 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
31799 (ix86_build_signbit_mask): Rewrite using wide ints.
31800 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
31801 (ix86_rtx_costs): Handle CONST_WIDE_INT.
31802 (find_constant): Ditto.
31803 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
31804 using gen_int_mode.
31805 * config/i386/predicates.md (x86_64_immediate_operand)
31806 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31807 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
31808 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31809 (const0_operand): Also match const_wide_int.
31810 (constm1_operand): Ditto.
31811 (const1_operand): Ditto.
31813 2015-05-04 Richard Biener <rguenther@suse.de>
31815 PR tree-optimization/65965
31816 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
31817 store groups at gaps.
31819 2015-05-04 Richard Biener <rguenther@suse.de>
31821 PR tree-optimization/65935
31822 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
31823 then make sure to apply that swapping to the IL.
31825 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31827 * Makefile.in (PATCHLEVEL_c): New variable.
31828 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
31829 expand the same way as if DEVPHASE_c was non-empty.
31831 2015-05-04 Kai Tietz <ktietz@redhat.com>
31834 * lto-wrapper.c (run_gcc): Open filename
31837 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
31839 * doc/extend.texi (Variable Attributes, Type Attributes): Move
31840 sections up in file, to immediately after the Function Attributes
31843 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
31845 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
31847 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31849 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
31850 (insert_partition_copy_on_edge): Adjust.
31851 (insert_rtx_to_part_on_edge): Likewise.
31852 (insert_part_to_rtx_on_edge): Likewise.
31854 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31856 * function.c (set_return_jump_label): Change type of argument to
31858 * function.h (set_return_jump_label): Adjust.
31860 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31862 * reload.h (struct reg_equivs_t): Change type of init to
31864 * ira.c (fix_reg_equiv_init): Adjust.
31865 * reload1.c (eliminate_regs_1): Likewise.
31866 (init_eliminable_invariants): Likewise.
31868 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31870 * cselib.c (fp_setter_insn): Take a rtx_insn *.
31871 * cselib.h (fp_setter_insn): Adjust.
31873 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31875 * recog.c (struct validate_replace_src_data): Change type of
31876 insn field to rtx_insn *.
31877 (validate_replace_src_group): Change type of argument to rtx_insn *.
31878 * recog.h (validate_replace_src_group): Adjust.
31880 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31882 * haifa-sched.c: Change the type of some variables to rtx_insn *.
31883 * sched-deps.c: Likewise.
31884 * sched-int.h: Likewise.
31885 * sched-rgn.c: Likewise.
31886 * sel-sched.c: Likewise.
31888 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31891 * config/i386/i386.c: Change the type of some arguments to
31893 * config/arm/arm.c: Likewise.
31895 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31897 * lra-constraints.c: Change type of some arguments to rtx_insn *.
31899 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31901 * regcprop.c (kill_autoinc_value): Change type of argument to
31904 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31906 * genrecog.c (print_subroutine): Adjust.
31907 * recog.c (get_bool_attr_mask_uncached): Likewise.
31908 * recog.h (struct recog_data_d): Change the type of insn to
31911 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31913 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
31915 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31917 * df-problems.c (df_set_note): Change type of argument to
31920 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31922 * builtins.c (expand_builtin_trap): Change type of local
31923 variable to rtx_insn *.
31924 (add_sched_insns_for_speculation): Likewise.
31925 (ix86_emit_save_regs): Likewise.
31926 (get_scratch_register_on_entry): Likewise.
31927 (ix86_emit_restore_reg_using_pop): Likewise.
31928 (ix86_emit_leave): Likewise.
31929 (ix86_emit_restore_regs_using_mov): Likewise.
31930 (ix86_expand_epilogue): Likewise.
31932 (rl78_alloc_physical_registers_umul): Likewise.
31933 * cselib.c (discard_useless_locs): Likewise.
31934 (cselib_invalidate_regno): Likewise.
31935 (cselib_invalidate_mem): Likewise.
31936 * function.c (expand_function_start): Likewise.
31937 (emit_use_return_register_into_block): Likewise.
31938 * gcse.c: Likewise.
31939 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
31940 * ifcvt.c (noce_get_alt_condition): Likewise.
31941 * loop-doloop.c (doloop_condition_get): Likewise.
31942 * lra-constraints.c (inherit_in_ebb): Likewise.
31943 * modulo-sched.c (sms_schedule_by_order): Likewise.
31944 * recog.c (next_insn_tests_no_inequality): Likewise.
31945 * reorg.c (emit_delay_sequence): Likewise.
31946 (update_reg_dead_notes): Likewise.
31947 (fix_reg_dead_note): Likewise.
31948 (fill_slots_from_thread): Likewise.
31949 (delete_computation): Likewise.
31951 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
31953 * doc/extend.texi (Variable Attributes): Add menu and proper
31954 @nodes to subsections. Move Microsoft Windows attributes to
31955 their own subsection.
31956 (Type Attributes): Reorganize introduction to remove duplicate
31957 list of attributes. Add menu and proper @nodes to subsections.
31958 Alphabetize the main table of common attributes.
31960 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
31962 * match.pd: New simplification patterns.
31963 (x + (x & 1)) -> ((x + 1) & ~1)
31964 (x & ~(x & y)) -> ((x & ~y))
31965 (x | ~(x | y)) -> ((x | ~y))
31967 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31969 * target.def (attribute_table): Mention that struct attribute_spec
31970 is defined in tree-core.h rather than tree.h
31971 * doc/tm.texi: Regenerate.
31973 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
31975 * genrecog.c (test): Rename to rtx_test. Update rest of file
31978 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
31980 PR translation/65959
31981 * params.h (DEFPARAM): Rename msgid to nocmsgid.
31983 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31985 * config/aarch64/aarch64-protos.h (tune_params):
31986 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
31987 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
31988 Return value depending on target.
31989 (generic_tunings): Initialize new target settings.
31990 (cortexa53_tunings): Likewise.
31991 (cortexa57_tunings): Likewise.
31992 (thunderx_tunings): Likewise.
31993 (xgene1_tunings): Likewise.
31995 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31997 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
31998 Make Cortex-A53 shift costs more accurate.
32000 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32002 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
32005 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32007 * config/aarch64/aarch64.c (aarch64_rtx_costs):
32008 Calculate cost of op0 and op1 in PLUS and MINUS cases.
32010 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32012 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32013 Add cost of op0 in the compare-with-fpzero case.
32015 2015-04-30 David Malcolm <dmalcolm@redhat.com>
32017 * builtins.c (fold_builtin_1): Remove spurious second
32019 * cgraph.h (symtab_node::get_availability): Likewise.
32020 * opts.c (common_handle_option): Remove spurious second semicolon.
32021 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
32022 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
32024 2015-04-30 Caroline Tice <cmtice@google.com>
32026 PR gcov-profile/65929
32027 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
32028 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
32029 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
32030 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
32031 * doc/tm.texi: Regenerate.
32032 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
32033 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
32034 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
32035 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
32037 2015-04-30 Marek Polacek <polacek@redhat.com>
32039 * varasm.c (handle_cache_entry): Fix logic.
32041 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32043 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
32044 (*extrsi5_insn_uxtw_alt): Likewise.
32045 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
32046 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
32049 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32051 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
32054 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32056 * config/aarch64/aarch64.md
32057 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
32058 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
32059 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
32060 appropriately. Handle alternative EON form.
32062 2015-04-30 Renlin Li <renlin.li@arm.com>
32064 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
32065 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
32067 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32070 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
32071 -fstrict-aliasing boundaries.
32073 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32075 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
32076 and [SU]MNEGL patterns.
32078 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32080 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
32081 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
32082 combined arithmetic-shift ops. Properly handle all shift and extend
32083 operations that can occur in combination with PLUS/MINUS.
32084 Rename maybe_fma to compound_p.
32085 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
32086 arithmetic and shift operations.
32088 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32090 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
32091 rather than arith_shift cost when costing ADD/MINUS of an
32094 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32097 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
32100 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
32102 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32103 are for the same position.
32105 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
32107 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
32109 (vectorize_loops): Use it.
32111 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32113 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32114 for aggregate types.
32115 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32116 type to be non_ODR.
32117 * tree.c (need_assembler_name_p): Compute mangled name for
32118 non-fundamental types and integer types.
32120 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
32122 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32124 * expr.c (expand_expr_real_2): Likewise.
32126 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32128 * tree.c (build_common_builtin_nodes): Do not build
32129 __builtin_alloca_with_align as equivalent of library alloca.
32131 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32133 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32134 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32136 * tree.c: Include print-tree.h and ipa-utils.h
32137 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32138 (free_lang_data_in_cgraph): Call verify_type.
32139 (verify_type_variant): New function.
32140 (verify_type): New function.
32141 * tree.h (verify_type): Declare.
32143 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
32145 * config/mips/mips-cpus.def: (mips4): Change default processor
32146 from PROCESSOR_R8000 to PROCESSOR_R10000.
32148 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
32150 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32151 la/jalr instead of jal.
32153 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
32156 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32157 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32158 (setcc+movzbl peephole2): Check also clobbered reg.
32159 (setcc+andl peephole2): Ditto.
32161 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32164 * config/nvptx/mkoffload.c (target_ilp32): New variable.
32165 (main): Set it depending on "-foffload-abi=[...]".
32166 (compile_native, main): Use it to pass "-m32" or "-m64" to the
32169 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32172 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32173 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32174 Flip lane index back at assembly time for bigendian.
32176 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32178 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32179 * gimplify.c (gimplify_omp_workshare): Use it.
32181 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32183 * Makefile.in (build/genrecog.o): Depend on inchash.h.
32184 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32186 * genrecog.c: Rewrite most of the code except for the third page.
32188 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32190 * inchash.h, inchash.c: Include bconfig.h for build objects.
32191 * Makefile.in (build/inchash.o): New rule.
32193 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
32196 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32197 number in type attribute expression.
32199 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32201 * loop-iv.c (canon_condition): Generalize to all types of integer
32204 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
32206 * gimple-walk.c: Prune duplicate or unneeded includes.
32207 (walk_gimple_asm): Only call parse_input_constraint or
32208 parse_output_constraint if their findings are used.
32209 Honour parse_input_constraint and parse_output_constraint
32212 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32214 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32216 2015-04-29 Tom de Vries <tom@codesourcery.com>
32218 PR tree-optimization/65893
32219 * passes.def (pass_all_optimizations): Move pass_stdarg to after
32222 2015-04-29 Richard Biener <rguenther@suse.de>
32224 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32225 compute GROUP_SIZE for basic-block SLP.
32226 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32227 take into account gaps.
32228 (vect_get_mask_element): Properly reject references to previous
32230 (vect_transform_slp_perm_load): Likewise.
32232 2015-04-29 Christian Bruel <christian.bruel@st.com>
32235 * config/i386/i386.c (ix86_default_align): New function.
32236 (ix86_override_options_after_change): Call ix86_default_align.
32237 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32238 (ix86_override_options_after_change): New function.
32240 2015-04-28 Jeff Law <law@redhat.com>
32242 * tree-ssa-dom.c (record_equality); Fix comment typos.
32244 2015-04-28 Tom de Vries <tom@codesourcery.com>
32246 PR tree-optimization/65887
32247 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32249 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
32251 * doc/extend.texi (Declaring Attributes of Functions): Split into
32252 subsections by target. Alphabetize the table of common attributes.
32253 Rewrite some of the introductory text to reflect the new structure.
32254 Update some cross-references to point to the new subsections.
32255 (Attribute Syntax): Put paragraph about "__" naming here. Remove
32256 duplicate copies in the discussion of function, label, and type
32259 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
32262 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32264 2015-04-28 Jason Merrill <jason@redhat.com>
32267 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32268 (finalize_type_size): Respect TYPE_USER_ALIGN.
32269 (layout_type) [ARRAY_TYPE]: Likewise.
32271 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
32273 * config/arm/arm.md (*arm_movt): Fix type attribute.
32274 (*cmpsi_shiftsi): Likewise.
32275 (*cmpsi_shiftsi_swp): Likewise.
32276 (*movsicc_insn): Likewise.
32277 (*cond_move): Likewise.
32278 (*if_plus_move): Likewise.
32279 (*if_move_plus): Likewise.
32280 (*if_arith_move): Likewise.
32281 (*if_move_arith): Likewise.
32282 (*if_shift_move): Likewise.
32283 (*if_move_shift): Likewise.
32284 (*arm_movtas_ze): Likewise.
32285 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32286 redundancy and type attribute.
32287 (*thumb2_movsi_insn): Fix type attribute.
32288 (*thumb2_addsi_short): Likewise.
32289 (thumb2_addsi3_compare0): Likewise.
32290 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32291 attributes accordingly.
32293 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
32296 * function.c (pad_to_arg_alignment): Add parentheses.
32298 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
32300 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32301 libgcc/config/frv/elf-lib.h.
32303 2015-04-28 Tom de Vries <tom@codesourcery.com>
32305 * tree-call-cdce.c: Fix example in header comment.
32307 2015-04-28 Richard Biener <rguenther@suse.de>
32309 PR tree-optimization/62283
32310 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32311 fails fatally and we are vectorizing a basic-block simply
32312 cause the child to be constructed piecewise.
32313 (vect_analyze_slp_cost_1): Adjust.
32314 (vect_detect_hybrid_slp_stmts): Likewise.
32315 (vect_bb_slp_scalar_cost): Likewise.
32316 (vect_get_constant_vectors): For piecewise constructed
32317 constants place them after the last def.
32318 (vect_get_slp_defs): Adjust.
32319 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32320 externals for basic-block vectorization.
32322 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32325 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32327 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32328 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32329 (AARCH64_TUNE_FMA_STEERING): Likewise.
32330 * config/aarch64/aarch64-cores.def: Set
32331 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32332 FMUL/FMADD instructions.
32333 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32334 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
32335 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32336 * config/aarch64/cortex-a57-fma-steering.h: New file.
32337 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32339 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
32341 * gensupport.c (std_preds): Add missing codes to address_operand entry.
32343 2015-04-28 Richard Biener <rguenther@suse.de>
32345 PR tree-optimization/65851
32346 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32347 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
32348 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
32349 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32350 (ccp_visit_phi_node): Adjust.
32351 (evaluate_stmt): For simplifications to SSA names return its
32352 lattice value if that isn't VARYING. Return immediately when
32353 simplified to a constant.
32354 (visit_assignment): Adjust.
32355 (ccp_visit_stmt): Likewise.
32357 2015-04-28 Tom de Vries <tom@codesourcery.com>
32359 PR tree-optimization/65818
32360 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32363 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32365 * calls.c (save_fixed_argument_area): Don't check
32366 ARGS_GROW_DOWNWARD with the preprocessor.
32367 (restore_fixed_argument_area): Likewise.
32368 (mem_overlaps_already_clobbered_arg_p): Likewise.
32369 (check_sibcall_argument_overlap): Likewise.
32370 (expand_call): Likewise.
32371 (emit_library_call_value_1): Likewise.
32372 (store_one_arg): Likewise.
32373 * function.c (assign_parms): Likewise.
32374 (locate_and_pad_parm): Likewise.
32375 (pad_to_arg_alignment): Likewise.
32376 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32378 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32380 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32381 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32382 * calls.c (save_fixed_argument_area): Don't chekc if
32383 ARGS_GROW_DOWNWARD is defined.
32384 (restore_fixed_argument_area): Likewise.
32385 (mem_overlaps_already_clobbered_arg_p): Likewise.
32386 (check_sibcall_argument_overlap): Likewise.
32387 (expand_call): Likewise.
32388 (emit_library_call_value_1): Likewise.
32389 (store_one_arg): Likewise.
32390 * function.c (assign_parms): Likewise.
32391 (locate_and_pad_parm): Likewise.
32392 (pad_to_arg_alignment): Likewise.
32393 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32395 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32397 * defaults.h (gen_epilogue): New function.
32398 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32400 * cfgrtl.c (cfg_layout_finalize): Likewise.
32401 * df-scan.c: Likewise.
32402 * function.c (thread_prologue_and_epilogue_insns): Likewise.
32403 (reposition_prologue_and_epilogue_notes): Likewise.
32404 * reorg.c (find_end_label): Likewise.
32405 * toplev.c: Likewise.
32407 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32409 * bb-reorder.c (HAVE_return): Don't check if its undefined.
32410 * defaults.h (gen_simple_return): New function.
32411 (gen_simple_return): Likewise.
32412 (HAVE_return): Add default definition to false.
32413 (HAVE_simple_return): Likewise.
32414 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32415 HAVE_return and HAVE_simple_return are defined.
32416 * function.c (gen_return_pattern): Likewise.
32417 (convert_jumps_to_returns): Likewise.
32418 (thread_prologue_and_epilogue_insns): Likewise.
32419 * reorg.c (find_end_label): Likewise.
32420 (dbr_schedule): Likewise.
32421 * shrink-wrap.c: Likewise.
32422 * shrink-wrap.h: Likewise.
32424 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32426 * defaults.h (EPILOGUE_USES): Add default definition of false.
32427 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32428 * resource.c (init_resource_info): Likewise.
32430 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32432 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32434 * dwarf2out.c (field_byte_offset): REmove check if
32435 PCC_BITFIELD_TYPE_MATTERS is defined.
32436 * stor-layout.c (layout_decl): Likewise.
32437 (update_alignment_for_field): Likewise.
32438 (place_field): Likewise.
32440 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32442 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32444 * regrename.c (check_new_reg_p): Remove check if
32445 HARD_REGNO_RENAME_OK is defined.
32446 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32448 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32450 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32451 * cse.c (fold_rtx): Likewise.
32452 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32453 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32454 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32455 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32456 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32457 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32458 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32459 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32460 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32461 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32463 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32464 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32465 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32466 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32467 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32468 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32469 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32470 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32471 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32472 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32473 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32474 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32475 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32476 * doc/tm.texi: Regenerate.
32477 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32478 either true or false.
32480 2015-04-27 Jeff Law <law@redhat.com>
32482 PR tree-optimization/65217
32483 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32484 of them has a single use, make sure it is the LHS of the implied
32487 2015-04-28 Alan Modra <amodra@gmail.com>
32490 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32491 (offsettable_ok_by_alignment): Use minimum of decl and toc
32492 pointer alignment. Replace dead code with assertion.
32493 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
32494 case if size exceeds toc pointer alignment.
32495 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32496 (rs6000_emit_move): Likewise.
32497 * configure.ac: Add linker toc pointer alignment check.
32498 * configure: Regenerate.
32499 * config.in: Regenerate.
32501 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
32503 * config.gcc: Add h8300-*-linux.
32504 * config/h8300/linux.h: New.
32505 * config/h8300/t-linux: New.
32506 * config/h8300/h8300.c (h8300_option_override): Normal mode
32507 is not supported for h8300-*-linux.
32508 (h8300_file_start): Target priority change.
32509 (get_shift_alg): Likewise.
32510 (h8300_shift_need_scratch_p): Likewise.
32511 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32512 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32514 2015-04-27 Caroline Tice <cmtice@google.com>
32516 * final.c (final_scan_insn): Output cold_function_name as function
32518 * varasm.c (cold_function_name): Make global.
32519 (assemble_start_function): Re-set cold_function_name.
32520 (assemble_end_function): Output cold partition size.
32521 * varasm.h (cold_function_name): Declare global.
32523 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
32525 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32526 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32528 (*movxi_internal_avx512f): Ditto.
32529 (define_split): Check for xmm16+, when splitting scalar float_extend.
32530 (*extendsfdf2_mixed): Use "v" constraint.
32531 (define_split): Check for xmm16+, when splitting scalar float_truncate.
32532 (*truncdfsf_fast_sse): Use "v" constraint.
32533 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
32534 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
32535 (define_peephole2): Check for xmm16+, when converting scalar
32537 (define_peephole2): Check for xmm16+, when converting scalar
32539 (*fop_<mode>_comm_mixed): Use "v" constraint.
32540 (*fop_<mode>_comm_sse): Ditto.
32541 (*fop_<mode>_1_mixed): Ditto.
32542 (*sqrt<mode>2_sse): Ditto.
32543 (*ieee_s<ieee_maxmin><mode>3): Ditto.
32545 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32547 * combine.c (simplify_if_then_else): Use std::swap instead
32548 of manually swapping.
32549 (known_cond): Likewise.
32550 (simplify_comparison): Likewise.
32552 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
32555 * config/rs6000/htm.md: Remove all define_expands.
32556 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
32557 UNSPECV_HTM_TABORTWCI): Remove.
32558 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
32559 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
32560 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
32561 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
32562 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
32563 tabortwci_internal): Remove define_insns.
32564 (tabort<wd>c, tabort<wd>ci): New define_insns.
32565 (tabort): Use gpc_reg_operand.
32566 (tcheck): Remove operand.
32567 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
32568 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
32570 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
32571 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
32572 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
32573 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
32574 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
32575 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
32576 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
32577 (tcheck): Remove builtin argument.
32578 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
32580 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
32581 tabortdc and tabortdci builtins when not in 64-bit mode.
32582 Modify code to handle the loss of the HTM define_expands.
32583 Emit code to copy the CR register to TARGET.
32584 (htm_init_builtins): Modify code to handle the loss of the HTM
32586 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
32587 (RS6000_BTC_64BIT): Likewise.
32588 (RS6000_BTC_CR): New macro.
32589 * doc/extend.texi: Update documentation for htm builtins.
32591 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32593 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
32594 of manually swapping.
32595 (simplify_associative_operation): Likewise.
32596 (simplify_binary_operation): Likewise.
32597 (simplify_plus_minus): Likewise.
32598 (simplify_relational_operation): Likewise.
32599 (simplify_ternary_operation): Likewise.
32601 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32603 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
32604 (xs_hi_nonmemory_operand): Remove error.
32605 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
32606 general_operand rather than xs_hi_general_operand.
32608 2015-04-27 Richard Biener <rguenther@suse.de>
32610 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
32611 (record_equivalences_from_stmt): Valueize rhs.
32612 (record_equality): Canonicalize x and y order via
32613 tree_swap_operands_p. Do not swap operands for same loop depth.
32615 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
32619 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
32620 Add hint how to use own spec file.
32622 2015-04-27 Jakub Jelinek <jakub@redhat.com>
32624 PR tree-optimization/65875
32625 * tree-vrp.c (update_value_range): If in is_new case setting
32626 old_vr to VR_VARYING, also set new_vr to it. Remove
32627 old_vr->type == VR_VARYING test.
32628 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
32629 SSA_PROP_INTERESTING if update_value_range returned true,
32630 but new range is VR_VARYING.
32632 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
32634 * combine.c (sign_extend_short_imm): New.
32635 (set_nonzero_bits_and_sign_copies): Use above new function for sign
32636 extension of src short immediate.
32637 (reg_nonzero_bits_for_combine): Likewise for tem.
32639 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32641 * stor-layout.c (self_referential_component_ref_p): New predicate.
32642 (copy_self_referential_tree_r): Use it.
32643 (self_referential_size): Punt for simple operations directly involving
32644 self-referential component references.
32645 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
32647 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32649 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
32651 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32653 * vec.h (vec): Make splice arguments const. Update definitions
32656 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
32658 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
32661 2015-04-26 Tom de Vries <tom@codesourcery.com>
32663 PR tree-optimization/65826
32664 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
32666 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
32668 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
32669 (*madd3<mode>): Ditto.
32670 (*msub4<mode>): Ditto.
32671 (*msub3<mode>): Ditto.
32672 (*nmadd4<mode>): Ditto.
32673 (*nmadd3<mode>): Ditto.
32674 (*nmadd4<mode>_fastmath): Ditto.
32675 (*nmadd3<mode>_fastmath): Ditto.
32676 (*nmsub4<mode>): Ditto.
32677 (*nmsub3<mode>): Ditto.
32678 (*nmsub4<mode>_fastmath): Ditto.
32679 (*nmsub3<mode>_fastmath): Ditto.
32681 2015-04-24 Jason Merrill <jason@redhat.com>
32684 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
32685 down when building TYPE_CANONICAL.
32686 (build_pointer_type_for_mode): Likewise.
32688 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
32690 * genrecog.c (validate_pattern): Check matching constraint refers
32691 to a lower numbered operand.
32693 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
32696 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
32697 save to independent variables use the Save attribute. This will
32698 allow these options to be modified with the #pragma/attribute
32700 (-mallow-movmisalign): Likewise.
32701 (-mallow-df-permute): Likewise.
32702 (-msched-groups): Likewise.
32703 (-malways-hint): Likewise.
32704 (-malign-branch-targets): Likewise.
32705 (-mvectorize-builtins): Likewise.
32706 (-msave-toc-indirect): Likewise.
32708 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
32709 can be set via the #pragma/attribute target support.
32710 (rs6000_opt_vars): Likewise.
32711 (rs6000_inner_target_options): If VSX was set, also set
32712 -mno-avoid-indexed-addresses.
32714 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32716 * config/arm/iterators.md (shiftable_ops): Rename to...
32717 (SHIFTABLE_OPS): ... This. Update use in comments.
32718 (ior_xor): Rename to...
32719 (IOR_XOR): ... This.
32720 (vqh_ops): Rename to...
32721 (VQH_OPS): ... This.
32722 (vqhs_ops): Rename to...
32723 (VQHS_OPS): ... This.
32724 (rshifts): Rename to...
32725 (RSHIFTS): ... This.
32726 (returns): Rename to...
32727 (RETURNS): ... This.
32728 * config/arm/arm.md: Update uses of the above.
32729 * config/arm/neon.md: Likewise.
32731 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32733 * config.host (case ${host}): Add aarch64*-*-linux case.
32734 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
32735 fields to all the cores.
32736 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
32737 Add MCPU_MTUNE_NATIVE_SPECS.
32738 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
32739 field to all extensions.
32740 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
32741 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
32742 Adjust definition of AARCH64_OPT_EXTENSION.
32743 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
32744 (MCPU_MTUNE_NATIVE_SPECS): Define.
32745 * config/aarch64/driver-aarch64.c: New file.
32746 * config/aarch64/x-arch64: New file.
32747 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
32750 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32751 Wei Mi <wmi@google.com>
32753 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
32754 * config/i386/i386.c (extract_base_offset_in_addr): New function.
32755 (ix86_operands_ok_for_move_multiple): Ditto.
32756 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
32757 (movlpd/movhpd to movupd peephole2): Ditto.
32759 2015-04-24 Marek Polacek <polacek@redhat.com>
32762 * input.h (from_macro_expansion_at): Define.
32765 * doc/invoke.texi: Update description of -Wlogical-op.
32767 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32769 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
32770 ternary operator in fprintf and harmonize spacing.
32772 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32774 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
32775 Mark operand1 commutative.
32777 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32779 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
32780 input operands in memory.
32781 (*vec_concatv2si_sse4_1): Ditto.
32782 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
32783 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
32785 (vec_extract_hi_v32hi): Ditto.
32786 (vec_extract_hi_v64hi): Ditto.
32787 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
32789 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32790 Steven Bosscher <steven@gcc.gnu.org>
32792 PR rtl-optimization/34503
32793 * cprop.c (cprop_reg_p): New.
32794 (hash_scan_set): Use above function to check if register can be
32796 (find_avail_set): Return up to two sets, one whose source is a
32797 register and one whose source is a constant. Sets are returned in an
32798 array passed as parameter rather than as a return value.
32799 (cprop_insn): Use a do while loop rather than a goto. Try each of the
32800 sets returned by find_avail_set, starting with the one whose source is
32801 a constant. Use cprop_reg_p to check if register can be propagated.
32802 (do_local_cprop): Use cprop_reg_p to check if register can be
32804 (implicit_set_cond_p): Likewise.
32806 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32808 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
32809 (sem_function::equals): IGNORED_NODES parameter is now unused;
32810 update call of equals_private.
32811 (sem_function::equals_private): Do not call equals_wpa; skip
32812 gimple body matching if there is no body.
32813 (sem_function::init): Add logic to hash tthunk info.
32814 (sem_function::parse): Also parse thunks.
32815 * ipa-icf.h (equals_private): Update declaration.
32817 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32819 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
32820 asterisk from name so this can be generated directly.
32821 (*altivec_stvx_<mode>_internal): Likewise.
32822 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
32823 that this is never called during or after reload/lra.
32824 (rs6000_frame_related): Remove split_reg
32825 argument and logic that references it.
32826 (emit_frame_save): Remove last parameter from call to
32827 rs6000_frame_related.
32828 (rs6000_emit_prologue): Remove last parameter from eight calls to
32829 rs6000_frame_related. Force generation of stvx instruction for
32830 Altivec register saves. Remove split_reg handling, which is no
32832 (rs6000_emit_epilogue): Force generation of lvx instruction for
32833 Altivec register restores.
32835 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32837 * config/rs6000/rs6000.opt (mcrypto): Change option description to
32838 match category changes in ISA 2.07B.
32840 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32842 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
32844 (cmp_op, cmp_type): New code attributes.
32845 (NEON_VCMP, NEON_VACMP): New int iterators.
32846 (cmp_op_unsp): New int attribute.
32847 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
32848 (neon_vceq<mode>): Delete.
32849 (neon_vc<cmp_op><mode>_insn): New pattern.
32850 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
32851 (neon_vcgeu<mode>): Delete.
32852 (neon_vcle<mode>): Likewise.
32853 (neon_vclt<mode>: Likewise.
32854 (neon_vcage<mode>): Likewise.
32855 (neon_vcagt<mode>): Likewise.
32856 (neon_vca<cmp_op><mode>): New define_expand.
32857 (neon_vca<cmp_op><mode>_insn): New pattern.
32858 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
32860 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32862 * tree.h (attribute_value_equal): Declare.
32863 * tree.c (attribute_value_equal): Export.
32865 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32867 * ipa-icf.c (sem_item::compare_attributes): New function.
32868 (sem_item::compare_referenced_symbol_properties): Compare variable
32870 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
32871 (sem_function::param_used_p): New function.
32872 (sem_function::equals_wpa): Fix attribute comparsion; match
32873 parameter type codes; do not compare paremter flags when
32874 they are not used; compare edge flags; compare indirect calls.
32875 (sem_item::update_hash_by_addr_refs): Hash reference type.
32876 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
32877 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
32878 reference use type.
32879 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
32880 * ipa-icf.h (compare_attributes, param_used_p): Declare.
32882 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32884 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
32886 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
32887 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
32888 (sem_item::compare_referenced_symbol_properties): New.
32889 (sem_item::hash_referenced_symbol_properties): New.
32890 (sem_item::compare_cgraph_references): Rename to ...
32891 (sem_item::compare_symbol_references): ... this one; use
32892 compare_referenced_symbol_properties.
32893 (sem_function::equals_wpa): Do not compare
32894 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
32895 DECL_IS_OPERATOR_NEW; compare pointer sizes.
32896 (sem_item::update_hash_by_addr_refs): Call
32897 hash_referenced_symbol_properties.
32898 (sem_item::update_hash_by_local_refs): Cleanup.
32899 (sem_function::merge): Do not mix up symbol properties.
32900 (sem_variable::equals_wpa): Use compare_symbol_references.
32901 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
32902 (sem_item::hash_referenced_symbol_properties): New.
32903 (sem_item::compare_symbol_references): New.
32904 (sem_item::compare_cgraph_references): Remove.
32906 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
32909 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
32910 Emit size of local.
32912 2015-04-23 Nick Clifton <nickc@redhat.com>
32914 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
32915 ATTRIBUTE_UNUSED to x parameter.
32916 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
32918 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32920 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
32921 TARGET_CRYPTO to TARGET_P8_VECTOR>
32922 (crypto_vpermxor_<mode>): Likewise.
32923 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
32924 (BU_CRYPTO_3A): Likewise.
32925 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
32926 (BU_CRYPTO_OVERLOAD_3A): New #define.
32927 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
32928 (VPMSUMH): Likewise.
32929 (VPMSUMW): Likewise.
32930 (VPMSUMD): Likewise.
32931 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
32932 (VPERMXOR_V4SI): Likewise.
32933 (VPERMXOR_V8HI): Likewise.
32934 (VPERMXOR_V16QI): Likewise.
32935 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
32936 BU_CRYPTO_OVERLOAD_2A.
32937 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
32938 BU_CRYPTO_OVERLOAD_3A.
32939 * config/rs6000/rs6000.opt (mcrypto): Change description of
32942 2015-04-23 Richard Biener <rguenther@suse.de>
32944 * passes.def: Remove copy propagation passes run directly after CCP.
32945 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
32947 (ccp_visit_phi_node): Rework to handle first executable edge
32950 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
32952 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32953 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32954 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32955 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
32956 (thumb_legimitimize_reload_address): Remove.
32957 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
32959 (thumb_legimitimize_reload_address): Remove.
32961 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32963 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
32965 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32967 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
32969 (store_multiple): Likewise.
32971 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32973 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
32974 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
32975 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
32976 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
32977 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
32978 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
32979 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
32980 Specify issue_rate value.
32981 (arm_issue_rate): Look up issue rate from tuning structs. Remove
32982 large switch statement.
32983 (arm_marvell_pj4_tune): New struct.
32984 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
32987 2015-04-23 Richard Biener <rguenther@suse.de>
32989 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
32990 (vect_find_last_store_in_slp_instance): Rename to ...
32991 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
32992 (vect_analyze_slp_cost_1): Use vector_load for constant defs
32993 and vec_construct for external defs when estimating prologue cost.
32994 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
32995 Compute costs here only when vectorizing loops.
32996 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
32997 have been determined.
32998 (vect_schedule_slp_instance): Simplify vectorized code placement
32999 and prepare for in-BB external defs.
33000 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
33001 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
33002 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
33004 (vect_model_load_cost): Likewise.
33005 (vectorizable_store): Instead add it here.
33006 (vectorizable_load): Likewise.
33007 (vect_is_simple_use): Dump def type textually.
33009 2015-04-23 Richard Biener <rguenther@suse.de>
33011 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
33012 * cfgloop.c (verify_loop_structure): Verify the root loop node.
33013 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
33014 instead of get_eh_region_from_lp_number.
33015 * loop-init.c (fix_loop_structure): If we removed a loop, reset
33018 2015-04-23 Anton Blanchard <anton@samba.org>
33020 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
33021 need for -mprofile-kernel to save LR to stack.
33023 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33025 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
33027 (insn_is_swappable_p): Return 1 for a convert from double to
33028 single precision when all of its uses are splats of BE element
33031 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
33033 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
33035 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33038 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
33039 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
33040 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
33042 (rs6000_builtin_mask_for_load): Return 0 for targets with
33043 efficient unaligned VSX accesses so that the vectorizer will use
33044 direct unaligned loads.
33045 (rs6000_builtin_support_vector_misalignment): Always return true
33046 for targets with efficient unaligned VSX accesses.
33047 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
33048 stores on targets with efficient unaligned VSX accesses is almost
33049 always the same as the cost of an aligned load or store, so model
33051 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
33052 unaligned vectors if we have efficient unaligned VSX accesses.
33053 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
33054 undocumented option.
33056 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33059 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33061 * config.gcc (LIBC_MUSL): New tm_defines macro.
33062 * config/linux.h (OPTION_MUSL): Define.
33063 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33064 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33065 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33067 * config/linux.opt (mmusl): New option.
33068 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33069 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33071 * configure: Regenerate.
33073 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33075 * config.gcc (LIBC_MUSL): New tm_defines macro.
33076 * config/linux.h (OPTION_MUSL): Define.
33077 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33078 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33079 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33081 * config/linux.opt (mmusl): New option.
33082 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33083 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33085 * configure: Regenerate.
33087 2015-04-22 Yury Gribov <y.gribov@samsung.com>
33089 * doc/invoke.texi (-fsanitize-sections): Update description.
33090 * asan.c (set_sanitized_sections): Parse incoming arg.
33091 (section_sanitized_p): Support wildcards.
33093 2015-04-22 Tom de Vries <tom@codesourcery.com>
33095 PR tree-optimization/65823
33096 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
33097 equality between ap_copy and ap.
33099 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33102 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33104 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33107 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33109 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33112 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33113 remove already contained t-files.
33115 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33117 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33118 Remove unneeded forward declarations.
33119 (suitable_for_tail_call_opt_p): Commentary typo fix.
33121 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33123 * varasm.c (emit_bss): Remove redundant guard.
33125 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33127 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33129 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33131 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33133 2015-04-22 Hale Wang <hale.wang@arm.com>
33134 Terry Guo <terry.guo@arm.com>
33136 PR rtl-optimization/64818
33137 * combine.c (can_combine_p): Don't combine user-specified
33138 register if it is in an asm input.
33140 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
33143 * passes.def (early_optimizations): Add pass_dse.
33145 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33147 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33148 * reorg.c (redundant_insn): Remove ifdef
33149 INSN_REFERENCES_ARE_DELAYED.
33150 * resource.c (mark_referenced_resources): Likewise.
33152 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33154 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33155 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33156 * resource.c (mark_set_resources): Likewise.
33158 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33160 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33161 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33162 (flow_find_head_matching_sequence): Likewise.
33163 (try_head_merge_bb): Likewise.
33164 * combine.c (can_combine_p): Likewise.
33165 (try_combine): Likewise.
33166 (distribute_notes): Likewise.
33167 * df-problems.c (can_move_insns_across): Likewise.
33168 * final.c (final): Likewise.
33169 * gcse.c (insert_insn_end_basic_block): Likewise.
33170 * ira.c (find_moveable_pseudos): Likewise.
33171 * reorg.c (try_merge_delay_insns): Likewise.
33172 (fill_simple_delay_slots): Likewise.
33173 (fill_slots_from_thread): Likewise.
33174 * sched-deps.c (sched_analyze_2): Likewise.
33176 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33178 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33179 PIC_OFFSET_TABLE_REGNUM.
33181 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33183 * alias.c (init_alias_target): Remove ifdef
33184 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33185 * df-scan.c (df_insn_refs_collect): Likewise.
33186 (df_get_regular_block_artificial_uses): Likewise.
33187 (df_get_eh_block_artificial_uses): Likewise.
33188 (df_get_entry_block_def_set): Likewise.
33189 (df_get_exit_block_use_set): Likewise.
33190 * emit-rtl.c (gen_rtx_REG): Likewise.
33191 * ira.c (ira_setup_eliminable_regset): Likewise.
33192 * reginfo.c (init_reg_sets_1): Likewise.
33193 * regrename.c (rename_chains): Likewise.
33194 * reload1.c (reload): Likewise.
33195 (eliminate_regs_in_insn): Likewise.
33196 * resource.c (mark_referenced_resources): Likewise.
33197 (init_resource_info): Likewise.
33199 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33201 * defaults.h (MASK_RETURN_ADDR): New definition.
33202 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33205 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33207 * defaults.h (RETURN_ADDR_OFFSET): New definition.
33208 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33209 RETURN_ADDR_OFFSET.
33210 (expand_builtin_frob_return_addr): Likewise.
33212 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33214 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33215 (try_redirect_by_replacing_jump): Likewise.
33216 (rtl_tidy_fallthru_edge): Likewise.
33217 * combine.c (insn_a_feeds_b): Likewise.
33218 (find_split_point): Likewise.
33219 (simplify_set): Likewise.
33220 * cprop.c (cprop_jump): Likewise.
33221 * cse.c (cse_extended_basic_block): Likewise.
33222 * df-problems.c (can_move_insns_across): Likewise.
33223 * function.c (emit_use_return_register_into_block): Likewise.
33224 * haifa-sched.c (sched_init): Likewise.
33225 * ira.c (find_moveable_pseudos): Likewise.
33226 * loop-invariant.c (find_invariant_insn): Likewise.
33227 * lra-constraints.c (curr_insn_transform): Likewise.
33228 * postreload.c (reload_combine_recognize_const_pattern):
33230 * reload.c (find_reloads): Likewise.
33231 * reorg.c (delete_scheduled_jump): Likewise.
33232 (steal_delay_list_from_target): Likewise.
33233 (steal_delay_list_from_fallthrough): Likewise.
33234 (redundant_insn): Likewise.
33235 (fill_simple_delay_slots): Likewise.
33236 (fill_slots_from_thread): Likewise.
33237 (delete_computation): Likewise.
33238 * sched-rgn.c (add_branch_dependences): Likewise.
33240 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33242 * genconfig.c (main): Always define HAVE_cc0.
33243 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33245 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33246 (flow_find_head_matching_sequence): Likewise.
33247 (try_head_merge_bb): Likewise.
33248 * cfgrtl.c (rtl_merge_blocks): Likewise.
33249 (try_redirect_by_replacing_jump): Likewise.
33250 (rtl_tidy_fallthru_edge): Likewise.
33251 * combine.c (do_SUBST_MODE): Likewise.
33252 (insn_a_feeds_b): Likewise.
33253 (combine_instructions): Likewise.
33254 (can_combine_p): Likewise.
33255 (try_combine): Likewise.
33256 (find_split_point): Likewise.
33258 (simplify_set): Likewise.
33259 (distribute_notes): Likewise.
33260 * cprop.c (cprop_jump): Likewise.
33261 * cse.c (cse_extended_basic_block): Likewise.
33262 * df-problems.c (can_move_insns_across): Likewise.
33263 * final.c (final): Likewise.
33264 (final_scan_insn): Likewise.
33265 * function.c (emit_use_return_register_into_block): Likewise.
33266 * gcse.c (insert_insn_end_basic_block): Likewise.
33267 * haifa-sched.c (sched_init): Likewise.
33268 * ira.c (find_moveable_pseudos): Likewise.
33269 * loop-invariant.c (find_invariant_insn): Likewise.
33270 * lra-constraints.c (curr_insn_transform): Likewise.
33271 * optabs.c (prepare_cmp_insn): Likewise.
33272 * postreload.c (reload_combine_recognize_const_pattern):
33274 * reload.c (find_reloads): Likewise.
33275 (find_reloads_address_1): Likewise.
33276 * reorg.c (delete_scheduled_jump): Likewise.
33277 (steal_delay_list_from_target): Likewise.
33278 (steal_delay_list_from_fallthrough): Likewise.
33279 (try_merge_delay_insns): Likewise.
33280 (redundant_insn): Likewise.
33281 (fill_simple_delay_slots): Likewise.
33282 (fill_slots_from_thread): Likewise.
33283 (delete_computation): Likewise.
33284 (relax_delay_slots): Likewise.
33285 * sched-deps.c (sched_analyze_2): Likewise.
33286 * sched-rgn.c (add_branch_dependences): Likewise.
33288 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33290 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33291 that is trivially ded on non cc0 targets.
33292 (simplify_set): Likewise.
33293 (mark_used_regs_combine): Likewise.
33294 * cse.c (new_basic_block): Likewise.
33295 (fold_rtx): Likewise.
33296 (cse_insn): Likewise.
33297 (cse_extended_basic_block): Likewise.
33298 (set_live_p): Likewise.
33299 * rtlanal.c (canonicalize_condition): Likewise.
33300 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33302 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33304 * conditions.h: Define macros even if HAVE_cc0 is undefined.
33305 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33306 * final.c: Likewise.
33307 * jump.c: Likewise.
33308 * recog.c: Likewise.
33309 * recog.h: Declare functions even when HAVE_cc0 is undefined.
33310 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33312 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33314 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33315 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33316 * builtins.c (expand_builtin): Remove check if
33317 EH_RETURN_DATA_REGNO is defined.
33318 * df-scan.c (df_bb_refs_collect): Likewise.
33319 (df_get_exit_block_use_set): Likewise.
33320 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33321 * ira-lives.c (process_bb_node_lives): Likewise.
33322 * lra-lives.c (process_bb_lives): Likewise.
33324 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33326 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33327 FIRST_PSEUDO_REG): New.
33328 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33329 (ARG_POINTER_REGNUM): Define to ARGP_REG.
33330 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33331 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33332 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33333 (FIRST_INT_REG): New.
33334 (LAST_INT_REG): New.
33335 (FIRST_*_REG): Define using *_REG.
33336 (LAST_*_REG): Ditto.
33337 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33338 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33339 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33341 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33343 * expmed.c: (synth_mult): Only assume overlapping
33344 shift with previous steps in alg_sub_t_m2 case.
33346 2015-04-21 Richard Biener <rguenther@suse.de>
33348 PR tree-optimization/65650
33349 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33350 transitions involving copies.
33351 (set_lattice_value): Adjust for copy lattice state.
33352 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33353 if that doesn't dominate the merge point.
33354 (bit_value_unop): Adjust what we treat as varying mask.
33355 (bit_value_binop): Likewise.
33356 (bit_value_assume_aligned): Likewise.
33357 (evaluate_stmt): When we simplified to a SSA name record a copy
33358 instead of dropping to varying.
33359 (visit_assignment): Simplify.
33361 * gimple-match.h (gimple_simplify): Add another callback.
33362 * gimple-fold.c (fold_stmt_1): Adjust caller.
33363 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33364 for the 2nd callback.
33365 * gimple-match-head.c (gimple_simplify): Add a callback that is
33366 used to valueize the stmt operands and use it that way.
33368 2015-04-21 Richard Biener <rguenther@suse.de>
33370 PR tree-optimization/65788
33371 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33373 2015-04-21 Richard Biener <rguenther@suse.de>
33375 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33376 vec_construct cost by vec_stmt_cost.
33378 2015-04-21 Richard Biener <rguenther@suse.de>
33380 * cfghooks.h (create_basic_block): Replace with two overloads
33381 for RTL and GIMPLE.
33382 (split_block): Likewise.
33383 * cfghooks.c (split_block): Rename to ...
33384 (split_block_1): ... this.
33385 (split_block): Add two type-safe overloads for RTL and GIMPLE.
33386 (split_block_after_labels): Call split_block_1.
33387 (create_basic_block): Rename to ...
33388 (create_basic_block_1): ... this.
33389 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33390 (create_empty_bb): Call create_basic_block_1.
33391 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33392 split_block_after_labels.
33393 * omp-low.c (expand_parallel_call): Likewise.
33394 (expand_omp_target): Likewise.
33395 (simd_clone_adjust): Likewise.
33396 * tree-chkp.c (chkp_get_entry_block): Likewise.
33397 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33398 create_basic_block overload.
33399 (cgraph_node::expand_thunk): Likewise.
33400 * tree-cfg.c (make_blocks): Likewise.
33401 (handle_abnormal_edges): Likewise.
33402 * tree-inline.c (copy_bb): Likewise.
33404 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33406 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33408 (*xor_one_cmplsidi3_ze): Likewise.
33410 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
33412 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33413 use df_remove_problem rather than manually removing problems, leaving
33414 holes in df->problems_in_order[].
33416 2015-04-21 Tom de Vries <tom@codesourcery.com>
33418 PR tree-optimization/65802
33419 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33421 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33423 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33425 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33426 at '.'. Assert that there's enough space for everything.
33428 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33430 PR tree-optimization/64950
33432 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
33435 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33438 2015-04-20 Shiva Chen <shiva0217@gmail.com>
33440 PR rtl-optimization/64916
33441 * cfgcleanup.c (values_equal_p): New function.
33442 (can_replace_by): Use it.
33444 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
33447 * doc/invoke.texi ([-Wnarrowing]): Update.
33449 2015-04-20 Jeff Law <law@redhat.com>
33451 PR tree-optimization/65658
33452 * tree-ssa-threadupdate.c (redirection_block_p): Remove
33453 redundant test for GIMPLE_ASSIGN in last change.
33455 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
33457 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33458 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33459 (legitimize_tls_address): Ditto.
33460 (ix86_expand_move): Ditto.
33461 (ix86_expand_binary_operator): Remove reload_in_progress checks.
33462 (ix86_expand_unary_operator): Ditto.
33463 * config/i386/predicates.md (index_register_operand): Ditto.
33465 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
33467 * reorg.c (try_merge_delay_insns): Improve correctness checking
33468 for targets with multiple delay slots.
33470 2015-04-20 Jeff Law <law@redhat.com>
33472 PR tree-optimization/65658
33473 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33476 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33478 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33479 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33482 2015-04-20 Jakub Jelinek <jakub@redhat.com>
33485 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33487 2015-04-20 Richard Biener <rguenther@suse.de>
33489 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33490 * gimple-fold.c (gimple_build_valueize): New function.
33491 (gimple_build): Always use gimple_build_valueize as valueize hook.
33493 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33496 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33497 and overwrite variable parts if <= 1/2 the elements are variable.
33499 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
33501 PR rtl-optimization/65805
33502 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33503 Don't use difference of offset and previous offset if
33504 update_sp_offset is non-zero.
33505 (eliminate_regs_in_insn): Ditto.
33506 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33507 lra_eliminate_regs_1 call.
33508 * lra-constraints.c (get_equiv_with_elimination): Ditto.
33510 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
33512 * hash-table.h: Remove version of hash_table that stored value_type *.
33513 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33514 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33515 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33516 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33517 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33518 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33519 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33520 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33521 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33522 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33523 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33524 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33525 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33526 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33527 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33528 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33530 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33531 Jakub Jelinek <jakub@redhat.com>
33534 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
33535 subsequent SH_NONE operand does not overwrite an existing *special
33537 (adjust_extract): Handle case where a vec_extract operation is
33538 wrapped in a PARALLEL.
33540 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33543 * config/i386/i386.c (ix86_binds_local_p): Define only if
33544 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
33546 2015-04-17 Jeff Law <law@redhat.com>
33548 PR tree-optimization/47679
33549 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
33550 * tree-ssa-scopedtables.c: New file.
33551 * tree-ssa-scopedtables.h: New file.
33552 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
33553 (const_and_copies): Change name/type.
33554 (record_const_or_copy): Move into tree-ssa-scopedtables.c
33555 (record_const_or_copy_1): Similarly.
33556 (restore_vars_to_original_value): Similarly.
33557 (pass_dominator::execute): Create and destroy const_and_copies table.
33558 (thread_across_edge): Update passing of const_and_copies.
33559 (record_temporary_equivalence): Use method calls rather than
33560 manipulating const_and_copies directly.
33561 (record_equality, cprop_into_successor_phis): Similarly.
33562 (dom_opt_dom_walker::before_dom_children): Similarly.
33563 (dom_opt_dom_walker::after_dom_children): Similarly.
33564 (eliminate_redundant_computations): Similarly.
33565 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
33566 (record_temporary_equivalence): Likewise.
33567 (invalidate_equivalences): Likewise.
33568 (record_temporary_equivalences_from_phis): Update due to type
33569 change of const_and_copies. Use method calls rather than
33570 manipulating the stack directly.
33571 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
33572 (thread_through_normal_block, thread_across_edge): Likewise.
33573 (thread_across_edge): Likewise.
33574 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
33575 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
33577 (identify_jump_threads): Update due to type change of equiv_stack.
33578 (finalize_jump_threads): Delete the equiv_stack when complete.
33580 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
33582 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33583 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
33584 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
33586 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
33589 * config.gcc: Exit with a comment when we do not have a major version
33590 number for the FreeBSD target.
33592 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33595 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
33596 maybe_allows_mem bitfields.
33597 (maybe_allows_none_start, maybe_allows_none_end,
33598 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
33599 maybe_allows_mem_end): New variables.
33600 (compute_maybe_allows): New function.
33601 (add_constraint): Use it to initialize maybe_allows_reg and
33602 maybe_allows_mem fields.
33603 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
33604 is_address constraints such that those that allow neither mem nor
33605 reg come first, then those that only allow reg but not mem, then
33606 those that only allow mem but not reg, then the rest.
33607 (write_allows_reg_mem_function): New function.
33608 (write_tm_preds_h): Call it.
33609 * stmt.c (parse_output_constraint, parse_input_constraint): Use
33610 the generated insn_extra_constraint_allows_reg_mem function
33611 instead of always setting *allows_reg = true; *allows_mem = true;
33612 for unknown extra constraints.
33614 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33617 * output.h (default_binds_local_p_3): New.
33618 * varasm.c (default_binds_local_p_3): Make it public. Take an
33619 argument to indicate if common symbol may be local. If common
33620 symbol may be local, treat non-external variable as defined
33622 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
33623 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
33624 * config/i386/i386.c (ix86_binds_local_p): New.
33625 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
33626 ix86_binds_local_p.
33628 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33631 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
33632 trying mem_loc_descriptor on XEXP (rtl, 0).
33634 2015-04-17 Martin Liska <mliska@suse.cz>
33636 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
33637 Release symbol_compare_collection.
33638 * ipa-reference.c: Add TODO that a vector should be released.
33640 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
33643 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
33644 to new AVR-LibC file layout (bug #44574).
33645 (*avrlibc_devicelib): Same.
33646 * config/avr/avr-mcus.def: Adjust comments.
33647 * config/avr/avr.opt (nodevicelib): Adjust help.
33649 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
33651 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
33653 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
33656 * gimplify.c (gimplify_init_constructor): Always emit a
33657 side-effecting constructor.
33659 2015-04-17 Tom de Vries <tom@codesourcery.com>
33661 PR tree-optimization/64950
33662 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
33663 in cfun->curr_properties.
33664 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
33665 if we generate an IFN_VA_ARG.
33666 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
33667 function if PROP_gimple_lva is not set in src function.
33669 2015-04-17 Tom de Vries <tom@codesourcery.com>
33670 Michael Matz <matz@suse.de>
33672 PR tree-optimization/64950
33673 * gimple-iterator.c (update_modified_stmts): Remove static.
33674 * gimple-iterator.h (update_modified_stmts): Declare.
33675 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
33676 (gimplify_va_arg_internal): New function.
33677 (gimplify_va_arg_expr): Use IFN_VA_ARG.
33678 * gimplify.h (gimplify_va_arg_internal): Declare.
33679 * internal-fn.c (expand_VA_ARG): New unreachable function.
33680 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
33681 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
33682 (expand_ifn_va_arg): New function.
33683 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
33684 (pass_stdarg::execute): Call expand_ifn_va_arg.
33685 (pass_data_lower_vaarg): New pass_data.
33686 (pass_lower_vaarg): New gimple_opt_pass.
33687 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
33688 (make_pass_lower_vaarg): New function.
33689 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
33690 properties_required field.
33691 * passes.def (all_passes): Add pass_lower_vaarg.
33692 * tree-pass.h (PROP_gimple_lva): Add define.
33693 (make_pass_lower_vaarg): Declare.
33695 2015-04-17 Tom de Vries <tom@codesourcery.com>
33697 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
33698 * calls.c (call_expr_flags): Same.
33700 2015-04-17 Tom de Vries <tom@codesourcery.com>
33702 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
33703 (pass_stdarg::execute): ... here.
33705 2015-04-17 Tom de Vries <tom@codesourcery.com>
33706 Michael Matz <matz@suse.de>
33708 * tree-cfg.c (make_blocks_1): Factor out of ...
33709 (make_blocks): ... here.
33710 (make_edges_bb): Factor out of ...
33711 (make_edges): ... here.
33712 (gimple_find_sub_bbs): New function.
33713 * tree-cfg.h (gimple_find_sub_bbs): Declare.
33715 2015-04-17 Tom de Vries <tom@codesourcery.com>
33717 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
33719 2015-04-17 Yury Gribov <y.gribov@samsung.com>
33721 * asan.c (set_sanitized_sections): New function.
33722 (section_sanitized_p): Ditto.
33723 (asan_protect_global): Optionally sanitize user-defined
33725 * asan.h (set_sanitized_sections): Declare new function.
33726 * common.opt (fsanitize-sections): New option.
33727 * doc/invoke.texi (-fsanitize-sections): Document new option.
33728 * opts-global.c (handle_common_deferred_options): Handle new
33731 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33734 * dwarf2out.c (loc_list_from_tree): Return NULL
33735 for DEBUG_EXPR_DECL.
33737 2015-04-17 Christian Bruel <christian.bruel@st.com>
33739 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
33742 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33744 * ira-color.c (setup_left_conflict_sizes_p): Do not process
33745 node itself when computing left conflict subnode size.
33747 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33749 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
33750 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
33751 *fop_<mode>_1_sse using enabled attribute. Use
33752 register_mixssei387nonimm_operand operand 1 predicate. Change
33753 alternative 3 constraints from "x" to "v".
33755 2015-04-16 Richard Biener <rguenther@suse.de>
33757 PR tree-optimization/65774
33758 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
33759 bit-value tracking on.
33761 2015-04-16 Richard Biener <rguenther@suse.de>
33763 PR tree-optimization/64277
33764 * tree-vrp.c (check_array_ref): Fix anti-range handling,
33765 simplify upper bound handling.
33766 (search_for_addr_array): Simplify.
33767 (check_array_bounds): Handle ADDR_EXPRs here.
33768 (check_all_array_refs): Simplify.
33770 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33772 * config/i386/i386.c (print_reg): Rewrite function.
33774 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33776 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
33777 Invert the condition.
33779 2015-04-16 Renlin Li <renlin.li@arm.com>
33781 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
33782 simplifications for UNSIGNED_FLOAT.
33784 2015-04-16 Nick Clifton <nickc@redhat.com>
33786 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
33788 (enum rl78_cpu_type): New.
33789 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
33790 (umulhi3_shift_virt): Remove m constraint from operand 1.
33791 (umulqihi3_virt): Likewise.
33792 * config/rl78/rl78.c (rl78_option_override): Add code to process
33793 -mcpu and -mmul options.
33794 (rl78_alloc_physical_registers): Add code to handle divhi and
33795 divsi valloc attributes.
33796 (set_origin): Likewise.
33797 * config/rl78/rl78.h (RL78_MUL_G14): Define.
33798 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
33799 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
33801 (ASM_SPEC): Pass -mcpu on to assembler.
33802 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
33803 (mulqi3_rl78): Likewise.
33804 (mulhi3_g13): Likewise.
33805 (mulhi3): Generate the G13 or G14 versions of the insn directly.
33806 (mulsi3): Likewise.
33807 (mulhi3_g14): Add clobbers of AX and BC.
33808 (mulsi3_g14): Likewise.
33809 (mulsi3_g13): Likewise.
33810 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
33811 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
33812 * config/rl78/rl78.opt (mmul): Initialise value to
33814 (mcpu): New option.
33815 (m13, m14, mrl78): New option aliases.
33816 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
33817 (MULTILIB_DIRNAMES): Add g13 and g14.
33818 * doc/invoke.texi: Document -mcpu and -mmul options.
33820 2015-04-16 Richard Biener <rguenther@suse.de>
33822 * tree-ssa-ccp.c (likely_value): See if we have operands that
33823 are marked as never simulate again and return CONSTANT in this
33825 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
33826 not have any operands that will be simulated again as
33827 not being simulated again.
33829 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
33831 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
33832 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
33833 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
33835 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
33837 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
33838 *float<SWI48:mode><MODEF:mode>2_sse.
33839 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
33841 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
33844 2015-04-15 Tom de Vries <tom@codesourcery.com>
33847 * function.c (push_dummy_function): New function.
33848 (init_dummy_function_start): Use push_dummy_function.
33849 (pop_dummy_function): New function. Factored out of ...
33850 (expand_dummy_function_end): ... here.
33851 * function.h (push_dummy_function, pop_dummy_function): Declare.
33852 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
33853 pop_dummy_function.
33854 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
33856 2015-04-15 Jeff Law <law@redhat.com>
33858 PR tree-optimization/47679
33859 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
33860 need for forward declaration in upcoming changes.
33861 (record_conditions, record_edge_info): Likewise.
33863 PR rtl-optimization/42522
33864 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
33865 SIGN_EXTRACT as a whole object rather than simplifying
33868 2015-04-15 Jakub Jelinek <jakub@redhat.com>
33871 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
33872 and GIMPLE_PREDICT use break instead of return true. For
33873 GIMPLE_EH_DISPATCH, compare dispatch region.
33875 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
33877 * doc/extend.texi (__sync Builtins): Simplify some text. Update
33878 details about the implementation. Make clear preference for
33879 __atomic builtins. Reduce possibility of future change.
33881 2015-04-15 Nick Clifton <nickc@redhat.com>
33883 * config/rx/rx.opt (mallow-string-insns): New option.
33884 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
33885 builtin if string instructions are denied.
33886 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
33887 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
33889 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
33890 * config/rx/rx.md (movstr): Enable pattern only if string
33891 instructions are allowed.
33892 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
33893 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
33894 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
33895 (MULTILIB_DIRNAMES): Add no-strings.
33896 * doc/invoke.texi: Document -mno-allow-string-insns.
33898 2015-04-15 Alan Modra <amodra@gmail.com>
33902 PR middle-end/36043
33903 * calls.c (load_register_parameters): Don't load past end of
33904 mem unless suitably aligned.
33906 2015-04-15 Nick Clifton <nickc@redhat.com>
33908 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
33909 decrement instruction as being frame related.
33910 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
33912 If zero extending a function address enclose the operation in
33914 (rl78_preferred_reload_class): New function.
33915 (TARGET_PREFERRED_RELOAD_CLASS): Define.
33916 * config/rl78/rl78.md: Remove useless constraints in expanders.
33917 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
33918 (mulhi3_rl78): Likewise.
33919 (mulhi3_g13): Likewise.
33920 (mulsi3_rl78): Likewise.
33921 (es_addr): Move to before the multiply patterns.
33923 2015-04-15 Alan Modra <amodra@gmail.com>
33925 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
33926 and sequence_stack. Add seq.
33927 (seq_stack): Delete.
33928 * function.c (prepare_function_start): Don't access x_last_insn.
33929 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
33930 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
33931 * emit_rtl.c (start_sequence, push_topmost_sequence,
33932 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
33933 sequence accessors.
33934 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
33935 remove_insn): Likewise. Simplify.
33936 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
33937 and pop_topmost_sequence.
33938 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
33940 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
33942 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
33945 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
33948 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33950 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
33951 (LEGACY_INT_REGNO_P): Ditto.
33952 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
33953 (ANY_MASK_REG_P): Remove.
33954 (BND_REG_P): Rename from ANY_BND_REG_P.
33955 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
33956 legacy integer registers. Do not handle MMX_REG_P in a special way.
33957 Merge 64byte and 32byte SSE handling.
33959 2015-04-14 Nick Clifton <nickc@redhat.com>
33961 * expr.c (expand_assignment): Force an address offset computation
33962 into a register before changing its mode.
33963 (expand_expr_real_1): Likewise.
33965 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
33967 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
33968 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
33969 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
33970 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
33971 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
33972 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
33973 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
33974 and __aarch64_vget_lane_any.
33976 2015-04-14 Jakub Jelinek <jakub@redhat.com>
33978 PR rtl-optimization/65761
33979 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
33980 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
33982 2015-04-14 Richard Biener <rguenther@suse.de>
33984 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
33985 (graphite_can_represent_scev): Use POINTER_TYPE_P.
33987 2015-04-14 Richard Biener <rguenther@suse.de>
33989 PR tree-optimization/65758
33990 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
33992 (ccp_lattice_meet): Likewise.
33993 (bit_value_unop): Likewise.
33994 (bit_value_binop): Likewise.
33995 (bit_value_assume_aligned): Likewise.
33997 2015-04-14 Christian Bruel <christian.bruel@st.com>
33999 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
34002 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
34004 PR tree-optimization/63387
34005 * match.pd ((x unord x) | (y unord y) -> (x unord y),
34006 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
34008 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34010 * config/i386/predicates.md (any_QIreg_operand): Rename from
34011 q_regs_operand. Do not process subregs.
34012 (QIreg_operand): Use QI_REGNO_P predicate.
34013 (ext_QIreg_operand): Ditto.
34014 (ext_register_operand): Ditto.
34015 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
34016 (AND splitters): Ditto.
34017 (AND with -65536 splitter): Add SWI48 mode for operand 0.
34018 (AND with -256 splitter): Use any_QIreg_operand predicate and
34019 SWI248 mode for operand 0.
34020 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
34021 mode for operand 0.
34022 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
34024 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
34026 * doc/plugins.texi: Rewrite first introductory paragraph.
34028 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34030 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
34031 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
34033 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34035 * ipa-profie.c (ipa_profile): Check number of parameters
34036 and possible polymorphic call targets before
34039 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
34041 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
34042 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
34044 2015-04-13 Richard Biener <rguenther@suse.de>
34046 PR tree-optimization/65204
34047 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
34048 takens for bit-CCP.
34050 2015-04-13 Richard Biener <rguenther@suse.de>
34053 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
34054 and cond_not_taken_branch_cost to 4 and 2.
34055 (bdver2_cost): Likewise.
34056 (bdver3_cost): Likewise.
34057 (bdver4_cost): Likewise.
34059 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34061 * hash-table.h (hash_table constructor): Add mem stats.
34062 (alloc_entries): Likewise.
34064 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34066 * ipa-cp.c (ipcp_driver): Relase prev_edge.
34067 * passes.c (execute_one_pass): Only add transform if pass has one.
34069 2015-04-12 Joseph Myers <joseph@codesourcery.com>
34071 * config/i386/i386.c (ix86_option_override_internal): Don't set
34072 -fprefetch-loop-arrays if optimizing for size.
34074 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34075 Gerald Pfeifer <gerald@pfeifer.com>
34077 * doc/contrib.texi (Contributors): Add Martin Jambor and
34080 2015-04-12 Jakub Jelinek <jakub@redhat.com>
34082 * BASE-VER: Set to 6.0.0.
34084 PR tree-optimization/65747
34085 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
34086 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
34088 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34090 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
34091 sentence. Improve grammar.
34093 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34095 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
34097 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34100 * ipa-inline-transform.c (speculation_removed): Remove static var.
34101 (check_speculations): New function.
34102 (clone_inlined_nodes): Do not check spculations.
34103 (inline_call): Call check_speculations.
34104 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34105 consider non-invariants.
34107 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34108 Martin Liska <mliska@suse.cz>
34111 * ipa-icf.c (sem_item::compare_cgraph_references): function and
34112 variable can not match.
34113 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34114 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34116 2015-04-11 Jakub Jelinek <jakub@redhat.com>
34118 PR tree-optimization/65735
34119 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34120 Remove visited_phis argument, add visited_bbs, avoid recursing into the
34121 same bb rather than just into the same phi node.
34122 (thread_through_normal_block): Adjust caller.
34124 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34126 * doc/contrib.texi (Contributors): Add Ira Rosen.
34128 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
34130 * gcov.c (find_source): Fix miswording in error message.
34131 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34132 (ix86_expand_sse_comi_round): Fix typo in error message.
34134 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34136 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34138 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
34140 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34142 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34145 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34146 Print bad_spills_num and insn_pseudos_num.
34148 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34151 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34152 when creating +1 values for SImode.
34154 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34157 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34160 2015-04-10 Jakub Jelinek <jakub@redhat.com>
34161 Iain Sandoe <iain@codesourcery.com>
34164 * configure: Regenerate.
34166 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34169 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34171 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
34173 * doc/contrib.texi (Contributors): Add John Marino.
34175 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34177 PR tree-optimization/65709
34178 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34179 TREE_TYPE (TREE_TYPE (t)).
34181 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
34184 * lra-int.h (lra_bad_spill_regno_start): New.
34185 * lra.c (lra_bad_spill_regno_start): New.
34186 (lra): Set up lra_bad_spill_regno_start. Set up
34187 lra_constraint_new_regno_start unconditionally.
34188 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34191 2015-04-09 Marek Polacek <polacek@redhat.com>
34192 Jakub Jelinek <jakub@redhat.com>
34194 PR middle-end/65554
34195 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34196 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34199 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
34201 PR rtl-optimization/65693
34202 * combine.c (is_parallel_of_n_reg_sets): Move outside of
34205 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
34208 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34209 device specs file if "device-specs%s" didn't resolve to a path.
34211 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34214 * config/i386/i386.c (fixup_modeless_constant): New.
34215 (ix86_expand_args_builtin): Fixup modeless constant operand.
34216 (ix86_expand_round_builtin): Ditto.
34217 (ix86_expand_special_args_builtin): Ditto.
34218 (ix86_expand_builtin): Ditto.
34220 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34223 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34224 any pow2 integer in between 2 and 0x80000000U inclusive.
34226 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
34228 PR rtl-optimization/65693
34229 * combine.c (is_parallel_of_n_reg_sets): Change first argument
34230 from an rtx_insn * to an rtx.
34231 (try_combine): Adjust both callers. Use it once more.
34233 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34235 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34236 (chkp_make_static_const_bounds): Search existing
34237 symbol by assembler name. Use make_decl_one_only.
34238 (chkp_get_zero_bounds_var): Remove node search which
34239 is now performed in chkp_make_static_const_bounds.
34240 (chkp_get_none_bounds_var): Likewise.
34242 2015-04-08 Michael Witten <mfwitten@gmail.com>
34244 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34247 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34249 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34251 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34253 * doc/extend.texi (__sync Builtins): Fix grammar.
34255 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34257 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34259 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34261 * varasm.c (emit_local): Move definition of align.
34263 2015-04-08 Julian Brown <julian@codesourcery.com>
34265 * config/nvptx/mkoffload.c (process): Support variable mapping.
34267 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
34269 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34271 (alpha_write_one_linkage): Correct typo.
34273 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34275 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34277 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34279 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34281 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34283 * tree-chkp.h (chkp_insert_retbnd_call): New.
34284 * tree-chkp.c (chkp_insert_retbnd_call): New.
34285 * ipa-split.c (insert_bndret_call_after): Remove.
34286 (split_function): Use chkp_insert_retbnd_call.
34287 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34288 bounds for instrumented functions.
34290 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
34293 * calls.c (initialize_argument_information): When producing tail
34294 call also turn SSA_NAMES passed by references to original PARM_DECLs
34296 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
34299 * lra-remat.c (do_remat): Process input and non-input insn
34300 registers separately.
34302 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34305 * valtrack.c (debug_lowpart_subreg): New function.
34306 (dead_debug_insert_temp): Use it.
34308 PR middle-end/65680
34309 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34310 into signed HOST_WIDE_INT the same as negative bit_offset.
34312 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
34314 * ipa-comdats.c (ipa_comdats): Visit all thunks
34315 to set proper comdat group.
34317 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34320 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34321 on constants for NEON VSTRUCT modes.
34323 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34324 Iain Sandoe <iain@codesourcery.com>
34327 * configure: Regenerate.
34329 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34332 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34333 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34334 that LFD is used to load double constants instead of LFS. Add
34335 defaults for all costs structures. Add comments for missing
34336 initialization fields.
34337 (size32_cost): Likewise.
34338 (size64_cost): Likewise.
34339 (rs64a_cost): Likewise.
34340 (mpccore_cost): Likewise.
34341 (ppc403_cost): Likewise.
34342 (ppc405_cost): Likewise.
34343 (ppc440_cost): Likewise.
34344 (ppc476_cost): Likewise.
34345 (ppc601_cost): Likewise.
34346 (ppc603_cost): Likewise.
34347 (ppc604_cost): Likewise.
34348 (ppc604e_cost): Likewise.
34349 (ppc620_cost): Likewise.
34350 (ppc630_cost): Likewise.
34351 (ppccell_cost): Likewise.
34352 (ppc750_cost): Likewise.
34353 (ppc7450_cost): Likewise.
34354 (ppc8540_cost): Likewise.
34355 (ppce300c2c3_cost): Likewise.
34356 (ppce500mc_cost): Likewise.
34357 (ppce500mc64_cost): Likewise.
34358 (ppce5500_cost): Likewise.
34359 (ppce6500_cost): Likewise.
34360 (titan_cost): Likewise.
34361 (power4_cost): Likewise.
34362 (power6_cost): Likewise.
34363 (power7_cost): Likewise.
34364 (power8_cost): Likewise.
34365 (ppca2_cost): Likewise.
34366 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34368 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34369 instead of XXLOR to copy SFmode to clear out dirty bits created
34370 when SFmode denormals are generated.
34371 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34372 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34374 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34376 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34377 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34378 * config/aarch64/aarch64-tune.md: Regenerate.
34380 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34382 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34383 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34384 * config/arm/arm-cores.def (exynos-m1): New core.
34385 * config/arm/arm-tune.md: Regenerate.
34386 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34387 * config/arm/bpabi.h: Likewise.
34389 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34391 * ipa-cp (set_single_call_flag): Remove too
34392 restrictive assert.
34394 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
34396 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34397 GOMP_offload_unregister from the destructor.
34399 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34401 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34402 flags for instrumentation thunk.
34403 (chkp_produce_thunks): Likewise.
34405 2015-04-05 Martin Liska <mliska@suse.cz>
34408 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34409 has computed data structure.
34410 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34412 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
34414 * invoke.texi (inline-unit-growth): Increase growth to 20%
34415 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34417 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
34420 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
34422 (lra_rematerialization_iter): New.
34423 * lra.c (lra): Initialize lra_rematerialization_iter.
34424 Stop updating lra_constraint_new_regno_start after switching of
34425 inheritance and rematerialization.
34426 * lra-remat.c (lra_rematerialization_iter): New.
34427 (lra_remat): Add printing pass iteration. Do rematerialization
34428 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34430 2015-04-04 Richard Biener <rguenther@suse.de>
34432 PR tree-optimization/64909
34433 PR tree-optimization/65660
34434 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34435 to take a cost vector for scalar iteration cost.
34436 (vect_get_single_scalar_iteration_cost): Likewise.
34437 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34438 Compute the scalar iteration cost into a cost vector.
34439 (vect_get_known_peeling_cost): Use the scalar cost vector to
34440 account for the cost of the peeled iterations.
34441 (vect_estimate_min_profitable_iters): Likewise.
34442 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34445 2015-04-04 Alan Modra <amodra@gmail.com>
34449 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34450 0.0 constant unless TARGET_VSX.
34451 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34454 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34457 * ipa-inline-transform.c (inline_call): Skip sanity check to work
34460 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34463 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34464 speculative indirect edges to avoid ordering issue.
34466 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34469 * ipa-inline.c (edge_badness): Add combined size to the denominator.
34471 2015-04-03 Jakub Jelinek <jakub@redhat.com>
34473 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34474 TYPE_ARTIFICIAL on the .omp_data* types.
34476 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34478 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34479 instrumentation thunks.
34481 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34483 * config/i386/i386.c (ix86_expand_call): Avoid nested
34484 PARALLEL in returned call value.
34486 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34488 * lto-cgraph.c (input_cgraph_1): Always link instrumented
34489 assembler name with original one.
34491 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34493 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34495 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34497 Revert parts of r216820.
34498 * config/i386/i386.md (movqi_internal): Correct type calculation
34499 for alternatives 3 and 5.
34501 2015-04-02 Jakub Jelinek <jakub@redhat.com>
34503 PR preprocessor/61977
34504 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34505 predefine __vector/__bool/__pixel macros nor context sensitive
34506 macros for CLK_ASM.
34507 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34509 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
34511 * config/pa/pa.c (pa_output_move_double): Directly handle register
34512 indexed memory operand. Simplify handling of scaled register indexed
34515 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34518 * config/i386/linux-common.h (MPX_SPEC): New.
34519 (CHKP_SPEC): Add MPX_SPEC.
34520 * doc/invoke.texi (-fcheck-pointer-boudns): Document
34521 possible issues with '-z bndplt' support in linker.
34523 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34525 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34526 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34527 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34528 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34529 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
34531 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
34533 * config/i386/sync.md (UNSPEC_MOVA): Remove.
34534 (atomic_load<mode>): Change operand 0 predicate to
34535 nonimmediate_operand and fix up the destination when needed.
34537 (atomic_loaddi_fpu): Use UNSPEC_LDA.
34538 (atomic_store<mode>): Change operand 1 predicate to
34539 nonimmendate_operand and move the source to register when needed.
34541 (atomic_store<mode>_1): Use UNSPEC_STA.
34542 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
34543 Fix moves from memory operand. Use UNSPEC_STA.
34545 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34547 * expmed.c (strict_volatile_bitfield_p): Check that the access will
34548 not cross a MODESIZE boundary.
34549 (store_bit_field, extract_bit_field): Added assertions in the
34550 strict volatile bitfields code path.
34552 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
34555 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
34556 Increase args array size by one to avoid buffer overflow.
34558 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34560 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
34562 * ipa-inline.c (edge_badness): Add wrapper penalty.
34563 (sum_callers): Move up.
34564 (inline_small_functions): Set single_caller.
34565 * ipa-inline.h (inline_summary): Add single_caller.
34566 * ipa-split.c (split_function): Set split_part.
34567 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
34568 * cgraph.h (cgraph_node): Add split_part.
34570 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
34573 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
34574 Do not split operands 0 and operands 2 to halfmode.
34575 (atomic_compare_and_swap<mode>): Update for
34576 atomic_compare_and_swap<dwi>_doubleword changes.
34578 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34580 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
34581 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
34582 no caching is done.
34584 2015-03-31 Martin Liska <mliska@suse.cz>
34587 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
34588 has already filled up function summary.
34589 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34591 2015-03-31 Richard Biener <rguenther@suse.de>
34593 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
34596 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
34598 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
34600 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
34601 (s390_asm_output_function_label): Adapt to new signature of
34602 s390_function_num_hotpatch_hw
34603 Optimise the code generating assembler output.
34604 Add comments to assembler file.
34606 2015-03-31 Richard Biener <rguenther@suse.de>
34608 PR middle-end/65626
34609 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
34610 of the noreturn call so it is last and cleanup_control_flow_bb
34611 can do the CFG part.
34613 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
34616 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
34617 same_comdat_group for external symbols.
34618 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
34619 infinite same_comdat_group traversal loop.
34621 2015-03-31 Jakub Jelinek <jakub@redhat.com>
34624 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
34625 automatically to $headers.
34627 2015-03-30 Jakub Jelinek <jakub@redhat.com>
34630 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
34631 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
34633 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
34635 * ipa-prop.c (param_type_may_change_p): Likewise.
34636 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
34637 (remove_unused_scope_block_p): Add in_ctor_dtor_block
34638 argument. Before inlining, preserve
34639 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
34640 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
34642 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
34644 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34647 * ipa-inline.c (edge_badness): Base denominator on callee's
34650 2015-03-27 Martin Jambor <mjambor@suse.cz>
34653 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
34654 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
34655 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
34656 node_calling_single_call.
34657 * ipa-cp.c (count_callers): New function.
34658 (set_single_call_flag): Likewise.
34659 (initialize_node_lattices): Count callers and set single_flag_call if
34661 (incorporate_penalties): New function.
34662 (good_cloning_opportunity_p): Use it, dump new flags.
34663 (propagate_constants_topo): Set node_within_scc flag if appropriate.
34664 * doc/invoke.texi (ipa-cp-recursion-penalty,
34665 ipa-cp-single-call-pentalty): Document.
34667 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34670 * symtab.c (symtab_node::get_partitioning_class): Register vars
34672 * varpool.c (symbol_table::output_variables) Do not assemble unefined
34673 decls for non-symbols.
34675 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
34678 * output.h (default_binds_local_p_2): New.
34679 * varasm.c (default_binds_local_p_2): Renamed to ...
34680 (default_binds_local_p_3): This. Don't return true on protected
34681 data symbol if protected data may be external.
34682 (default_binds_local_p): Use default_binds_local_p_3.
34683 (default_binds_local_p_1): Likewise.
34684 (default_binds_local_p_2): New.
34685 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
34686 default_binds_local_p_2 if TARGET_MACHO is undefined.
34688 2015-03-27 Jakub Jelinek <jakub@redhat.com>
34691 * config/i386/i386.c (legitimize_pic_address): If base
34692 is SYMBOL_REF or LABEL_REF using %rip addressing, force
34693 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
34695 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34698 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
34701 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34704 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
34705 of optimized out indirect call.
34706 (redirect_to_unreachable): Always build symbol table node for
34707 BUILT_IN_UNREACHABLE
34709 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
34712 * ira-costs.c (record_reg_classes): Process all constraint string
34715 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
34717 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
34721 * config/c6x/constraints.md (S3): New constraint.
34722 * config/c6x/c6x.md (real_jump): Use it.
34724 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34726 PR middle-end/65595
34727 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
34728 do redirection if the call is not optimized out.
34730 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
34733 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
34734 (fchkp-check-incomplete-type): Add LTO.
34735 (fchkp-zero-input-bounds-for-main): Likewise.
34736 (fchkp-first-field-has-own-bounds): Likewise.
34737 (fchkp-narrow-bounds): Likewise.
34738 (fchkp-narrow-to-innermost-array): Likewise.
34739 (fchkp-use-static-bounds): Likewise.
34740 (fchkp-use-static-const-bounds): Likewise.
34741 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34743 2015-03-27 Marek Polacek <polacek@redhat.com>
34745 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
34747 2015-03-27 Marek Polacek <polacek@redhat.com>
34750 * ubsan.c (ubsan_create_edge): New function.
34751 (instrument_bool_enum_load): Call it.
34752 (instrument_nonnull_arg): Likewise.
34753 (instrument_nonnull_return): Likewise.
34754 (instrument_object_size): Likewise.
34756 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34758 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
34761 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34764 * lto-streamer.h (class lto_location_cache): New.
34765 (struct data_in): Add location_cache.
34766 (lto_input_location): Update prototype.
34767 (stream_input_location_now): New.
34768 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
34769 pointer to location.
34770 (stream_input_location): Update.
34771 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
34772 (warn_odr): Apply location cache before warning.
34773 (lto_input_location): Update prototype.
34774 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
34775 Use stream_input_location_now.
34776 * lto-streamer-in.c (lto_location_cache::current_cache): New static
34778 (lto_location_cache::cmp_loc): New function.
34779 (lto_location_cache::apply_location_cache): New function.
34780 (lto_location_cache::accept_location_cache): New function.
34781 (lto_location_cache::revert_location_cache): New function.
34782 (lto_location_cache::input_location): New function.
34783 (lto_input_location): Do location caching.
34784 (stream_input_location_now): New function.
34785 (input_eh_region, input_struct_function_base): Use
34786 stream_input_location_now.
34787 (lto_data_in_create): use new.
34788 (lto_data_in_delete): Use delete.
34789 * tree-streamer-in.c (unpack_ts_block_value_fields,
34790 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
34791 lto_input_ts_exp_tree_pointers): Update for cached location api.
34793 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34796 * passes.def: Add pass_nothrow.
34797 * ipa-pure-const.c: (pass_data_nothrow): New.
34798 (pass_nothrow): New.
34799 (pass_nothrow::execute): New.
34800 (make_pass_nothrow): New.
34801 * tree-pass.h (make_pass_nothrow): Declare.
34803 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34805 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
34806 edge to change by speculation resolution or redirection.
34807 (edge_set_predicate): Likewise.
34808 (inline_summary_t::duplicate): Likewise.
34809 (remap_edge_summaries): Likewise.
34811 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34813 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
34815 (can_inline_edge_p): Relax option matching for always inline functions.
34817 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
34820 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
34821 Check operand 4 and operand 0 for equality.
34822 (avx512f_vextract<shuffletype>32x4_1_maskm):
34823 Check operand 6 and operand 0 for equality.
34824 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
34826 (vec_extract_hi_<mode>_maskm): Ditto.
34828 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34830 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
34831 dead calls back to live.
34832 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
34834 (cgraph_node::verify_node): ... here; verify only callee edges,
34836 * cif-code.def (CILK_SPAWN): New code.
34838 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34840 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
34841 (edge_set_predicate): Use it to mark unreachable edges.
34842 (inline_summary_t::duplicate): Remove unnecesary code.
34843 (remap_edge_summaries): Likewise.
34844 (dump_inline_summary): Report contains_cilk_spawn.
34845 (compute_inline_parameters): Compute contains_cilk_spawn.
34846 (inline_read_section, inline_write_summary): Stream
34847 contains_cilk_spawn.
34848 * ipa-inline.c (can_inline_edge_p): Do not touch
34849 DECL_STRUCT_FUNCTION that may not be available;
34850 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
34851 remove check for callee_fun->can_throw_non_call_exceptions and
34852 replace it by optimization attribute check; check for flag_exceptions.
34853 * ipa-inline-transform.c (inline_call): Maintain
34854 DECL_FUNCTION_PERSONALITY
34855 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
34857 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34859 PR tree-optimization/65551
34860 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
34861 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
34863 2015-03-26 Richard Biener <rguenther@suse.de>
34865 PR middle-end/65555
34866 * tree-cfg.c (verify_gimple_call): Do not require a call to
34867 have no LHS if it wasn't recognized as control altering yet.
34869 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34871 PR tree-optimization/64715
34872 * passes.def: Add another instance of pass_object_sizes before ccp1.
34873 * tree-object-size.c (pass_object_sizes::execute): In
34874 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
34875 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
34876 __bos result and the computed constant. Remove redundant
34877 checks, obsoleted by gimple_call_builtin_p test.
34879 * var-tracking.c (variable_tracking_main_1): Don't track
34880 variables for targetm.no_register_allocation targets.
34882 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
34884 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
34885 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
34887 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
34890 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
34891 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
34892 0.0 is correctly setup.
34893 (extenddftf2_internal): Likewise.
34895 2015-03-25 Sebastian Pop <s.pop@samsung.com>
34897 PR tree-optimization/65177
34898 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
34900 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
34901 edges not adjacent on the path to the original code.
34903 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
34906 * doc/install.texi (Building a native compiler): Document new
34907 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
34908 configuration assumes that the host supports the linker plugin.
34910 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
34913 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
34914 chain for generated call.
34916 2015-03-25 Richard Biener <rguenther@suse.de>
34918 * passes.c (pass_manager::execute_early_local_passes): Guard
34919 execution of pass_chkp_instrumentation_passes with
34920 flag_check_pointer_bounds.
34921 (pass_chkp_instrumentation_passes::gate): Likewise.
34923 2015-03-25 Martin Liska <mliska@suse.cz>
34925 PR tree-optimization/65538
34926 * symbol-summary.h (function_summary::~function_summary):
34927 Relese memory for allocated summaries.
34928 (function_summary::release): New function.
34930 2015-03-25 Jakub Jelinek <jakub@redhat.com>
34933 * lto-streamer-out.c (DFS::worklist): New struct.
34934 (DFS::worklist_vec): New data member.
34935 (DFS::next_dfs_num): Remove.
34936 (DFS::DFS): Rewritten using worklist instead of recursion,
34937 using most of code from DFS::DFS_write_tree.
34938 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
34939 pass it to DFS_write_tree calls.
34940 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
34941 quick initial checks push it into worklist_vec and return.
34943 2015-03-25 Richard Biener <rguenther@suse.de>
34945 PR middle-end/65519
34946 * genmatch.c (expr::gen_transform): Re-write to avoid
34947 using gimple_build.
34949 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34951 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
34953 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34955 * config/arm/arm.opt (print_tune_info): New option.
34956 * config/arm/arm.c (arm_print_tune_info): New function.
34957 (arm_file_start): Call arm_print_tune_info.
34958 * config/arm/arm-protos.h (struct tune_params): Add comment.
34959 * doc/invoke.texi (@item -mprint-tune-info): New item.
34960 (-mtune): mention it in ARM Option Summary.
34962 2015-03-25 DJ Delorie <dj@redhat.com>
34964 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
34967 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
34968 Martin Liska <mliska@suse.cz>
34970 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
34971 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
34972 (sem_item::add_type): New function.
34973 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
34974 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
34975 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
34976 (sem_function::equals_wpa): Fix typo.
34977 * ipa-icf.h (sem_item::add_type): New function.
34978 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
34981 2015-03-24 Jakub Jelinek <jakub@redhat.com>
34983 PR tree-optimization/65533
34984 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
34985 with swapped operands, call vect_free_slp_tree on
34986 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
34989 2015-03-24 Richard Biener <rguenther@suse.de>
34991 PR middle-end/65517
34992 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
34993 for fixup if necessary.
34995 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
34997 * doc/extend.texi (Function Attributes): Add @cindex entries
34998 for all attributes and regularize their format. Delete text
34999 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
35000 information about "eightbit_data", "tiny_data", and "model"
35001 variable attributes to the Variable Attributes section. Fix
35002 some obvious typos and copy-editing issues.
35003 (Variable Attributes, Type Attributes): Likewise add/fix
35004 @cindex entries for all attributes.
35006 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35009 * tree-chkp.c (chkp_build_returned_bound): Ignore
35010 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
35012 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
35015 * config/sh/predicates.md (simple_mem_operand,
35016 displacement_mem_operand): Add test for reg.
35017 (short_displacement_mem_operand): Test for displacement_mem_operand
35018 before invoking sh_disp_addr_displacement.
35019 * config/sh/constraints.md (Sdd, Sra): Simplify.
35020 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
35021 Remove redundant displacement_mem_operand tests.
35023 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
35026 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
35027 the same -mmcu=MCU more than once.
35029 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35032 * ipa-devirt.c: Remove duplicate demangle.h include.
35035 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
35037 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
35038 REG_POINTER on *destptr after adjusting it for prologue size.
35041 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
35042 ultimate_alias_target ()->order ints instead of
35043 ultimate_alias_target () pointers.
35045 2015-03-23 Richard Biener <rguenther@suse.de>
35047 PR tree-optimization/65518
35048 * tree-vect-stmts.c (vectorizable_load): Reject single-element
35049 interleaving cases we generate absymal code for.
35051 2015-03-23 Richard Biener <rguenther@suse.de>
35053 PR tree-optimization/65494
35054 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
35056 (vect_analyze_slp_instance): But do that here, always and once.
35058 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35060 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
35061 adding T or multiplying by T+1 and subracting T.
35063 2015-03-22 Jeff Law <law@redhat.com>
35065 PR rtl-optimization/64317
35066 * Makefile.in (OBJS): Add gcse-common.c
35067 * gcse.c: Include gcse-common.h
35068 (struct modify_pair_s): Move structure definition to gcse-common.h
35069 (compute_transp): Move function to gcse-common.c.
35070 (canon_list_insert): Similarly.
35071 (record_last_mem_set_info): Break out some code and put it into
35072 gcse-common.c. Call into the new common code.
35073 (compute_local_properties): Pass additional arguments to compute_transp.
35074 * postreload-gcse.c: Include gcse-common.h and df.h
35075 (modify_mem_list_set, blocks_with_calls): New variables.
35076 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
35077 (get_bb_avail_insn): Pass in the expression index too.
35078 (alloc_mem): Allocate memory for the new bitmaps and lists.
35079 (free_mem): Free memory for the new bitmaps and lists.
35080 (insert_expr_in_table): Record a bitmap index for each entry we
35082 (record_last_mem_set_info): Call into common code in gcse-common.c.
35083 (get_bb_avail_insn): If no available insn was found in the requested
35084 BB. If BB has a single predecessor, see if the expression is
35085 transparent in BB and available in that single predecessor.
35086 (compute_expr_transp): New wrapper for compute_transp.
35087 (eliminate_partially_redundant_load): Pass expression's bitmap_index
35088 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
35089 (gcse_after_reload_main): If there are elements in the hash table,
35090 then compute transparency for all the elements in the hash table.
35091 * gcse-common.h: New file.
35092 * gcse-common.c: New file.
35094 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
35096 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
35098 (System Headers): Likewise.
35100 (Traditional macros): Likewise.
35101 (Invocation): Likewise.
35102 (Option Index): Likewise.
35103 * doc/cppopts.texi (-M): Likewise.
35104 (-finput-charset): Likewise.
35105 (--help): Likewise.
35106 * doc.invoke.texi (AVR Options): Likewise.
35107 (V850 Options): Likewise.
35109 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
35112 * ipa-devirt.c: Include demangle.h
35113 (odr_type_d): Add field rtti_broken.
35114 (odr_subtypes_equivalent_p): Do not require name to match.
35115 (compare_virtual_tables): Fix typo; if type already has ODR violation,
35116 bypass the tests; be ready for function referneces in vtables that are
35117 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35118 (warn_odr): Give up for nameless types.
35119 (warn_types_mismatch): Report mismatch in mangled names;
35120 report mismatch in anonymous namespaces; look into component types to
35121 give useful error; report when mismatch is dragged in from other ODR
35123 (odr_types_equivalent_p): Match types for being polymorphic; avoid
35124 duplicated diagnostics.
35125 (add_type_duplicate): Reorder checks so more informative ones come
35126 first; fix typo; do not output "the extra base is defined here" when
35128 (BINFO_N_BASE_BINFOS): Relax sanity check.
35130 2015-03-22 Martin Liska <mliska@suse.cz>
35131 Jakub Jelinek <jakub@redhat.com>
35133 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35134 masks that can potentially include a builtin.
35135 (ix86_add_new_builtins): Introduce fast filter for isa values
35136 that cannot trigger builtin inclusion.
35138 2015-03-22 Martin Liska <mliska@suse.cz>
35140 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35141 (sem_item::update_hash_by_local_refs): Likewise.
35142 (sem_variable::get_hash): Empty line is fixed.
35143 (sem_item_optimizer::execute): Include adding of hash references.
35144 (sem_item_optimizer::update_hash_by_addr_refs): New function.
35145 (sem_item_optimizer::build_hash_based_classes): Use local hash.
35146 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35147 (sem_item::update_hash_by_local_refs): Likewise.
35149 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35152 * ipa-comdats.c (enqueue_references): Walk through thunks.
35153 (ipa_comdats): Likewise.
35154 (set_comdat_group_1): New function.
35156 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35159 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35162 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
35163 Gerald Pfeifer <gerald@pfeifer.com>
35165 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35167 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35168 Sandra Loosemore <sandra@codesourcery.com>
35170 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35171 function parameter declaration.
35172 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35173 Update arguments to nios2_adjust_call_address().
35174 (sibcall_internal): Rename from *sibcall.
35175 (sibcall_value_internal): Rename from *sibcall_value.
35176 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35177 (nios2_large_got_address): Add target temp reg parameter.
35178 (nios2_got_address): Adjust call to nios2_large_got_address, add
35179 force_reg around it.
35180 (nios2_load_pic_address): Add target temp reg parameter, replace call
35181 to nios2_got_address with corresponding code.
35182 (nios2_legitimize_constant_address): Update call to
35183 nios2_load_pic_address.
35184 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35185 to use temp reg for PIC loading purposes.
35186 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35187 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35188 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35190 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35192 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35193 usage of "the @option{...}".
35194 (-Wopenmp-simd): Likewise.
35195 (-fsanitize-recover): Likewise.
35196 (-fsanitize-undefined-trap-on-error): Likewise.
35198 (tracer-dynamic-coverage-feedback): Likewise.
35199 (reorder-block-duplicate-feedback): Likewise.
35200 (loop-unroll-jam-size): Likewise.
35203 (-mabs=legacy): Likewise.
35204 (-mupper-regs-df): Likewise.
35205 (-mupper-regs-sf): Likewise.
35206 (-mpointers-to-nested-functions): Likewise.
35208 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35210 * doc/extend.texi (Cilk Plus Builtins): Add markup.
35212 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35214 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35215 additional index entries and cross-references.
35216 (-fchkp-check-incomplete-type): Likewise.
35217 (-fchkp-first-field-has-own-bounds): Likewise.
35218 (-fchkp-narrow-to-innermost-array): Likewise.
35219 (-fchkp-use-fast-string-functions): Likewise.
35220 (-fchkp-use-nochk-string-functions): Likewise.
35221 (-fchkp-use-static-const-bounds): Likewise.
35222 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35223 (-fchkp-instrument-marked-only): Likewise.
35224 (-fchkp-use-wrappers): Likewise.
35225 (-static-libmpx): Likewise.
35226 (-static-libmpxwrappers): Likewise.
35227 * doc/extend.texi (bnd_legacy): Likewise.
35228 (bnd_instrument): Likewise.
35229 (bnd_variable_size): Likewise.
35230 (Pointer Bounds Checker builtins): Likewise.
35232 2015-03-21 Tom de Vries <tom@codesourcery.com>
35234 PR tree-optimization/65458
35235 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35236 * cgraph.h (cgraph_node): Add parallelized_function field.
35237 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35238 (input_overwrite_node): Read parallelized_function field.
35239 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35240 parallelized_function on cgraph_node for child_fn.
35241 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35242 Remove include of gt-tree-parloops.h.
35243 (parallelized_functions): Remove static variable.
35244 (parallelized_function_p): Rewrite using parallelized_function field of
35246 (create_loop_fn): Remove adding to parallelized_functions.
35247 * Makefile.in (GTFILES): Remove tree-parloops.c
35249 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
35251 PR rtl-optimization/64366
35252 * lra.c (lra_update_insn_regno_info): Consider regs in
35253 CALL_INSN_FUNCTION_USAGE memory.
35255 2015-03-20 Richard Biener <rguenther@suse.de>
35257 PR middle-end/64715
35258 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35259 for type comparison and gcc_checking_assert.
35260 (chrec_fold_plus_poly_poly): Likewise.
35261 (chrec_fold_multiply_poly_poly): Likewise.
35262 (chrec_convert_1): Likewise.
35263 * gimplify.c (gimplify_expr): Remove premature folding of
35264 &X + CST to &MEM[&X, CST].
35266 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35268 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35270 (ipa_inline): Recompute inline_failed codes.
35271 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35272 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35275 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
35277 PR rtl-optimization/60851
35278 * recog.c (constrain_operands): Accept a pseudo register before reload
35279 for LRA enabled targets.
35281 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
35284 * config/rs6000/predicates.md (easy_fp_constant): Remove special
35285 -ffast-math handling that kept non-0 constants live in the RTL
35286 until reload. Remove logic testing the number of instructions it
35287 took to create a constant in a GPR that was never used, due to a
35288 test for soft-float earlier.
35289 (memory_fp_constant): Delete, no longer used.
35291 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35292 alternatives for loading non-0 constants into GPRs for hard
35293 floating point that is no longer needed due to changes in
35294 easy_fp_constant. Add support for loading 0.0 into GPRs.
35295 (mov<mode>_hardfloat32): Likewise.
35296 (mov<mode>_hardfloat64): Likewise.
35297 (mov<mode>_64bit_dm): Likewise.
35298 (movtd_64bit_nodm): Likewise.
35299 (pre-reload move FP constant define_split): Delete define_split,
35300 since it is no longer used.
35301 (extenddftf2_internal): Remove GHF constraints that are not valid
35304 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
35306 PR rtl-optimization/63491
35307 * lra-constraints.c (check_and_process_move): Use src instead of
35308 sreg. Remove some dead code.
35310 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
35313 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35314 (sem_variable::merge): Likewise.
35316 2015-03-19 Martin Liska <mliska@suse.cz>
35319 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35320 all fields of cgraph_thunk_info.
35322 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
35324 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35325 clone instrumented thunks.
35327 2015-03-19 Richard Biener <rguenther@suse.de>
35330 2015-03-10 Richard Biener <rguenther@suse.de>
35332 PR middle-end/63155
35333 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35334 * tree-ssa-coalesce.c: Include timevar.h.
35335 (attempt_coalesce): Handle graph being NULL.
35336 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35337 Split out abnormal coalescing to ...
35338 (perform_abnormal_coalescing): ... this function.
35339 (coalesce_ssa_name): Perform abnormal coalescing without computing
35341 (verify_ssa_coalescing_worker): New function.
35342 (verify_ssa_coalescing): Likewise.
35344 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
35345 Jakub Jelinek <jakub@redhat.com>
35348 * tsan.c (instrument_gimple): Clear tail call flag on
35351 2015-03-19 Jakub Jelinek <jakub@redhat.com>
35354 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35355 call in the return bb.
35356 (find_split_points): Add RETURN_BB argument, don't call
35358 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
35359 if true append TSAN_FUNC_EXIT internal call after the call to
35360 the split off function.
35361 (execute_split_functions): Call find_return_bb here.
35362 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35363 Adjust find_split_points and split_function calls.
35365 2015-03-18 DJ Delorie <dj@redhat.com>
35367 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35368 (iorqi3_virt): Likewise.
35370 2015-03-18 Tom de Vries <tom@codesourcery.com>
35372 * tree-parloops.c (parallelize_loops): Make static.
35373 * tree-parloops.h (parallelize_loops): Remove extern declaration.
35375 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
35377 PR middle-end/64491
35379 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
35381 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35382 condition would be removed due to undefined behaviour.
35384 2015-03-18 Martin Liska <mliska@suse.cz>
35387 * cgraph.c (cgraph_node::get_create): Remove unnecessary
35388 xstrdup_for_dump wrapper.
35389 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35391 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35392 with xstrdup_for_dump.
35393 (sem_variable::equals): Likewise.
35394 (sem_item_optimizer::read_section): Use symtab_node::name instead of
35396 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35397 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35398 symtab_node::asm_name with xstrdup_for_dump.
35399 (congruence_class::dump): Use symtab_node::name instead of
35401 * ipa-icf.h (symtab_node::name): Remove.
35402 (symtab_node::asm_name): Likewise.
35404 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35406 PR tree-optimization/65450
35407 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35409 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35410 it instead of duplicate_ssa_name_ptr_info.
35413 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35415 2015-03-18 Richard Biener <rguenther@suse.de>
35417 * tree-data-ref.h (struct access_matrix): Remove.
35418 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35419 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35420 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35421 (am_vector_index_for_loop): Likewise.
35422 (struct data_reference): Remove access_matrix member.
35423 (DR_ACCESS_MATRIX): Remove.
35424 (lambda_vector_new): Add comment.
35425 (lambda_matrix_new): Use XOBNEWVEC.
35427 2015-03-18 Richard Biener <rguenther@suse.de>
35429 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35430 (pass_ch::execute): Cleanup the CFG only if we did sth.
35431 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35433 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35435 * expmed.c (synth_mult): Use std::swap instead of manually
35436 swapping algorithms.
35438 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35441 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35443 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
35446 * config/avr/avr.opt (-nodevicelib): New option.
35447 * doc/invoke.texi (AVR Options): Document it.
35448 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35449 libgcc.a, libc.a, libm.a.
35450 * config/avr/specs.h: Same.
35451 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35452 which don't (directly) depend on the device. Print more help.
35453 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35454 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35455 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35457 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35458 for specs file name.
35459 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35460 * config/avr/avr-mcus.def: Adjust initializers and comments.
35462 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
35464 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35465 DECL_ONE_ONLY to check if decl is one only.
35466 * ipa-split.c (consider_split): Limit splitt of one only functions.
35468 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35470 PR tree-optimization/65427
35471 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35473 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35475 2015-03-16 Marek Polacek <polacek@redhat.com>
35477 * cgraph.h (add_new_static_var): Remove declaration.
35478 * varpool.c (add_new_static_var): Remove function.
35480 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35482 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35483 instead of vec<tree> * with vec_alloc and release for args.
35486 PR middle-end/65431
35487 * omp-low.c (delete_omp_context): Only splay_tree_delete
35488 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35489 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
35491 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
35494 * cfgexpand.c (align_base): New function.
35495 (alloc_stack_frame_space): Call it.
35496 (expand_stack_vars): Align prev_frame to be sure
35497 data->asan_vec elements aligned properly.
35499 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
35501 PR middle-end/65409
35502 * expr.c (store_field): Do not do a direct block copy if the source is
35503 a PARALLEL with BLKmode.
35505 2015-03-16 Tom de Vries <tom@codesourcery.com>
35507 PR middle-end/65414
35509 2015-03-12 Tom de Vries <tom@codesourcery.com>
35511 PR rtl-optimization/64895
35512 * lra-lives.c (check_pseudos_live_through_calls): Use
35513 actual_call_used_reg_set instead of call_used_reg_set, if available.
35515 2015-03-16 Alan Modra <amodra@gmail.com>
35518 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35519 Modify Z->r bswapdi splitter to use dest in place of scratch.
35520 In r->Z and Z->r bswapdi splitter rename word_high, word_low
35521 to word1, word2 and rearrange logic to suit.
35522 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35523 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
35524 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35525 Add one '?' on r->r. Modify Z->r splitter to avoid need for
35528 2015-03-14 Jakub Jelinek <jakub@redhat.com>
35530 PR tree-optimization/65369
35531 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
35532 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
35533 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
35535 PR tree-optimization/65418
35536 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
35537 are casts in the first PLUS_EXPR operand, ensure tbias and
35538 *totallowp are in the inner type.
35540 PR rtl-optimization/65401
35541 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
35542 argument. If true, adjust_address_nv of x with big-endian
35543 correction for the mode widening to GET_MODE (y).
35544 (make_field_assignment): Don't do MEM mode widening here.
35545 Use MEM_P instead of GET_CODE == MEM.
35547 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
35549 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
35550 the external decls.
35552 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35555 * config/arm/arm.c (arm_gen_constant, AND case): Use
35556 ARM_SIGN_EXTEND when constructing AND mask.
35558 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35560 * graph.c (print_graph_cfg): Make function names visible and append
35561 parenthesis to it. Also make groups of basic blocks belonging to the
35562 same function visible.
35564 2015-03-12 Richard Biener <rguenther@suse.de>
35566 PR middle-end/44563
35567 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
35568 to avoid quadratic behavior with inline expansion splitting blocks.
35569 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
35570 with the successor if the predecessor will be merged with it.
35571 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
35572 entry block with its successor.
35574 2015-03-13 Richard Biener <rguenther@suse.de>
35576 PR middle-end/44563
35577 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
35578 (cleanup_tree_cfg_1): Do not call it.
35579 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
35580 (fixup_noreturn_call): Mark the stmt as control altering.
35581 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
35583 (pass_data_fixup_cfg): Produce a dump file.
35584 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
35585 (need_noreturn_fixup): New global.
35586 (pass_dominator::execute): Fixup queued noreturn calls.
35587 (optimize_stmt): Queue calls that became noreturn for fixup.
35588 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
35589 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
35590 (el_to_fixup): New global.
35591 (eliminate_dom_walker::before_dom_childre): Queue calls that
35592 became noreturn for fixup.
35593 (eliminate): Fixup queued noreturn calls.
35594 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
35595 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
35596 (substitute_and_fold_dom_walker::before_dom_children): Queue
35597 alls that became noreturn for fixup.
35598 (substitute_and_fold): Fixup queued noreturn calls.
35600 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
35602 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
35603 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
35604 are building; for methods check ODR type of class they belong to if
35605 they may lead to a polymorphic call.
35606 (sem_function::compare_polymorphic_p): Be bit smarter about testing
35607 when function may lead to a polymorphic call.
35608 (sem_function::compare_type_list): Remove.
35609 (sem_variable::equals): Update use of compatible_types_p.
35610 (sem_variable::parse_tree_refs): Remove.
35611 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
35613 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
35615 (func_checker::compatible_polymorphic_types_p): Break out from ...
35616 (unc_checker::compatible_types_p): ... here.
35617 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
35619 (unc_checker::compatible_types_p): Update.
35620 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
35623 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35625 PR rtl-optimization/65235
35626 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
35627 When first element of vec_concat is const_int, calculate its size
35628 using second element.
35630 2015-03-12 Richard Biener <rguenther@suse.de>
35632 PR middle-end/65270
35633 * fold-const.c (operand_equal_p): Fix ordering of resetting
35634 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
35636 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
35638 * config/s390/s390.c (s390_reorg): Move code to output nops after label
35640 (s390_asm_output_function_label): Likewise.
35641 * config/s390/s390.c (s390_asm_output_function_label):
35642 Fix function label alignment with -mhtopatch.
35643 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
35644 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
35645 ("nop_2_byte"): New define_insn.
35646 ("nop_4_byte"): Likewise.
35647 ("nop_6_byte"): Likewise.
35648 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
35649 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
35651 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35654 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
35657 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35660 * toplev.c (process_options): Restrict Pointer Bounds Checker
35661 usage with Address Sanitizer.
35663 2015-03-12 Richard Biener <rguenther@suse.de>
35665 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
35667 * omp-low.c (expand_omp_taskreg): Split block before removing
35669 (expand_omp_target): Likewise.
35670 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
35671 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
35672 stmt to split_block.
35674 2015-03-12 Tom de Vries <tom@codesourcery.com>
35676 PR rtl-optimization/64895
35677 * lra-lives.c (check_pseudos_live_through_calls): Use
35678 actual_call_used_reg_set instead of call_used_reg_set, if available.
35680 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35682 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
35683 (cgraph_node::remove): Likewise.
35684 (cgraph_node::get_untransformed_body): Likewise.
35685 * varpool.c (varpool_node::remove): Likewise.
35686 (varpool_node::get_constructor): Add sanity check.
35688 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
35690 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
35692 (-fabi-compat-version): Likewise.
35693 (-ffriend-injection): Likewise.
35694 (-Wdeclaration-after-statement): Likewise.
35695 (-fomit-frame-pointer): Likewise.
35696 (-ftree-coalesce-inlined-vars): Likewise.
35697 (-fvisibility=): Likewise.
35698 * doc/extend.texi (Typeof): Likewise.
35699 (Zero Length): Likewise.
35700 (Escaped Newlines): Likewise.
35701 (Compound Literals): Likewise.
35702 (Function Attributes): Likewise.
35703 (Label Attributes): Likewise.
35704 (Type Attributes): Likewise.
35705 (Function Names): Likewise.
35706 (Other Builtins): Likewise.
35707 (Function Specific Option Pragmas): Likewise.
35708 (C++ Interface): Likewise.
35710 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
35712 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
35714 2015-03-11 Marek Polacek <polacek@redhat.com>
35716 PR tree-optimization/65388
35717 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
35719 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35722 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
35723 * configure: Regenerate.
35724 * config.in: Regenerate.
35725 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
35726 [-mn-flash]: Document it.
35727 [__AVR_ARCH__]: Document avrtiny.
35729 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
35730 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
35731 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
35733 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35735 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
35737 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
35740 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
35741 allow reloads of PLUS in floating point/VSX registers.
35743 2015-03-11 Junmo Park <junmoz.park@samsung.com>
35745 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
35746 crypto_sha256_fast.
35747 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
35749 2015-03-11 Richard Biener <rguenther@suse.de>
35751 PR tree-optimization/65310
35752 * tree-sra.c (build_ref_for_offset): Also preserve larger
35755 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
35757 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
35759 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35762 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
35764 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
35766 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35768 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
35769 (sem_function::equals_wpa): ... here.
35771 2015-03-10 Marek Polacek <polacek@redhat.com>
35772 Jakub Jelinek <jakub@redhat.com>
35775 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
35776 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
35779 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35782 * config/rs6000/t-linux: For powerpc64* target set
35783 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
35785 2015-03-10 Richard Biener <rguenther@suse.de>
35787 PR middle-end/44563
35788 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
35789 for redirect_all_calls.
35791 2015-03-10 Marek Polacek <polacek@redhat.com>
35793 * gdbinit.in (pcfun): Define and document.
35795 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
35797 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
35798 of libgomp-plugin.h.
35799 (find_target_compiler): Support a case when the path to gcc is
35800 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
35801 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
35802 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
35804 (main): Use GCC_INSTALL_NAME as target_driver_name.
35805 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
35807 (mkoffload.o): Remove obsolete include path and defines.
35808 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
35810 2015-03-10 Richard Biener <rguenther@suse.de>
35812 PR middle-end/63155
35813 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35814 * tree-ssa-coalesce.c: Include timevar.h.
35815 (attempt_coalesce): Handle graph being NULL.
35816 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35817 Split out abnormal coalescing to ...
35818 (perform_abnormal_coalescing): ... this function.
35819 (coalesce_ssa_name): Perform abnormal coalescing without computing
35821 (verify_ssa_coalescing_worker): New function.
35822 (verify_ssa_coalescing): Likewise.
35824 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35827 * config.gcc (extra_options) [avr]: Remove.
35828 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
35829 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
35830 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
35832 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
35833 (-mmcu=): Add Var and MissingArgError properties.
35835 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
35836 * config/avr/t-multilib: Regenerate.
35837 * config/avr/specs.h: New file.
35838 * config/avr/driver-avr.c: New file.
35839 * config/avr/genopt.sh: Remove file.
35840 * config/avr/avr-tables.opt: Remove file.
35841 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
35842 * config/avr/avr-c.c: Same.
35843 * avr-arch.h: Same.
35844 (avr_current_device): Remove proto.
35845 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
35846 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
35847 (EXTRA_SPEC_FUNCTIONS): Define.
35848 (avr_devicespecs_file): New specs function proto.
35849 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
35850 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
35851 (avr_current_device): Remove definition and usage.
35852 (avr_set_core_architecture): New static function.
35853 (avr_option_override): Use it.
35854 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
35855 (mcu_name): New static array.
35856 (comparator, avr_archs_str, avr_mcus_str): New static functions.
35857 (avr_inform_devices, avr_inform_core_architectures): New functions.
35858 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
35859 (avrlibc.h) [WITH_AVRLIBC]: Include.
35860 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
35861 (print_mcu): Rewrite from scratch.
35862 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
35863 Forward to avr-specific specs defined in device-specs file.
35864 * config/avr/t-avr (driver-avr.o): New rule.
35865 (avr-devices.o): Depend on avr-arch.h.
35866 (avr-mcus): No more depend on avr-tables.opt.
35867 (avr-tables.opt): Remove rule.
35868 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
35870 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35872 * c-family/c.opt (fchkp-use-wrappers): New.
35873 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
35874 (chkp_wrap_function): New.
35875 (chkp_build_instrumented_fndecl): Support wrapped
35877 * doc/invoke.texi (-fcheck-pointer-bounds): New.
35878 (-fchkp-check-incomplete-type): New.
35879 (-fchkp-first-field-has-own-bounds): New.
35880 (-fchkp-narrow-bounds): New.
35881 (-fchkp-narrow-to-innermost-array): New.
35882 (-fchkp-optimize): New.
35883 (-fchkp-use-fast-string-functions): New.
35884 (-fchkp-use-nochk-string-functions): New.
35885 (-fchkp-use-static-bounds): New.
35886 (-fchkp-use-static-const-bounds): New.
35887 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
35888 (-fchkp-check-read): New.
35889 (-fchkp-check-write): New.
35890 (-fchkp-store-bounds): New.
35891 (-fchkp-instrument-calls): New.
35892 (-fchkp-instrument-marked-only): New.
35893 (-fchkp-use-wrappers): New.
35894 (-static-libmpx): New.
35895 (-static-libmpxwrappers): New.
35897 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35899 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
35900 (CHKP_SPEC): Add wrappers library.
35901 * c-family/c.opt (static-libmpxwrappers): New.
35903 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35905 * config/i386/linux-common.h (LIBMPX_LIBS): New.
35906 (LIBMPX_SPEC): New.
35908 * gcc.c (CHKP_SPEC): New.
35909 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
35910 * c-family/c.opt (static-libmpx): New.
35912 2015-03-10 Richard Biener <rguenther@suse.de>
35914 PR middle-end/44563
35915 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
35917 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
35918 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
35919 (cgraph_add_edge_to_call_site_hash): Likewise.
35920 (cgraph_node::get_edge): Likewise.
35921 (cgraph_edge::set_call_stmt): Likewise.
35922 (cgraph_edge::remove_caller): Likewise.
35924 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
35926 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
35927 (callee_saved_gpr_regs_size): ... this.
35928 (callee_saved_regs_first_regno): Rename to ...
35929 (callee_saved_first_gpr_regno): ... this.
35930 (callee_saved_regs_last_regno) Rename to ...
35931 (callee_saved_last_gpr_regno): ... this.
35932 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
35934 (nds32_initial_elimination_offset): Likewise.
35935 (nds32_expand_prologue): Likewise.
35936 (nds32_expand_epilogue): Likewise.
35937 (nds32_expand_prologue_v3push): Likewise.
35938 (nds32_expand_epilogue_v3pop): Likewise.
35939 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
35940 Adjust renamed variables.
35941 (nds32_output_stack_pop): Likewise.
35943 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
35945 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
35948 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35950 PR rtl-optimization/65321
35951 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
35953 * var-tracking.c (use_narrower_mode): Likewise.
35955 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35957 PR tree-optimization/65355
35958 * varasm.c (notice_global_symbol): Do not produce RTL.
35959 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
35961 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
35962 check for section anchors.
35964 2015-03-10 Alan Modra <amodra@gmail.com>
35967 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
35968 to be single-arch by default. Set cpu_is_64bit for powerpc64
35969 given --with-cpu=native.
35970 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
35971 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
35973 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
35974 rs6000_isa_flags rather than TARGET_64BIT.
35976 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
35977 Kaz Kojima <kkojima@gcc.gnu.org>
35979 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
35981 2015-03-09 Jakub Jelinek <jakub@redhat.com>
35984 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
35985 on a TREE_BINFO, instead use BINFO_TYPE.
35987 2015-03-09 Richard Biener <rguenther@suse.de>
35989 PR middle-end/65270
35990 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
35991 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
35992 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
35993 of that. When comparing dereferences compare alignment.
35994 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
35996 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35998 * ipa-inline-analysis.c (check_callers): Check
35999 node->can_remove_if_no_direct_calls_and_refs_p.
36000 (growth_likely_positive): Reorganize to call
36001 can_remove_if_no_direct_calls_p later.
36002 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
36003 will_be_removed_from_program_if_no_direct_calls_p): Add
36004 will_inline parameter.
36005 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
36006 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36007 Handle inliner case correctly.
36009 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
36011 PR tree-optimization/63743
36012 * cfgexpand.c (reorder_operands): Also reorder if only second operand
36013 had its definition forwarded by TER.
36015 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36018 * ipa-utils.h (types_odr_comparable): Add strict argument.
36019 * ipa-devirt.c: Fix whitespace;
36020 (odr_hasher): Remove.
36021 (odr_name_hasher, odr_vtable_hasher): New hashers.
36022 (can_be_name_hashed_p): New predicate.
36023 (hash_type_name): remove.
36024 (hash_odr_name): New.
36025 (odr_name_hasher::hash): new.
36026 (can_be_vtable_hashed_p): New.
36027 (hash_odr_vtable): New.
36028 (odr_vtable_hasher::hash): New.
36029 (types_same_for_odr): Add strict parameter.
36030 (types_odr_comparable): Likewise.
36031 (odr_name_hasher::equal): New.
36032 (odr_vtable_hasher::equal): New.
36033 (odr_name_hasher::remove): New.
36034 (odr_hash_type): Change to hash_table<odr_name_hasher>.
36035 (odr_vtable_hash_type): New.
36036 (odr_vtable_hash): New.
36037 (odr_subtypes_equivalent_p): Do strict comparsion.
36038 (add_type_duplicate): Merge type names; cleanup; avoid type
36040 (register_odr_type): Initialize vtable hash.
36041 (build_type_inheritance_graph): Likewise
36042 (get_odr_type): Reorg to use two hashes.
36043 (dump_possible_polymorphic_call_targets): Move sanity check after debug
36045 (ipa_devirt): Dump type_inheritance_graph.
36046 (types_same_for_odr): Add strict mode.
36048 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36051 * cgraph.h (symtab_node): Add definition_alignment,
36052 can_increase_alignment_p and increase_alignment.
36053 * symtab.c (symtab_node::can_increase_alignment_p,
36054 increase_alignment_1, symtab_node::increase_alignment,
36055 symtab_node::definition_alignment): New.
36056 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
36057 can_increase_alignment_p.
36058 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
36059 * tree-vect-stmts.c (ensure_base_align): Likewise.
36060 * varasm.c (function_section_1): Use definition_alignment.
36061 (assemble_start_function): Likewise.
36062 (emit_local): likewise.
36063 (build_constant_desc): Likewsie.
36064 (output_constant_def_contents): Likewise.
36065 (place_block_symbol): Likewise.
36066 (output_object_block): Likewise.
36068 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36071 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
36072 when outputting debug.
36074 2015-03-07 Marek Polacek <polacek@redhat.com>
36075 Martin Uecker <uecker@eecs.berkeley.edu>
36078 * doc/invoke.texi: Update description of -fsanitize=bounds.
36080 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
36082 * tree-ssa-phiopt.c (neg_replacement): Remove.
36083 (tree_ssa_phiopt_worker): Remove negate optimization.
36085 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36088 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
36090 2015-03-06 Richard Biener <rguenther@suse.de>
36092 PR middle-end/64928
36093 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
36094 and liveout_obstack members.
36095 (calculate_live_on_exit): Remove.
36096 (calculate_live_ranges): Change declaration.
36097 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
36098 (new_tree_live_info): Adjust.
36099 (calculate_live_ranges): Delete livein when not wanted.
36100 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
36101 Deal with partly deleted live info.
36102 (loe_visit_block): Remove temporary bitmap by using
36103 bitmap_ior_and_compl_into.
36104 (live_worklist): Adjust accordingly.
36105 (calculate_live_on_exit): Make static.
36106 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36107 we do not need livein.
36109 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
36111 * real.c (real_from_string): Fix typo in assertion.
36113 2015-03-06 Alex Velenko <alex.velenko@arm.com>
36115 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36118 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36120 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36122 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
36125 * lra-assigns.c (find_hard_regno_for): Rename to
36126 find_hard_regno_for_1. Add a new parameter.
36127 (find_hard_regno_for): New function using find_hard_regno_for_1.
36129 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36131 PR rtl-optimization/65067
36132 * expmed.c (store_bit_field, extract_bit_field): Reworked the
36133 strict volatile bitfield handling.
36135 2015-03-05 Martin Liska <mliska@suse.cz>
36138 * ipa-icf.c (sem_variable::equals): Compare variables types.
36140 2015-03-05 Richard Henderson <rth@redhat.com>
36143 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36144 correctly check weak symbol binding.
36146 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
36148 PR middle-end/65315
36149 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36152 2015-03-05 Martin Liska <mliska@suse.cz>
36154 * ipa-inline.c (inline_small_functions): Set default value to
36155 prevent warning during bootstrap.
36156 * tree.h: Add pragma guard that ignores false positives during
36159 2015-03-05 Richard Biener <rguenther@suse.de>
36161 PR tree-optimization/65310
36162 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36163 Properly preserve alignment of the base of the access.
36165 2015-03-05 Richard Biener <rguenther@suse.de>
36168 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36169 Compare dependence info.
36171 2015-03-05 Richard Biener <rguenther@suse.de>
36173 PR middle-end/65233
36174 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36176 (walk_ssa_copies): Revert last chage. Instead do not walk
36177 SSA names registered for SSA update.
36179 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36182 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36183 vtable references for their containing type.
36184 (sem_function::equals_wpa): Compare TYPE_RESTRICT
36185 and type attributes.
36187 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
36189 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36190 before negating it.
36191 * stor-layout.c (finalize_record_size): Revert latest change.
36193 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
36195 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36197 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36199 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36200 for correct comdat handling.
36201 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36203 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36204 (used_from_object_file_p_worker): Remove.
36205 (cgraph_node::only_called_directly_or_alised): Add
36206 used_from_object_file_p.
36207 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36208 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36209 can_remove_if_no_direct_calls_and_refs_p.
36211 2015-03-04 Nick Clifton <nickc@redhat.com>
36213 * config/rl78/rl78.h (enum reg_class): Remove real registers from
36214 General register class.
36215 * config/rl78/rl78-real.md: Replace general register constraints
36216 with real+virtual register constraints.
36218 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36220 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36221 from checking for -mhtm option.
36223 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36225 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36226 (struct ipa_sra_check_caller_data): Add has_thunk field.
36227 (ipa_sra_check_caller): Check for thunk.
36228 (ipa_sra_preliminary_function_checks): Give up on function with
36230 (ipa_early_sra): Use call_for_symbol_and_aliases.
36232 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
36235 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36236 called for __stack_chk_guard symbol.
36238 2015-03-03 DJ Delorie <dj@redhat.com>
36240 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36242 (*addhi3_real): Likewise.
36243 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36244 pattern to match incrementing memory.
36245 * config/rl78/predicates.md (rl78_1_2_operand): New.
36246 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36247 it's the same and only mem.
36248 (rl78_alloc_physical_registers_op2): If there's effectively only
36249 one MEM, transcode it into HL.
36250 (rl78_far_p): Reject addresses that aren't legitimate.
36252 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36254 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36257 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36259 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36261 Implement call0 ABI for xtensa
36262 * config/xtensa/constraints.md ("a" constraint): Include stack
36263 pointer in case of call0 ABI.
36264 ("q" constraint): Make empty in case of call0 ABI.
36265 ("D" constraint): Include stack pointer in case of call0 ABI.
36266 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36267 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36269 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36271 (xtensa_regno_to_class): Make it a local variable in the
36272 function xtensa_regno_to_class.
36273 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36274 macro, function prototype and implementation.
36275 (reg_nonleaf_alloc_order): Make it a local variable in the
36276 function order_regs_for_local_alloc.
36277 (xtensa_conditional_register_usage): New function.
36278 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36279 (xtensa_valid_move): Allow direct moves to stack pointer
36280 register in call0 ABI.
36281 (xtensa_setup_frame_addresses): Only spill register windows in
36283 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36284 call0 ABI respectively.
36285 (xtensa_function_arg_1): Only mark a7 register for copying in
36287 (xtensa_call_save_reg): New function.
36288 (compute_frame_size): Add space for callee saved register
36289 storage to the frame size in call0 ABI.
36290 (xtensa_expand_prologue): Generate code to set up stack frame
36291 and save callee-saved registers in call0 ABI.
36292 (xtensa_expand_epilogue): New function.
36293 (xtensa_set_return_address): New function.
36294 (xtensa_return_addr): Calculate return address in call0 ABI.
36295 (xtensa_builtin_saveregs): Only mark a7 register for copying and
36296 emit copying code in windowed ABI.
36297 (order_regs_for_local_alloc): Add preferred register allocation
36298 order for non-leaf function in call0 ABI.
36299 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36300 (xtensa_asm_trampoline_template): Add trampoline generation for
36302 (xtensa_trampoline_init): Add trampoline initialization for
36304 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36306 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36307 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36308 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36309 ABI call-used registers.
36310 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36311 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36313 (REG_CLASS_CONTENTS): Include all registers into the preferred
36314 reload registers set, adjust the set in the
36315 xtensa_conditional_register_usage.
36316 (xtensa_regno_to_class): Drop variable declaration.
36317 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36319 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36321 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36322 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36323 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36324 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36325 location in call0 ABI.
36326 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36327 stack adjustment size when handling exception.
36328 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36329 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36331 ("return" pattern): Generate ret.n/ret in call0 ABI.
36332 ("epilogue" pattern): Expand epilogue.
36333 ("nonlocal_goto" pattern): Use default in call0 ABI.
36334 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36335 emit eh_set_a0_* depending on ABI.
36336 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36337 ("eh_set_a0_call0", "blockage"): New patterns.
36339 2015-03-03 Martin Liska <mliska@suse.cz>
36342 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36344 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
36347 * config/rs6000/rs6000-tables.opt: Regenerate table.
36349 2015-03-03 Renlin Li <renlin.li@arm.com>
36351 * doc/md.texi (@item ^): Change ? into ^.
36353 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
36355 * doc/tm.texi: Regenerated.
36357 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36359 * builtins.c (expand_builtin_return_addr): Add
36360 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36361 surrounding #ifdef.
36362 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36364 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36366 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36368 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36371 2015-03-03 Martin Jambor <mjambor@suse.cz>
36372 Eric Botcazou <ebotcazou@adacore.com>
36374 * tree-sra.c (ipa_sra_check_caller_data): New type.
36375 (has_caller_p): Removed.
36376 (ipa_sra_check_caller): New function.
36377 (ipa_sra_preliminary_function_checks): Use it.
36379 2015-03-03 Martin Liska <mliska@suse.cz>
36381 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36382 instead of if branch.
36384 2015-03-03 Martin Liska <mliska@suse.cz>
36387 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36389 2015-03-23 Jeff Law <law@redhat.com>
36391 PR tree-optimization/65241
36392 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36393 hash table if INSERT is true.
36395 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36398 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36400 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36403 * config/avr/avr.c (context.h, tree-pass.h): Include them.
36404 (avr_pass_data_recompute_notes): New static variable.
36405 (avr_pass_recompute_notes): New class.
36406 (avr_register_passes): New static function.
36407 (avr_option_override): Call it.
36409 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36411 Fix various problems with specs file generation.
36414 * config.gcc (extra_gcc_objs) [avr]: Remove.
36415 * config/avr/driver-avr.c: Remove file.
36416 * config/avr/t-avr (driver-avr.o): Remove rule.
36417 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36418 INCLUDES to build. Depend on TM_H.
36419 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
36420 build warnings. Fix non-matching types and non-existing %-codes.
36422 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36423 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36424 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36425 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36426 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36427 (LIBGCC_SPEC): Remove definitions.
36429 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36431 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36432 to create a register in testing mode.
36434 2015-03-03 Martin Liska <mliska@suse.cz>
36435 Jan Hubicka <hubicka@ucw.cz>
36438 * cgraph.c (cgraph_node::has_thunk_p): New function.
36439 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36440 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36441 (sem_function::merge): Assert is changed.
36443 2015-03-03 Martin Liska <mliska@suse.cz>
36444 Martin Jambor <mjambor@suse.cz>
36447 * ipa-icf.c (sem_item_optimizer::execute): Change function
36448 return value to boolean.
36449 (sem_item_optimizer::merge_classes): Likewise.
36450 (ipa_icf_driver): Return TODO_remove_functions in case there's
36451 a merge operation processed.
36452 * ipa-icf.h: Change function return value to boolean.
36454 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36457 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36458 processor type for 64-bit little endian PowerPC.
36460 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36461 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
36462 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
36463 printing built-in mask so it does not pass NULL pointers.
36465 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36468 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
36471 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36472 !ISA_HAS_FP_CONDMOVE.
36474 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
36476 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36479 2015-03-02 Ulrich Drepper <drepper@gmail.com>
36481 * doc/invoke.texi (Options for Code Generation Conventions):
36482 Fix URL of DSO paper.
36484 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36487 * ipa-inline.c (check_callers): Looks for recursion.
36488 (inline_to_all_callers): Give up on uninlinable or recursive edges.
36489 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36490 summary of inline clones.
36491 (do_estimate_growth_1): Fix recursion check.
36493 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36496 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36499 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36500 Aldy Hernandez <aldyh@redhat.com>
36503 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36504 when checking TYPE_BINFO.
36506 2015-03-02 Richard Biener <rguenther@suse.de>
36509 * ipa-icf-gimple.c: Include builtins.h.
36510 (func_checker::compare_memory_operand): Compare base alignment.
36512 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36515 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36516 passed by reference.
36518 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36521 * tree-chkp.c (chkp_check_lower): Don't check against
36522 zero bounds for already instrumented functions.
36523 (chkp_check_upper): Likewise.
36524 (chkp_fini): Clean pass local data to avoid wrong reusage.
36526 2015-02-28 Martin Liska <mliska@suse.cz>
36527 Jan Hubicka <hubicka@ucw.cz>
36529 * ipa-icf.c (sem_variable::equals): Improve debug output;
36530 get variable constructor.
36531 (sem_variable::parse): Do not filter out too early; give up on
36532 volatile and register vars.
36533 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
36535 * ipa-icf.h (sem_variable::init): Do not set ctor.
36536 (sem_variable::ctor): Remove.
36538 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
36540 PR middle-end/65233
36541 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
36543 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36545 * ipa-icf.c: Include stor-layout.h
36546 (sem_function::compare_cgraph_references): Rename to ...
36547 (sem_item::compare_cgraph_references): ... this one.
36548 (sem_variable::equals_wpa): New function
36549 (sem_variable::equals): Do not check stuff already verified by
36551 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
36552 * ipa-icf.h (sem_item): Add compare_cgraph_references.
36553 (sem_function): Remove compare_cgraph_references.
36554 (sem_variable): Turns equals_wpa into non-inline.
36556 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36558 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
36559 (sem_item::add_expr): New function.
36560 (sem_function::hash_stmt): Handle operands of most statements.
36561 (sem_variable::get_hash): Hash the actual constructor.
36562 * ipa-icf.h (sem_item): Add add_expr.
36563 (sem_function): Update prototype of hash_stmt
36565 2015-02-28 Martin Liska <mliska@suse.cz>
36566 Jan Hubicka <hubicka@ucw.cz>
36569 * ipa-icf-gimple.c (func_checker::compare_function_decl):
36571 (func_checker::compare_variable_decl): Skip symtab vars.
36572 (func_checker::compare_cst_or_decl): Update.
36573 * ipa-icf.c (sem_function::parse): Do not consider aliases.
36574 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
36575 use correct symtab predicates.
36576 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
36577 (sem_variable::parse): Update comment.
36578 (sem_item_optimizer::build_graph): Consider ultimate aliases
36581 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36583 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
36586 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36588 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
36589 (sem_variable::merge) Likewise.
36591 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36593 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
36594 target; also match flag_ipa_devirt.
36596 2015-03-01 Martin Liska <mliska@suse.cz>
36597 Jan Hubicka <hubicka@ucw.cz>
36599 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
36600 Validate variable alignment.
36601 * ipa-icf.c (sem_function::equals_private): Be more precise
36602 about non-common function attributes.
36603 (sem_variable::equals): Likewise.
36605 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36608 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
36609 across COMDAT group boundary.
36611 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36614 * ipa-icf.c (clear_decl_rtl): New function.
36615 (sem_function::merge): Clear RTL before forming alias.
36616 (sem_variable::merge): Clear RTL before forming alias.
36618 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36621 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
36623 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
36625 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
36628 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36630 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
36631 a typo in the description.
36633 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36636 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36637 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36638 * lra-constraints.c: Include "params.h".
36639 (EBB_PROBABILITY_CUTOFF): Use
36640 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
36641 (lra_inheritance): Use '<' instead of '<=' for
36642 EBB_PROBABILITY_CUTOFF.
36643 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
36646 2015-02-27 Martin Liska <mliska@suse.cz>
36648 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
36649 vector length condition.
36651 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
36653 * doc/extend.texi (x86 transactional memory intrinsics):
36654 Reorganize discussion of _xbegin. Clarify that the return
36655 value is a bit mask. Expand example and move to end of section.
36657 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36658 Aldy Hernandez <aldyh@redhat.com>
36660 PR rtl-optimization/65220
36661 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
36663 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36666 * lra-remat.c (update_scratch_ops): New.
36667 (do_remat): Call it.
36668 * lra.c (lra_register_new_scratch_op): New. Take code from ...
36669 (remove_scratches): ... here.
36670 * lra-int.h (lra_register_new_scratch_op): New prototype.
36672 2015-02-27 Marek Polacek <polacek@redhat.com>
36675 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
36676 -Wformat-signedness anymore.
36678 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36680 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
36682 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
36684 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36686 * config/s390/s390.c (enum s390_builtin):
36687 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
36688 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
36689 (s390_init_builtins): Generate new builtin functions.
36690 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
36691 (s390_sfpc, s390_efpc): New pattern definitions.
36693 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36695 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
36696 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
36697 (s390_builtin_decls): New array.
36698 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
36699 (s390_builtin_decl): New function.
36700 (TARGET_BUILTIN_DECL): Define macro.
36702 2015-02-27 Richard Biener <rguenther@suse.de>
36704 PR middle-end/63175
36705 * builtins.c (get_object_alignment_2): Make sure to re-apply
36706 the ANDed mask after recursing to its operand gets us a new
36707 misalignment bit position.
36709 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
36710 Martin Liska <mliska@suse.cz>
36713 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
36714 Use address_matters_p.
36715 (redirect_all_callers, set_addressable): New functions.
36716 (sem_function::merge): Reorganize and fix merging issues.
36717 (sem_variable::merge): Likewise.
36718 (sem_variable::compare_sections): Remove.
36719 * common.opt (fmerge-all-constants, fmerge-constants): Remove
36721 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
36723 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
36725 (address_matters_1): New function.
36726 (symtab_node::address_matters_p): New function.
36727 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
36728 check for merged flag.
36729 * cgraph.h (address_matters_p): Declare.
36730 (symtab_node::address_taken_from_non_vtable_p): Remove.
36731 (symtab_node::address_can_be_compared_p): New method.
36732 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
36733 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
36735 (comdat_can_be_unshared_p_1) Use address_matters_p.
36736 (update_vtable_references): Fix formating.
36737 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
36738 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
36739 * cgraphclones.c: Preserve merged and icf_merged flags.
36741 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
36743 * doc/extend.texi (Function Attributes): Fix spelling and typos.
36744 (Label Attributes): Likewise.
36745 (Cilk Plus Builtins): Likewise.
36746 (ARC SIMD Built-in Functions): Likewise.
36747 (ARM C Language Extensions (ACLE)): Likewise.
36748 (PowerPC Built-in Functions): Likewise.
36749 (PowerPC Hardware Transactional Memory Built-in Functions):
36752 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36754 PR tree-optimization/65216
36755 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
36756 new stmt and new SSA_NAME for lhs whenever the arguments have
36757 changed and weren't just swapped. Fix comment typo.
36759 PR tree-optimization/65215
36760 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
36761 for PDP endian targets.
36762 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
36763 Fix up formatting issues.
36764 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
36765 size is smaller than the original, adjust MEM_REF offset by the
36766 difference of sizes. Use is_gimple_mem_ref_addr instead of
36767 is_gimple_min_invariant test to avoid adding address temporaries.
36769 2015-02-26 Martin Liska <mliska@suse.cz>
36770 Jan Hubicka <hubicka@ucw.cz>
36773 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
36774 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
36775 (sem_item_optimizer::process_cong_reduction): Include division by
36776 sensitive references.
36777 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
36778 * ipa-ref.c (ipa_ref::address_matters_p): New function.
36779 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
36781 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
36784 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
36786 * config/avr/avr.c: Same.
36787 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
36788 Refuse any constant address not in 0..0xbf.
36789 * config/avr/avr.md (*mov<mode>, *movsf): Remove
36790 tiny_valid_direct_memory_access_range from insn conditions.
36791 (mov<mode>): Don't special-case expansion of avrtiny addresses.
36793 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
36796 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
36797 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
36798 * config/sh/predicates.md (const_logical_operand): New predicate.
36799 * config/sh/sh.md: Add new peephole2 patterns.
36801 2015-02-26 Marek Polacek <polacek@redhat.com>
36804 * ipa-inline.c (early_inliner): Recompute inline parameters.
36806 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36809 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
36810 instructions with TImode operands are included in the analysis.
36812 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36814 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
36815 of an EDGE_FSM_THREAD.
36817 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
36819 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
36821 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
36824 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
36826 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36828 PR tree-optimization/65048
36829 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
36830 (thread_through_all_blocks): Call valid_jump_thread_path.
36831 Remove invalid FSM jump-thread paths.
36833 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36835 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
36836 (ipa_write_optimization_summaries): Likewise.
36837 * tree-streamer.h: Include data-streamer.h.
36838 (streamer_mode_table): Declare extern variable.
36839 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
36840 * lto-streamer-out.c (lto_output_init_mode_table,
36841 lto_write_mode_table): New functions.
36842 (produce_asm_for_decls): Call lto_write_mode_table when streaming
36844 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
36845 (lto_create_simple_input_block): Add mode_table argument to the
36846 lto_input_block constructors.
36847 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
36849 * data-streamer-in.c (string_for_index): Likewise.
36850 * ipa-inline-analysis.c (inline_read_section): Likewise.
36851 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
36852 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
36853 * lto-streamer-in.c (lto_read_body_or_constructor,
36854 lto_input_toplevel_asms): Likewise.
36855 (lto_input_mode_table): New function.
36856 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
36857 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
36858 Use bp_pack_machine_mode.
36859 * real.h (struct real_format): Add name field.
36860 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36861 (class lto_input_block): Add mode_table member.
36862 (lto_input_block::lto_input_block): Add mode_table_ argument,
36863 initialize mode_table.
36864 (struct lto_file_decl_data): Add mode_table field.
36865 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
36866 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
36867 unpack_ts_decl_common_value_fields,
36868 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
36869 * tree-streamer.c (streamer_mode_table): New variable.
36870 * real.c (ieee_single_format, mips_single_format,
36871 motorola_single_format, spu_single_format, ieee_double_format,
36872 mips_double_format, motorola_double_format,
36873 ieee_extended_motorola_format, ieee_extended_intel_96_format,
36874 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
36875 ibm_extended_format, mips_extended_format, ieee_quad_format,
36876 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
36877 decimal_single_format, decimal_double_format, decimal_quad_format,
36878 ieee_half_format, arm_half_format, real_internal_format): Add name
36880 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
36882 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
36885 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
36886 reordering for selective scheduling.
36888 2015-02-26 Terry Guo <terry.guo@arm.com>
36890 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
36891 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
36892 (arm_arch_no_volatile_ce): Declare new global variable.
36893 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
36894 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
36895 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
36896 (TARGET_NO_VOLATILE_CE): New macro.
36897 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
36898 volatile memory access in IT block
36900 2015-02-25 Kai Tietz <ktietz@redhat.com>
36902 PR tree-optimization/61917
36903 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
36904 that reduc_def_stmt is null.
36906 2015-02-25 Martin Liska <mliska@suse.cz>
36908 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
36909 hard register variables.
36911 2015-02-25 Kai Tietz <ktietz@redhat.com>
36914 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
36915 (symtab::noninterposable_alias): Likewise.
36917 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
36920 * config/i386/i386.c (ix86_function_arg_regno_p): Support
36922 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
36924 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
36927 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
36928 as split condition; force split via '#' in output pattern.
36930 2015-02-25 Richard Biener <rguenther@suse.de>
36931 Kai Tietz <ktietz@redhat.com>
36933 PR tree-optimization/61917
36934 * tree-vect-loop.c (vectorizable_reduction): Allow
36935 vect_internal_def without reduction to exit graceful.
36937 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36940 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36941 only with NONDEBUG_INSN_P.
36943 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36945 Use variadic macros with avr-log.c.
36947 * config/avr/avr-protos.h (avr_vdump): New prototype.
36948 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
36949 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
36950 * config/avr/avr-log.c: Adjust comments.
36951 (avr_vdump): New function.
36952 (avr_vadump): Pass caller as 2nd argument instead of format string.
36953 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
36954 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
36956 2015-02-25 Jakub Jelinek <jakub@redhat.com>
36959 * target.def (target_option_stream_in): New target hook.
36960 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
36961 targetm.target_option.post_stream_in if non-NULL.
36962 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
36963 * doc/tm.texi: Updated.
36964 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
36966 (TARGET_OPTION_POST_STREAM_IN): Redefine.
36968 2015-02-24 Jeff Law <law@redhat.com>
36971 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
36972 of operand 0 and operand 2.
36973 (zero_cost_loop_end, loop_end): Similarly.
36975 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
36977 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
36980 2015-02-24 DJ Delorie <dj@redhat.com>
36982 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
36983 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
36984 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
36985 instead of hardcoding SImode.
36987 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
36989 * omp-low.c (create_omp_child_function): Tag entrypoint
36990 functions with a special attribute.
36992 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36995 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
36997 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
36999 PR rtl-optimization/65123
37000 * lra-remat.c (operand_to_remat): Check hard regs in insn
37003 2015-02-24 Nick Clifton <nickc@redhat.com>
37005 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
37008 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
37011 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
37012 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
37013 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
37014 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
37015 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
37016 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
37017 (BUILT_IN_GOACC_PARALLEL): Specify as
37018 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
37019 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
37020 * builtin-types.def
37021 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37022 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37023 Remove function types.
37024 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
37025 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37026 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37027 New function types.
37029 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
37031 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
37033 2015-02-24 Jakub Jelinek <jakub@redhat.com>
37035 PR tree-optimization/65170
37036 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
37037 if val[1] < 0, clear also val[2] and return 3.
37039 2015-02-24 Alan Modra <amodra@gmail.com>
37042 * config/rs6000/rs6000.c (get_memref_parts): Only return true
37043 when *base is a reg. Handle nested plus addresses. Simplify
37046 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
37048 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
37049 use natural alignment when optimizing for size.
37051 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
37054 * config/sh/sh.md (movsicc_true+3): Remove peephole.
37055 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
37056 * config/sh/sh.c (replace_n_hard_rtx): Remove.
37058 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
37061 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
37062 too big for a wide_int. Implement missing wrapping operation.
37064 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
37067 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
37068 instead of const_int 4294901760.
37070 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
37072 * config/avr/t-avr: Fix typo in comment.
37074 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
37076 * doc/rtl.texi (fma): Clarify documentation.
37078 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
37081 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
37082 over input_location.
37084 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37086 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
37087 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
37088 restrict alignments to absolute_biggest_alignment.
37089 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
37091 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
37092 * doc/tm.texi: Regenerate.
37093 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
37095 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
37098 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
37100 2015-02-20 Richard Biener <rguenther@suse.de>
37102 PR tree-optimization/65136
37103 * tree-ssa-propagate.c: Include cfgloop.h.
37104 (replace_phi_args_in): Avoid replacing loop latch edge PHI
37105 arguments with constants.
37107 2015-02-20 Jakub Jelinek <jakub@redhat.com>
37108 Martin Liska <mliska@suse.cz>
37111 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37112 don't try to create_thunk if stdarg_p. If
37113 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37114 redirect_callers if possible.
37115 (sem_item_optimizer::execute): Call unregister_hooks here...
37116 (ipa_icf_driver): ... instead of here.
37118 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37120 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37121 Mark operand 0 as earlyclobber in 2nd alternative.
37122 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37123 Write negated shift amount into QI lowpart operand 0 and use it
37125 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37127 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37129 * cgraph.h (clone_function_name_1): Declare.
37130 * cgraphclones.c (clone_function_name_1): New function.
37131 (clone_function_name): Use it.
37132 * lto-partition.c: Include "stringpool.h".
37133 (must_not_rename, maybe_rewrite_identifier)
37134 (validize_symbol_for_target): New static functions.
37135 (privatize_symbol_name): Use must_not_rename.
37136 (promote_symbol): Call validize_symbol_for_target.
37137 (lto_promote_cross_file_statics): Likewise.
37138 (lto_promote_statics_nonwpa): Likewise.
37140 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
37143 * config/avr/avr.md (pushhi_insn): New insn.
37144 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37146 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37147 Jakub Jelinek <jakub@redhat.com>
37149 * tree-streamer.c (preload_common_nodes): Don't preload
37150 TI_VA_LIST* for offloading.
37151 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37154 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
37156 * config/pa/pa.c (pa_emit_move_sequence): Always force
37157 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
37160 * config/pa/pa.c (pa_reloc_rw_mask): New function.
37161 (TARGET_ASM_RELOC_RW_MASK): Define.
37162 (pa_cannot_force_const_mem): Revert previous change.
37164 2015-02-19 Martin Jambor <mjmabor@suse.cz>
37165 Jan Hubicka <hubicka@ucw.cz>
37168 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37169 across jump functions.
37171 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
37173 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37175 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
37177 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37179 2015-02-19 Richard Henderson <rth@redhat.com>
37181 PR middle-end/65074
37182 * varasm.c (default_binds_local_p_2): Don't test node->definition;
37183 test DECL_EXTERNAL independent of symtab_node.
37185 2015-02-19 Jakub Jelinek <jakub@redhat.com>
37188 * varpool.c (varpool_node::get_constructor): Return early
37189 if this->lto_file_data is NULL.
37191 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37193 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37194 (rank_for_schedule_debug): Update.
37195 (ready_sort): Make static. Move sorting logic to ...
37196 (ready_sort_debug, ready_sort_real): New static functions.
37197 (schedule_block): Sort both debug insns and real insns in preparation
37198 for ready list trimming. Improve debug output.
37199 * sched-int.h (ready_sort): Remove global declaration.
37201 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
37203 * ipa-icf.c (sem_function::equals_private): Adjust.
37204 (sem_function::bb_dict_test): Take a vec<int> * instead of
37206 * ipa-icf.h (bb_dict_test): Likewise.
37208 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37210 PR gcov-profile/64634
37211 * tree-eh.c (frob_into_branch_around): Fix up typos
37212 in function comment.
37213 (lower_catch): Put eh_seq resulting from EH lowering of
37214 the cleanup sequence after the cleanup rather than before it.
37216 2015-02-18 Tom de Vries <tom@codesourcery.com>
37218 * common.opt (fstdarg-opt): New option.
37219 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37220 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37221 (@item -fstdarg-opt): New item.
37223 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
37226 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37227 for common symbols.
37229 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37231 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37233 (ALL_HOST_OBJS): Add mkoffload.o.
37234 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37236 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
37238 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37239 (compare_virtual_tables): Be smarter about skipping typeinfos;
37240 do sane output on virtual table table mismatch.
37241 (warn_odr): Be ready for forward declarations of enums;
37242 output sane info on base mismatch and virtual table mismatch.
37243 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37244 when only one type is polymorphic.
37245 (get_odr_type): Fix hashtable corruption.
37246 (dump_odr_type): Dump mangled names.
37248 2015-02-18 Richard Biener <rguenther@suse.de>
37250 PR tree-optimization/65063
37251 * tree-predcom.c (determine_unroll_factor): Return 1 if we
37252 have replaced looparound PHIs.
37254 2015-02-18 Martin Liska <mliska@suse.cz>
37256 * lto-streamer.c (lto_streamer_init): Encapsulate
37257 streamer_check_handled_ts_structures with checking macro.
37259 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37262 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37263 section if !implicit_section.
37264 (cgraph_node::create_version_clone_with_body): Likewise.
37265 * trans-mem.c (ipa_tm_create_version): Likewise.
37267 2015-02-18 Richard Biener <rguenther@suse.de>
37269 PR tree-optimization/62217
37270 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37273 2015-02-18 Marek Polacek <polacek@redhat.com>
37276 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37277 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37278 is in range [-16K, -1]. Don't issue run-time error if
37279 (ptr > ptr + offset).
37281 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
37283 * doc/install.texi (nvptx-*-none): New section.
37284 * doc/invoke.texi (Nvidia PTX Options): Likewise.
37285 * config/nvptx/nvptx.opt: Update.
37287 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37288 (access_check): New functions, copied from
37289 config/i386/intelmic-mkoffload.c.
37290 (main): For non-installed testing, look in all COMPILER_PATHs for
37293 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37295 2015-02-18 Andrew Pinski <apinski@cavium.com>
37296 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37298 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37299 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37301 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37303 * ipa-visibility.c (function_and_variable_visibility): Only
37304 check locality if node is not already local.
37305 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37306 call_for_symbol_and_aliases instead of
37307 call_for_symbol_thunks_and_aliases.
37308 (ipa_inline): Likewise.
37309 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37310 first walk aliases.
37311 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37312 call_for_symbol_and_aliases.
37313 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37314 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37315 (ipa_propagate_frequency): Update.
37316 (ipa_profile): Add opt_for_fn gueards.
37318 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37320 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37321 * doc/invoke.texi (SH options): Document it.
37322 * config/sh/sh.c (sh_insn_length_adjustment): Check
37323 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37325 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
37327 * common.opt (fipa-cp-alignment): New.
37328 * ipa-cp.c (ipcp_store_alignment_results): Check
37329 flag_ipa_cp_alignment.
37330 * opts.c (default_options_table): Enable -fipa-cp-alignment for
37332 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37333 * doc/invoke.texi: Document -fipa-cp-alignment.
37335 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37338 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37339 to nil. Adjust comments.
37341 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37343 * ipa-visibility.c (function_and_variable_visibility): Only
37344 check locality if node is not already local.
37345 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37346 call_for_symbol_and_aliases instead of
37347 call_for_symbol_thunks_and_aliases.
37348 (ipa_inline): Likewise.
37349 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37350 first walk aliases.
37351 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37352 call_for_symbol_and_aliases.
37353 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37354 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37355 (ipa_propagate_frequency): Update.
37356 (ipa_profile): Add opt_for_fn guards.
37358 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
37360 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37361 skipping of "strange" tokens.
37363 2015-02-17 Jeff Law <law@redhat.com>
37365 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
37368 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
37370 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37371 as forcing a HARD_DEP between instructions, thereby
37372 disallowing rewriting to break dependencies.
37374 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37376 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37377 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37378 variables in boundary that have no inlitalizer encoded and are
37380 * varasm.c (default_binds_local_p_2): External definitions do not
37381 count as definitions here.
37383 2015-02-16 Jeff Law <law@redhat.com>
37385 PR tree-optimization/64823
37386 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37388 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37389 threading through blocks with PHIs, but no statements.
37390 (thread_through_normal_block): Distinguish between blocks where
37391 we did not process all the statements and blocks with no statements.
37393 2015-02-16 Jakub Jelinek <jakub@redhat.com>
37394 James Greenhalgh <james.greenhalgh@arm.com>
37397 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37398 section if not linkonce. Fix up formatting.
37399 (cgraph_node::create_version_clone_with_body): Copy section.
37400 * trans-mem.c (ipa_tm_create_version): Likewise.
37402 2015-02-16 Richard Biener <rguenther@suse.de>
37404 PR tree-optimization/65077
37405 * tree-ssa-structalias.c (get_constraint_for_1): Handle
37406 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37407 (find_func_aliases): Allow float values to carry pointers again.
37409 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
37411 * doc/install.texi (Specific): Reorder targets list to put
37412 aarch64 in alphabetical order. Add a link to aarch64*-*-*
37415 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37416 David Edelsohn <dje.gcc@gmail.com>
37419 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37420 mapping class to external variable or function reference.
37421 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37424 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
37427 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37428 ASM_WEAKEN_DECL if defined.
37430 2015-02-16 Richard Biener <rguenther@suse.de>
37433 * varasm.c (default_file_start): For LTO produced units
37434 emit <artificial> as file directive.
37436 2015-02-16 Richard Biener <rguenther@suse.de>
37438 PR tree-optimization/63593
37439 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37440 stmts and releasing SSA names until...
37441 (execute_pred_commoning): ... after processing all chains.
37443 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37446 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37447 external functions.
37449 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
37451 * doc/bugreport.texi: Adjust section titles throughout the file
37452 to use "Title Case".
37453 * doc/extend.texi: Likewise.
37454 * doc/gcov.texi: Likewise.
37455 * doc/implement-c.texi: Likewise.
37456 * doc/implement-cxx.texi: Likewise.
37457 * doc/invoke.texi: Likewise.
37458 * doc/objc.texi: Likewise.
37459 * doc/standards.texi: Likewise.
37460 * doc/trouble.texi: Likewise.
37462 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
37464 * cgraph.h (symtab_node::has_aliases_p): Simplify.
37465 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37466 * tree.c (lookup_binfo_at_offset): Make static.
37467 (get_binfo_at_offset): Do not shadow offset; add explanatory
37470 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
37472 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37473 for all floading point loads and stores except those using a register
37475 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37478 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37480 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37481 (do_estimate_growth_1): Record if any uninlinable edge was seen.
37482 (estimate_growth): Handle uninlinable edges correctly.
37483 (check_callers): New.
37484 (growth_likely_positive): Handle aliases correctly.
37486 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37488 * ipa-chkp.c: Use iterate_direct_aliases.
37489 * symtab.c (resolution_used_from_other_file_p): Move inline.
37490 (symtab_node::create_reference): Fix formating.
37491 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37492 (symtab_node::iterate_reference): Move inline.
37493 (symtab_node::iterate_referring): Move inline.
37494 (symtab_node::iterate_direct_aliases): Move inline.
37495 (symtab_node::used_from_object_file_p_worker): Inline into ...
37496 (symtab_node::used_from_object_file_p): ... this one; move inline.
37497 (symtab_node::call_for_symbol_and_aliases): Move inline;
37498 use iterate_direct_aliases.
37499 (symtab_node::call_for_symbol_and_aliases_1): New method.
37500 (cgraph_node::call_for_symbol_and_aliases): Move inline;
37501 use iterate_direct_aliases.
37502 (cgraph_node::call_for_symbol_and_aliases_1): New method.
37503 (varpool_node::call_for_node_and_aliases): Rename to ...
37504 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37505 use iterate_direct_aliases.
37506 (varpool_node::call_for_symbol_and_aliases_1): New method.
37507 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37508 (ipa_discover_readonly_nonaddressable_var): Update.
37509 * ipa-devirt.c: Fix formating.
37510 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37512 (cgraph_node::call_for_symbol_and_aliases): Move inline.
37513 (cgraph_node::call_for_symbol_and_aliases_1): New function..
37514 * cgraph.h (used_from_object_file_p_worker): Remove.
37515 (resolution_used_from_other_file_p): Move inline.
37516 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37517 (symtab_node::iterate_reference): Move inline.
37518 (symtab_node::iterate_referring): Move inline.
37519 (symtab_node::iterate_direct_aliases): Move inline.
37520 (symtab_node::used_from_object_file_p_worker): Inline into ...
37521 (symtab_node::used_from_object_file_p): Move inline.
37522 * tree-emutls.c (ipa_lower_emutls): Update.
37523 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37524 (varpool_node::call_for_node_and_aliases): Remove.
37526 2015-02-14 Jakub Jelinek <jakub@redhat.com>
37528 PR tree-optimization/62209
37529 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
37530 op == range->exp, insert seq and gimplified code after labels
37531 instead of after the phi.
37533 2015-02-13 Jeff Law <law@redhat.com>
37536 Revert my change for tree-optimization/64823.
37538 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37540 PR tree-optimization/65053
37541 * tree-ssa-phiopt.c (value_replacement): When moving assign before
37542 cond, either reset VR on lhs or set it to phi result VR.
37544 2015-02-13 Jeff Law <law@redhat.com>
37546 PR tree-optimization/64823
37547 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
37548 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37549 threading through blocks with PHIs, but no statements.
37550 (thread_through_normal_block): Distinguish between blocks where
37551 we did not process all the statements and blocks with no statements.
37553 PR rtl-optimization/47477
37554 * match.pd (convert (plus/minus (convert @0) (convert @1): New
37555 simplifier to narrow arithmetic.
37557 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
37560 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
37561 polymorphic call info when type is not known to be preserved.
37563 2015-02-13 Maritn Jambor <mjambor@suse.cz>
37566 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
37567 (inline_call): Use it.
37569 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
37571 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
37572 GOMP_DEVICE_NVIDIA_PTX.
37574 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37577 * stmt.c (emit_case_nodes): Use void_type_node instead of
37578 NULL_TREE as LABEL_DECL type.
37580 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
37582 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
37584 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
37585 symbolic references to data to be forced to constant memory on the
37588 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
37590 PR tree-optimization/65002
37591 * tree-cfg.c (pass_data_fixup_cfg): Don't update
37593 * tree-sra.c (some_callers_have_no_vuse_p): New.
37594 (ipa_early_sra): Reject functions whose callers
37595 assume function is read only.
37597 2015-02-13 Richard Biener <rguenther@suse.de>
37600 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
37601 for LTO produced CUs.
37603 2015-02-13 Bin Cheng <bin.cheng@arm.com>
37605 PR tree-optimization/64705
37606 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
37607 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
37608 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
37609 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
37610 expand_simple_operations.
37612 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
37613 Richard Henderson <rth@redhat.com>
37616 * cgraphunit.c (cgraph_node::finalize_function): Set definition
37617 before notice_global_symbol.
37618 (varpool_node::finalize_decl): Likewise.
37619 * varasm.c (default_binds_local_p_2): Rename from
37620 default_binds_local_p_1, add weak_dominate argument. Use direct
37621 returns instead of assigning to local variable. Unify varpool and
37622 cgraph paths via symtab_node. Reject undef weak variables before
37623 testing visibility. Reorder tests for simplicity.
37624 (default_binds_local_p): Use default_binds_local_p_2.
37625 (default_binds_local_p_1): Likewise.
37626 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
37628 (default_elf_asm_output_external): Emit visibility when specified.
37630 2015-02-13 Alan Modra <amodra@gmail.com>
37632 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
37633 code setting up r11 for out-of-line fp restore.
37635 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
37637 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
37638 (muser-mode): Likewise.
37640 2015-02-13 Alan Modra <amodra@gmail.com>
37642 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
37643 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
37645 2015-02-12 David Howells <dhowells@redhat.com>
37647 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
37649 * tree-ssa-uninit.c (dump_predicates): Likewise.
37650 * opts.c (print_filtered_help): Likewise.
37652 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37654 * dwarf2out.c (output_die): Use "%s", name instead of name to
37655 avoid -Wformat-security warning.
37657 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
37658 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37659 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
37660 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37662 2015-02-12 Jason Merrill <jason@redhat.com>
37664 * common.opt (-flifetime-dse): New.
37666 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37669 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
37671 PR tree-optimization/65014
37672 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
37673 use original second operand of arg0 or arg1 instead of
37674 that adjusted by STRIP_NOPS.
37676 2015-02-11 Jeff Law <law@redhat.com>
37679 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
37680 that needs to be queued, just queue it for a single cycle.
37682 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
37684 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
37685 bodies of thunks; comment on why.
37686 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
37687 symbols are extern.
37689 2015-02-11 Richard Henderson <rth@redhat.com>
37692 * tree-eh.c (mark_reachable_handlers): Mark source and destination
37693 regions of __builtin_eh_copy_values.
37695 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37697 PR middle-end/65003
37698 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
37699 ultimate alias is MEM with SYMBOL_REF satisfying
37700 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
37701 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
37703 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
37705 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
37706 "diagnostic-core.h".
37707 (main): Initialize progname, and call diagnostic_initialize.
37709 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
37710 instead of __OPENMP_TARGET__.
37712 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
37713 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
37714 hard-coding PTX_ID.
37716 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
37718 * doc/sourcebuild.texi (pie_enabled): Document.
37720 2015-02-11 Martin Liska <mliska@suse.cz>
37723 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
37724 a return value for call to a function that is noreturn.
37726 2015-02-11 Richard Biener <rguenther@suse.de>
37729 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
37732 2015-02-11 Andrew Pinski <apinski@cavium.com>
37735 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
37736 Change the first argument type to size_type_node and add another
37738 (aarch64_simd_expand_builtin): Handle the new argument to
37739 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
37740 print an out when the first two arguments are not
37741 nonzero integer constants.
37742 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
37743 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
37745 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37748 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
37749 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
37750 (ix86_set_current_function): Rewritten.
37751 (ix86_add_new_builtins): Temporarily clear current_target_pragma
37752 when creating builtin fndecls.
37754 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37757 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
37759 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
37760 have no comdat group.
37761 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
37762 (lto_output_varpool_node): Always output alias info.
37763 (output_refs): Output refs of boundary aliases, too.
37764 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
37765 (output_symtab): Output call eges in thunks in boundary.
37766 (get_alias_symbol): Remove.
37767 (input_node, input_varpool_node): Do not special case weakrefs.
37768 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
37769 alias and thunks targets in the boundary; do not take removed symbols
37770 from their comdat groups.
37771 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
37772 (cgraph_node::global_info): Remove.
37773 (cgraph_node::rtl_info): Look through aliases and thunks.
37774 * cgrpah.h (global_info): Remove.
37775 (non_local_p): Remove.
37777 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37778 Sandra Loosemore <sandra@codesourcery.com>
37780 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
37781 to inline asm. List dialects in proper order.
37783 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37784 Sandra Loosemore <sandra@codesourcery.com>
37786 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
37788 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37790 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
37791 modified) reference to Solaris.
37793 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
37795 * doc/extend.texi (Extended Asm): Fix typos.
37797 2015-02-10 Jakub Jelinek <jakub@redhat.com>
37800 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
37802 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
37805 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
37806 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
37807 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
37808 * config/sh/constraints.md (Ara, Add): New constraints.
37809 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
37811 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
37812 atomic_mem_operand_0. Don't use force_reg on the memory address.
37813 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
37814 Sra constraint. Convert to insn_and_split. Add workaround for
37816 (atomic_compare_and_swap<mode>_hard): Copy to
37817 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
37818 Use atomic_mem_operand_0 predicate.
37819 (atomic_compare_and_swap<mode>_soft_gusa,
37820 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
37821 AraAdd constraints.
37822 (atomic_compare_and_swap<mode>_soft_tcb,
37823 atomic_compare_and_swap<mode>_soft_imask,
37824 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
37825 atomic_mem_operand_0 predicate and SraSdd constraints.
37826 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
37828 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
37829 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
37830 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
37831 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
37832 force_reg on the memory address.
37833 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
37834 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
37835 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
37836 atomic_mem_operand_1 predicate and Sra constraint.
37837 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
37838 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37839 Use atomic_mem_operand_1 predicate.
37840 (atomic_<fetchop_name><mode>_hard): Copy to
37841 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37842 Use atomic_mem_operand_1 predicate.
37843 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
37844 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37845 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
37846 insn_and_split. Use atomic_mem_operand_1 predicate.
37847 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
37848 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
37849 Use atomic_mem_operand_1 predicate.
37850 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
37851 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37852 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
37853 in generated insn with original mem operand before emitting the insn.
37854 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
37855 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
37856 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
37857 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
37858 Use atomic_mem_operand_1 predicate and AraAdd constraints.
37859 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
37860 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
37861 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
37862 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
37863 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
37864 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
37865 atomic_not_fetch<mode>_soft_tcb,
37866 atomic_<fetchop_name>_fetch<mode>_soft_imask,
37867 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
37868 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
37869 Use atomic_mem_operand_1 predicate and SraSdd constraints.
37871 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
37873 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
37874 and 3 earlyclobber operands.
37876 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37878 * common.opt (fstack-reuse): Mark as optimization.
37880 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37883 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
37885 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
37887 PR tree-optimization/64326
37888 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
37890 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
37892 PR gcov-profile/61889
37893 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
37895 2015-02-10 Richard Biener <rguenther@suse.de>
37897 PR tree-optimization/64995
37898 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
37899 value we use is final.
37900 (visit_reference_op_store): Always valueize op.
37901 (visit_use): Properly valueize vuses.
37903 2015-02-10 Richard Biener <rguenther@suse.de>
37905 PR tree-optimization/64909
37906 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
37907 pass a scalar-stmt count estimate to the cost model.
37908 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
37910 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
37912 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
37913 enabled by default together with var-tracking.
37915 2015-02-10 Nick Clifton <nickc@redhat.com>
37917 * config/rl78/rl78.c: Remove DIV attribute code accidentally
37918 included in previous rl78 commit.
37920 2015-02-10 Richard Biener <rguenther@suse.de>
37922 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
37923 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
37924 return the bitpack.
37926 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
37928 PR gcov-profile/61889
37929 * config.in: regenerate.
37930 * configure.in: Likewise.
37931 * configure.ac: Check for ftw.h.
37932 * gcov-tool.c: Check for ftw.h before using nftw.
37934 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
37937 * ipa-visibility.c (update_visibility_by_resolution_info): Only
37938 assert when not in lto mode.
37940 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37942 * ira-color.c (setup_left_conflict_sizes_p): Simplify
37943 initialization/assignment of conflict_size.
37945 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
37948 * ipa-cp.c (gather_caller_stats): Skip thunks.
37949 (propagate_constants_topo): Skip aliases.
37951 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
37954 * config/sh/sh.c (sh_option_override): Don't change
37955 -freorder-blocks-and-partition to -freorder-blocks even when
37956 unwinding is enabled.
37957 (sh_can_follow_jump): Return false if the followee jump is
37958 a crossing jump when -freorder-blocks-and-partition is specified.
37959 * config/sh/sh.md (*jump_compact_crossing): New insn.
37961 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
37962 Kaz Kojima <kkojima@gcc.gnu.org>
37965 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
37966 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
37967 (sh_can_redirect_branch): Rename to ...
37968 (sh_can_follow_jump): ... this. Constify argument types.
37969 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
37970 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
37971 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
37972 * doc/tm.texi: Regenerate.
37974 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37977 * builtins.c (expand_builtin): Call targetm.expand_builtin
37978 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
37980 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37983 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
37985 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37988 * ipa-icf.c (set_local): New function.
37989 (sem_function::merge): Use it.
37991 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37993 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
37994 (add_type_duplicate): Fix comparison of BINFOs.
37996 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37998 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
37999 on getting VOID pointer.
38001 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38004 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
38007 2015-02-09 Richard Biener <rguenther@suse.de>
38009 * genmatch.c (replace_id): Copy expr_type.
38011 2015-02-09 Richard Biener <rguenther@suse.de>
38013 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
38014 (streamer_write_tree_bitfields): Declare.
38015 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
38016 properly unpack padding.
38017 (unpack_value_fields): Inline ...
38018 (streamer_read_tree_bitfields): ... here.
38019 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
38020 and properly add padding bits.
38021 (streamer_pack_tree_bitfields): Fold into ...
38022 (streamer_write_tree_bitfields): ... this new function,
38023 exposing the bitpack object.
38024 * lto-streamer-out.c (lto_write_tree_1): Call
38025 streamer_write_tree_bitfields.
38027 2015-02-09 Richard Biener <rguenther@suse.de>
38029 PR tree-optimization/54000
38030 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
38031 (struct ivopts_data): Add loop_loc member.
38032 (tree_ssa_iv_optimize_loop): Dump loop location.
38033 (create_new_ivs): Likewise, also dump number of IVs generated.
38035 2015-02-09 Martin Liska <mliska@suse.cz>
38037 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
38038 just if not yet registered.
38039 (ipa_icf_generate_summary): Register callgraph hooks.
38041 2015-02-08 Andrew Pinski <apinski@cavium.com>
38043 * config/aarch64/aarch64.c (gty_dummy): Delete.
38045 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38048 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
38049 (cgraph_node::local_p): Remove thunk related FIXME.
38051 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38054 * i386.c (ix86_function_regparm): Look through aliases to see if callee
38055 is local and optimized.
38056 (ix86_function_sseregparm): Likewise; also use target's SSE math
38057 settings; error out instead of silently generating wrong code
38059 (init_cumulative_args): Look through aliases.
38061 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38064 * ipa-split.c (execute_split_functions): Split if function has aliases.
38066 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38069 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
38070 aliases before trying to expand it.
38071 (cgraph_node::expand_thunk): Fix formating.
38073 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
38075 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
38076 (Using Assembly Language with C): Expand introduction.
38077 (Basic Asm): Copy-edit. Add more information about uses of
38079 (Extended Asm): Copy-edit. Document new escape syntax and
38081 (Global Reg Vars): Copy-edit.
38082 (Local Reg Vars): Likewise.
38084 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
38088 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
38089 (DBX_CONTIN_CHAR): Define.
38091 2015-02-06 Sebastian Pop <s.pop@samsung.com>
38092 Brian Rzycki <b.rzycki@samsung.com>
38094 PR tree-optimization/64878
38095 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
38096 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
38097 Stop recursion at loop phi nodes after having visited a loop phi node.
38099 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38101 * toplev.c (process_options): Change flag_ipa_ra before creating
38102 optimization_{default,current}_node.
38105 * cgraphunit.c (cgraph_node::expand_thunk): If
38106 restype is not is_gimple_reg_type nor the thunk_fndecl
38107 returns aggregate_value_p, set restmp to a temporary variable
38108 instead of resdecl.
38110 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
38112 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38114 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38117 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38118 add a general secondary reload handler for SDmode, unless we have
38119 both read/write support for SDmode.
38121 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38123 PR middle-end/64937
38124 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38125 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38126 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38127 1 before, push it to abstract_vec.
38128 (dwarf2out_abstract_function): Adjust caller. Don't call
38129 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38130 DECL_ABSTRACT_P flags for all abstract_vec elts.
38132 2015-02-06 Renlin Li <renlin.li@arm.com>
38134 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38136 * tree-ssa.c (execute_update_addresses_taken): Likewise.
38138 2015-02-06 Jeff Law <law@redhat.com>
38141 * config/h8300/h8300.c (push): New argument "in_prologue".
38142 Pass "in_prologue" along to "F".
38143 (h8300_push_pop): Corresponding changes.
38144 (h8300_expand_prologue): Likewise.
38145 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
38147 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38149 PR rtl-optimization/64957
38151 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38152 IOR rather than for AND.
38154 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
38157 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38158 of shift-add and (add + shift) operations. Rename local variable.
38160 2015-02-05 Jeff Law <law@redhat.com>
38163 * config/h8300/constraints.md (U): Correctly dectect
38164 "eightbit_data" memory addresses.
38165 * config/h8300/h8300.c (eightbit_constant_address_p): Also
38166 handle (const (plus (symbol_ref (x)))) where x is declared
38167 as an 8-bit data memory address.
38168 * config/h8300/h8300.md (call, call_value): Correctly detect
38169 "funcvec" functions.
38172 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38173 24 to 28 bits for the H8/300.
38175 2015-02-06 Alan Modra <amodra@gmail.com>
38178 * config/rs6000/rs6000.c (chain_already_loaded): New function.
38179 (rs6000_call_aix): Use it.
38181 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
38183 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38186 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
38188 * config/h8300/constraints.md ("U" constraint): Use strict
38189 variant of REG_OK_FOR_BASE_P after reload has started.
38191 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
38193 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38194 define to zero if !TARGET_NEON.
38195 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38197 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38198 Trevor Saunders <tsaunders@mozilla.com>
38201 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38203 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38206 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38207 when removing varpool nodes.
38209 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38212 * varpool.c (varpool_node::remove): Fix order of variables.
38214 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38217 * ipa-inline.c (inline_small_functions): Fix ordering issue between
38218 speculation resolution and key updates.
38220 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38222 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38223 about not letting any speculative edges unupdated.
38225 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38228 * gcov-io.c (gcov_var): Export.
38230 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38232 PR middle-end/64922
38233 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38234 edges that become speculative.
38236 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38238 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38239 or DW_LANG_Fortran08.
38240 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38242 (gen_compile_unit_die): Handle "GNU Fortran2003" and
38243 "GNU Fortran2008" language strings.
38244 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38245 * langhooks.h (lang_GNU_Fortran): New prototype.
38246 * langhooks.c (lang_GNU_Fortran): New function.
38247 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38250 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38252 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38253 (RTX_OK_FOR_OLO10_P): Likewise.
38255 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38257 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38259 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38261 PR middle-end/64922
38262 * gimple.c: Include gimple-ssa.h.
38263 (maybe_remove_unused_call_args): New function.
38264 * gimple.h (maybe_remove_unused_call_args): Declare.
38265 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38266 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38267 * gimple-fold.c (gimple_fold_call): Likewise.
38269 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
38271 PR rtl-optimization/64905
38272 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38273 pointer alignment if it isn't needed.
38275 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38277 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38278 cortex-a72.cortex-a53.
38279 * config/aarch64/aarch64-tune.md: Regenerate.
38280 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38282 2015-02-04 Nick Clifton <nickc@redhat.com>
38284 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38287 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38289 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38290 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38291 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38293 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38294 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38295 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38296 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38297 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38298 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38299 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38300 * tree-core.h (enum built_in_function): In between
38301 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38302 for builtins that use DEF_BUILTIN_CHKP macro.
38304 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
38307 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38308 operands for tcc_comparison exprs. Fix typos.
38311 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38312 of two XORs that have an intervening AND or IOR.
38315 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38316 simplification of XOR of AND to not allocate new rtx before
38317 committing to a simplification.
38319 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38321 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38322 manual swaps in all peepholes.
38324 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38326 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38327 of manual swapping implementation.
38328 (aarch64_expand_vec_perm_const_1): Likewise.
38330 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
38332 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38333 (generic_addrcost_table): Remove NAMED_PARAM.
38334 (cortexa57_addrcost_table): Likewise.
38335 (xgene1_addrcost_table): Likewise.
38336 (generic_regmove_table): Likewise.
38337 (cortexa53_regmove_table): Likewise.
38338 (xgene1_regmove_table): Likewise.
38339 (generic_vector_table): Likewise.
38340 (cortexa57_vector_table): Likewise.
38341 (xgene1_vector_table): Likewise.
38342 (generic_tunings): Likewise.
38343 (cortexa53_tunings): Likewise.
38344 (cortexa57_tunings): Likewise.
38345 (xgene1_tunings): Likewise.
38347 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38349 * config/arm/arm-cores.def: Add cortex-a72 and
38350 cortex-a72.cortex-a53.
38351 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38352 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38353 * config/arm/arm-tune.md: Regenerate.
38354 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38355 "cortex-a72.cortex-a53".
38356 * doc/invoke.texi (ARM Options/-mtune): Likewise.
38358 2015-02-04 Nick Clifton <nickc@redhat.com>
38361 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38363 (nonimmediate_di_operand): Likewise.
38365 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38366 prefixes of known F5 using MSP430 MCUs.
38368 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38370 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38371 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38372 instead of __builtin_sqrt.
38374 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
38376 * varasm.c (do_assemble_alias): Follow transparent alias
38378 (default_assemble_visibility): Follow transparent alias
38379 chain for decl name.
38381 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
38383 PR middle-end/62103
38384 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38385 to compute size of referenced value in the constant case.
38387 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38389 PR rtl-optimization/64756
38390 * cse.c (invalidate_dest): New function.
38391 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
38392 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38393 invalidate and do not record it.
38395 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
38398 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38399 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38400 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38401 atomic_nand<mode>_soft_tcb): New insns.
38402 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38403 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38404 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38405 Split into atomic_not_fetchsi_hard if operands[0] is unused.
38406 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38407 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38408 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
38409 atomic_not<mode>_hard if operands[0] is unused.
38410 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38411 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38412 if operands[0] is unused.
38413 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
38414 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38415 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38416 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38418 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
38419 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38420 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38421 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38422 if operands[0] is unused.
38423 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
38424 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38425 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
38426 atomic_nand_fetchsi_hard if operands[0] is unused.
38427 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
38428 atomic_nand<mode>_hard if operands[0] is unused.
38429 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
38430 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38431 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
38432 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38433 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
38434 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38435 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38436 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38437 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
38438 atomic_not<mode>_hard if operands[0] is unused.
38439 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38440 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38442 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38443 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38444 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
38445 atomic_nand<mode>_hard if operands[0] is unused.
38446 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38447 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38449 2015-02-03 David Malcolm <dmalcolm@redhat.com>
38452 * Makefile.in (GCC_OBJS): Add gcc-main.o.
38453 * gcc-main.c: New file, containing "main" taken from gcc.c.
38454 * gcc.c (do_self_spec): Free decoded_options.
38455 (class driver): Move declaration to gcc.h.
38456 (main): Move declaration and implementation to new file
38458 (driver_get_configure_time_options): New function.
38459 * gcc.h (class driver): Move this declaration here, from
38461 (driver_get_configure_time_options): New declaration.
38463 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
38465 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38466 cross-module inlining.
38467 * cgraph.h (cgraph_node): Add flag merged.
38468 * ipa-icf.c (sem_function::merge): Maintain it.
38470 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
38472 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38473 instead of OBJECT_P.
38475 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
38478 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38479 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38480 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38481 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38483 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38486 * combine.c (reg_n_sets_max): New variable.
38487 (can_change_dest_mode, reg_nonzero_bits_for_combine,
38488 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38489 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38490 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38491 (rest_of_handle_combine): Initialize reg_n_sets_max.
38493 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
38495 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38496 if some always_inline was inlined, apply changes before inlining
38499 2015-02-02 David Malcolm <dmalcolm@redhat.com>
38502 * config/arm/arm.c (arm_option_override): Set
38503 arm_selected_arch/cpu/tune to NULL on entry.
38505 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
38506 Andrew Pinski <pinskia@gcc.gnu.org>
38507 Jakub Jelinek <jakub@gcc.gnu.org>
38510 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38511 integer typing for small model. Use IN_RANGE.
38513 2015-02-02 Richard Biener <rguenther@suse.de>
38515 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38516 * tree-vrp.c (vrp_valueize_1): Likewise.
38518 2015-02-02 Alan Modra <amodra@gmail.com>
38520 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38521 than mem for toc_restore.
38522 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38523 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38524 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38526 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
38529 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
38530 explicit default options.
38532 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
38535 * ipa-utils.c (ipa_merge_profiles): Add release argument.
38536 * ipa-icf.c (sem_function::merge): Do not release body when merging.
38537 * ipa-utils.h (ipa_merge_profiles): Update prototype.
38539 2015-02-01 Jakub Jelinek <jakub@redhat.com>
38542 * cfgexpand.c (deep_ter_debug_map): New variable.
38543 (avoid_deep_ter_for_debug): New function.
38544 (expand_debug_expr): If TERed SSA_NAME is in
38545 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
38546 instead of trying to expand SSA_NAME's def stmt.
38547 (expand_debug_locations): When expanding debug bind
38548 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
38549 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
38551 (pass_expand::execute): Call avoid_deep_ter_for_debug on
38552 all debug bind stmts. Delete deep_ter_debug_map after
38553 expand_debug_location if non-NULL and clear it.
38555 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
38558 * config/sh/sync.md (atomic_fetch_notsi_hard,
38559 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
38560 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
38561 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
38562 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
38563 atomic_not_fetch<mode>_soft_imask): New insns.
38565 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38567 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
38568 (rank_for_schedule_debug): Split from ...
38569 (rank_for_schedule): ... this.
38570 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
38571 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
38573 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38575 * doc/md.texi (Machine Constraints): Alphabetize table by target.
38576 * doc/extend.texi (x86 Variable Attributes): Move section to
38577 correct alphabetization after renaming.
38578 (x86 Type Attributes): Likewise.
38579 (Target Builtins): Re-alphabetize menu.
38580 (x86 Built-in Functions): Move section to correct alphabetization
38582 (x86 transactional memory intrinsics): Likewise.
38583 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
38584 and x86 Windows Options in table and menu.
38585 (x86 Options): Move section to correct alphabetization after
38587 (x86 Windows Options): Likewise.
38589 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38591 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
38592 preferred names of the architecture and its 32- and 64-bit
38594 * doc/invoke.texi: Likewise.
38595 * doc/md.texi: Likewise.
38597 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38600 * config/i386/predicates.md (address_no_seg_operand): Reject
38601 non-CONST_INT_P operands in invalid mode.
38603 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38605 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
38606 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
38607 * config/i386/predicates.md (address_no_seg_operand): Call
38608 address_operand with VOIDmode.
38609 (vsib_address_operand): Ditto.
38610 (address_mpx_no_base_operand): Ditto.
38611 (address_mpx_no_index_operand): Ditto.
38613 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38616 * lra-constraints.c (original_subreg_reg_mode): New.
38617 (simplify_operand_subreg): Try to simplify subreg of const. Use
38618 original_subreg_reg_mode for it.
38619 (swap_operands): Update original_subreg_reg_mode.
38620 (curr_insn_transform): Set up original_subreg_reg_mode.
38622 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38625 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
38627 (process_alt_operands): Use it.
38628 (curr_insn_transform): Check the optional reload pseudo class is
38631 2015-01-30 Joseph Myers <joseph@codesourcery.com>
38633 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
38634 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
38636 * toplev.h (init_asm_output): Update comment on use of
38637 UNKNOWN_LOCATION with fatal_error.
38638 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
38639 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
38640 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
38641 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
38642 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
38643 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
38644 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
38645 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
38646 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
38647 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
38648 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
38649 fatal_error changed to pass input_location as first argument.
38651 2015-01-30 Martin Liska <mliska@suse.cz>
38653 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
38654 in #pragma GCC diagnostic guards.
38656 2015-01-30 Richard Biener <rguenther@suse.de>
38658 PR tree-optimization/64829
38659 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
38660 not add a widening conversion pattern but hand off extra
38661 widenings to callers.
38662 (vect_recog_widen_mult_pattern): Handle extra widening produced
38663 by vect_handle_widen_op_by_const.
38664 (vect_recog_widen_shift_pattern): Likewise.
38665 (vect_pattern_recog_1): Remove excess vertical space in dumping.
38666 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
38667 (vect_init_vector_1): Likewise.
38668 (vect_get_vec_def_for_operand): Likewise.
38669 (vect_finish_stmt_generation): Likewise.
38670 (vectorizable_load): Likewise.
38671 (vect_analyze_stmt): Likewise.
38672 (vect_is_simple_use): Likewise.
38674 2015-01-29 Jeff Law <law@redhat.com>
38676 * combine.c (try_combine): Fix typo in comment.
38678 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
38681 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
38682 (rs6000_stack_info): Add assert.
38683 (rs6000_output_savres_externs): New function, split off from...
38684 (rs6000_output_function_prologue): ... here. Do not call it for
38687 2015-01-29 Jeff Law <law@redhat.com>
38690 * combine.c (try_combine): If I0 is a memory load and I3 a store
38691 to a related address, increase the "goodness" of doing a 4-insn
38692 combination with I0-I3.
38693 (make_field_assignment): Handle SUBREGs in the ior+and case.
38695 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
38697 PR tree-optimization/64746
38698 * tree-if-conv.c (mask_exists): New function.
38699 (predicate_mem_writes): Save created mask with given size for further
38701 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
38702 (ifcvt_repair_bool_pattern): Collect all statements that are root
38703 of bool pattern and use iterative algorithm to remove multiple uses
38704 of predicates, display number of required iterations.
38706 2015-01-29 Richard Biener <rguenther@suse.de>
38708 PR tree-optimization/64853
38709 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
38710 stmt will get simulated again.
38711 * tree-ssa-ccp.c (valueize_op_1): Likewise.
38713 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38715 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
38716 return_in_pc. Remove redundant assignments.
38717 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
38718 (arm_expand_epilogue): Don't compare boolean with true in if condition.
38720 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
38722 * config/i386/i386.c (ix86_mode_after): Make static.
38724 2015-01-29 Richard Biener <rguenther@suse.de>
38726 PR tree-optimization/64844
38727 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
38728 dump cost model analysis.
38729 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
38730 Do not register adjusted load/store costs here.
38732 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38733 Uros Bizjak <ubizjak@gmail.com>
38735 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
38736 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
38737 using x86_use_pseudo_pic_reg.
38738 * config/i386/i386.c (ix86_conditional_register_usage): Remove
38739 support for fixed PIC register.
38740 (ix86_use_pseudo_pic_reg): Not static any more.
38742 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38744 PR middle-end/64805
38745 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
38746 to avoid error in cgraph node verification.
38748 2015-01-29 Marek Polacek <polacek@redhat.com>
38750 * doc/standards.texi: Reflect that the default for C is gnu11.
38752 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
38755 * reorg.c (switch_text_sections_between_p): New function.
38756 (relax_delay_slots): Call it when testing if the jump insn
38757 is removable. Use targetm.can_follow_jump when testing if
38758 the conditional branch can follow an unconditional jump.
38760 2015-01-27 Caroline Tice <cmtice@google.com>
38762 Committing VTV Cywin/Ming patch for Patrick Wollgast
38763 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
38764 if -fvtable-verify=preinit/std is used.
38765 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
38766 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
38767 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
38768 if -fvtable-verify=preinit/std is used.
38769 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38770 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
38771 if -fvtable-verify=preinit/std is used.
38772 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
38773 * config/i386/mingw32.h (LIB_SPEC): Likewise.
38774 * varasm.c (assemble_variable): Add code to properly set the comdat
38775 section and name for the .vtable_map_vars section in case the
38776 target is PE or COFF.
38778 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38781 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
38782 make sane BB profile.
38783 (cgraph_node::expand_thunk): Make sane BB profile.
38784 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
38785 * cgraph.h (init_lowered_empty_function): Update prototype.
38786 * config/i386/i386.c (make_resolver_func): Update call.
38787 * predict.c (gate): Disable branch prediction pass if
38788 profile is already there.
38790 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38792 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
38793 * opth-gen.awk: Likewise.
38794 * common.opt: Mark flag_fp_contract_mode as Optimization.
38796 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
38798 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
38799 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
38801 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
38804 * config/sh/predicates.md (atomic_arith_operand,
38805 atomic_logical_operand): Remove.
38806 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
38807 (atomic_arith_operand_0): New predicate.
38808 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
38809 Use atomic_arith_operand_0 for input values.
38810 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
38811 atomic_compare_and_swap<mode>_soft_gusa,
38812 atomic_compare_and_swap<mode>_soft_tcb,
38813 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
38814 arith_reg_operand instead of register_operand.
38815 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
38816 atomic_arith_operand_0 for newval input.
38817 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
38818 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
38819 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
38820 arith_reg_operand instead of register_operand.
38821 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
38822 fetchop_predicate_1, fetchop_constraint_1_llcs,
38823 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
38824 fetchop_constraint_1_imask): New code iterator attributes.
38825 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
38826 register_operand. Use fetchop_predicate_1.
38827 (atomic_fetch_<fetchop_name>si_hard,
38828 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
38829 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
38830 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
38831 and arith_reg_operand instead of register_operand. Use
38832 fetchop_predicate_1, fetchop_constraint_1_gusa.
38833 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
38834 and arith_reg_operand instead of register_operand. Use
38835 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
38837 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
38838 and arith_reg_operand instead of register_operand. Use
38839 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
38841 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
38842 register_operand. Use atomic_logical_operand_1.
38843 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
38844 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
38845 arith_reg_operand instead of register_operand.
38846 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
38847 Use arith_reg_dest and arith_reg_operand instead of register_operand.
38848 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
38849 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
38850 register_operand. Use fetchop_predicate_1.
38851 (atomic_<fetchop_name>_fetchsi_hard,
38852 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
38853 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38854 fetchop_constraint_1_llcs.
38855 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
38856 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38857 fetchop_constraint_1_gusa.
38858 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
38859 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38860 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
38861 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
38862 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38863 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
38864 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
38865 register_operand. Use atomic_logical_operand_1.
38866 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
38867 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
38868 arith_reg_operand instead of register_operand.
38869 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
38870 arith_reg_operand instead of register_operand. Use logical_operand
38871 and K08. Adjust asm sequence to allow R0 usage.
38872 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
38873 arith_reg_operand instead of register_operand. Use logical_operand
38876 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38879 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
38880 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
38881 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
38882 only get_full_len HOST_WIDE_INTs from get_val () array rather than
38883 all bits in *val_wide.
38885 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
38887 * varpool.c (tls_model_names): Fix names.
38888 (varpool_node::dump): Dump tls- prefix for tls models.
38890 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
38891 Bernd Schmidt <bernds@codesourcery.com>
38892 Nathan Sidwell <nathan@codesourcery.com>
38894 * config/nvptx/mkoffload.c: New file.
38895 * config/nvptx/t-nvptx: Add build rules for it.
38896 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
38897 (extra_programs): Add mkoffload.
38898 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
38900 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
38902 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
38904 PR middle-end/64809
38905 * cfgexpand.c (reorder_operands): Skip debug gimples.
38907 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
38909 PR tree-optimization/64277
38910 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
38911 range info when possible to refine estimation.
38913 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
38915 PR tree-optimization/64718
38916 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
38917 be a 16bit unsigned integer when n->range is 16.
38918 (bswap_replace): Convert src to that type if necessary for all bswap
38919 sizes. Fix rotation right notation in nearby comment. Use bswap_type
38920 set in pass_optimize_bswap::execute ().
38922 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
38924 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
38925 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
38926 integer and floating point variants.
38927 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
38929 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
38931 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
38932 for all vector modes.
38934 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38937 * doc/sourcebuild.texi (comdat_group): Document.
38939 2015-01-28 Terry Guo <terry.guo@arm.com>
38941 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
38943 2015-01-27 David Malcolm <dmalcolm@redhat.com>
38945 * toplev.c (print_version): Add param "show_global_state", and
38946 only print GGC and plugin information if it is true.
38947 (init_asm_output): Pass in "true" for the new param when calling
38949 (process_options): Likewise.
38950 (toplev::main): Likewise.
38951 * toplev.h (print_version): Add new param to decl.
38953 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38957 * tree.c (lookup_binfo_at_offset): New function.
38958 (get_binfo_at_offset): Use it.
38960 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38963 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
38964 on vtable being vtable.
38966 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
38968 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
38969 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
38970 -mhotpatch= option.
38971 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
38972 -mno-hotpatch options. Change syntax of -mhotpatch= option.
38973 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
38975 (s390_hotpatch_trampoline_halfwords_max): Renamed.
38976 (s390_hotpatch_hw_max): New name.
38977 (s390_hotpatch_trampoline_halfwords): Renamed.
38978 (s390_hotpatch_hw_before_label): New name.
38979 (get_hotpatch_attribute): Removed.
38980 (s390_hotpatch_hw_after_label): New name.
38981 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
38983 (s390_attribute_table): Ditto.
38984 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
38985 (s390_function_num_hotpatch_hw): New name.
38986 Remove special handling of inline functions and hotpatching.
38987 Return number of nops before and after the function label.
38988 (s390_can_inline_p): Removed.
38989 (s390_asm_output_function_label): Emit a configurable number of nops
38990 after the function label.
38991 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
38992 (TARGET_CAN_INLINE_P) Removed.
38993 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
38995 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38996 Jiong Wang <jiong.wang@arm.com>
38998 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
39000 (cb<optab><mode>1): Likewise.
39001 * config/aarch64/iterators.md (bcond): New define_code_attr.
39003 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39005 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
39008 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39010 * config/s390/s390.c (s390_register_move_cost): Increase costs for
39013 2015-01-27 Richard Biener <rguenther@suse.de>
39015 * tree-vrp.c (update_value_range): Intersect the range with
39016 old recorded SSA name range information.
39018 2015-01-27 Nick Clifton <nickc@redhat.com>
39020 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
39021 BC, DE and HL registers directly, not via AX.
39022 When decrementing the stack pointer by a large amount, transfer SP
39023 into AX and perform the subtraction there.
39024 (rl78_expand_epilogue): Perform the inverse of the above
39027 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39029 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
39031 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39032 Yury Gribov <y.gribov@samsung.com>
39035 * ubsan.c (ubsan_source_location): Refactor code.
39036 (ubsan_type_descriptor): Update type size. Refactor code.
39038 2015-01-27 Richard Biener <rguenther@suse.de>
39040 PR tree-optimization/56273
39041 PR tree-optimization/59124
39042 PR tree-optimization/64277
39043 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
39044 from the first VRP pass.
39046 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39049 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
39050 handle the first argument in the same loop as all the other arguments.
39052 PR rtl-optimization/61058
39053 * jump.c (cleanup_barriers): Update basic block boundaries
39054 if BLOCK_FOR_INSN is non-NULL on PREV.
39056 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
39058 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
39059 bounds narrowing, already instrumented calls and calls to
39060 not instrumentable functions.
39062 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39064 PR tree-optimization/64807
39065 * wide-int.cc (wi::divmod_internal): Clear
39066 b_dividend[dividend_blocks_needed].
39068 2015-01-26 DJ Delorie <dj@redhat.com>
39070 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
39071 volatile memory references.
39073 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
39076 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
39078 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
39079 shifts if it already fits into K08.
39081 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39084 * ipa-inline.c (inline_small_functions): Print "unknown" even
39085 if edge->call_stmt is non-NULL, but has builtins or unknown
39088 PR middle-end/64421
39089 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
39090 with asterisk, skip the first character.
39092 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39095 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
39098 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
39101 * config/i386/i386.md (*movdi_internal): Also check operand 0
39102 to determine TYPE_LEA operand.
39103 (*movsi_internal): Ditto.
39105 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39107 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39108 OPTION_MASK_QUAD_MEMORY_ATOMIC.
39110 2015-01-26 Renlin Li <renlin.li@arm.com>
39112 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39114 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39117 2015-01-26 Richard Biener <rguenther@suse.de>
39119 PR middle-end/64764
39120 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39121 combining two BIT_AND_EXPR predicates.
39123 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39126 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39128 2015-01-26 Terry Guo <terry.guo@arm.com>
39130 * config/arm/arm.c (arm_file_start): Update the assignment of
39131 Tag_ABI_HardFP_use.
39133 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
39135 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39137 config/arm/arm.md: Include the new Cortex-A57 model.
39138 (generic_sched): Don't use generic_sched when tuning for
39141 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
39142 Uros Bizjak <ubizjak@gmail.com>
39144 * config/i386/i386.c (get_builtin_code_for_version): Add
39145 support for BMI and BMI2 multiversion functions.
39147 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39149 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39150 (extract_bit_field): Likewise.
39151 (extract_low_bits): Likewise.
39152 (expand_mult): Likewise.
39153 (expand_mult_highpart_adjust): Likewise.
39155 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
39157 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39158 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39159 * config/i386/i386.c (processor_model): Add
39160 M_INTEL_COREI7_BROADWELL.
39161 (arch_names_table): Add "broadwell".
39163 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
39172 * config/sh/sh-protos.h
39173 (sh_extending_set_of_reg::can_use_as_unextended_reg,
39174 sh_extending_set_of_reg::use_as_unextended_reg,
39175 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39176 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39177 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39178 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39179 (sh_treg_insns): New class.
39180 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39181 (scope_counter): New class.
39182 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39183 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39184 sh_extending_set_of_reg::can_use_as_unextended_reg,
39185 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39186 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39187 sh_split_treg_set_expr): New functions.
39188 (addsubcosts): Handle treg_set_expr.
39189 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39190 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39191 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39192 (sh_insn_operands_modified_between_p): Make non-static.
39193 * config/sh/predicates.md (zero_extend_movu_operand): Allow
39194 simple_mem_operand in addition to displacement_mem_operand.
39195 (zero_extend_operand): Don't allow zero_extend_movu_operand.
39196 (treg_set_expr, treg_set_expr_not_const01,
39197 arith_reg_or_treg_set_expr): New predicates.
39198 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39199 arith_or_int_operand instead of logical_operand. Convert to
39200 insn_and_split. Try to optimize constant operand in splitter.
39201 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
39202 (*tstqi_t_zero): Delete.
39203 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39204 (tstsi_t_and_not): Delete.
39205 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39206 Convert to insn_and_split.
39207 (unnamed split, tstsi_t_zero_extract_xor,
39208 tstsi_t_zero_extract_subreg_xor_little,
39209 tstsi_t_zero_extract_subreg_xor_big): Delete.
39210 (*tstsi_t_shift_mask): New insn_and_split.
39211 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39212 to recombine with surrounding insns when splitting.
39213 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39214 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39215 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39216 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39217 (*cbranch_div0s: Delete.
39218 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39219 Try to recombine with surrounding insns when splitting. Add operand
39221 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39222 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39223 *addc_r_r_msb, *addc_2r_msb): Delete.
39224 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
39226 (*addc_negreg_t): New insn_and_split.
39227 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39228 Try to recombine with surrounding insns when splitting.
39229 Add operand order variants.
39230 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39231 insn_and_split patterns.
39232 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
39233 surrounding insns when splitting.
39234 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39235 (*rotcl): Likewise. Add zero_extract variant.
39236 (*ashrsi2_31): New insn_and_split.
39237 (*negc): Convert to insn_and_split. Use treg_set_expr.
39238 (*zero_extend<mode>si2_disp_mem): Update comment.
39239 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39241 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
39242 with surrounding insns when splitting.
39243 (any_treg_expr_to_reg): New insn_and_split.
39244 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39245 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39246 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39247 *zero_extract_2): New single bit zero extract patterns.
39248 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39249 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39250 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39251 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39253 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39254 register_operand for set source.
39256 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
39258 * i386.opt (prefetch_sse): New targetsave.
39259 * i386.c (ix86_function_specific_save): Save prefetch_sse.
39260 (ix86_function_specific_restore): Restore prefetch_sse and initialize
39261 ix86_cost/ix86_tune_cost.
39263 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39265 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39266 Support the JIT by using 0 as the language type.
39268 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
39271 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
39272 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39273 (mark_regno_live, process_bb_lives): Pass new parameter value to
39274 make_hard_regno_born.
39276 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39278 PR rtl-optimization/63637
39279 PR rtl-optimization/60663
39280 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39281 if elt->cost is MAX_COST for ASM_OPERANDS.
39282 (find_sets_in_insn): Fix up comment typo.
39283 (cse_insn): Don't set src_volatile for all non-volatile
39284 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39285 or with "memory" clobber. Set elt->cost to MAX_COST
39286 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
39287 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39289 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39291 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39294 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39296 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39297 libgcc/config/i386/elf-lib.h.
39299 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39302 * gcc.c (print_configuration): Don't print a blank line at the end
39304 (run_attempt): ... but here unstead.
39306 PR middle-end/64734
39307 * omp-low.c (scan_sharing_clauses): Don't ignore
39308 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39309 on target data/update constructs.
39311 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
39314 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39315 (DEBUG_RELOAD): Removed define.
39316 (m32c_limit_reload_class): Enable traces with if DEBUG0.
39317 (m32c_function_arg): Added a type cast.
39318 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39319 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39320 * config/m32c/bitops.md (andqi3_16): Likewise.
39321 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39322 (push_a01_l): Likewise.
39324 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39327 * main.c (main): Construct toplev instances with init_signals=true.
39328 * toplev.c (general_init): Add param "init_signals", and use it to
39329 conditionalize the calls to signal and host_hooks.extra_signals.
39330 (toplev::toplev): Add param "init_signals".
39331 (toplev::main): When invoking general_init, pass m_init_signals
39332 to control whether signal-handlers are installed.
39333 * toplev.h (toplev::toplev): Add param "init_signals".
39334 (toplev::m_init_signals): New field.
39336 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39339 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39340 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39341 latter may be affected by the former (e.g. on i686).
39343 2015-01-23 Martin Liska <mliska@suse.cz>
39345 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39346 false positive during profiledbootstrap.
39348 2015-01-23 Tom de Vries <tom@codesourcery.com>
39351 * lto-opts.c (lto_write_options): Output non-explicit conservative
39353 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39354 (append_compiler_options): Pass -fopenacc through.
39356 2015-01-23 Tom de Vries <tom@codesourcery.com>
39359 * lto-opts.c (lto_write_options): Output non-explicit conservative
39361 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39362 (append_compiler_options): Pass -fopenmp through.
39364 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39367 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39370 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39371 * diagnostic.def (DK_ICE_NOBT): New kind.
39372 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39373 like DK_ICE, but never print backtrace.
39374 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39375 (internal_error_no_backtrace): New function.
39376 * gcc.c (execute): Use internal_error_no_backtrace instead of
39379 2015-01-22 Jeff Law <law@redhat.com>
39382 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39383 improve code density for small immediate to memory case.
39384 (insv): Better handle bitfield assignments when the field is
39385 being set to all ones.
39386 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39389 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39390 Jakub Jelinek <jakub@redhat.com>
39392 PR middle-end/64729
39393 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39394 for !TARGET_LIBC_PROVIDES_SSP version and
39395 -fstack-protector-{all,strong,explicit} otherwise.
39396 * config/freebsd.h (LINK_SSP_SPEC): Handle
39397 -fstack-protector-{strong,explicit}.
39399 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
39400 H.J. Lu <hongjiu.lu@intel.com>
39403 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39406 2015-01-22 Wei Mi <wmi@google.com>
39408 PR rtl-optimization/64557
39409 * dse.c (record_store): Call get_addr for mem_addr.
39410 (check_mem_read_rtx): Likewise.
39412 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
39414 * fold-const.c (const_binop): Add early return for non-tcc_binary.
39416 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
39418 * toplev.c (init_local_tick): Process the failure when read
39419 fails for random_seed.
39421 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39422 'pretty_name' to avoid memory overflow.
39424 2015-01-22 Richard Biener <rguenther@suse.de>
39426 PR middle-end/64728
39427 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39428 abnormal coalescing on undefined SSA names.
39430 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
39434 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39436 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39438 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
39440 PR middle-end/63325
39441 * fold-const.c (fold_checksum_tree): Don't include value of
39442 expr->decl_with_vis.symtab_node in the checksum.
39444 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39446 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39448 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
39451 * gcc.c (insert_comments): New function.
39452 (try_generate_repro): Call it.
39453 (append_text): Removed.
39455 2015-01-22 Richard Biener <rguenther@suse.de>
39457 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39458 with IL incompatible options. Properly honor user optimize
39461 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
39463 PR rtl-optimization/64682
39464 * combine.c (distribute_notes): When moving a death note for
39465 a register that is set in the new I2, make sure to put it
39466 before that new I2.
39468 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
39470 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39471 not TARGET_DEFAULT.
39473 2015-01-21 Jakub Jelinek <jakub@redhat.com>
39476 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39477 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39478 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39481 * doc/invoke.texi (-fsanitize=vptr): Document.
39483 PR rtl-optimization/62078
39484 * dse.c: Include cfgcleanup.h.
39485 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39486 anything call purge_all_dead_edges and cleanup_cfg at the end
39489 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
39491 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39494 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
39496 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39499 2015-01-21 David Sherwood <david.sherwood@arm.com>
39500 Tejas Belagod <Tejas.Belagod@arm.com>
39502 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39503 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39504 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39507 2015-01-21 David Sherwood <david.sherwood@arm.com>
39508 Tejas Belagod <Tejas.Belagod@arm.com>
39510 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39511 (aarch64_reverse_mask): New decls.
39512 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39513 (insn_count): New mode_attr.
39514 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39515 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39516 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39517 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39518 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39519 (aarch64_simd_st4): New patterns.
39520 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39521 (aarch64_reverse_mask): New functions.
39523 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39525 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39527 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39528 addressing modes for BE.
39529 (aarch64_print_operand): Add 'R' specifier.
39530 (aarch64_simd_disambiguate_copy): Delete.
39531 (aarch64_simd_emit_reg_reg_move): New function.
39532 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
39533 in define_splits for structural moves.
39534 (mov<mode>): Use less restrictive predicates.
39535 (*aarch64_mov<mode>): Simplify and only allow for LE.
39536 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
39538 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39540 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
39542 2015-01-21 Richard Henderson <rth@redhat.com>
39545 * ccmp.c (used_in_cond_stmt_p): Remove.
39546 (expand_ccmp_expr): Don't use it.
39548 2015-01-21 Nick Clifton <nickc@redhat.com>
39550 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
39553 2015-01-21 Richard Biener <rguenther@suse.de>
39555 PR middle-end/64313
39556 * tree-core.h (builtin_info, builtin_info_type): Turn from
39557 an object with two arrays into an array of an object with
39558 decl and two flags, implicit_p and declared_p.
39559 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
39560 set_builtin_decl, set_builtin_decl_implicit_p,
39561 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
39562 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
39563 * builtins.c (builtin_info): Adjust.
39564 * gimplify.c (gimplify_addr_expr): References to builtins
39565 that have been declared by the user makes them eligible for
39566 use by the compiler. Call set_builtin_decl_implicit_p on them.
39568 2015-01-20 Jeff Law <law@redhat.com>
39571 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
39572 allow pc-relative addresses in operand predicates or constraints.
39574 2015-01-21 Bin Cheng <bin.cheng@arm.com>
39576 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
39577 neon on aarch32 processors for stringops.
39579 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39582 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
39584 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39587 * ipa-inline.c: Include lto-streamer.h
39588 (report_inline_failed_reason): Output source file differences and
39589 flags on optimization/target node mismatch.
39590 (can_inline_edge_p): Consider caller to be the outer inline function;
39591 be less restrictive about matching opimize and optimize_size attributes.
39592 (inline_account_function_p): Break out from ...
39593 (inline_small_functions): ... here.
39594 * ipa-inline-transform.c (clone_inlined_nodes): Use
39595 inline_account_function_p.
39596 (inline_call): Use optimize attribution; use inline_account_function_p.
39597 (inline_transform): Use opt_for_fn.
39598 * ipa-inline.h (inline_account_function_p): Declare.
39600 2015-01-20 Jakub Jelinek <jakub@redhat.com>
39603 * dwarf2out.c (decl_piece_node): Don't put bitsize into
39604 mode if bitsize <= 0.
39605 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
39606 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
39607 sizes and positions.
39609 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
39611 * config/nios2/nios2.c (nios2_asm_file_end): Implement
39612 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
39614 (TARGET_ASM_FILE_END): Define.
39616 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39618 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
39619 (struct tune_params): Use the enum.
39620 * arm.c (arm_*_tune): Update.
39621 (arm_option_override): Update.
39623 2015-01-20 Richard Biener <rguenther@suse.de>
39626 * ipa-reference.c (add_static_var): Inline ...
39627 (analyze_function): ... here after splitting out from ...
39628 (is_proper_for_analysis): ... this.
39630 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
39633 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
39634 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
39635 replace the conditional with it's true branch.
39636 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
39637 (arm_lra_p): Remove.
39639 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
39641 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
39643 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39645 * config/tilegx/mul-tables.c: Move symtab.h include after
39646 coretypes.h include.
39647 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
39648 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
39649 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
39650 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
39651 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39653 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
39657 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39659 PR rtl-optimization/64081
39660 * loop-iv.c (def_pred_latch_p): New function.
39661 (latch_dominating_def): Allow specific cases with non-single
39663 (iv_get_reaching_def): Likewise.
39664 (check_complex_exit_p): New function.
39665 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39666 with exits not executing on any iteration.
39668 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39671 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
39672 to set branch cost.
39674 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39677 * i386.c (gate): Check flag_expensive_optimizations and
39679 (ix86_option_override_internal): Drop optimize_size condition
39680 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
39681 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
39682 MASK_PREFER_AVX128.
39683 (ix86_avx256_split_vector_move_misalign,
39684 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
39685 * sse.md (all uses of TARGET_PREFER_AVX128): Add
39686 optimize_insn_for_speed_p check.
39688 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
39690 * config/mips/mips.h (FP_ASM_SPEC): New define.
39691 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
39694 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
39697 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
39698 nullptr for insn when reaching the first insn.
39699 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
39700 (sh_insn_operands_modified_between_p): Add nullptr check.
39701 (sh_find_extending_set_of_reg): Fix log message. Don't accept
39702 sign extending mem load if the insn contains any UNSPEC or
39705 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39707 * params.def (inline-unit-growth): Drop to 15%.
39708 * invoke.texi (inline-unit-growth): Document change.
39710 2015-01-19 Martin Liska <mliska@suse.cz>
39713 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
39714 function for second argument of OBJ_TYPE_REF.
39716 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39719 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
39720 whether function is an alias.
39722 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39724 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
39727 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
39729 PR rtl-optimization/64671
39730 * lra-remat.c (operand_to_remat): Don't consider jump and call
39733 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
39736 * config/rs6000/default64.h: Include rs6000-cpus.def.
39737 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
39738 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
39739 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
39741 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
39743 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
39744 pseudo-op to specify assembler dialect.
39746 2015-01-19 Martin Liska <mliska@suse.cz>
39749 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
39750 Handle safe potentially removed nodes during filtering.
39752 2015-01-19 Martin Liska <mliska@suse.cz>
39754 * doc/extend.texi (no_icf): Add new attribute description.
39755 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
39756 where the pass attempts to merge a function with no_icf attribute.
39758 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39761 * doc/md.texi (ARM Options): Document register constraints.
39763 2015-01-19 Jiong Wang <jiong.wang@arm.com>
39764 Andrew Pinski <apinski@cavium.com>
39767 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
39768 (ashl<mode>3): Don't expand if operands[2] is not constant.
39770 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39773 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
39774 Match xor-and-xor RTL pattern.
39776 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39778 PR rtl-optimization/64081
39779 * loop-iv.c (def_pred_latch_p): New function.
39780 (latch_dominating_def): Allow specific cases with non-single
39782 (iv_get_reaching_def): Likewise.
39783 (check_complex_exit_p): New function.
39784 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39785 with exits not executing on any iteration.
39787 2015-01-19 Jakub Jelinek <jakub@redhat.com>
39789 * common.opt (fgraphite): Fix a typo.
39791 2015-01-19 Felix Yang <felix.yang@huawei.com>
39793 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
39795 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
39796 uminp, smax_nanp, smin_nanp): New builtins.
39797 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
39798 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
39799 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
39800 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
39801 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
39802 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
39803 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
39804 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
39805 vpminnms_f32): Rewrite using builtin functions.
39807 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
39810 * omp-low.c (offload_symbol_decl): Remove variable.
39811 (get_offload_symbol_decl): Remove function.
39812 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
39813 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
39814 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
39815 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
39816 BUILT_IN_GOACC_UPDATE don't pass it at all.
39818 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39820 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
39823 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39825 * ipa-chkp.c (chkp_produce_thunks): Add early param
39826 to split thunks production into two passes. Keep
39827 'always_inline' function bodies after the first pass.
39828 (pass_data_ipa_chkp_early_produce_thunks): New.
39829 (pass_ipa_chkp_early_produce_thunks): New.
39830 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
39831 chkp_produce_thunks signature.
39832 (make_pass_ipa_chkp_early_produce_thunks): New.
39833 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
39834 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
39835 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
39837 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39839 * cgraph.c (cgraph_node::dump): Dump profile flags.
39841 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
39844 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
39845 reg appear first in the parallel.
39847 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39849 * ipa-reference.c (set_reference_optimization_summary,
39850 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
39852 (ignore_module_statics): New static var.
39853 (propagate_bits): If ipa-reference is disabled, do not look into local
39855 (analyze_function): Disable analysis when ipa_reference is disabled.
39856 (generate_summary): Do not dump when reference is disabled;
39857 collect vars accessed from functions with ipa-reference disabled.
39858 (get_read_write_all_from_node): When ipa-reference is disabled, use the
39860 (gate): Enable for LTO.
39861 (ignore_edge_p): New function.
39862 (propagate): Skip functions w/o ipa-reference analysis.
39863 * optc-save-gen.awk: Handle optimize_debug correctly.
39864 * opth-gen.awk: Likewise.
39865 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
39866 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
39867 fira-share-save-slots, fira-share-spill-slots,
39868 fmodulo-sched-allow-regmoves, fpartial-inlining,
39869 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
39870 ftracer, ftree-parallelize-loops, fassociative-math,
39871 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
39873 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
39874 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
39876 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
39879 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39882 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
39884 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
39886 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
39888 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
39889 Remove duplicate option listings.
39891 2015-01-18 Felix Yang <felix.yang@huawei.com>
39893 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
39894 (autofdo_source_profile::get_callsite_total_count,
39895 function_instance::get_function_instance_by_decl,
39896 string_table::get_index, string_table::get_index_by_decl,
39897 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
39898 Fix comment typos. Reformatting and minor code rearrangement.
39900 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39902 * config/rs6000/rs6000.md (probe_stack): Delete.
39903 (probe_stack_address): New.
39905 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39907 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
39908 to test for 32-bit ABIs, not !TARGET_POWERPC64.
39910 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39912 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
39913 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
39914 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
39916 (rs6000_libcall_value): Use the new function.
39918 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
39920 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
39922 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
39924 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
39925 implement a more precise life analysis for it during backward scan.
39927 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
39929 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
39931 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
39933 PR rtl-optimization/52773
39934 * calls.c (emit_library_call_value): When pushing arguments use
39935 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
39936 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
39937 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
39939 2015-01-17 Jeff Law <law@redhat.com>
39941 PR rtl-optimization/32790
39942 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
39943 not ZERO_EXTEND in SET_DESTs.
39945 2015-01-17 Alan Modra <amodra@gmail.com>
39947 * cprop.c (do_local_cprop): Revert last change.
39949 2015-01-16 DJ Delorie <dj@redhat.com>
39950 Nick Clifton <nickc@redhat.com>
39952 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
39953 (addhi3_real): Likewise. Fix [HL+0] syntax.
39954 (subqi3_real): Likewise.
39955 (subhi3_real): Likewise.
39956 (cbranchqi4_real): Likewise. Allow saddr,#imm.
39957 (cbranchhi4_real): Likewise.
39958 (cbranchhi4_real_inverted): Likewise.
39959 (cbranchsi4_real_lt): Likewise.
39960 (cbranchsi4_real_ge): Likewise.
39961 (cbranchsi4_real_ge): Likewise.
39962 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
39963 (sub<mode>3_virt): Likewise.
39964 (cbranchqi4_virt): Likewise.
39965 (cbranchhi4_virt): Likewise.
39966 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
39967 always use '[reg+imm]' even when imm is zero.
39968 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
39969 (rl78_general_operand): New.
39970 (rl78_nonimmediate_operand): New.
39971 (rl78_nonfar_operand): Use them.
39972 (rl78_nonfar_nonimm_operand): Likewise.
39973 (rl78_stack_based_mem): Fix.
39974 * config/rl78/constraints.md (Ibqi): New.
39979 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
39980 (iorqi3): Likewise.
39981 (xorqi3): Likewise.
39982 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
39984 * config/rl78/constrains (Qs8): New constraint.
39985 * config/rl78/rl78.c (rl78_flags_already_set): New function.
39986 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
39987 * config/rl78/rl78-real.md (update_Z): New attribute.
39988 Update patterns to set it.
39989 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
39990 shorter compare and branch sequence can be used.
39991 (cbranchhi4_real): Likewise.
39992 (cbranchhi4_real_inverted): Likewise.
39994 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
39995 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
39997 * config/rl78/rl78.c (rl78_get_name_encoding): New.
39998 (rl78_option_override): Allow -mes0 only if C.
39999 (characterize_address): Support subregs of symbol_refs.
40000 (rl78_addr_space_address_mode): Move. Add __near.
40001 (rl78_far_p): Likewise.
40002 (rl78_addr_space_pointer_mode): Likewise.
40003 (rl78_as_legitimate_address): Likewise.
40004 (rl78_addr_space_subset_p): Likewise.
40005 (rl78_addr_space_convert): Likewise.
40006 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
40007 symbols with -mes0.
40008 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
40010 (rl78_alloc_physical_registers_op1): Change logic to prefer
40011 symbol[BC] addressing.
40012 (frodata_section): New.
40013 (rl78_asm_init_sections): Initialize it.
40014 (rl78_select_section): Put __far readonly symbols in .frodata.
40015 (rl78_make_type_far): New.
40016 (rl78_insert_attributes): Force all readonly symbols to be
40018 (rl78_asm_out_integer): New.
40019 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
40020 * config/rl78/rl78.opt (-mes0): New.
40022 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
40023 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
40024 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
40025 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
40026 (rl78_saddr_p): New.
40027 (rl78_output_aligned_common): New.
40028 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
40029 (rl78_handle_saddr_attribute): New.
40030 (rl78_handle_naked_attribute): New.
40031 (rl78_attribute_table): Add saddr.
40032 (rl78_print_operand_1): Don't print '!' on saddr operands.
40033 (rl78_print_operand_1): Strip encodings.
40035 (rl78_strip_name_encoding): New.
40036 (rl78_attrlist_to_encoding): New.
40037 (rl78_encode_section_info): New.
40038 (rl78_asm_init_sections): New.
40039 (rl78_select_section): New.
40040 (rl78_output_labelref): New.
40041 (rl78_output_aligned_common): New.
40042 (rl78_asm_out_integer): New.
40043 (rl78_asm_ctor_dtor): New.
40044 (rl78_asm_constructor): New.
40045 (rl78_asm_destructor): New.
40047 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
40048 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
40049 (transcode_memory_rtx): Update.
40050 (rl78_expand_epilogue): Use A_REG instead of 0.
40052 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40054 * config/arm/arm-protos.h (struct tune_params): New field
40055 sched_autopref_queue_depth.
40056 * config/arm/arm.c (sched-int.h): Include header.
40057 (arm_first_cycle_multipass_dfa_lookahead_guard,)
40058 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
40059 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
40060 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
40061 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
40062 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
40063 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
40064 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
40065 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
40066 * config/arm/t-arm (arm.o): Update.
40067 * haifa-sched.c (update_insn_after_change): Update.
40068 (rank_for_schedule): Use auto-prefetcher model, if requested.
40069 (autopref_multipass_init): New static function.
40070 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
40071 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
40072 variable for debug dumps.
40073 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
40074 (autopref_multipass_dfa_lookahead_guard): New global function that
40075 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
40076 (init_h_i_d): Update.
40077 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
40078 * sched-int.h (enum autopref_multipass_data_status): New const enum.
40079 (autopref_multipass_data_): Structure for auto-prefetcher data.
40080 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
40081 (struct _haifa_insn_data:autopref_multipass_data): New field.
40082 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
40083 (autopref_multipass_dfa_lookahead_guard): Declare.
40085 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40087 * rtlanal.c (get_base_term): Handle SCRATCH.
40089 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40091 * config/aarch64/aarch64.c
40092 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
40093 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40095 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
40096 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40098 2015-01-17 Alan Modra <amodra@gmail.com>
40100 * cprop.c (do_local_cprop): Disallow replacement of fixed
40103 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40106 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40109 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
40111 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40112 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40114 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40116 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40117 * config/arm/thumb1.md: ... Here.
40119 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40121 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40122 TImode for TARGET_32BIT.
40124 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40126 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40127 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40129 (rs6000_abi_word_mode): New function.
40131 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40133 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40134 instead of UNITS_PER_WORD to describe the size of stack slots.
40136 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40138 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40139 as rs6000_promote_function_mode. Move comment to there.
40140 (rs6000_promote_function_mode): New function.
40142 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40144 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40145 -mpowerpc64 is active.
40147 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40149 PR middle-end/64353
40150 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40153 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40155 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40156 introduced in revision 219724.
40158 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40159 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40162 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40163 destination is not a GP reg.
40164 (*movdi_aarch64): Likewise.
40166 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
40169 * config/rs6000/default64.h: Revert ISA change.
40171 2015-01-16 Richard Biener <rguenther@suse.de>
40173 PR middle-end/64614
40174 * tree-ssa-uninit.c: Include tree-cfg.h.
40175 (MAX_SWITCH_CASES): New define.
40176 (convert_control_dep_chain_into_preds): Handle switch statements.
40177 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40178 (normalize_one_pred_1): Do not split bit-manipulations.
40181 2015-01-16 Richard Biener <rguenther@suse.de>
40183 PR tree-optimization/64568
40184 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40185 complex load rewriting for TARGET_MEM_REFs.
40187 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
40189 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40191 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
40194 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40196 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40197 (aarch64_lra_p): Remove.
40199 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40202 * ipa-chkp.h (chkp_instrumentable_p): New.
40203 * ipa-chkp.c: Include tree-inline.h.
40204 (chkp_instrumentable_p): New.
40205 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40206 Fix processing of not instrumentable functions.
40207 (chkp_versioning): Use chkp_instrumentable_p. Warn about
40208 not instrumentable functions.
40209 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40210 chkp_instrumentable_p.
40211 * tree-inline.h (copy_forbidden): New.
40212 * tree-inline.c (copy_forbidden): Not static anymore.
40214 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40216 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40219 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40221 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40222 type OP_OUT to OP_INOUT.
40224 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40226 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40227 (high x) y) to y if x and y have the same base.
40229 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40231 * config/arm/cortex-a57.md: New.
40232 * config/aarch64/aarch64.md: Include it.
40233 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40234 * config/aarch64/aarch64-tune.md: Regenerate.
40236 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
40239 * ccmp.c (expand_ccmp_next): New function.
40240 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40241 and compare insn sequence.
40242 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40243 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40244 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40245 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40246 (*ccmp_ior): Changed to ccmp_ior<mode>.
40247 (cmp<mode>): New pattern.
40248 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40250 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40252 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
40254 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40255 _mm256_bsrli_epi128): New.
40256 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40258 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40260 * expmed.c (store_bit_field_using_insv): Improve warning message.
40261 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40263 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40265 PR rtl-optimization/64011
40266 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40267 there is partial overflow.
40269 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40271 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40273 (nds32_expand_epilogue_v3pop): Likewise.
40274 * config/nds32/nds32.md (sibcall): Define this for sibling call
40276 (sibcall_register): Likewise.
40277 (sibcall_immediate): Likewise.
40278 (sibcall_value): Likewise.
40279 (sibcall_value_register): Likewise.
40280 (sibcall_value_immediate): Likewise.
40281 (sibcall_epilogue): Likewise.
40282 (epilogue): Pass false to indicate this is not a sibcall epilogue.
40283 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40284 (nds32_expand_epilogue_v3pop): Likewise.
40286 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40288 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40289 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40290 (return_internal): New.
40291 (return): Define this named pattern.
40292 (simple_return): Define this named pattern.
40293 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40294 pattern instead of unspec_volatile_func_return.
40295 (nds32_expand_epilogue_v3pop): Likewise.
40296 (nds32_can_use_return_insn): New function.
40298 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40300 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40301 * config/nds32/nds32.md (pop25return): New.
40302 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40303 pop25return pattern.
40305 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40307 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40308 -mforbid-fp-as-gp, and -mex9 options.
40310 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40312 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40313 remove -mgp-direct option.
40315 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40317 * doc/invoke.texi (--param early-inlining-insns): Update default value.
40318 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40320 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40322 * ipa-inline.c (inline_small_functions): Work around hints
40325 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
40328 * doc/invoke.texi (Option Summary): Document new Nios II
40330 (Nios II Options): Likewise.
40331 * config/nios2/nios2.opt: Add -mgpopt= option support.
40332 Modify existing -mgpopt and -mno-gpopt options to be aliases.
40333 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40334 * config/nios2/nios2.c (nios2_option_override): Adjust
40335 -mgpopt defaulting.
40336 (nios2_in_small_data_p): Return true for explicit small data
40337 sections even with -G0.
40338 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40341 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40344 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40346 (inline_call): Fix removal of aliases.
40348 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40350 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40351 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40352 * opts.c (common_handle_option): Add -fsanitize=vptr.
40353 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40354 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40355 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40356 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40357 (ubsan_expand_vptr_ifn): New prototype.
40358 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40359 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40360 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40361 expand_LOOP_VECTORIZED): Make argument nameless, remove
40363 (expand_UBSAN_VPTR): New function.
40364 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40366 (UBSAN_VPTR): New internal function.
40367 * sanopt.c (tree_map_traits): Renamed to ...
40368 (sanopt_tree_map_traits): ... this.
40369 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40370 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40371 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
40372 (maybe_optimize_ubsan_vptr_ifn): New function.
40373 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40374 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
40376 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40377 internal calls like pure functions for aliasing, even when they
40378 have other side-effects that prevent making them ECF_PURE.
40379 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40380 (ubsan_expand_vptr_ifn): New function.
40382 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
40384 PR rtl-optimization/64110
40385 * stmt.c (parse_output_constraint): Process '^' and '$'.
40386 (parse_input_constraint): Ditto.
40387 * lra-constraints.c (process_alt_operands): Process the new
40389 * ira-costs.c (record_reg_classes): Process the new constraint
40391 * genoutput.c (indep_constraints): Add '^' and '$'.
40392 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40393 * doc/md.texi: Add description of the new constraints.
40395 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
40396 Bernd Schmidt <bernds@codesourcery.com>
40397 Cesar Philippidis <cesar@codesourcery.com>
40398 James Norris <jnorris@codesourcery.com>
40399 Tom de Vries <tom@codesourcery.com>
40400 Ilmir Usmanov <i.usmanov@samsung.com>
40401 Dmitry Bocharnikov <dmitry.b@samsung.com>
40402 Evgeny Gavrin <e.gavrin@samsung.com>
40403 Jakub Jelinek <jakub@redhat.com>
40405 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40406 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40407 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40408 New function types.
40409 * builtins.c: Include "gomp-constants.h".
40410 (expand_builtin_acc_on_device): New function.
40411 (expand_builtin, is_inexpensive_builtin): Handle
40412 BUILT_IN_ACC_ON_DEVICE.
40413 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40415 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40417 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40418 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40419 i386/intelmic-offload.h.
40420 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40421 to libgomp and its dependencies.
40422 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40423 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40424 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40425 * config/ia64/hpux.h (LIB_SPEC): Likewise.
40426 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40427 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40428 * doc/generic.texi: Update for OpenACC changes.
40429 * doc/gimple.texi: Likewise.
40430 * doc/invoke.texi: Likewise.
40431 * doc/sourcebuild.texi: Likewise.
40432 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40433 GF_OMP_FOR_KIND_OACC_LOOP.
40434 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40435 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40436 GF_OMP_TARGET_KIND_OACC_UPDATE,
40437 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40439 * gimple.c: Update comments for OpenACC changes.
40440 * gimple.def: Likewise.
40441 * gimple.h: Likewise.
40442 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40443 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40444 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40445 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40446 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40448 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40449 * gimplify.c: Include "gomp-constants.h".
40450 Update comments for OpenACC changes.
40451 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40452 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40453 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40454 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40455 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40456 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40457 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40458 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40459 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40461 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40462 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40463 OMP_CLAUSE_SET_MAP_KIND.
40464 (gimplify_oacc_cache): New function.
40465 (gimplify_omp_for): Handle OACC_LOOP.
40466 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40468 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40469 OACC_EXIT_DATA, OACC_UPDATE.
40470 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40471 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40472 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40473 (gimplify_body): Consider flag_openacc next to flag_openmp.
40474 * lto-streamer-out.c: Include "gomp-constants.h".
40475 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40476 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40477 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40478 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40479 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40480 (BUILT_IN_ACC_ON_DEVICE): New builtins.
40481 * omp-low.c: Include "gomp-constants.h".
40482 Update comments for OpenACC changes.
40483 (struct omp_context): Add reduction_map, gwv_below, gwv_this
40485 (extract_omp_for_data, use_pointer_for_field, install_var_field)
40486 (new_omp_context, delete_omp_context, scan_sharing_clauses)
40487 (create_omp_child_function, scan_omp_for, scan_omp_target)
40488 (check_omp_nesting_restrictions, lower_reduction_clauses)
40489 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40490 Update for OpenACC changes.
40491 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40492 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40493 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40494 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40495 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40496 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
40498 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40499 Handle GF_OMP_FOR_KIND_OACC_LOOP.
40500 (expand_omp_target, lower_omp_target): Handle
40501 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40502 GF_OMP_TARGET_KIND_OACC_UPDATE,
40503 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40504 GF_OMP_TARGET_KIND_OACC_DATA.
40505 (pass_expand_omp::execute, execute_lower_omp)
40506 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40508 (offload_symbol_decl): New variable.
40509 (oacc_get_reduction_array_id, oacc_max_threads)
40510 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40511 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40512 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40513 (oacc_gimple_assign, oacc_initialize_reduction_data)
40514 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40516 (is_targetreg_ctx): Remove function.
40517 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40518 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40519 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40520 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40521 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40522 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40523 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40524 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40525 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40526 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40527 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40528 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40529 * tree-core.h: Update comments for OpenACC changes.
40530 (enum omp_clause_map_kind): Remove.
40531 (struct tree_omp_clause): Change type of map_kind member from enum
40532 omp_clause_map_kind to unsigned char.
40533 * tree-inline.c: Update comments for OpenACC changes.
40534 * tree-nested.c: Likewise. Include "gomp-constants.h".
40535 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
40536 (convert_tramp_reference_stmt, convert_gimple_call): Update for
40537 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40538 OMP_CLAUSE_SET_MAP_KIND.
40539 * tree-pretty-print.c: Include "gomp-constants.h".
40540 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
40541 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
40542 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
40543 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
40544 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40545 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
40546 instead of OMP_CLAUSE_MAP_*.
40547 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
40548 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
40549 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40550 * tree-streamer-in.c: Include "gomp-constants.h".
40551 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
40552 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
40553 * tree-streamer-out.c: Include "gomp-constants.h".
40554 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
40556 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
40557 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
40558 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
40559 * tree.c (omp_clause_num_ops): Update accordingly.
40560 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
40562 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
40563 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
40564 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
40565 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
40566 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
40567 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
40568 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
40569 (OMP_CLAUSE_SET_MAP_KIND): New macro.
40570 * varpool.c (varpool_node::get_create): Consider flag_openacc next
40572 * config/i386/intelmic-offload.h: New file.
40573 * config/nvptx/offload.h: Likewise.
40575 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40577 * explow.h: Remove duplicate contents.
40578 * dojump.h: Likewise.
40580 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
40582 * arm.c (arm_xgene_tune): Add default initializer for instruction
40585 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40589 * ipa.c (symbol_table::remove_unreachable_nodes):
40590 Do not put abstract origins into boundary.
40592 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
40594 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
40595 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
40597 2015-01-15 Steve Ellcey <sellcey@mips.com>
40599 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
40600 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
40601 builtins.def, and chkp-builtins.def.
40603 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
40605 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
40608 2015-01-15 Richard Biener <rguenther@suse.de>
40610 PR tree-optimization/61743
40611 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
40612 information on PHIs for some simple cases.
40614 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40616 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
40618 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
40619 * config/arm/arm-cores.def (xgene1): New entry.
40620 * config/arm/arm-tables.opt: Regenerate.
40621 * config/arm/arm-tune.md: Regenerate.
40622 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
40624 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40626 * tree-if-conv.c: Include hash-map.h.
40627 (aggressive_if_conv): New variable.
40628 (fold_build_cond_expr): Add simplification of non-zero condition.
40629 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
40630 destination block is not always executed.
40631 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
40632 than two predecessors if AGGRESSIVE_IF_CONV is true.
40633 (if_convertible_stmt_p): Fix commentary.
40634 (all_preds_critical_p): New function.
40635 (has_pred_critical_p): New function.
40636 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
40637 BB can have more than two predecessors and all incoming edges can be
40639 (predicate_bbs): Skip predication for loop exit block, use build2_loc
40640 to compute predicate for true edge.
40641 (find_phi_replacement_condition): Delete this function.
40642 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
40643 Allow interchange PHI arguments if EXTENDED is false.
40644 Change check that block containing reduction statement candidate
40645 is predecessor of phi-block since phi may have more than two arguments.
40646 (phi_args_hash_traits): New helper structure.
40647 (struct phi_args_hash_traits): New type.
40648 (phi_args_hash_traits::hash): New function.
40649 (phi_args_hash_traits::equal_keys): New function.
40650 (gen_phi_arg_condition): New function.
40651 (predicate_scalar_phi): Add handling of phi nodes with more than two
40652 arguments, delete COND and TRUE_BB arguments, insert body of
40653 find_phi_replacement_condition to predicate ordinary phi nodes.
40654 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
40655 delete call of find_phi_replacement_condition and invoke
40656 predicate_scalar_phi with two arguments.
40657 (insert_gimplified_predicates): Add assert that non-predicated block
40658 don't have statements to insert.
40659 (ifcvt_split_critical_edges): New function.
40660 (ifcvt_split_def_stmt): Likewise.
40661 (ifcvt_walk_pattern_tree): Likewise.
40662 (stmt_is_root_of_bool_pattern): Likewise.
40663 (ifcvt_repair_bool_pattern): Likewise.
40664 (ifcvt_local_dce): Likewise.
40665 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
40666 is copy of inner or outer loop force_vectorize field, invoke
40667 ifcvt_split_critical_edges, ifcvt_local_dce and
40668 ifcvt_repair_bool_pattern for aggressive if-conversion.
40670 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
40672 * config/aarch64/aarch64.md: Include xgene1.md.
40673 * config/aarch64/xgene1.md: New file.
40675 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40677 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
40678 xgene1 (APM XGene-1) core definition.
40679 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
40680 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
40681 * doc/invoke.texi: Document -mcpu=xgene1.
40683 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40685 * dojump.h: New header file.
40686 * explow.h: Likewise.
40687 * expr.h: Remove includes.
40688 Move expmed.c prototypes to expmed.h.
40689 Move dojump.c prototypes to dojump.h.
40690 Move alias.c prototypes to alias.h.
40691 Move explow.c prototypes to explow.h.
40692 Move calls.c prototypes to calls.h.
40693 Move emit-rtl.c prototypes to emit-rtl.h.
40694 Move varasm.c prototypes to varasm.h.
40695 Move stmt.c prototypes to stmt.h.
40696 (saved_pending_stack_adjust): Move to dojump.h.
40697 (adjust_address): Move to explow.h.
40698 (adjust_address_nv): Move to emit-rtl.h.
40699 (adjust_bitfield_address): Likewise.
40700 (adjust_bitfield_address_size): Likewise.
40701 (adjust_bitfield_address_nv): Likewise.
40702 (adjust_automodify_address_nv): Likewise.
40703 * explow.c (expr_size): Move to expr.c.
40704 (int_expr_size): Likewise.
40705 (tree_expr_size): Likewise.
40706 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40707 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40708 * genemit.c (main): Generate includes statistics.h, real.h,
40709 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
40711 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
40712 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
40713 explow.h, emit-rtl.h, stmt.h.
40714 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
40715 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
40716 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
40717 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
40718 emit-rtl.h, varasm.h, stmt.h.
40719 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
40720 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
40721 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
40722 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
40723 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40724 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
40725 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
40726 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
40727 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
40728 tm.h tree.h varasm.h vec.h wide-int.h.
40729 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40730 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40731 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
40732 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
40733 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
40734 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
40735 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
40736 * loop-iv.c: Likewise.
40737 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
40738 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
40739 statistics.h stmt.h tree.h varasm.h wide-int.h.
40740 * lra-constraints.c: Likewise.
40741 * lra-eliminations.c: Likewise.
40742 * lra-lives.c: Likewise.
40743 * lra-remat.c: Likewise.
40744 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40745 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
40746 statistics.h stmt.h tree.h varasm.h wide-int.h.
40747 * hw-doloop.c: Likewise.
40748 * ira-color.c: Likewise.
40749 * ira-emit.c: Likewise.
40750 * loop-doloop.c: Likewise.
40751 * loop-invariant.c: Likewise.
40752 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40753 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
40754 statistics.h stmt.h tree.h varasm.h wide-int.h.
40755 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
40756 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
40757 statistics.h stmt.h tree.h varasm.h wide-int.h.
40758 * combine-stack-adj.c: Likewise.
40761 * ifcvt.c: Likewise.
40762 * ira-costs.c: Likewise.
40763 * jump.c: Likewise.
40764 * lra-coalesce.c: Likewise.
40765 * lra-spills.c: Likewise.
40766 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40767 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
40768 stmt.h varasm.h wide-int.h.
40769 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40770 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40772 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
40773 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
40774 statistics.h stmt.h varasm.h wide-int.h.
40775 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
40776 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
40777 varasm.h wide-int.h.
40778 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
40779 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40780 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
40781 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
40782 statistics.h stmt.h.
40783 * config/tilepro/tilepro.c: Likewise.
40784 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
40785 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
40786 * config/pdp11/pdp11.c: Likewise.
40787 * config/xtensa/xtensa.c: Likewise.
40788 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
40789 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40791 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40792 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40793 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
40794 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40795 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40796 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
40797 * rtl-chkp.c: Likewise.
40798 * tree-chkp-opt.c: Likewise.
40799 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
40800 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40801 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
40802 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40803 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40804 statistics.h stmt.h.
40805 * tree-vect-data-refs.c: Likewise.
40806 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
40807 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40808 rtl.h statistics.h stmt.h varasm.h.
40809 * internal-fn.c: Likewise.
40810 * ipa-icf-gimple.c: Likewise.
40811 * lto-section-out.c: Likewise.
40812 * tree-data-ref.c: Likewise.
40813 * tree-nested.c: Likewise.
40814 * tree-outof-ssa.c: Likewise.
40815 * tree-predcom.c: Likewise.
40816 * tree-pretty-print.c: Likewise.
40817 * tree-scalar-evolution.c: Likewise.
40818 * tree-ssa-strlen.c: Likewise.
40819 * tree-vect-loop.c: Likewise.
40820 * tree-vect-patterns.c: Likewise.
40821 * tree-vect-slp.c: Likewise.
40822 * tree-vect-stmts.c: Likewise.
40823 * tsan.c: Likewise.
40824 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40825 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
40827 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
40828 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40829 statistics.h stmt.h varasm.h.
40830 * loop-unroll.c: Likewise.
40831 * ubsan.c: Likewise.
40832 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
40833 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
40835 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40836 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
40837 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
40838 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40839 statistics.h stmt.h.
40840 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
40841 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40842 statistics.h stmt.h varasm.h.
40843 * gimple-match-head.c: Likewise.
40844 * lto-cgraph.c: Likewise.
40845 * lto-section-in.c: Likewise.
40846 * lto-streamer-in.c: Likewise.
40847 * lto-streamer-out.c: Likewise.
40848 * tree-affine.c: Likewise.
40849 * tree-cfg.c: Likewise.
40850 * tree-cfgcleanup.c: Likewise.
40851 * tree-if-conv.c: Likewise.
40852 * tree-into-ssa.c: Likewise.
40853 * tree-ssa-alias.c: Likewise.
40854 * tree-ssa-copyrename.c: Likewise.
40855 * tree-ssa-dse.c: Likewise.
40856 * tree-ssa-forwprop.c: Likewise.
40857 * tree-ssa-live.c: Likewise.
40858 * tree-ssa-math-opts.c: Likewise.
40859 * tree-ssa-pre.c: Likewise.
40860 * tree-ssa-sccvn.c: Likewise.
40861 * tree-tailcall.c: Likewise.
40862 * tree-vect-generic.c: Likewise.
40863 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40864 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
40865 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40866 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
40867 * varasm.c: Likewise.
40868 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40869 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
40871 * init-regs.c: Likewise.
40873 * omp-low.c: Likewise.
40874 * stack-ptr-mod.c: Likewise.
40875 * tree-ssa-reassoc.c: Likewise.
40876 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40877 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
40879 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40880 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
40881 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40882 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
40883 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40884 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
40885 * tree-ssa-phiopt.c: Likewise.
40886 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40887 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40888 * config/fr30/fr30.c: Likewise.
40889 * config/frv/frv.c: Likewise.
40890 * expr.c: Likewise.
40891 * final.c: Likewise.
40892 * optabs.c: Likewise.
40893 * passes.c: Likewise.
40894 * simplify-rtx.c: Likewise.
40895 * stmt.c: Likewise.
40896 * toplev.c: Likewise.
40897 * var-tracking.c: Likewise.
40898 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40899 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40900 * lower-subreg.c: Likewise.
40901 * postreload-gcse.c: Likewise.
40903 * reginfo.c: Likewise.
40904 * store-motion.c: Likewise.
40905 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40906 fixed-value.h hashtab.h real.h stmt.h varasm.h.
40907 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40908 fixed-value.h hashtab.h statistics.h stmt.h.
40909 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40910 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40911 * except.c: Likewise.
40912 * explow.c: Likewise.
40913 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40914 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
40916 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40917 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
40918 * tree-ssa-structalias.c: Likewise.
40919 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40920 fixed-value.h insn-config.h real.h statistics.h.
40921 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40922 fixed-value.h insn-config.h real.h statistics.h stmt.h.
40923 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40924 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40925 * cfgbuild.c: Likewise.
40926 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40927 fixed-value.h real.h rtl.h statistics.h stmt.h.
40928 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40929 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40930 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40931 fixed-value.h real.h statistics.h stmt.h.
40932 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40933 fixed-value.h real.h statistics.h stmt.h varasm.h.
40934 * cprop.c: Likewise.
40935 * modulo-sched.c: Likewise.
40936 * postreload.c: Likewise.
40937 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40938 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
40939 statistics.h stmt.h varasm.h.
40940 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
40941 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40942 rtl.h statistics.h stmt.h varasm.h.
40943 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
40944 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
40946 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40947 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
40949 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
40950 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
40952 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
40953 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40954 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40955 function.h real.h statistics.h stmt.h varasm.h.
40956 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40957 insn-config.h real.h statistics.h stmt.h.
40958 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40959 statistics.h stmt.h.
40960 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
40961 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
40962 statistics.h stmt.h varasm.h.
40963 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
40964 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
40965 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40966 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
40967 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
40968 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40969 statistics.h stmt.h varasm.h.
40970 * ipa-polymorphic-call.c: Likewise.
40971 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
40972 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40973 statistics.h stmt.h.
40974 * config/c6x/c6x.c: Likewise.
40975 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
40976 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40977 statistics.h stmt.h varasm.h.
40978 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
40979 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
40981 * ipa-split.c: Likewise.
40982 * tree-eh.c: Likewise.
40983 * tree-ssa-dce.c: Likewise.
40984 * tree-ssa-loop-niter.c: Likewise.
40985 * tree-vrp.c: Likewise.
40986 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
40987 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
40989 * config/nds32/nds32-fp-as-gp.c: Likewise.
40990 * config/nds32/nds32-intrinsic.c: Likewise.
40991 * config/nds32/nds32-isr.c: Likewise.
40992 * config/nds32/nds32-md-auxiliary.c: Likewise.
40993 * config/nds32/nds32-memory-manipulation.c: Likewise.
40994 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
40995 * config/nds32/nds32-predicates.c: Likewise.
40996 * config/nds32/nds32.c: Likewise.
40997 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
40998 fixed-value.h hashtab.h real.h statistics.h.
40999 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
41000 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41001 * config/arm/arm.c: Likewise.
41002 * config/avr/avr.c: Likewise.
41003 * config/bfin/bfin.c: Likewise.
41004 * config/h8300/h8300.c: Likewise.
41005 * config/i386/i386.c: Likewise.
41006 * config/ia64/ia64.c: Likewise.
41007 * config/iq2000/iq2000.c: Likewise.
41008 * config/m32c/m32c.c: Likewise.
41009 * config/m32r/m32r.c: Likewise.
41010 * config/m68k/m68k.c: Likewise.
41011 * config/mcore/mcore.c: Likewise.
41012 * config/mep/mep.c: Likewise.
41013 * config/mips/mips.c: Likewise.
41014 * config/mn10300/mn10300.c: Likewise.
41015 * config/moxie/moxie.c: Likewise.
41016 * config/pa/pa.c: Likewise.
41017 * config/rl78/rl78.c: Likewise.
41018 * config/rx/rx.c: Likewise.
41019 * config/s390/s390.c: Likewise.
41020 * config/sh/sh.c: Likewise.
41021 * config/sparc/sparc.c: Likewise.
41022 * config/spu/spu.c: Likewise.
41023 * config/stormy16/stormy16.c: Likewise.
41024 * config/v850/v850.c: Likewise.
41025 * config/vax/vax.c: Likewise.
41026 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
41027 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41028 * config/msp430/msp430.c: Likewise.
41029 * predict.c: Likewise.
41030 * value-prof.c: Likewise.
41031 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
41032 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
41033 * config/microblaze/microblaze.c: Likewise.
41034 * config/nios2/nios2.c: Likewise.
41035 * config/rs6000/rs6000.c: Likewise.
41036 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41037 insn-config.h real.h rtl.h statistics.h stmt.h.
41038 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41039 insn-config.h real.h statistics.h stmt.h.
41040 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
41041 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41042 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
41043 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41044 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
41045 fixed-value.h real.h statistics.h stmt.h.
41046 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
41047 fixed-value.h statistics.h stmt.h.
41048 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
41051 2015-01-15 Jakub Jelinek <jakub@redhat.com>
41053 * gengtype.c (create_user_defined_type): Workaround
41054 -Wmaybe-uninitialized false positives.
41055 * cse.c (fold_rtx): Likewise.
41056 * loop-invariant.c (gain_for_invariant): Likewise.
41058 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
41060 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
41061 set the memory attributes in all cases but clear MEM_EXPR if need be.
41063 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
41065 PR tree-optimization/64434
41066 * cfgexpand.c (reorder_operands): New function.
41067 (expand_gimple_basic_block): Insert call of reorder_operands if
41070 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
41072 * config/mips/micromips.md (*swp): Remove explicit parallel.
41073 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
41074 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
41075 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
41076 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
41077 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
41078 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
41079 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
41080 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
41081 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
41082 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
41083 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
41084 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
41085 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
41086 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
41087 (mips_wrdsp): Likewise.
41088 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
41090 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
41091 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
41092 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
41093 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
41094 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
41095 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
41096 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
41097 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
41098 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
41100 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41102 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41103 (mips_print_operand): Support 'y' to print exact log2 in decimal
41105 * config/mips/mips.h (ISA_HAS_LSA): New define.
41106 (ISA_HAS_DLSA): Likewise.
41107 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41108 * config/mips/predicates.md (const_immlsa_operand): New predicate.
41110 2015-01-15 Martin Liska <mliska@suse.cz>
41113 * optc-save-gen.awk: Add support for array types.
41115 2015-01-15 Richard Biener <rguenther@suse.de>
41117 PR middle-end/64365
41118 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41119 for MEM_REF access functions with the same base can never partially
41122 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
41124 * common.opt: New option -fstack-protector-explicit.
41125 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41126 (stack_protect_decl_phase): Handle stack_protect attribute for
41127 explicit stack protection requests.
41128 (expand_used_vars): Similarly.
41129 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41130 * doc/extend.texi: Add documentation for "stack_protect" attribute.
41131 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41133 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
41136 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41138 (sh_extending_set_of_reg): New struct.
41139 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41140 sh_remove_reg_dead_or_unused_notes): New Declarations.
41141 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41142 sh_find_extending_set_of_reg, sh_split_tst_subregs,
41143 sh_extending_set_of_reg::use_as_extended_reg): New functions.
41144 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41145 convert to insn_and_split and use new function sh_split_tst_subregs.
41147 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
41149 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41151 (Optimization Options): Move -fuse-ld documentation to...
41152 (Link Options): ...here.
41154 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41156 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41158 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41159 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41160 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41161 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41162 instead of ZR for the memory operand of LL/SC.
41163 (compare_and_swap_12, sync_add<mode>): Likewise.
41164 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41165 (sync_new_<optab>_12, sync_nand_12): Likewise.
41166 (sync_old_nand_12, sync_new_nand_12): Likewise.
41167 (sync_sub<mode>, sync_old_add<mode>): Likewise.
41168 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41169 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41170 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41171 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41172 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41173 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41174 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41175 * doc/md.texi (ZC): Update description.
41177 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41179 * builtins.c (expand_builtin_atomic_exchange): Remove error when
41180 memory model is CONSUME.
41181 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41182 expand_builtin_atomic_store): Change invalid memory model errors to
41184 (expand_builtin_atomic_clear): Change invalid model errors to warnings
41185 and issue warning for CONSUME.
41187 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
41189 * lto-cgraph: Update function comments for
41190 lto_symtab_encoder_encode_*.
41192 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41194 * Makefile.in (site.exp): Do not set ENABLE_LTO.
41196 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41198 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41199 * lto-cgraph.c (select_what_to_stream): Remove argument, use
41200 lto_stream_offload_p instead.
41201 * lto-streamer.h (select_what_to_stream): Remove argument.
41202 * passes.c (ipa_write_summaries): Likewise.
41203 * tree-pass.h (ipa_write_summaries): Likewise.
41205 2015-01-14 Richard Biener <rguenther@suse.de>
41207 PR tree-optimization/59354
41208 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41209 groups larger than the slp group size as having gaps.
41211 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41213 PR middle-end/59448
41214 * builtins.c (get_memmodel): Promote consume to acquire always.
41216 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41219 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41222 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41225 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41227 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41228 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41229 AVX512VBMI, as it implies AVX512BW.
41231 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41234 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41235 (vec_unpacks_hi_v16sf): Ditto.
41237 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41239 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41242 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41244 * doc/invoke.texi (mapcs): Mention deprecation.
41245 (mapcs-frame): Likewise.
41247 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
41250 * config/arm/arm.c (callee_saved_reg_p): Define.
41251 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41252 register is callee saved instead of !call_used_regs[reg].
41253 (thumb1_compute_save_reg_mask): Likewise.
41255 2015-01-14 Hale Wang <hale.wang@arm.com>
41257 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41260 2015-01-14 Richard Biener <rguenther@suse.de>
41263 * tree-inline.c (insert_debug_decl_map): Check destination
41264 function MAY_HAVE_DEBUG_STMTS.
41265 (insert_init_debug_bind): Likewise.
41266 (insert_init_stmt): Remove redundant check.
41267 (remap_gimple_stmt): Drop debug stmts if the destination
41268 function has var-tracking assignments disabled.
41270 2015-01-14 Martin Liska <mliska@suse.cz>
41272 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41273 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41275 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41278 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41279 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41281 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41283 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41284 level from an ARCH; do not inject the default.
41285 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41286 MIPS_ISA_LEVEL_SPEC.
41287 (MIPS_ISA_NAN2008_SPEC): Update comment.
41288 (BASE_DRIVER_SELF_SPECS): Likewise.
41289 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41290 MIPS_DEFAULT_ISA_LEVEL_SPEC.
41291 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41292 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41293 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41295 2015-01-14 Richard Biener <rguenther@suse.de>
41297 PR tree-optimization/64493
41298 PR tree-optimization/64495
41299 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41300 assign the proper vectorized PHI to the inner loop exit PHIs.
41302 2015-01-14 Joey Ye <joey.ye@arm.com>
41304 * config/arm/arm.c (arm_compute_save_reg_mask):
41305 Do not save lr in case of tail call.
41306 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41308 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
41310 * tree-vrp.c (check_array_ref): Emit more warnings
41311 for warn_array_bounds >= 2.
41312 * common.opt: New option -Warray-bounds=.
41313 * doc/invoke.texi: Document -Warray-bounds=.
41315 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
41317 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41318 (mforbid-fp-as-gp): Remove.
41320 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41321 (nds32_symbol_load_store_p): Remove.
41322 (nds32_fp_as_gp_check_available): Clean up implementation.
41323 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41325 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41326 fp-as-gp and ex9 cases.
41328 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41330 * tree-profile.c (init_ic_make_global_vars): Drop workaround
41331 for bintuils bug 14342.
41332 (init_ic_make_global_vars): Likewise.
41333 (gimple_init_edge_profiler): Likewise.
41334 (gimple_gen_ic_func_profiler): Likewise.
41336 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
41338 * ipa-inline.c (inline_small_functions): Swap the operands in
41341 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41344 * ipa-inline-analysis.c (node_growth_cache): Remove.
41345 (initialize_growth_caches): Do not initialize it.
41346 (free_growth_caches): Do not free it.
41347 (do_estimate_growth): Rename to ...
41348 (estimate_growth): ... this one; drop growth cache code.
41349 (growth_likely_positive): Always go the heuristics way.
41350 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41351 (reset_edge_caches): Do not reset node growth.
41352 (heap_edge_removal_hook): Do not maintain cache.
41353 (inline_small_functions): Likewise; strenghten sanity check.
41354 (ipa_inline): Do not maintain caches.
41355 * ipa-inline.h (node_growth_cache): Remove.
41356 (do_estimate_growth): Remove to ...
41357 (estimate_growth): this one; remove inline version.
41358 (reset_node_growth_cache): Remove.
41360 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41363 * ipa-inline.c (inline_small_functions): Update callee keys after
41364 resolving speculation
41365 (inline_small_functions): Always check monotonicity of the queue.
41367 2015-01-13 Marek Polacek <polacek@redhat.com>
41369 PR middle-end/64391
41370 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41372 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41374 PR rtl-optimization/64286
41375 * ree.c (combine_reaching_defs): Move part of comment earlier,
41376 remove !SCALAR_INT_MODE_P check.
41377 (add_removable_extension): Don't add vector mode
41378 extensions if all uses of the source register aren't the same
41381 2015-01-13 Renlin Li <renlin.li@arm.com>
41383 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41384 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41386 2015-01-13 Martin Liska <mliska@suse.cz>
41388 * ipa-icf.c (sem_function::equals_private): Call new functions
41389 cl_target_option_print_diff and cl_optimization_print_diff.
41390 * optc-save-gen.awk (cl_target_option_print_diff): New function.
41391 (cl_optimization_print_diff): Likewise.
41392 * opth-gen.awk: Likewise.
41394 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
41396 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41397 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41398 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41399 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41400 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41401 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41403 2015-01-13 Andrew Pinski <apinski@cavium.com>
41405 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41406 instead of src mode.
41408 2015-01-13 Richard Biener <rguenther@suse.de>
41411 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41414 2015-01-13 Andrew Pinski <apinski@cavium.com>
41416 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41418 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41420 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41422 PR middle-end/63974
41423 * cfgexpand.c (expand_computed_goto): Don't call
41424 convert_memory_address here.
41426 2015-01-13 Richard Biener <rguenther@suse.de>
41428 PR tree-optimization/64406
41429 * tree-loop-distibution.c (pass_loop_distribution::execute):
41430 Reset the SCEV hashtable if we distributed anything.
41432 2015-01-13 Richard Biener <rguenther@suse.de>
41434 PR tree-optimization/64404
41435 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41436 SLP types for CSEd loads.
41438 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
41440 PR tree-optimization/64436
41441 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41442 merge of two symbolic numbers for a bitwise OR to ...
41443 (perform_symbolic_merge): This. Also fix computation of the range and
41444 end of the symbolic number corresponding to the result of a bitwise OR.
41446 2015-01-13 Richard Biener <rguenther@suse.de>
41448 PR tree-optimization/64568
41449 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41450 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41452 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41454 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41455 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41457 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41459 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41460 target-specific symbol_ref flag.
41461 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41462 resides in rodata section.
41463 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41464 (nds32_encode_section_info): New function.
41466 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41468 * config/nds32/nds32.md (call): Use pseudo instruction bal which
41469 clobbers TA_REGNUM if large code model is specified.
41470 (call_register): Likewise.
41471 (call_immediate): Likewise.
41472 (call_value): Likewise.
41473 (call_value_register): Likewise.
41474 (call_value_immediate): Likewise.
41476 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41478 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41479 (TARGET_CMODEL_MEDIUM): New macro.
41480 (TARGET_CMODEL_LARGE): New macro.
41481 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41482 code model setting in assembly code.
41484 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41486 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41487 Remove MASK_GP_DIRECT flag.
41488 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41489 one of the multilib default options.
41490 * config/nds32/nds32.opt (mgp-direct): Remove.
41491 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41492 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
41494 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41496 * config/nds32/nds32.opt (mcmodel): Add new option.
41497 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41498 to describe code model.
41500 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
41503 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41505 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
41507 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41508 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41509 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41510 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41511 __builtin_sh_set_fpscr.
41513 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41515 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41516 after a funtion name just to indicate it is a function.
41517 ([-fsanitize-undefined-trap-on-error]): Likewise.
41518 ([-fdbg-cnt=]): Likewise.
41519 ([-mmemcpy]): Likewise.
41520 ([-mflush-func]): Likewise.
41521 ([-msynci]): Likewise.
41523 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41525 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41528 2015-01-12 Jakub Jelinek <jakub@redhat.com>
41530 PR tree-optimization/64563
41531 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
41532 instead of != VR_VARYING.
41535 * config/i386/i386.c (ix86_expand_prologue): Add
41536 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
41538 PR tree-optimization/64454
41539 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
41540 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
41541 for signed or [0, op1 - 1] for unsigned modulo.
41542 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
41543 even if op1 does not satisfy integer_pow2p.
41546 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
41548 2015-01-12 Jeff Law <law@redhat.com>
41551 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
41552 (trunchiqi2, truncsihi2): Similarly.
41554 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
41555 rather than calling F.
41557 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
41559 * tsan.c (instrument_expr): Use force_gimple_operand.
41560 Use may_be_nonaddressable_p instead of is_gimple_addressable.
41562 2015-01-12 Richard Biener <rguenther@suse.de>
41564 PR tree-optimization/64530
41565 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
41568 2015-01-12 Richard Biener <rguenther@suse.de>
41570 PR middle-end/64357
41571 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
41574 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41576 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
41577 Cortex-A17 tuning parameters.
41578 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
41580 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41582 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
41583 * config/arm/arm.c (arm_macro_fusion_p): New function.
41584 (arm_macro_fusion_pair_p): Likewise.
41585 (TARGET_SCHED_MACRO_FUSION_P): Define.
41586 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
41587 (ARM_FUSE_NOTHING): Likewise.
41588 (ARM_FUSE_MOVW_MOVT): Likewise.
41589 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
41590 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
41591 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
41592 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
41593 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
41594 arm_cortex_a5_tune): Specify fuseable_ops value.
41596 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
41599 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
41600 test for PIE with copy reloc.
41601 * configure: Regenerated.
41603 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41605 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
41607 (arm_tls_descseq_addr): Likewise.
41608 (arm_gen_movmemqi): Likewise.
41609 (arm_expand_epilogue_apcs_frame): Likewise.
41610 (arm_expand_epilogue): Likewise.
41611 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
41614 2015-01-12 Martin Liska <mliska@suse.cz>
41617 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
41618 volatility for correct operands.
41620 2015-01-12 Martin Liska <mliska@suse.cz>
41622 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
41623 indication that a function is not leaf.
41624 (sem_function::compare_polymorphic_p): Likewise.
41626 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41628 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
41629 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
41630 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
41631 fold-const.h, tree-check.h.
41633 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41637 * ipa-inline.c (compute_uninlined_call_time,
41638 compute_inlined_call_time): Use counts for extra precision when
41640 (big_speedup_p): Fix formating.
41641 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
41642 (relative_time_benefit): Remove.
41643 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
41644 merge guessed and read profile paths.
41645 (inline_small_functions): Count only !optimize_size functions into
41646 initial size; be more lax about sanity check when profile is used;
41647 be sure to update inlined function profile when profile is read.
41649 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41652 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
41653 cost when edge becomes direct.
41654 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
41655 is resolved or when introducing new speculation.
41657 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
41661 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
41662 '||' to fix typo issue.
41664 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
41665 accept and return NULL.
41667 2015-01-12 Martin Liska <mliska@suse.cz>
41669 * cgraph.c (cgraph_edge::remove_callee): Move function to header
41670 file for being inlined.
41671 (cgraph_set_edge_callee): Delete.
41672 (cgraph_edge::redirect_callee): Move function to header file
41674 (cgraph_edge::make_direct): Use new function.
41675 (cgraph_edge::dump_edge_flags): New function created from
41676 static dump_edge_flags function.
41677 (cgraph_node::dump): Use new function.
41678 (cgraph_edge::verify_count_and_frequency): New function created
41679 from verify_edge_count_and_frequency.
41680 (cgraph_edge::verify_corresponds_to_fndecl): New function created
41681 from verify_edge_corresponds_to_fndecl.
41682 (verify_edge_corresponds_to_fndecl): Delete.
41683 (cgraph_node::verify_node): Use new function.
41684 * cgraph.h (cgraph_edge::set_callee): New function.
41685 (cgraph_edge::dump_edge_flags): Likewise.
41686 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
41688 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
41690 * ipa-utils.c (estimate_function_body_sizes): Do not
41691 free node params when called late with early=true.
41693 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
41695 * doc/md.texi (Instruction Patterns): Rewrite text for
41697 (Example): Likewise.
41699 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
41701 * doc/invoke.texi (Option Summary): Break long lines.
41702 [(-fdiagnostics-color)]: Put long literal in @smallexample
41704 [(-fsanitize-recover)]: Likewise.
41705 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
41706 [(-ffast-math)]: Likewise.
41707 [(--param max-inline-insns-recursive)]: Likewise.
41708 [(--param max-inline-recursive-depth)]: Likewise.
41709 [(-mno-text-section-literals)]: Likewise.
41711 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
41713 * doc/install.texi: Update for libgomp being renamed from "GNU
41714 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
41716 * doc/sourcebuild.texi: Likewise.
41718 2015-01-10 Anthony Green <green@moxielogic.com>
41720 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
41721 mul.x availability for moxiebox configuration.
41723 2015-01-09 Anthony Green <green@moxielogic.com>
41725 * config/moxie/moxie.md: Tabify assembly output.
41727 2015-01-09 Anthony Green <green@moxielogic.com>
41729 * config/moxie/moxie.md (CC_REG): Correct register definition.
41731 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
41733 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
41734 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
41737 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41739 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
41741 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
41742 Jakub Jelinek <jakub@redhat.com>
41744 PR middle-end/64412
41745 * lto-streamer.h (lto_stream_offload_p): New declaration.
41746 * lto-streamer.c (lto_stream_offload_p): New variable.
41747 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
41748 at the same time as section_name_prefix.
41749 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
41750 if lto_stream_offload_p.
41751 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
41752 stream TREE_TARGET_OPTION if lto_stream_offload_p.
41753 (write_ts_function_decl_tree_pointers): Don't
41754 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
41755 * tree-streamer-in.c (unpack_value_fields): Don't stream
41756 TREE_TARGET_OPTION in if ACCEL_COMPILER.
41757 (lto_input_ts_function_decl_tree_pointers): Don't stream
41758 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
41759 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
41760 instead of section_name_prefix string comparisons.
41762 2015-01-09 Jakub Jelinek <jakub@redhat.com>
41764 PR rtl-optimization/64536
41765 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
41768 2015-01-09 Michael Collison <michael.collison@linaro.org>
41770 PR tree-optimization/64322
41771 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
41772 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
41774 2015-01-09 Tom de Vries <tom@codesourcery.com>
41776 PR rtl-optimization/64539
41777 * regcprop.c (kill_clobbered_values): Factor out of ...
41778 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
41779 instead of note_stores with kill_clobbered_value.
41781 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41783 * ginclude/unwind-arm-common.h: Revert previous commit.
41785 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41787 * config.gcc (arm*-*-freebsd*): New configuration.
41788 * config/arm/freebsd.h: New file.
41789 * config.host: Add extra components for arm*-*-freebsd*.
41790 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
41791 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
41793 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41795 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
41797 * config/rs6000/t-rtems: Add e6500 multilibs.
41799 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41801 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
41804 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41806 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
41807 MULTILIB_EXCEPTIONS.
41809 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41811 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
41812 MULTILIB_EXCEPTIONS.
41814 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41816 * config/arm/t-rtems-eabi: Rename to...
41817 * config/arm/t-rtems: ...this.
41818 * config/arm/rtems-eabi.h: Rename to...
41819 * config/arm/rtems.h: ...this.
41820 * config.gcc (arm*-*-rtems*): Reflect changes above.
41822 2015-01-09 Richard Biener <rguenther@suse.de>
41824 PR tree-optimization/64410
41825 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
41827 (execute_update_addresses_taken): Deal with that.
41828 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
41829 loads/stores for complex variables.
41831 2015-01-09 Martin Liska <mliska@suse.cz>
41833 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
41835 (func_checker::compare_memory_operand): New function.
41836 (func_checker::compare_operand): Split case to newly
41838 (func_checker::compare_cst_or_decl): New function.
41839 (func_checker::compare_gimple_call): Identify
41841 (func_checker::compare_gimple_assign): Likewise.
41842 * ipa-icf-gimple.h: New function.
41844 2015-01-09 Martin Liska <mliska@suse.cz>
41847 * sreal.c (sreal::dump): Change unsigned format to signed for
41849 (sreal::to_double): Replace exp2 with scalbln.
41851 2015-01-09 Martin Liska <mliska@suse.cz>
41853 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
41854 * ipa-icf.c (sem_function::equals_private): Add support for target and
41855 (sem_item_optimizer::merge_classes): Remove redundant function
41856 optimization flags comparison.
41857 * tree.h (target_opts_for_fn): New function.
41859 2015-01-09 Tom de Vries <tom@codesourcery.com>
41861 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
41863 2015-01-09 Kito Cheng <kito@0xlab.org>
41865 PR rtl-optimization/64348
41866 * lra-constraints.c (split_reg): Fix caller-save store/restore
41867 instruction generation.
41869 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
41871 PR gcov-profile/61790
41872 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
41873 long long. Fallback to int64_t if host doesn't have long long and
41874 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
41876 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41878 PR tree-optimization/63989
41879 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
41880 from 1000 to 10000.
41881 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
41882 (get_stridx): If we don't have a record for certain SSA_NAME,
41883 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
41884 constant offset, call get_stridx_plus_constant.
41885 (get_stridx_plus_constant): New function.
41886 (zero_length_string): Don't use get_stridx here.
41889 PR middle-end/64388
41890 * dse.c (struct insn_info): Mention frame_read set also
41891 before reload for tail calls on some targets.
41892 (scan_insn): Revert 2014-12-22 change. Set frame_read
41893 also before reload for tail calls if
41894 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
41895 instead of add_non_frame_wild_read for non-const/memset
41896 tail calls after reload.
41898 2015-01-08 Jason Merrill <jason@redhat.com>
41900 * ubsan.c (do_ubsan_in_current_function): New.
41901 (pass_ubsan::gate): Use it.
41902 * ubsan.h: Declare it.
41903 * convert.c (convert_to_integer): Use it.
41905 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41908 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
41909 compare_code when it is unconditionally overwritten afterwards.
41910 Use ix86_reverse_condition instead of reverse_condition. Don't
41911 change code if *reverse_condition* returned UNKNOWN and don't
41912 swap ct/cf and negate diff in that case.
41914 2015-01-08 Mike Stump <mikestump@comcast.net>
41916 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
41917 (pass_tsan_O0::gate): Likewise.
41918 * extend.texi (Function Attributes): Add no_sanitize_thread
41921 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
41923 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
41924 for registering builtins.
41925 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
41926 add -fopenmp to the argv_obstack used when invoking
41927 compile_for_target.
41929 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
41930 add "-m32" or "-m64" to argv_obstack.
41931 (generate_host_descr_file): Likewise, when invoking host_compiler.
41932 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
41935 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41937 * config/sh/sh-mem.cc: Use constant as second operand when emitting
41940 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41943 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
41944 constant load if constant operand fits into I08.
41946 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41949 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
41950 and TREE_THIS_VOLATILE for MEM_REFs.
41951 (build5_stat): Fix up initialization of TREE_READONLY and
41952 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
41954 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
41957 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
41958 of r for the second alternative of the destination operand.
41960 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
41963 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
41965 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41967 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
41969 ([-fivar-visibility], [-fvisibility]): Likewise.
41971 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41973 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
41974 the file where @code, @command, etc is more appropriate.
41976 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
41978 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
41979 of -mrecip= documentation.
41981 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
41984 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
41985 correct reload handler if -m32 -mpowerpc64 is used.
41987 2015-01-06 Tom de Vries <tom@codesourcery.com>
41989 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
41991 2015-01-08 Christian Bruel <christian.bruel@st.com>
41994 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
41996 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
41998 PR tree-optimization/63259
41999 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
42000 if optab exists for 16bit byteswap.
42002 2015-01-06 Jakub Jelinek <jakub@redhat.com>
42004 * opts.c (common_handle_option): Add support for
42005 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
42006 * doc/invoke.texi: Document -fno-sanitize=all,
42007 -f{,no-}sanitize-recover=all. Document that
42008 -fsanitize=float-cast-overflow is not enabled
42009 by -fsanitize=undefined. Fix up documentation
42010 of -f{,no-}sanitize-recover.
42012 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
42014 * config.gcc: Add Visium support.
42015 * configure.ac: Likewise.
42016 * configure: Regenerate.
42017 * doc/extend.texi (interrupt attribute): Add Visium.
42018 * doc/invoke.texi: Document Visium options.
42019 * doc/install.texi: Document Visium target.
42020 * doc/md.texi: Document Visium constraints.
42021 * common/config/visium: New directory.
42022 * config/visium: Likewise.
42024 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42026 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
42027 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
42029 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42031 * combine.c (combine_validate_cost): Do not count the cost of a
42032 split I2 twice. Do not display it twice in the dump, either.
42034 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42036 Revert parts of r219199.
42037 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
42039 ([-Wtraditional]): Restore markup on <limits.h>.
42041 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
42044 * doc/invoke.texi: Document -Wsuggest-override.
42046 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
42048 PR rtl-optimization/64287
42049 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
42050 (process_options): Disable flag_ipa_ra if profiling.
42052 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
42054 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
42056 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
42058 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
42059 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
42060 put under #if TARGET_LOOPS guard.
42062 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
42064 * config/i386/i386.c (output_387_binary_op): Use std::swap.
42066 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
42068 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
42069 * rtl.h (refers_to_regno_p): Add overload.
42071 * bt-load.c: Likewise.
42072 * combine.c: Likewise.
42073 * df-scan.c: Likewise.
42074 * sched-deps.c: Likewise.
42075 * config/s390/s390.c: Likewise.
42076 * config/m32r/m32r.c: Likewise.
42077 * config/rs6000/spe.md: Likewise.
42078 * config/rs6000/rs6000.c: Likewise.
42079 * config/pa/pa.c: Likewise.
42080 * config/stormy16/stormy16.c: Likewise.
42081 * config/cris/cris.c: Likewise.
42082 * config/arc/arc.md: Likewise.
42083 * config/arc/arc.c: Likewise.
42084 * config/sh/sh.md: Likewise.
42085 * config/sh/sh.c: Likewise.
42086 * config/frv/frv.c: Likewise.
42088 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42091 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
42092 call as cleanup of the whole body.
42093 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
42094 * tsan.c (replace_func_exit): New function.
42095 (instrument_func_exit): Moved earlier.
42096 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
42097 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
42099 (tsan_pass): Don't call instrument_func_exit.
42100 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
42101 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42105 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42106 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42107 it to libubsan handler instead of EXPR. Fold comparisons earlier,
42108 if the result is integer_zerop, return NULL_TREE.
42109 * convert.c (convert_to_integer): Pass expr as ARG.
42111 PR tree-optimization/64465
42112 * tree-inline.c (redirect_all_calls): During inlining
42113 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42114 changed the stmt to a non-throwing call.
42116 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42118 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42119 etc markup throughout the file.
42121 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
42123 Enable experimental TSAN support for Ada.
42124 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42126 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42128 PR tree-optimization/64494
42129 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42130 clear SSA_NAME_ANTI_RANGE_P flag.
42132 2015-01-05 Marek Polacek <polacek@redhat.com>
42134 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42136 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42138 Update copyright years.
42140 * gcc.c (process_command): Update copyright notice dates.
42141 * gcov-dump.c: Ditto.
42143 * doc/cpp.texi: Bump @copying's copyright year.
42144 * doc/cppinternals.texi: Ditto.
42145 * doc/gcc.texi: Ditto.
42146 * doc/gccint.texi: Ditto.
42147 * doc/gcov.texi: Ditto.
42148 * doc/install.texi: Ditto.
42149 * doc/invoke.texi: Ditto.
42151 * auto-profile.c, auto-profile.h: Fix up Copyright line.
42153 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
42155 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42157 ([-fvtable-verify], [-fvtv-debug]): Likewise.
42158 ([-Wabi]): Likewise.
42159 ([-fmessage-length]): Likewise.
42160 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42161 ([-Wno-discarded-qualifiers]): Likewise.
42162 ([-Wnodiscarded-array-qualifiers]): Likewise.
42163 ([-Wno-virtual-move-assign]): Likewise.
42164 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42165 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42166 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42167 ([-fsanitize-undefined-trap-on-error]): Likewise.
42168 ([-floop-interchange]): Likewise.
42169 ([-ftree-coalesce-inlined-vars]): Likewise.
42170 ([-fvect-cost-model]): Likewise.
42171 ([-flto]): Likewise.
42172 ([--param]): Likewise.
42173 (Spec Files): Likewise.
42174 ([-mstrict-align]): Likewise.
42175 ([-mfix-cortex-a53-835769]): Likewise.
42176 ([-march], [-mtune]): Likewise.
42177 ([-mpic-register]): Likewise.
42178 ([-munaligned-access]): Likewise.
42179 ([-msp8]): Likewise.
42180 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42181 (AVR Built-in Macros): Likewise.
42182 ([-mpreferred-stack-boundary]): Likewise.
42183 ([-mtune-crtl]): Likewise.
42184 ([-mashf]): Likewise.
42185 ([-mmcu=]): Likewise.
42186 ([-minrt]): Likewise.
42187 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42188 ([-mupper-regs]): Likewise.
42189 ([-matomic-model]): Likewise.
42190 ([-mdiv]): Likewise.
42191 ([-mzdcbranch]): Likewise.
42192 ([-mdisable-callt]): Likewise.
42193 ([-msoft-float]): Likewise.
42194 ([-m8byte-align]): Likewise.
42195 ([-fstack-reuse]): Likewise.
42197 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42199 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42200 Fix markup, light copy-editing.
42201 ([-fauto-profile]): Rewrite to fix formatting and content
42204 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42206 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42207 Copy-edit description.
42208 ([-fisolate-erroneous-paths-attribute]): Likewise.
42209 * common.opt (fisolate-erroneous-paths-dereference):
42210 Copy-edit description.
42211 (fisolate-erroneous-paths-attribute): Likewise.
42213 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42215 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42218 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42220 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42221 ([-fvtv-debug]): Likewise.
42222 ([-Wc++-compat]): Likewise.
42223 ([-Wc++11-compat]): Likewise.
42224 ([-Wc++14-compat]): Likewise.
42225 ([-Wno-sized-deallocation]): Likewise.
42226 ([-femit-class-debug-always]): Likewise.
42227 ([-femit-struct-debug-detailed]): Likewise.
42228 ([-fno-keep-inline-dllexport]): Likewise.
42229 ([-fira-algorithm]): Likewise.
42230 ([-fira-region]): Likewise.
42231 ([-flra-remat]): Likewise.
42232 ([-fipa-ra]): Likewise.
42233 ([-fhoist-adjacent-loads]): Likewise.
42234 ([-fisolate-erroneous-paths-dereference]): Likewise.
42235 ([-fisolate-erroneous-paths-attribute]): Likewise.
42236 ([-ftree-switch-conversion]): Likewise.
42237 ([-ftree-tail-merge]): Likewise.
42238 ([-ftree-loop-if-convert]): Likewise.
42239 ([-ftree-loop-if-convert-stores]): Likewise.
42240 ([-ftree-loop-distribution]): Likewise.
42241 ([-ftree-loop-distribute-patterns]): Likewise.
42242 ([-flto-compression-level]): Likewise.
42243 ([-flto-report]): Likewise.
42244 ([-flto-report-wpa]): Likewise.
42245 ([-fuse-linker-plugin]): Likewise.
42246 ([-mfix-cortex-a53-835769]): Likewise.
42247 ([-mno-fix-cortex-a53-835769]): Likewise.
42248 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42249 explicit listing; add a note to the discussion indicating they
42250 exist. Reorder table to group similar options. Add missing
42251 @opindex entries. Add @need commands throughout the table to
42252 allow it to be split across multiple pages.
42253 ([-m8bit-idiv]): Fix @opindex.
42254 ([-mavx256-split-unaligned-load]): Likewise.
42255 ([-mavx256-split-unaligned-store]): Likewise.
42256 ([-mstack-protector-guard]): Likewise.
42257 ([-mcpu=]): Likewise.
42258 ([-mcpu]): Likewise.
42259 ([-mpointer-size=]): Likewise.
42261 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
42263 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42264 instead of `m' constraint. Likewise for unnamed movb comparison
42265 patterns using reg_before_reload_operand predicate.
42266 * config/pa/predicates.md (reg_before_reload_operand): Tighten
42267 predicate to reject register index and LO_SUM DLT memory forms
42270 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42272 * doc/invoke.texi (Option Summary): Fix spelling of
42273 -fdevirtualize-at-ltrans.
42274 ([-fdevirtualize]): Fix markup.
42275 ([-fdevirtualize-speculatively]): Fix typo.
42276 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
42277 implementor-speaky.
42278 * common.opt (fdevirtualize-at-ltrans): Likewise.
42279 * ipa-devirt.c: Fix typos in comments throughout the file.
42280 (ipa_devirt): Fix typos in format strings for dump output.
42282 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42284 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42285 discussion of defaults, light copy-editing.
42287 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42289 * tsan.c (instrument_expr): corrected previous checkin.
42291 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42293 Instrument bit field and unaligned accesses for TSAN.
42294 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42295 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42296 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42297 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42298 unaligned memory regions.
42300 2015-01-01 Anthony Green <green@moxielogic.com>
42302 * config/moxie/predicates.md (moxie_general_movsrc_operand):
42303 Restrict move source register offsets to 16 bits.
42305 Copyright (C) 2015 Free Software Foundation, Inc.
42307 Copying and distribution of this file, with or without modification,
42308 are permitted in any medium without royalty provided the copyright
42309 notice and this notice are preserved.