[AArch64] Don't allow -mgeneral-regs-only to change the .arch assembler directives
[gcc.git] / gcc / ChangeLog
1 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2
3 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
5 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
6 does not affect the assembler directives.
7
8 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
9
10 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
11 emit .machine and .machinemode to the top of the assembler file.
12 (TARGET_ASM_FILE_START): Provide target hook.
13 (s390_asm_output_machine_for_arch): Protect with
14 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
15
16 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
17
18 * config/s390/s390.opt (s390_arch_string): Remove.
19 (s390_tune_string): Likewise.
20 (s390_cost_pointer): Add Variable.
21 (s390_tune_flags): Add TargetVariable.
22 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
23 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
24 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
25 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
26 (mwarn-framesize=): Save option.
27 (mno-stack-guard, mno-stack-guard): New option.
28 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
29 (mwarn-framesize=): Convert to UInteger (negative values are rejected
30 now).
31 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
32 macros changeable through the GCC target pragma into a separate
33 function.
34 (s390_cpu_cpp_builtins): Likewise.
35 (s390_pragma_target_parse): New function, implement GCC target pragma
36 if enabled.
37 (s390_register_target_pragmas): Register s390_pragma_target_parse if
38 available.
39 * common/config/s390/s390-common.c (s390_handle_option):
40 Export.
41 Move setting s390_arch_flags to s390.c.
42 Remove s390_tune_flags.
43 Allow 0 as argument to -mstack-size (switch to default value).
44 Allow 0 as argument to -mstack-guard (switch off).
45 Remove now unnecessary explicit parsing code for -mwarn-framesize.
46 * config/s390/s390-protos.h (s390_handle_option): Export.
47 (s390_valid_target_attribute_tree): Export.
48 (s390_reset_previous_fndecl): Export.
49 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
50 and end of HTM and VX builtins.
51 (s390_asm_output_function_prefix): Declare hook.
52 (s390_asm_declare_function_size): Likewise.
53 * config/s390/s390-builtins.h (B_GROUP): Use macro.
54 * config/s390/s390-opts.h: Add comment about processor_type usage.
55 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
56 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
57 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
58 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
59 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
60 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
61 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
62 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
63 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
64 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
65 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
66 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
67 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
68 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
69 undefined.
70 (vec_all_nan): Rewrite as macro using statement expressions to avoid
71 that the vector keyword needs to be defined when including the file.
72 (vec_all_numeric): Likewise.
73 (vec_any_nan): Likewise.
74 (vec_any_numeric): Likewise.
75 * config/s390/s390.c (s390_previous_fndecl): New static variable.
76 (s390_set_current_function): New function.
77 (s390_cost): Wrapper macro to allow defining the cost table pointer in
78 the options file.
79 (processor_table): Table for march= and mtune= parsing.
80 (s390_init_builtins): Enable all builtins and types unconditionally.
81 (s390_expand_builtin): Generate an error message if builtin is not
82 supported by current options.
83 Correct an error message.
84 (s390_function_specific_restore): New function to set s390_cost.
85 (s390_asm_output_machine_for_arch): New function for emitting .machine
86 and .machinmode directives to the assembler file.
87 (s390_asm_output_function_prefix): Likewise.
88 (s390_asm_declare_function_size): Likewise.
89 (s390_asm_output_function_label): Add mdebug output for feature testing.
90 (s390_option_override): Move implementation into internal function.
91 (s390_option_override_internal): Likewise.
92 Implement option overriding based on current options.
93 (s390_valid_target_attribute_inner_p): New function implementing target
94 attribute logic.
95 (s390_valid_target_attribute_tree): Likewise.
96 (s390_valid_target_attribute_p): Likewise.
97 (s390_reset_previous_fndecl): Likewise.
98 (s390_set_current_function): Likewise.
99 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
100 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
101 (TARGET_OPTION_RESTORE): Likewise.
102 * doc/extend.texi: S390: Document target attribute and pragma.
103 * config.in: Regenerated.
104 * configure: Regenerated.
105 * configure.ac: S390: Check for .machinemode and .machine in gas.
106 S390: Check for architecture modifiers support in gas.
107
108 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
109
110 * c-family/c-common.c (c_common_attribute_table[]): Update max arguments
111 count for "simd" attribute.
112 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
113 * doc/extend.texi ("simd"): Describe new flags.
114
115 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
116
117 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
118 operand checked for alignment.
119
120 2015-12-04 Nathan Sidwell <nathan@acm.org>
121
122 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
123 emission too. Change 'no_arg_types' to 'prototyped'.
124 (write_fn_proto): Use write_one_arg for stdarg, static chain &
125 main.
126 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
127
128 2015-12-04 Richard Biener <rguenther@suse.de>
129
130 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
131 member and initialize it.
132 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
133 if necessary.
134 (sccvn_dom_walker::before_dom_children): If unreachable_dom
135 is set BB is not reachable either. Set unreachable_dom
136 if not set and BB is unreachable.
137
138 2015-12-04 Richard Biener <rguenther@suse.de>
139
140 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
141 query with GATHER_STATISTICS.
142
143 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
144
145 PR middle-end/65958
146 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
147 fields, add keep_stack and reorder them.
148 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
149 set it to false. Do not insert a stack save/restore pair if it has
150 been set to true by the gimplification of the statements.
151 Restore it to the saved value on exit if it is still false.
152 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
153 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
154 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
155 * doc/extend.texi (Variable Length): Document new behavior.
156 * doc/generic.texi (Blocks): Document new handling of VLAs.
157
158 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
159 Tristan Gingold <gingold@adacore.com>
160
161 PR middle-end/65958
162 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
163 Declare.
164 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
165 UNSPEC_PROBE_STACK_RANGE.
166 (blockage): New instruction.
167 (probe_stack_range_<PTR:mode>): Likewise.
168 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
169 function.
170 (aarch64_output_probe_stack_range): Likewise.
171 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
172 static builtin stack checking is enabled.
173 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
174 Define to 1.
175
176 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
177
178 PR target/68214
179 * config/arm/arm.md (*call_mem): Delete pattern.
180 (*call_value_mem): Likewise.
181 * config/arm/arm.c (output_call_mem): Delete.
182 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
183
184 2015-12-04 Bin Cheng <bin.cheng@arm.com>
185
186 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
187 aarch64_sync_memory_operand.
188
189 2015-12-04 Jakub Jelinek <jakub@redhat.com>
190
191 PR target/68655
192 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
193 (expand_vec_perm_1): Use it and recurse if everything else
194 failed. Use nd.perm instead of perm2.
195 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
196 instead of gen_lowpart for the target.
197 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
198 and recurse if everything else failed.
199
200 2015-12-04 Richard Biener <rguenther@suse.de>
201
202 PR middle-end/68636
203 * builtins.c (get_pointer_alignment_1): Take care of byte to
204 bit alignment computation overflow.
205
206 2015-12-04 Richard Biener <rguenther@suse.de>
207
208 PR middle-end/67438
209 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
210 a constant with single_use.
211
212 2015-12-04 Bin Cheng <bin.cheng@arm.com>
213 Jiong Wang <jiong.wang@arm.com>
214
215 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
216 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
217
218 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
219
220 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p)
221 Short circuit for !flag_strict_aliasing
222 (get_alias_set): Remove flag_strict_aliasing check.
223 (new_alias_set): Likewise.
224
225 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
226
227 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
228 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
229 (exynosm1_regmove_cost): Likewise.
230 (exynosm1_vector_cost): Likewise.
231 (exynosm1_tunings): Likewise.
232 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
233 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
234
235 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
236 Richard Biener <richard.guenther@gmail.com>
237
238 * cfgexpand.c (pass_expand::execute): Replace call to
239 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
240 * tree-ssa.c (delete_tree_ssa): Likewise.
241 * function.c (set_cfun): Call redirect_edge_var_map_empty.
242 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
243 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
244 (redirect_edge_var_map_empty): New.
245 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
246 (redirect_edge_var_map_empty): New.
247
248 2015-12-03 Jeff Law <law@redhat.com>
249
250 PR tree-optimization/68599
251 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
252 in call to loop_optimizer_init.
253 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
254 optimization to drop the assumptions/infinite notations if
255 the loop has a single exit.
256
257 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
258
259 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
260 the pattern cannot FAIL.
261 (vec_store_lanes@var{m}@var{n}): Likewise.
262 (maskload@var{m}@var{n}): Likewise.
263 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
264 in the name of the pattern.
265 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
266 floating-point mode and that all operands have that mode.
267 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
268 pattern cannot FAIL.
269 (sqrt@var{m}2): Document that mode m must be a scalar or vector
270 floating-point mode, that all operands have that mode, and that
271 the patterns cannot FAIL. Remove previous documentation referring
272 to @code{double} and @code{float}.
273 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
274 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
275 (copysign@var{m}3): Likewise.
276 (exp@var{m}2): Likewise. Explicitly state the base.
277 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
278 (btrunc@var{m}2, rint@var{m}2): Likewise.
279 (round@var{m}2): Likewise. Fix incorrect description of rounding
280 effect.
281 (ceil@var{m}2): As for round@var{m}2.
282 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
283 the instruction must not raise an inexact condition.
284 (scalb@var{m}3): Document previously-undocumented pattern
285 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
286 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
287 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
288 (significand@var{m}2): Likewise.
289 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
290 mode m and operand 0 is defined more freely. Document that @var{m}
291 can be a scalar or vector integer mode and that the pattern is not
292 allowed to FAIL.
293 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
294 (clrsb@var{m}2): Likewise, except that the description of the
295 mode was missing in this case.
296
297 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
298
299 * internal-fn.def (RSQRT): New function.
300 * optabs.def (rsqrt_optab): New optab.
301 * doc/md.texi (rsqrtM2): Document.
302 * target.def (builtin_reciprocal): Replace gcall argument with
303 a function decl. Restrict hook to machine functions.
304 * doc/tm.texi: Regenerate.
305 * targhooks.h (default_builtin_reciprocal): Update prototype.
306 * targhooks.c (default_builtin_reciprocal): Likewise.
307 * tree-ssa-math-opts.c: Include internal-fn.h.
308 (internal_fn_reciprocal): New function.
309 (pass_cse_reciprocals::execute): Call it, and build a call to an
310 internal function on success. Only call targetm.builtin_reciprocal
311 for machine functions.
312 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
313 second argument.
314 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
315 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
316 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
317 machine functions.
318 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
319 (aarch64_builtin_reciprocal): Replace gcall argument with a
320 function decl. Use use_rsqrt_p. Remove optimize_size check.
321 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
322 (aarch64_optab_supported_p): New function.
323 (TARGET_OPTAB_SUPPORTED_P): Define.
324 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
325 (rsqrt<mode>2): ...this.
326 * config/i386/i386.c (use_rsqrt_p): New function.
327 (ix86_builtin_reciprocal): Replace gcall argument with a
328 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
329 check. Only handle machine functions.
330 (ix86_optab_supported_p): Handle rsqrt_optab.
331 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
332 (rs6000_builtin_reciprocal): Replace gcall argument with a
333 function decl. Remove optimize_insn_for_size_p check.
334 Only handle machine functions.
335 (rs6000_optab_supported_p): New function.
336
337 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
338
339 PR target/68471
340 PR target/68472
341 * config/i386/i386.c (ix86_mitigate_rop): Don't call
342 compute_bb_for_insn again. Call df_insn_rescan_all.
343 * config/i386/i386.md (set_got_rex64): Override modrm_class.
344
345 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
346
347 2015-12-03 Nathan Sidwell <nathan@acm.org>
348
349 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
350 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
351 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
352 (nvptx_option_override): Set data ares for worker vars.
353 (nvptx_addr_space_from_sym): Delete.
354 (nvptx_encode_section_info): New.
355 (section_for_sym, section_for_decl): New.
356 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol
357 flags,
358 (nvptx_section_from_addr_space): Delete.
359 (nvptx_section_for_decl): Delete.
360 (nvptx_output_aligned, nvptx_declare_object_name,
361 nvptx_assemble_undefined_decl): Use section_for_decl, remove
362 unnecessary checks.
363 (nvptx_print_operand): Add 'D', adjust 'A'.
364 (nvptx_expand_worker_addr): Adjust unspec generation.
365 (TARGET_ENCODE_SECTION_INFO): Override.
366 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
367 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
368 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
369 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
370 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
371 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
372 (UNSPEC_TO_GENERIC): New.
373 (nvptx_register_or_symbolic_operand): Delete.
374 (cvt_code, cvt_name, cvt_str): Delete.
375 (convaddr_<cvt_name><mode> [P]): Delete.
376 (convaddr_<mode> [P]): New.
377
378 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
379
380 PR rtl-optimization/68624
381 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
382 blocks if they exist and simplify the logic choosing the order to emit
383 them in.
384
385 2015-12-03 Richard Biener <rguenther@suse.de>
386
387 PR tree-optimization/66051
388 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
389 on load group size. Do not pass in vectorization_factor.
390 (vect_transform_slp_perm_load): Do not require any permute support.
391 (vect_build_slp_tree): Do not pass in vectorization factor.
392 (vect_analyze_slp_instance): Do not compute vectorization
393 factor estimate. Use vector size instead of vectorization factor
394 estimate to split store groups for BB vectorization.
395
396 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
397
398 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
399 DECL as return value is allowed to have NULL bounds.
400
401 2015-12-03 Tom de Vries <tom@codesourcery.com>
402
403 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
404 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
405 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
406
407 2015-12-03 Richard Biener <rguenther@suse.de>
408
409 PR tree-optimization/67800
410 PR tree-optimization/68333
411 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
412 restriction to reduction contexts but allow SLP reductions as well.
413 (vect_recog_sad_pattern): Likewise.
414 (vect_recog_widen_sum_pattern): Likewise.
415
416 2015-12-03 Richard Biener <rguenther@suse.de>
417
418 PR tree-optimization/68639
419 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
420 belonging to different loops.
421 (vect_analyze_data_ref_accesses): Likewise.
422
423 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
424
425 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
426 Remove "prefix_extra".
427 (define_insn "vec_extract_hi_<mode>_mask"): New.
428 (define_insn "vec_extract_hi_<mode>"): Remove masking.
429
430 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
431
432 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
433 (propagate_pure_const): Use it; fix comments and optimize loops.
434
435 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
436
437 * ipa-pure-const.c (ignore_edge): Rename to ...
438 (ignore_edge_for_nothrow) ... this one; also ignore eges to
439 interposable functions or ones that can not throw.
440 (propagate_nothrow): Fix handling of availability.
441
442 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
443
444 PR ipa/68184
445 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
446
447 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
448 Sebastian Pop <s.pop@samsung.com>
449
450 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle isl_ast_op_zdiv_r.
451 (gcc_expression_from_isl_expr_op): Same.
452
453 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
454 Sebastian Pop <s.pop@samsung.com>
455
456 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
457 that insertion point is still in the region.
458
459 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
460 Sebastian Pop <s.pop@samsung.com>
461
462 PR tree-optimization/68550
463 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
464 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
465 statements.
466
467 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
468
469 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
470 * configure: Regenerate.
471 * config.in: Regenerate.
472 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
473 function.
474 (rs6000_output_function_prologue): Use it instead of checking
475 cfun->machine->r2_setup_needed. Use internal labels instead of
476 GNU as local label extension. Handle ELFv2 large code model.
477 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
478 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
479
480 2015-12-02 Jakub Jelinek <jakub@redhat.com>
481
482 PR target/68647
483 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
484 New functions.
485 (expand_unop): Use them.
486
487 2015-12-02 Marek Polacek <polacek@redhat.com>
488
489 PR c++/68653
490 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
491
492 2015-12-02 Nathan Sidwell <nathan@acm.org>
493
494 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
495 SHUFFLE defines.
496 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
497
498 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
499 Sebastian Pop <s.pop@samsung.com>
500
501 * graphite-dependences.c (scop_get_reads): Add extra dumps.
502 (scop_get_must_writes): Same.
503 (scop_get_may_writes): Same.
504 (compute_deps): Same.
505 * graphite-sese-to-poly.c (bounds_are_valid): New.
506 (pdr_add_data_dimensions): Call bounds_are_valid.
507
508 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
509 Sebastian Pop <s.pop@samsung.com>
510
511 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
512 * graphite-poly.c (apply_poly_transforms): Same.
513 * graphite.c (gate_graphite_transforms): Same.
514 * toplev.c (process_options): Same.
515
516 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
517
518 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
519 (mips_output_probe_stack_range): Rotate the loop and simplify.
520
521 2015-12-02 David Sherwood <david.sherwood@arm.com>
522
523 * config/aarch64/aarch64.md: New pattern.
524 * config/aarch64/aarch64-simd.md: Likewise.
525 * config/aarch64/iterators.md: New unspecs, iterators.
526
527 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
528
529 * dwarf2out.c (dwar2out_var_location): In addition to notes,
530 process indirect calls whose target is compile-time known.
531 Enhance pattern matching to get the SYMBOL_REF they embed.
532 (gen_subprogram_die): Handle such calls.
533 * final.c (final_scan_insn): For call instructions, invoke the
534 var_location debug hook only after the call has been emitted.
535
536 2015-12-02 Tom de Vries <tom@codesourcery.com>
537
538 * gimplify.c (enum gimplify_omp_var_data): Add enum value
539 GOVD_MAP_FORCE.
540 (oacc_default_clause): Fix default for scalars in oacc kernels.
541 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
542
543 2015-12-02 Tom de Vries <tom@codesourcery.com>
544
545 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
546 parameter base_pointers_restrict.
547 (omp_target_base_pointers_restrict_p): New function.
548 (scan_omp_target): Call scan_sharing_clauses with base_pointers_restrict
549 arg.
550
551 2015-12-02 Nathan Sidwell <nathan@acm.org>
552
553 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
554 (nvptx_underlying_object_mode): Delete.
555 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
556 (output_reg): New.
557 (nvptx_declare_function_name): Use output_reg. Remove punning
558 buffer.
559 (nvptx_output_mov_insn): New.
560 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
561 Use output_reg. Merge 't' and 'u' handling.
562 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
563 (struct machine_function): Remvoe punning_buffer_size.
564 (REGISTER_NAMES): Remove %punbuffer.
565 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
566 UNSPEC_CPLX_HIGHPART): Delete.
567 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
568 nvptx_output_mov_insn.
569 (*mov<mode>_insn [SDFM): Reorder constraints to match integer
570 moc. Use nvptx_output_mov_insn.
571 (highpartscsf2, set_highpartscsf2, lowpartscsf2,
572 set_lowpartscsf2): Delete.
573 (mov<mode> [SDCM]): Delete.
574
575 2015-12-02 Richard Biener <rguenther@suse.de>
576
577 * tree.h (tree_invariant_p): Declare.
578 * tree.c (tree_invariant_p): Export.
579 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
580 create SAVE_EXPRs but reject patterns if we would need to.
581
582 2015-12-02 Tom de Vries <tom@codesourcery.com>
583
584 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
585 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
586
587 >>>>>>> .r231221
588 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
589
590 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
591 (cstore<mode>4): Use it.
592
593 2015-12-02 Richard Biener <rguenther@suse.de>
594
595 PR tree-optimization/68625
596 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
597 cleanup_control_flow_bb.
598 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
599 on all BBs, then cleanup_tree_cfg_bb and finally iterate
600 over the worklist doing both.
601
602 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
603
604 PR tree-optimization/68432
605 * coretypes.h (optimization_type): New enum.
606 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
607 * doc/tm.texi: Regenerate.
608 * target.def (optab_supported_p): New hook.
609 * targhooks.h (default_optab_supported_p): Declare.
610 * targhooks.c (default_optab_supported_p): New function.
611 * predict.h (function_optimization_type): Declare.
612 (bb_optimization_type): Likewise.
613 * predict.c (function_optimization_type): New function.
614 (bb_optimization_type): Likewise.
615 * optabs-query.h (convert_optab_handler): Define an overload
616 that takes an optimization type.
617 (direct_optab_handler): Likewise.
618 * optabs-query.c (convert_optab_handler): Likewise.
619 (direct_optab_handler): Likewise.
620 * internal-fn.h (direct_internal_fn_supported_p): Take an
621 optimization_type argument.
622 * internal-fn.c (direct_optab_supported_p): Likewise.
623 (multi_vector_optab_supported_p): Likewise.
624 (direct_internal_fn_supported_p): Likewise.
625 * builtins.c (replacement_internal_fn): Update call to
626 direct_internal_fn_supported_p.
627 * gimple-match-head.c (build_call_internal): Likewise.
628 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
629 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
630 * tree.c (maybe_build_call_expr_loc): Likewise.
631 * config/i386/i386.c (ix86_optab_supported_p): New function.
632 (TARGET_OPTAB_SUPPORTED_P): Define.
633 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
634 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
635 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
636 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
637 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
638 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
639
640 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
641
642 * Makefile.in (GENSUPPORT_H): New macro.
643 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
644 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
645 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
646 (build/genconstants.o, build/genextract.o, build/genflags.o)
647 (build/gentarget-def.o): Use it.
648 (build/genemit.o): Likewise. Depend on internal-fn.def.
649 * genopinit.c: Move block comment to optabs.def.
650 (optab_tag, optab_def): Move to gensupport.h
651 (pattern): Likewise, renaming to optab_pattern.
652 (match_pattern): Move to gensupport.c
653 (gen_insn): Use find_optab.
654 (patterns, pattern_cmp): Replace pattern with optab_pattern.
655 (main): Likewise. Use num_optabs.
656 * optabs.def: Add comment that was previously in genopinit.c.
657 * gensupport.h (optab_tag): Moved from genopinit.c
658 (optab_def): Likewise, expanding commentary.
659 (optab_pattern): Likewise, after renaming from pattern.
660 (optabs, num_optabs, find_optab): Declare.
661 * gensupport.c (optabs): Moved from genopinit.c.
662 (num_optabs): New variable.
663 (match_pattern): Moved from genopinit.c.
664 (find_optab): New function, extracted from genopinit.c:gen_insn.
665 * genemit.c (nofail_optabs): New variable.
666 (emit_c_code): New function.
667 (gen_expand): Check whether the instruction is an optab that isn't
668 allowed to fail. Call emit_c_code.
669 (gen_split): Call emit_c_code here too.
670 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
671
672 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
673
674 * config/s390/predicates.md (const_mask_operand): New predicate.
675 * config/s390/s390-builtins.def: Set a smaller bitmask for a few builtins.
676 * config/s390/vector.md: Change predicate from immediate_operand
677 to either const_int_operand or const_mask_operand. Add special
678 insn conditions on patterns which have to exclude certain values.
679 * config/s390/vx-builtins.md: Likewise.
680
681 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
682
683 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
684 mode from DI to SI.
685
686 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
687
688 * config/s390/s390-builtin-types.def: New builtin types added.
689 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
690 * config/s390/s390.c (s390_expand_builtin): Always truncate
691 constants to the mode in the pattern.
692 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
693 respective builtin __builtin_s390_vec_splat_*.
694
695 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
696
697 * config/s390/s390-builtin-types.def: Sort builtin types.
698
699 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
700
701 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
702 condition for the RT flag.
703
704 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
705
706 * config/s390/constraints.md ("jKK"): New constraint.
707 * config/s390/s390.c (tm-constrs.h): Include for
708 satisfies_constraint_*.
709 (s390_legitimate_constant_p): Allow jKK constants. Use
710 satisfies_constraint_* also for the others.
711 (legitimate_reload_vector_constant_p): Likewise.
712 (print_operand): Allow h output modifier on vectors.
713 * config/s390/vector.md ("mov<mode>"): Add vrepi.
714
715 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
716
717 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
718 latter I->K.
719
720 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
721
722 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and
723 strvg.
724 ("bswaphi2"): New pattern.
725 New splitter for HI reg-reg bswap.
726
727 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
728
729 PR driver/68029
730 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
731 if it is the first parameter.
732
733 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
734
735 PR tree-optimization/68577
736 * tree-vect-stmts.c (simple_integer_narrowing): New function.
737 (vectorizable_call): Restrict internal function handling
738 to NONE and NARROW cases, using simple_integer_narrowing
739 to test for the latter. Add cost of narrowing operation
740 and insert it where necessary.
741
742 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
743
744 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
745 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
746 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
747
748 2015-12-01 Nathan Sidwell <nathan@acm.org>
749
750 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
751 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
752 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
753 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
754 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
755 (init_output_initializer): Call write_var_marker.
756 (nvptx_output_aligned_decl): New.
757 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
758
759 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
760
761 * c-common.c (parse_optimize_options): Do not silently ignore
762 -fstrict-aliasing changes.
763
764 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
765
766 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
767 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
768 stream TYPE_ALIAS_SET.
769 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
770 stream TYPE_ALIAS_SET.
771
772 2015-12-01 Nathan Sidwell <nathan@acm.org>
773
774 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
775 consider mode.
776
777 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
778
779 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
780 indirection for large and small code models.
781 (adjust_vperm): Likewise.
782
783 2015-12-01 Julian Brown <julian@codesourcery.com>
784 Cesar Philippidis <cesar@codesourcery.com>
785 James Norris <James_Norris@mentor.com>
786
787 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
788 support.
789 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
790 (is_gimple_omp_oacc): Add support for above.
791 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
792 (omp_notice_variable): Diagnose undefined implicit uses of
793 use_device variables in offloaded regions.
794 (gimplify_scan_omp_clauses): Add host_data, use_device
795 support. Diagnose undefined mapping of use_device variables in
796 OpenACC clauses.
797 (gimplify_omp_workshare): Add host_data support.
798 (gimplify_expr): Likewise.
799 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
800 * omp-low.c (lookup_decl_in_outer_ctx)
801 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
802 host_data regions.
803 (scan_sharing_clauses): Support use_device.
804 (check_omp_nesting_restrictions): Support host_data.
805 (expand_omp_target): Support host_data.
806 (lower_omp_target): Skip over outer host_data regions when looking
807 up decls. Support use_device.
808 (make_gimple_omp_edges): Support host_data.
809 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
810 clause.
811
812 2015-12-01 Marek Polacek <polacek@redhat.com>
813
814 PR middle-end/68582
815 * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
816 for VAR_DECLs.
817
818 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
819
820 PR tree-optimization/68474
821 * tree-call-cdce.c (use_internal_fn): Protect call to
822 gen_shrink_wrap_conditions.
823
824 2015-12-01 Christian Bruel <christian.bruel@st.com>
825
826 PR target/68617
827 * config/arm/arm.opt (unaligned_access): Save.
828 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
829 * config/arm/arm.c (arm_option_override): Move unaligned_access setting
830 (arm_option_override_internal): ... here.
831 * config/arm/arm.h (TARGET_32BIT_P): New macro.
832
833 2015-12-01 Richard Biener <rguenther@suse.de>
834
835 PR tree-optimization/68379
836 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
837 always base loads on the first used DR of a group.
838 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
839 Compute alignment of the first scalar element unconditionally.
840
841 2015-12-01 Richard Biener <rguenther@suse.de>
842
843 PR middle-end/68590
844 * genmatch.c (struct capture_info): Add match_use_count.
845 (capture_info::walk_match): Increment match_use_count.
846 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
847 replacements in a save_expr if they occur more often than
848 in the original expression.
849
850 2015-12-01 Richard Biener <rguenther@suse.de>
851
852 PR ipa/68470
853 * ipa-split.c (split_function): Handle main part not returning.
854
855 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
856
857 PR middle-end/68595
858 * tree-vect-stmts.c (vect_init_vector): Cast boolean
859 scalars to a proper value before building a vector.
860
861 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
862
863 * genattrtab.c (check_attr_test): Take an attr_desc instead of
864 an is_const flag. Put the file_location argument first.
865 Update recursive calls. Improve error messages.
866 (check_attr_value): Take a file location and use it instead
867 of attr->loc. Improve error messages. Update calls to
868 check_attr_test.
869 (check_defs): Update call to check_attr_value.
870 (make_canonical): Likewise.
871 (gen_attr): Likewise.
872 (main): Likewise.
873 (gen_insn_reserv): Update call to check_attr_test.
874
875 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
876
877 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
878
879 2015-12-01 Richard Biener <rguenther@suse.de>
880
881 PR middle-end/68590
882 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
883
884 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
885
886 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
887 odr_type_p): Move to ...
888 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
889 odr_type_p): here; miscro-optimize.
890
891 2015-12-01 Bin Cheng <bin.cheng@arm.com>
892
893 PR tree-optimization/68529
894 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
895 Compute no-overflow information for control iv.
896 (number_of_iterations_lt, number_of_iterations_le): Add new param.
897 (number_of_iterations_cond): Pass new argument to above functions.
898
899 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
900
901 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
902 inlining -fno-strict-aliasing into -fstrict-aliasing body.
903
904 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
905 Sebastian Pop <s.pop@samsung.com>
906
907 PR tree-optimization/68565
908 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
909 codegen_error. Fail when rhs of division operations is integer_zerop.
910 (ternary_op_to_tree): Early return on codegen_error.
911 (unary_op_to_tree): Same.
912 (nary_op_to_tree): Same.
913 (gcc_expression_from_isl_expr_op): Same.
914 (gcc_expression_from_isl_expression): Same.
915 (graphite_create_new_loop): On codegen_error continue generating
916 wrong code.
917 (graphite_create_new_loop_guard): Same.
918 (build_iv_mapping): Same.
919 (graphite_create_new_guard): Same.
920
921 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
922 Sebastian Pop <s.pop@samsung.com>
923
924 * graphite-isl-ast-to-gimple.c: Fix dump messages.
925 * graphite-scop-detection.c: Same.
926 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
927
928 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
929
930 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
931 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
932 (convert_local_omp_clauses): Likewise.
933
934 2015-11-30 Tom de Vries <tom@codesourcery.com>
935
936 PR tree-optimization/46032
937 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
938 factored out of ...
939 (find_func_aliases_for_call): ... here.
940 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
941 BUILT_IN_GOMP_PARALLEL.
942 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
943 function.
944
945 2015-11-30 Jakub Jelinek <jakub@redhat.com>
946
947 PR tree-optimization/68501
948 * target.def (builtin_reciprocal): Replace the 3 arguments with
949 a gcall * one, adjust description.
950 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
951 with a gcall * one.
952 * targhooks.c (default_builtin_reciprocal): Likewise.
953 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
954 targetm.builtin_reciprocal even on internal functions, adjust
955 the arguments and allow replacing an internal function with normal
956 built-in.
957 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
958 with a gcall * one. Handle internal fns too.
959 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
960 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
961 * doc/tm.texi (builtin_reciprocal): Document.
962
963 2015-11-30 Richard Biener <rguenther@suse.de>
964
965 PR tree-optimization/68592
966 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
967 on the pattern def sequence.
968
969 2015-11-30 Nathan Sidwell <nathan@acm.org>
970
971 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
972 (write_one_arg): Reorder parms, add 'sep' param.
973 (nvptx_write_function_decl): Rename to ...
974 (write_fn_proto): ... here. Do name replacement. Emit linaer
975 comment marker. Deal with both decls and defns. Simplify argument
976 formatting.
977 (write_function_decl_and_comment): Delete.
978 (write_func_decl_from_insn): Rename to ...
979 (write_fn_proto_from_insn): ... here. Don't do name replacement.
980 (nvptx_record_fndecl): Call write_fn_proto.
981 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
982 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
983 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
984
985 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
986
987 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
988 (define_insn "*k<logic><mode>"): Use new iterator.
989
990 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
991
992 PR target/28115
993 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
994 (sparc_adjust_cost): Add missing space.
995
996 2015-11-30 Richard Biener <rguenther@suse.de>
997
998 PR c/68162
999 * dwarf2out.c (gen_type_die_with_usage): Keep variant types
1000 of arrays.
1001
1002 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1003
1004 * tree-if-conv.c (struct ifc_dr): Add new tree
1005 base_predicate field.
1006 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1007 base ref, DR pairs and store base_predicate for write type DRs.
1008 (ifcvt_memrefs_wont_trap): Guard checks with
1009 -ftree-loop-if-convert-stores flag.
1010
1011 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1012
1013 * cgraph.c (cgraph_node::make_local): No name is unique during
1014 incremental linking.
1015 * cgraph.h (can_be_discarded_p): Update comment; also common and
1016 WEAK in named sections can be discarded; when doing incremental
1017 link do not rely on resolution being the final one.
1018 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1019 When symbol can be discarded, do not rely on resolution info.
1020 * symtab.c (symtab_node::nonzero_address): Take into account that
1021 symbol can be discarded.
1022 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1023 definition correctly.
1024 (function_and_variable_visibility): Do not set unique_name when
1025 incrementally linking.
1026
1027 2015-11-29 Nathan Sidwell <nathan@acm.org>
1028
1029 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1030 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1031 (ctrap<mode>): Use const0_operand.
1032
1033 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1034
1035 * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
1036 dump
1037
1038 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
1039
1040 PR target/28115
1041 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1042 recog_memoized test for insn and check recog_memoized for dep_insn.
1043
1044 2015-11-28 Nathan Sidwell <nathan@acm.org>
1045
1046 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1047 (FRAME_POINTER_CFA_OFFSET): Define.
1048 (struct nvptx_args): Use 'tree' type.
1049 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1050
1051 2015-11-28 Tom de Vries <tom@codesourcery.com>
1052
1053 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1054
1055 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
1056
1057 * doc/invoke.texi (Option Summary): Use negative form of
1058 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1059 sort alphabetically and re-justify.
1060
1061 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
1062
1063 PR rtl-optimization/68536
1064 * lra.c (lra_emit_add): Add code for null base.
1065 * lra-constraints.c (curr_insn_transform): Skip operators for
1066 subreg reloads.
1067
1068 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1069
1070 Revert
1071 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1072
1073 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1074 multiple_sets.
1075 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1076 are not modified by the final modified insns in the basic blocks.
1077
1078 2015-11-27 Nathan Sidwell <nathan@acm.org>
1079
1080 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1081 Don't declare.
1082 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1083 (nvptx_maybe_convert_symbolic_operand): Simplify.
1084 (nvptx_addr_space_from_address): Delete.
1085 (nvptx_print_operand): Adjust 'A' case.
1086
1087 2015-11-27 Richard Biener <rguenther@suse.de>
1088
1089 PR tree-optimization/68559
1090 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1091 peeling for gap checks ...
1092 * tree-vect-stmts.c (vectorizable_load): ... here and relax
1093 for SLP.
1094 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1095 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1096
1097 2015-11-27 Nathan Sidwell <nathan@acm.org>
1098
1099 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
1100 declare.
1101 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1102 (nvptx_record_fndecl): Don't return value, remove force
1103 argument. Require fndecl.
1104 (nvptx_record_libfunc): New.
1105 (nvptx_record_needed_decl): Deteermine how to record decl here.
1106 (nvptx_maybe_record_fnsym): New.
1107 (nvptx_expand_call): Don't record libfuncs here,
1108 (nvptx_maybe_convert_symbolic_operand): Use
1109 nvptx_maye_record_fnsym.
1110 (nvptx_assemble_integer): Reimplement with single switch.
1111 (nvptx_output_call_insn): Register libfuncs here.
1112 (nvptx_file_end): Adjust nvptx_record_fndecl call.
1113 * config/nvptx/nvptx.md (expand_movdi): Don't call
1114 nvptx_record_needed_decl.
1115
1116 2015-11-27 Richard Biener <rguenther@suse.de>
1117
1118 PR tree-optimization/68553
1119 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1120 generation for 1:1 permutations.
1121 (vect_transform_slp_perm_load): Detect 1:1 permutations.
1122
1123 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
1124
1125 * gimple.h (nonbarrier_call_p): Declare.
1126 * gimple.c (nonbarrier_call_p): New function.
1127 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1128 Also increment call phase for ASMs with vdef and potential barrier
1129 calls.
1130
1131 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1132
1133 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1134 multiple_sets.
1135 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1136 are not modified by the final modified insns in the basic blocks.
1137
1138 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1139
1140 PR rtl-optimization/68506
1141 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1142 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
1143 blocks.
1144
1145 2015-11-27 Martin Liska <mliska@suse.cz>
1146
1147 PR c++/68312
1148 * vec.h (release_vec_vec): New function.
1149
1150 2015-11-27 Jakub Jelinek <jakub@redhat.com>
1151
1152 PR tree-optimization/68552
1153 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1154 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
1155 or whether v0 == v1.
1156
1157 2015-11-27 Martin Liska <mliska@suse.cz>
1158
1159 * tree-ssa-uninit.c: Fix whitespaces in the source file.
1160 The change is just automatical.
1161
1162 2015-11-27 Martin Liska <mliska@suse.cz>
1163
1164 * tree-chkp.c (chkp_make_static_bounds): Release buffer
1165 used for string.
1166
1167 2015-11-27 Martin Liska <mliska@suse.cz>
1168
1169 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1170 Do not release memory for comp_alias_ddrs.
1171 * tree-vect-loop.c (destroy_loop_vec_info): Release
1172 the memory for all loop_vec_info.
1173
1174 2015-11-27 Martin Liska <mliska@suse.cz>
1175
1176 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1177 of a local-scope vec.
1178 (struct final_warning_record): Use auto_vec instead
1179 of vec.
1180
1181 2015-11-27 Richard Biener <rguenther@suse.de>
1182
1183 PR tree-optimization/68553
1184 * tree-vect-slp.c (vect_get_mask_element): Remove.
1185 (vect_transform_slp_perm_load): Implement in a simpler way.
1186
1187 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
1188
1189 PR rtl-optimization/67753
1190 PR rtl-optimization/64164
1191 * function.c (assign_parm_setup_block): Right-shift
1192 upward-padded big-endian args when bypassing the stack slot.
1193
1194 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
1195
1196 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1197 `-mcompact-branches='.
1198 (MIPS Options): Likewise.
1199
1200 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1201
1202 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1203
1204 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
1205
1206 * doc/install.texi (Prerequisites): Increase ISL requirement to
1207 0.14 or 0.15.
1208
1209 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1210
1211 * config/aarch64/arm_neon.h
1212 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1213 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1214 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1215 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1216 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1217 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1218 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1219 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1220 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1221 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1222 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1223 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1224
1225 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1226
1227 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1228 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1229 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1230 (vqrdmlshq_s16, vqrdmlshq_s32): New.
1231
1232 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1233
1234 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1235 ARM_FEATURE_QRDMX.
1236
1237 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
1238
1239 PR debug/53927
1240 * tree-nested.c (finalize_nesting_tree_1): Append a field to
1241 hold the frame base address.
1242 * dwarf2out.c (gen_subprogram_die): Generate for
1243 DW_AT_static_link a location description that computes the value
1244 of this field.
1245
1246 2015-11-26 Tom de Vries <tom@codesourcery.com>
1247
1248 revert:
1249 2015-11-25 Tom de Vries <tom@codesourcery.com>
1250
1251 * cfgloop.c (find_single_latch): New function, factored out of ...
1252 (flow_loops_find): ... here.
1253 (verify_loop_structure): Improve verification of loop->latch.
1254 * cfgloop.h (find_single_latch): Declare.
1255 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1256
1257 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1258
1259 * config/aarch64/aarch64-simd-builtins.def:
1260 Add missing changes from r230962.
1261
1262 2015-11-26 Nathan Sidwell <nathan@acm.org>
1263
1264 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1265 arg with name. Don't deal with split regs. Tweak formatting.
1266 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1267 (nvptx_output_call_insn): Don't deal with split regs here.
1268
1269 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1270
1271 * config/aarch64/aarch64-simd-builtins.def
1272 (sqrdmlah, sqrdmlsh): New.
1273 (sqrdmlah_lane, sqrdmlsh_lane): New.
1274 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1275
1276 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1277
1278 * config/aarch64/aarch64-simd.md
1279 (aarch64_sqmovun<mode>): Fix some white-space.
1280 (aarch64_<sur>qmovun<mode>): Likewise.
1281 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1282 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1283 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1284 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1285 (UNSPEC_SQRDMLSH): New.
1286 (SQRDMLH_AS): New.
1287 (rdma_as): New.
1288
1289 2015-11-26 Richard Biener <rguenther@suse.de>
1290
1291 PR tree-optimization/66721
1292 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1293 iteration cost earlier. Re-do analysis without SLP when
1294 vectorization using SLP fails and without has a chance to succeed.
1295
1296 2015-11-26 Richard Biener <rguenther@suse.de>
1297
1298 * genmatch.c (dt_simplify::gen_1): For generic wrap all
1299 multi-result-use captures in a SAVE_EXPR.
1300
1301 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1302
1303 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1304 (TARGET_SIMD_RDMA): New.
1305
1306 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1307
1308 * combine.c (subst): Do not return clobber of zero in widening mult
1309 case. Just return x unchanged if it is a no-op substitution.
1310
1311 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
1312
1313 PR target/68416
1314 * config/i386/i386.h (enum reg_class): Add
1315 bounds registers to ALL_REGS.
1316
1317 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1318
1319 PR tree-optimization/68128
1320 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1321 * gimplify.c: Include gimple-walk.h.
1322 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1323 (omp_notice_variable): Set flags to n->value if n already
1324 exists in target region, but we need to jump to do_outer.
1325 (omp_shared_to_firstprivate_optimizable_decl_p,
1326 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1327 functions.
1328 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1329 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1330 not modified in the body. Call omp_mark_stores for outer
1331 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1332 in the body or on OMP_CLAUSE_LASTPRIVATE.
1333 (gimplify_adjust_omp_clauses): Add body argument, call
1334 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1335 Set OMP_CLAUSE_SHARED_READONLY
1336 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1337 not modified in the body. Call omp_mark_stores for outer
1338 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1339 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1340 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1341 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1342 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1343 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1344 * tree-nested.c (convert_nonlocal_omp_clauses,
1345 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1346 non-local vars or local vars referenced from nested routines.
1347 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1348 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
1349 TREE_READONLY, don't call use_pointer_for_field with non-NULL
1350 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1351
1352 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
1353
1354 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1355 about signed left shift stronger and clarify the cases when they're
1356 broken.
1357
1358 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1359 Bernd Schmidt <bschmidt@redhat.com>
1360
1361 PR rtl-optimization/67226
1362 * calls.c (store_one_arg): Take into account
1363 crtl->args.pretend_args_size when checking for overlap between
1364 arg->value and argblock + arg->locate.offset during sibcall
1365 optimization.
1366
1367 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
1368
1369 * config/aarch64/aarch64.md (cbranch<mode>4): Use
1370 aarch64_fp_compare_operand.
1371 (store_pairsf): Use aarch64_reg_or_fp_zero.
1372 (store_pairdf): Likewise.
1373 (cstore<mode>4): Use aarch64_fp_compare_operand.
1374 (cmov<mode>6): Likewise.
1375 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1376
1377 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
1378 Sebastian Pop <s.pop@samsung.com>
1379
1380 PR tree-optimization/68453
1381 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1382 not redirect edges already pointing to their destination.
1383 (translate_isl_ast_node_for): Split edges after loops to create
1384 basic blocks for close phi nodes. Save merge points at the end of
1385 a loop guard.
1386 (translate_isl_ast_node_if): Save merge points at the end of the
1387 if region.
1388 (add_close_phis_to_outer_loops): New.
1389 (add_close_phis_to_merge_points): New.
1390 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1391 (copy_bb_and_scalar_dependences): Do not split basic blocks on
1392 loop close phi locations.
1393
1394 2015-11-25 Jan Hubicka <jh@suse.cz>
1395
1396 * ipa-visibility.c (cgraph_externally_visible_p,
1397 varpool_node::externally_visible_p): When doing incremental linking,
1398 hidden symbols may be still used later.
1399 (update_visibility_by_resolution_info): Do not drop weak during
1400 incremental link.
1401 (function_and_variable_visibility): Fix formating.
1402 * flag-types.h (lto_linker_output): Declare.
1403 * common.opt 9flag_incremental_link): New flag.
1404
1405 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
1406
1407 * config/rs6000/constraints.md (wb constraint): New constraint for
1408 ISA 3.0 d-form scalar addressing.
1409
1410 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
1411 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
1412 Altivec registers. Add wb constraint for Altivec registers with
1413 D-form addressing. If we have ISA 3.0 d-form support, undo
1414 secondary reload support for using FPR registers if we want to do
1415 D-form addressing.
1416 (rs6000_debug_reg_global): Likewise.
1417 (rs6000_setup_reg_addr_masks): Likewise.
1418 (rs6000_init_hard_regno_mode_ok): Likewise.
1419 (rs6000_secondary_reload): Likewise.
1420 (rs6000_preferred_reload_class): Likewise.
1421 (rs6000_secondary_reload_class): Likewise.
1422
1423 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
1424 constraint.
1425
1426 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
1427 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
1428 (f32_lm2): Likewise.
1429 (f32_li2): Likewise.
1430 (f32_sr2): Likewise.
1431 (f32_sm2): Likewise.
1432 (f32_si2): Likewise.
1433 (f64_p9): Likewise.
1434 (extendsfdf2_fpr): Likewise.
1435 (mov<mode>_hardfloat): Likewise.
1436 (mov<mode>_hardfloat32): Likewise.
1437 (mov<mode>_hardfloat64): Likewise.
1438
1439 * doc/md.texi (RS/6000 constraints): Document wb constraint.
1440 Fixup we constraint documentation.
1441
1442 2015-11-25 Tom de Vries <tom@codesourcery.com>
1443
1444 * omp-low.c (pass_expand_omp_ssa::clone): New function.
1445 * passes.def: Add pass_oacc_kernels pass group.
1446 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
1447
1448 2015-11-25 Tom de Vries <tom@codesourcery.com>
1449
1450 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
1451 Declare.
1452 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
1453 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
1454 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
1455 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
1456
1457 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1458
1459 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
1460 TV_IPA_LTO_OUTPUT): New.
1461 * lto-compress.c: Include timevar.h
1462 (lto_end_compression, lto_end_uncompression): Add timers.
1463 * langhooks.c: Include timevar.h
1464 (lhd_append_data): Add timer.
1465
1466 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1467
1468 * varasm.c (default_elf_asm_output_limited_string,
1469 default_elf_asm_output_ascii): Replace fprintf by putc.
1470
1471 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
1472
1473 PR rtl-optimization/67954
1474 * lra-constraints.c (curr_insn_transform): Add check on scratch
1475 pseudo when change class to NO_REGS. Add an assert.
1476
1477 2015-11-25 Nathan Sidwell <nathan@acm.org>
1478
1479 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
1480 constraint is 'n'.
1481 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
1482 number.
1483 (nvptx_write_function_decl): Number args from 0.
1484 (nvptx_declare_function_name): Likewise.
1485 (nvptx_function_incoming_arg): Likewise.
1486 (nvptx_output_call_insn): Correct formatting.
1487
1488 2015-11-25 David Sherwood <david.sherwood@arm.com>
1489
1490 * optabs.def: Add new optabs fmax_optab/fmin_optab.
1491 * internal-fn.def: Add new fmax/fmin internal functions.
1492 * doc/md.texi: Add fmin and fmax patterns.
1493
1494 2015-11-25 Jason Merrill <jason@redhat.com>
1495
1496 PR c++/68385
1497 * tree.c (integer_zerop, integer_onep, integer_each_onep)
1498 (integer_all_onesp, integer_minus_onep, integer_pow2p)
1499 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
1500 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
1501
1502 2015-11-25 Richard Biener <rguenther@suse.de>
1503
1504 PR middle-end/68528
1505 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
1506 on stripped operands.
1507
1508 2015-11-25 Nathan Sidwell <nathan@acm.org>
1509
1510 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
1511 (nvptx_declare_function_name): Move assignments next to register
1512 declarations, and process params here.
1513
1514 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
1515
1516 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
1517 both the symbol and the "dot" symbol for function descriptors. Fix
1518 inversion for rename of symbols with dollar sign.
1519
1520 2015-11-25 Tom de Vries <tom@codesourcery.com>
1521
1522 * cfgloop.c (find_single_latch): New function, factored out of ...
1523 (flow_loops_find): ... here.
1524 (verify_loop_structure): Improve verification of loop->latch.
1525 * cfgloop.h (find_single_latch): Declare.
1526 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1527
1528 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1529
1530 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
1531 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
1532 (STARTFILE_SPEC): Use %(startfile_vtv).
1533 (ENDFILE_SPEC): Use %(endfile_vtv).
1534 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
1535 ENDFILE_VTV_SPEC.
1536
1537 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
1538
1539 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
1540
1541 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
1542 noce_can_store_speculate): Delete.
1543 (noce_process_if_block): Don't try to handle single MEM stores.
1544 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
1545 * alias.c (memory_must_be_modified_in_insn_p): Delete.
1546
1547 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1548
1549 PR rtl-optimization/68435
1550 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
1551 for conflicts between a, b and the set destinations.
1552
1553 2015-11-25 Richard Biener <rguenther@suse.de>
1554
1555 PR tree-optimization/68517
1556 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
1557 Properly handle zero-sized types.
1558
1559 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1560
1561 * ipa-inline-analysis.c: Include gimplify.h
1562 (set_cond_stmt_execution_predicate,
1563 set_switch_stmt_execution_predicate): Be sure to not leak locations
1564 to function body.
1565
1566 2015-11-25 Jakub Jelinek <jakub@redhat.com>
1567
1568 PR target/67089
1569 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
1570 match_uaddsub_overflow): New functions.
1571 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
1572
1573 2015-11-25 Richard Biener <rguenther@suse.de>
1574
1575 PR tree-optimization/68492
1576 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
1577 op from scalars after operand swapping.
1578
1579 2015-11-25 Richard Biener <rguenther@suse.de>
1580
1581 PR tree-optimization/68502
1582 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
1583 check that the step is a multiple of the type size.
1584
1585 2015-11-24 Michael Collison <michael.collison@linaro.org>
1586
1587 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
1588 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
1589 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
1590
1591 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
1592
1593 * frame-header-opt.c (gate): Check for optimize > 0.
1594 (has_inlined_assembly): New function.
1595 (needs_frame_header_p): Remove is_leaf_function check,
1596 add argument type check.
1597 (callees_functions_use_frame_header): Add is_leaf_function
1598 and has_inlined_assembly calls..
1599 (set_callers_may_not_allocate_frame): New function.
1600 (frame_header_opt): Add is_leaf_function call, add
1601 set_callers_may_not_allocate_frame call.
1602 * config/mips/mips.c (mips_compute_frame_info): Add check
1603 to see if callee saved regs can be put in frame header.
1604 (mips_expand_prologue): Add check to see if step1 is zero,
1605 fix cfa restores when using frame header to store regs.
1606 (mips_can_use_return_insn): Check to see if registers are
1607 stored in frame header.
1608 * config/mips/mips.h (machine_function): Add
1609 callers_may_not_allocate_frame and
1610 use_frame_header_for_callee_saved_regs fields.
1611
1612 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1613
1614 PR rtl-optimization/68520
1615 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
1616 its bit was already set in BB_WITH.
1617
1618 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1619
1620 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
1621 double check that type is main variant.
1622 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
1623 variant.
1624 (verify_type_variant): Verify that variants have no
1625 TYPE_ALIAS_SET_KNOWN_P set
1626 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
1627 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
1628 only for main variants; stream TYPE_ALIAS_SET as a bit.
1629 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
1630 accordingly.
1631
1632 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1633
1634 * tree.c (make_vector_type): Properly compute canonical type of the
1635 main variant.
1636 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
1637 a main variant.
1638
1639 2015-11-24 Nathan Sidwell <nathan@acm.org>
1640
1641 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
1642 VOIDmode, don't alter incoming mode.
1643 (nvptx_split_reg_p): Delete.
1644 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
1645 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
1646 maybe_split_mode calls.
1647 (nvptx_print_operand): Use maybe_split_mode.
1648
1649 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1650
1651 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
1652 only for types where LTO sets them.
1653 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
1654 (make_vector_type): Likewise.
1655 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
1656 * tree.h (canonical_type_used_p): New inline.
1657 * alias.c (get_alias_set): Handle structural equality for all
1658 types that pass canonical_type_used_p.
1659 (record_component_aliases): Look through all types with
1660 record_component_aliases for possible pointers; sanity check that
1661 the alias sets match.
1662
1663 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1664
1665 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
1666
1667 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1668
1669 * tree.c (free_node): New function.
1670 (type_hash_canon): Use it.
1671 * tree.h (free_node): Declare.
1672
1673 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
1674 Michael Meissner <meissner@linux.vnet.ibm.com>
1675
1676 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
1677 (Fv2): New mode attribute to be used when ISA 2.07 instructions
1678 are used on SF values, and ISA 2.06 instructions on DF values.
1679 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
1680 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
1681 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
1682 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
1683 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
1684 (fre<Fs>): Use <Fv2> instead of <Fv>.
1685 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
1686 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
1687 (xsrdpi<mode>): Add support for the lround function.
1688 (lround<mode>di2): Likewise.
1689 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1690 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1691 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1692 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1693
1694 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1695 Sebastian Pop <s.pop@samsung.com>
1696
1697 PR tree-optimization/67984
1698 * graphite-isl-ast-to-gimple.c (is_constant): New.
1699 (get_rename): Call is_constant.
1700 (get_new_name): Same.
1701
1702 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1703 Sebastian Pop <s.pop@samsung.com>
1704
1705 * graphite-dependences.c: Only include graphite.h.
1706 * graphite-isl-ast-to-gimple.c: Same.
1707 * graphite-optimize-isl.c: Same.
1708 * graphite-poly.c: Same.
1709 * graphite-scop-detection.c: Same.
1710 * graphite-sese-to-poly.c: Same.
1711 * graphite.c: Same.
1712 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
1713 * graphite-poly.h: Same.
1714 * graphite-scop-detection.h: Same.
1715 * graphite.h: New.
1716
1717 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
1718
1719 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
1720 DW_TAG_namespace for IMPORTED_DECL declarations. Call
1721 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
1722 function already takes care of checking what it can emit.
1723
1724 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1725
1726 * doc/invoke.texi (-fpic): Add the AArch64 limit.
1727 (-fPIC): Add AArch64.
1728
1729 2015-11-24 Tom de Vries <tom@codesourcery.com>
1730
1731 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
1732 (pass_lim::execute): Allow to run outside pass_tree_loop.
1733
1734 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
1735
1736 * config/aarch64/aarch64.md (add<mode>3):
1737 Block early expansion into 2 add instructions.
1738 (add<mode>3_pluslong): New pattern to combine complex
1739 immediates into 2 additions.
1740
1741 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1742
1743 PR target/66217
1744 PR target/67677
1745 PR target/68332
1746 * config/rs6000/predicates.md (and_operand): Check that the operand
1747 is a const_int before calling rs6000_is_valid_and_mask.
1748
1749 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1750
1751 * config/aarch64/aarch64.md (*condjump): Rename to...
1752 (condjump): ... This.
1753 (*compare_condjump<mode>): New define_insn_and_split.
1754 (*compare_cstore<mode>_insn): Likewise.
1755 (*cstore<mode>_insn): Rename to...
1756 (cstore<mode>_insn): ... This.
1757 * config/aarch64/iterators.md (CMP): Handle ne code.
1758 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
1759
1760 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
1761
1762 PR target/68497
1763 * config/i386/i386.c (output_387_binary_op): Fix assertion for
1764 -fno-checking case.
1765
1766 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1767
1768 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
1769 (val_ssa_equiv_hash_traits::remove): Likewise.
1770 (pass_uncprop::execute): Adjust.
1771
1772 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1773
1774 * hash-map-traits.h (simple_hashmap_traits ::remove): call
1775 destructors on values that are being removed.
1776 * mem-stats.h (hash_map): Pass type of values to
1777 simple_hashmap_traits.
1778 * tree-sra.c (sra_deinitialize): Remove work around for hash
1779 maps not destructing values.
1780 * genmatch.c (sinfo_hashmap_traits): Adjust.
1781 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
1782
1783 2015-11-24 Richard Biener <rguenther@suse.de>
1784 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1785
1786 PR middle-end/68375
1787 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
1788 bogus assertion.
1789
1790 2015-11-24 Jakub Jelinek <jakub@redhat.com>
1791
1792 PR target/68483
1793 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
1794 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
1795 returns false.
1796 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
1797 whenever first is nelt or above. Don't mask expected with
1798 2 * nelt - 1.
1799
1800 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
1801
1802 PR c/68337
1803 * gimple-fold.c: Include ipa-chkp.h.
1804 (gimple_fold_builtin_memory_op): Don't fold call if we
1805 are going to instrument it and it may copy pointers.
1806
1807 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
1808 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1809
1810 PR rtl-optimization/68194
1811 PR rtl-optimization/68328
1812 PR rtl-optimization/68185
1813 * ree.c (combine_reaching_defs): Reject copy_needed case if
1814 copies_list is not empty.
1815
1816 2015-11-24 Richard Biener <rguenther@suse.de>
1817
1818 PR middle-end/68221
1819 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
1820 use mem_ref_offset.
1821
1822 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1823
1824 PR rtl-optimization/68381
1825 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
1826 is poisoned.
1827
1828 2015-11-23 Nick Clifton <nickc@redhat.com>
1829 Jeff Law <law@redhat.com>
1830
1831 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
1832 the source/dest of the target extension require a different number of
1833 hard registers.
1834 (combine_set_extension): Remove #if 0 code.
1835
1836 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1837 Sebastian Pop <s.pop@samsung.com>
1838
1839 PR tree-optimization/68314
1840 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
1841 * graphite-poly.c (new_scop): Remove original_schedule.
1842 (free_scop): Same.
1843 * graphite-poly.h (struct scop): Same.
1844 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
1845 (build_pbb_scattering_polyhedrons): Add back.
1846 (build_scop_minimal_scattering): Remove.
1847 (build_scop_scattering): Add back.
1848 (build_scop_original_schedule): Remove.
1849 (build_poly_scop): Revert to only call build_scop_scattering.
1850
1851 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1852 Sebastian Pop <s.pop@samsung.com>
1853
1854 PR tree-optimization/68493
1855 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
1856 missing early return when codegen_error is set.
1857
1858 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1859 Sebastian Pop <s.pop@samsung.com>
1860
1861 PR tree-optimization/68279
1862 * graphite-poly.c (new_scop): Remove poly_scop_p.
1863 * graphite-poly.h (struct scop): Same.
1864 (build_poly_scop): Declare.
1865 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
1866 (cleanup_loop_iter_dom): New.
1867 (build_loop_iteration_domains): Early return when scev analysis fails.
1868 (create_pw_aff_from_tree): Same.
1869 (add_condition_to_pbb): Same.
1870 (add_conditions_to_domain): Same.
1871 (add_conditions_to_constraints): Same.
1872 (build_scop_iteration_domain): Same.
1873 (build_poly_scop): Same. Do not initialize poly_scop_p.
1874 * graphite-sese-to-poly.h: Remove.
1875 * graphite.c: Do not include graphite-sese-to-poly.h.
1876 (graphite_transform_loops): Stop before code generation when
1877 build_poly_scop fails.
1878 * sese.c (scalar_evolution_in_region): Add fixme note about scev
1879 analysis.
1880
1881 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1882 Sebastian Pop <s.pop@samsung.com>
1883
1884 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1885 Remove call to update_ssa.
1886 * sese.c (sese_insert_phis_for_liveouts): Same.
1887
1888 2015-11-23 Marek Polacek <polacek@redhat.com>
1889
1890 PR tree-optimization/68455
1891 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
1892 extract_range_from_multiplicative_op_1 on symbolic ranges.
1893
1894 2015-11-23 Richard Henderson <rth@redhat.com>
1895
1896 * optabs.def (uaddv4_optab, usubv4_optab): New.
1897 * internal-fn.c (expand_addsub_overflow): Use them.
1898 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
1899
1900 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
1901 to reversed operands.
1902 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
1903 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
1904 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
1905 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
1906 (*add<SWI>3_cconly_overflow_2): New.
1907 (*add<SWI>3_cc_overflow_2): New.
1908 (*addsi3_zext_cc_overflow_2): New.
1909
1910 2015-11-23 Richard Biener <rguenther@suse.de>
1911
1912 PR tree-optimization/68465
1913 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
1914 Also record equalities from multiple predecessor blocks if
1915 only one non-backedge exists.
1916
1917 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1918
1919 PR target/68363
1920 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
1921 that are not INSN_P.
1922
1923 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
1924
1925 * config/aarch64/aarch64-builtins.c
1926 (aarch64_gimple_fold_builtin): Fold FMULX.
1927
1928 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
1929
1930 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
1931 * graphite-dependences.c: Define USES_ISL. Include ISL header files
1932 after GCC header files and before graphite header files.
1933 * graphite-dependences.c: Same.
1934 * graphite-isl-ast-to-gimple.c: Same.
1935 * graphite-optimize-isl.c: Same.
1936 * graphite-poly.c: Same.
1937 * graphite-scop-detection.c: Same.
1938 * graphite-sese-to-poly.c: Same.
1939 * graphite.c: Same.
1940
1941 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
1942 Jiong Wang <jiong.wang@arm.com>
1943
1944 PR tree-optimization/68317
1945 PR tree-optimization/68326
1946 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
1947 final min and max are not infinity.
1948
1949 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1950 Richard Biener <rguenther@suse.de>
1951
1952 PR tree-optimization/68327
1953 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1954 compute vectype for non-relevant mask producers.
1955 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
1956 relevance earlier.
1957
1958 2015-11-23 Tom de Vries <tom@codesourcery.com>
1959
1960 PR tree-optimization/68460
1961 * tree-parloops.c (gather_scalar_reductions): Also call
1962 free_stmt_vec_info_vec if simple_loop_info == NULL.
1963
1964 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1965
1966 * opts.c (finish_options): Allow -fsanitize-recover=address for
1967 userspace sanitization.
1968 * asan.c (asan_expand_check_ifn): Redefine recover_p.
1969 * doc/invoke.texi (fsanitize-recover): Update documentation.
1970
1971 2015-11-23 Tom de Vries <tom@codesourcery.com>
1972
1973 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
1974
1975 2015-11-23 Richard Biener <rguenther@suse.de>
1976
1977 PR tree-optimization/68445
1978 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
1979 two different strides.
1980
1981 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
1982
1983 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
1984 * config/s390/s390.c (s390_check_symref_alignment): Use new
1985 symref flags, early abort on wrong alignment
1986 (s390_secondary_reload): Use new symref flags.
1987 (s390_encode_section_info): Likewise.
1988 * config/s390/predicates.md: Likewise.
1989
1990 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1991
1992 PR target/68390
1993 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
1994 for indirect function call.
1995
1996 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
1997
1998 * config/aarch64/aarch64-simd.md
1999 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2000 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2001 (*aarch64_mulx_elt_to_64v2df): Likewise.
2002 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2003 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2004 (vmulx_lane_f64): Likewise.
2005 (vmulxq_lane_f32): Refactored & moved.
2006 (vmulxq_lane_f64): Likewise.
2007 (vmulx_laneq_f32): New.
2008 (vmulx_laneq_f64): Likewise.
2009 (vmulxq_laneq_f32): Likewise.
2010 (vmulxq_laneq_f64): Likewise.
2011 (vmulxs_lane_f32): Likewise.
2012 (vmulxs_laneq_f32): Likewise.
2013 (vmulxd_lane_f64): Likewise.
2014 (vmulxd_laneq_f64): Likewise.
2015
2016 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
2017
2018 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2019 In LTO we do not compute TYPE_CANONICAL of pointers.
2020 (gimple_canonical_types_compatible_p): Improve coments; sanity check
2021 that pointers do not have canonical type that would make us believe
2022 they are different.
2023 * alias.c (get_alias_set): Do structural type equality on pointers;
2024 enable pointer path for LTO; also glob pointer to vector with pointer
2025 to vector element; glob pointers and references for LTO; do more strict
2026 sanity checking about build_pointer_type returning the canonical type
2027 which is also the main variant.
2028 (record_component_aliases): When component type is pointer and we
2029 do LTO; record void_type_node alias set.
2030
2031 2015-11-21 Nathan Sidwell <nathan@acm.org>
2032
2033 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2034
2035 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2036 leading blank line.
2037 (write_func_decl_from_insn): Likewise.
2038 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2039 (nvptx_file_end): Likewise.
2040 (nvptx_function_end): Undent output.
2041 (nvptx_expand_call): Fix formatting.
2042 (nvptx_output_call_insn): Indent output.
2043 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2044 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2045
2046 2015-11-21 Jakub Jelinek <jakub@redhat.com>
2047
2048 PR debug/66432
2049 * tree-inline.c (copy_debug_stmt): If
2050 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2051 in decl_debug_args, don't call remap_gimple_op_r on it.
2052
2053 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2054
2055 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2056 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2057 Check that all record types are complete.
2058 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2059 compare alias sets for types w/o alias sets.
2060
2061 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2062
2063 * config/sparc/sparc.md (umulxhi_vis): Move around.
2064 (*umulxhi_sp64): Likewise.
2065 (umulxhi_v8plus): Likewise.
2066 (xmulx_vis): Likewise.
2067 (*xmulx_sp64): Likewise.
2068 (xmulx_v8plus): Likewise.
2069 (xmulxhi_vis): Likewise.
2070 (*xmulxhi_sp64): Likewise.
2071 (xmulxhi_v8plus): Likewise.
2072
2073 2015-11-20 David Malcolm <dmalcolm@redhat.com>
2074
2075 PR 62314
2076 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2077 (class layout): Update comment
2078 (layout::print_any_fixits): New method.
2079 (layout::move_to_column): New method.
2080 (diagnostic_show_locus): Add call to layout.print_any_fixits.
2081
2082 2015-11-20 Jakub Jelinek <jakub@redhat.com>
2083
2084 PR middle-end/68221
2085 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2086 has non-zero bias, subtract it in integer type instead of
2087 pointer plus of negated bias.
2088
2089 PR middle-end/68339
2090 * omp-low.c (expand_simd_clones): Call node->get_body () before
2091 allocating stuff in GC.
2092
2093 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
2094
2095 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2096
2097 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
2098
2099 * config/aarch64/aarch64.md (predicated): Copy attribute from
2100 "arm.md".
2101 * config/arm/arm.md (predicated): Added description.
2102
2103 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2104
2105 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2106 for unaligned_access.
2107 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2108 from matching condition.
2109 (unaligned_loadhis): Likewise.
2110 (unaligned_loadhiu): Likewise.
2111 (unaligned_storesi): Likewise.
2112 (unaligned_storehi): Likewise.
2113
2114 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2115
2116 PR target/68149
2117 * config/arm/arm.md (unaligned_loaddi): Delete.
2118 (unaligned_storedi): Likewise.
2119 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2120 unaligned DImode memory ops. Instead perform two back-to-back
2121 unaligned SImode ops.
2122
2123 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
2124 James Norris <jnorris@codesourcery.com>
2125
2126 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2127 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2128
2129 2015-11-20 Alan Hayward <alan.hayward@arm.com>
2130
2131 PR tree-optimization/68413
2132 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2133 evolution base
2134 (vectorizable_reduction): Use cached base
2135
2136 2015-11-20 Tom de Vries <tom@codesourcery.com>
2137
2138 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2139 dump-file string.
2140 (try_create_reduction_list): Same. Fix typo in dump-file string.
2141
2142 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2143
2144 * doc/md.texi (Standard Names): Move entry for addptr3 around,
2145 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2146 glitch in entries for cbranch4 and jump.
2147
2148 2015-11-20 Tom de Vries <tom@codesourcery.com>
2149
2150 PR tree-optimization/68373
2151 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2152 of ...
2153 (scev_const_prop): ... here.
2154 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2155 * tree-parloops.c (try_create_reduction_list): Call
2156 final_value_replacement_loop.
2157
2158 2015-11-20 Bin Cheng <bin.cheng@arm.com>
2159
2160 PR tree-optimization/52272
2161 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2162 (struct iv_common_cand_hasher): New struct.
2163 (iv_common_cand_hasher::hash): New function.
2164 (iv_common_cand_hasher::equal): New function.
2165 (struct ivopts_data): New fields, iv_common_cand_tab and
2166 iv_common_cands.
2167 (tree_ssa_iv_optimize_init): Initialize above fields.
2168 (record_common_cand, common_cand_cmp): New functions.
2169 (add_iv_candidate_derived_from_uses): New function.
2170 (add_iv_candidate_for_use): Record iv_common_cands derived from
2171 iv use in hash table, instead of adding candidates directly.
2172 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2173 (record_important_candidates): Add important candidates to iv uses'
2174 related_cands. Always keep related_cands for future use.
2175 (try_add_cand_for): Use iv uses' related_cands.
2176 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2177 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2178
2179 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2180
2181 * config/s390/s390.md ("bswaphi2"): New pattern.
2182
2183 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
2184
2185 * config/s390/s390.md (GPR1_REGNUM): New constant.
2186 ("*trunc<BFP:mode><DFP_ALL:mode>2")
2187 ("*trunc<DFP_ALL:mode><BFP:mode>2")
2188 ("trunc<BFP:mode><DFP_ALL:mode>2")
2189 ("trunc<DFP_ALL:mode><BFP:mode>2")
2190 ("*extend<BFP:mode><DFP_ALL:mode>2")
2191 ("*extend<DFP_ALL:mode><BFP:mode>2")
2192 ("extend<BFP:mode><DFP_ALL:mode>2")
2193 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2194
2195 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2196 Sebastian Pop <s.pop@samsung.com>
2197
2198 PR tree-optimization/68428
2199 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2200 over basic blocks outside the scop.
2201
2202 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2203 Sebastian Pop <s.pop@samsung.com>
2204
2205 PR tree-optimization/68341
2206 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2207 gcc_unreachable and safely fail codegen.
2208 (copy_loop_close_phi_args): Do not insert merge phis in a basic
2209 block with loop phi nodes.
2210 (edge_for_new_close_phis): New.
2211 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2212
2213 2015-11-19 Nathan Sidwell <nathan@acm.org>
2214
2215 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2216 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2217 (nvptx_declare_objec_name): Likewise.
2218
2219 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2220
2221 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2222 (get_false_edge_from_guard_bb): Move...
2223 * sese.c (get_false_edge_from_guard_bb)
2224 (get_true_edge_from_guard_bb): ... here.
2225
2226 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
2227
2228 Revert
2229 2015-11-18 Alan Modra <amodra@gmail.com>
2230
2231 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2232 type-limits warning.
2233
2234
2235 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2236
2237 * tree.h (desired_pro_or_demotion_p): New function.
2238 * tree-vrp.c (simplify_cond_using_ranges): Call it.
2239
2240 2015-11-19 Michael Matz <matz@suse.de>
2241
2242 * fwprop.c (update_uses): Use flag_checking instead of
2243 gcc_checking_assert.
2244
2245 2015-11-19 David Malcolm <dmalcolm@redhat.com>
2246
2247 * doc/gty.texi (Support for inheritance): Fix missing
2248 parentheses in example.
2249
2250 2015-11-19 Marek Polacek <polacek@redhat.com>
2251
2252 PR tree-optimization/68431
2253 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2254
2255 2015-11-19 Nathan Sidwell <nathan@acm.org>
2256
2257 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2258 atomic_exchange<mode>): Input values can be immediates.
2259
2260 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2261
2262 PR lto/61313
2263 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2264 by the user.
2265 * configure: Regenerate.
2266
2267 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2268
2269 PR target/68408
2270 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2271 (DTORS_SECTION_ASM_OP): Likewise.
2272
2273 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2274
2275 PR rtl-optimization/68376
2276 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2277 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2278
2279 2015-11-19 Richard Biener <rguenther@suse.de>
2280
2281 PR middle-end/68117
2282 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2283 redirect_edge_var_map_destroy.
2284
2285 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2286
2287 PR target/67770
2288 * config/i386/i386.md (simple_return): Disable if
2289 ix86_static_chain_on_stack is true.
2290
2291 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
2292
2293 PR bootstrap/68393
2294 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2295 destinations.
2296
2297 2015-11-18 Jeff Law <law@redhat.com>
2298
2299 PR tree-optimization/68198
2300 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2301 between threading a multi-way branch and a thread path that contains
2302 a multi-way branch. Disallow the case where a path contains a
2303 multi-way branch and does not thread a multi-way branch.
2304 (thread_through_all_blocks): Update comment.
2305
2306 2015-11-18 Joseph Myers <joseph@codesourcery.com>
2307
2308 PR c/65083
2309 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2310 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2311 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2312 functions before defining as macros.
2313
2314 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2315
2316 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2317 (nvptx_record_offload_symbol): Remove code compensating for lack
2318 of default dimension handling.
2319 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2320
2321 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2322
2323 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2324 type to bool for early exit.
2325 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2326 in case of error.
2327 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2328 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2329 predecessor dominates the other.
2330 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2331 element is not found it returns -1.
2332 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2333 out early when codegen fails.
2334 (graphite_regenerate_ast_isl): Remove codegen region when pending
2335 phis could not be generated.
2336
2337 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2338
2339 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2340 semicolon.
2341 (class translate_isl_ast_to_gimple): Indentation.
2342 (translate_pending_phi_nodes): Comment.
2343 (add_parameters_to_ivs_params): Moved from sese.c inside class
2344 translate_isl_ast_to_gimple.
2345 (get_max_schedule_dimensions): Same.
2346 (generate_isl_context): Same.
2347 (extend_schedule): Same.
2348 (generate_isl_schedule): Same.
2349 (set_options): Same.
2350 (scop_to_isl_ast): Same.
2351 (is_valid_rename): Same.
2352 (get_rename): Same.
2353 (get_rename_from_scev): Same.
2354 (get_def_bb_for_const): Same.
2355 (get_new_name): Same.
2356 (collect_all_ssa_names): Same.
2357 (copy_loop_phi_args): Same.
2358 (copy_loop_phi_nodes): Same.
2359 (copy_loop_close_phi_args): Same.
2360 (copy_loop_close_phi_nodes): Same.
2361 (copy_cond_phi_args): Same.
2362 (copy_cond_phi_nodes): Same.
2363 (graphite_copy_stmts_from_block): Same.
2364 (copy_bb_and_scalar_dependences): Same.
2365 (add_phi_arg_for_new_expr): Same.
2366 (rename_uses): Same.
2367 (set_rename): Same.
2368 (set_rename_for_each_def): Same.
2369 (gsi_insert_earliest): Same.
2370 (rename_all_uses): Same.
2371 (codegen_error_p): Same.
2372 (print_isl_ast_node): Same.
2373 (translate_isl_ast_for_loop): Call function codegen_error_p.
2374 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2375 (translate_isl_ast_node_user): Make nb_loops const and release
2376 iv_map before exit.
2377 (get_true_edge_from_guard_bb): Move all free-functions early.
2378 (get_false_edge_from_guard_bb): Same.
2379 (bb_contains_loop_close_phi_nodes): Same.
2380 (bb_contains_loop_phi_nodes): Same.
2381 (is_loop_closed_ssa_use): Same.
2382 (number_of_phi_nodes): Same.
2383 (phi_uses_name): Same.
2384 (later_of_the_two): Same.
2385 (substitute_ssa_name):
2386 (get_edges): Same.
2387 (get_loc): Same.
2388 (get_loop_init_value): Same.
2389 (find_init_value): Same.
2390 (find_init_value_close_phi): Same.
2391 (ast_build_before_for): Same.
2392 (graphite_regenerate_ast_isl): Formatting changes.
2393 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2394 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2395 (set_rename): Same.
2396 (gsi_insert_earliest): Same.
2397 (collect_all_ssa_names): Same.
2398 (rename_all_uses): Same.
2399 (rename_uses): Same.
2400 (get_def_bb_for_const): Same.
2401 (copy_loop_phi_nodes): Same.
2402 (copy_loop_close_phi_args): Same.
2403 (copy_loop_close_phi_nodes): Same.
2404 (copy_cond_phi_args): Same.
2405 (copy_cond_phi_nodes): Same.
2406 (set_rename_for_each_def): Same.
2407 (graphite_copy_stmts_from_block): Same.
2408 (copy_bb_and_scalar_dependences): Same.
2409 (if_region_set_false_region): Same.
2410 (scev_analyzable_p): Same.
2411 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
2412
2413 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
2414
2415 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
2416 commit from r125920 for FreeBSD.
2417
2418 2015-11-18 Jason Merrill <jason@redhat.com>
2419
2420 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
2421 to be vecs of vecs.
2422 (add_finalizer): Split out from ggc_internal_alloc.
2423 (ggc_handle_finalizers): Run finalizers for the current depth.
2424 (init_ggc, ggc_pch_read): Reserve space for finalizers.
2425
2426 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
2427
2428 PR target/68410
2429 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
2430 from || expression.
2431
2432 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2433
2434 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
2435 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
2436 and atmega328pb.
2437 * doc/avr-mmcu.texi: Regenerate.
2438
2439 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2440
2441 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
2442 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
2443 (struct bb_sese): New struct.
2444 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
2445 (BB_GET_SESE, BB_SET_SESE): Define.
2446 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
2447 (nvptx_find_sese): New.
2448 (nvptx_neuter_pars): Find SESE regions when optimizing.
2449
2450 2015-11-18 Alan Modra <amodra@gmail.com>
2451
2452 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2453 type-limits warning.
2454
2455 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
2456
2457 PR bootstrap/68406
2458 * hash-set.h (hash_set::traverse): Expand Key typedef.
2459
2460 2015-11-18 Martin Liska <mliska@suse.cz>
2461
2462 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
2463 options struct.
2464
2465 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2466
2467 * config/nvptx/nvptx.c (global_lock_var): New.
2468 (nvptx_global_lock_addr): New.
2469 (nvptx_lockless_update): Recomment and adjust for clarity.
2470 (nvptx_lockfull_update): New.
2471 (nvptx_reduction_update): New.
2472 (nvptx_goacc_reduction_fini): Call it.
2473
2474 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
2475
2476 * regrename.h (struct du_head): Add target_data_1 and target_data_2
2477 fields.
2478 * regrename.c (create_new_chain): Clear entire struct after allocating.
2479
2480 * config/i386/i386.opt (mmitigate-rop): New option.
2481 * doc/invoke.texi (mmitigate-rop): Document.
2482 * config/i386/i386.c: Include "regrename.h".
2483 (ix86_rop_should_change_byte_p, reg_encoded_number,
2484 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
2485 static functions.
2486 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
2487 * config/i386/i386.md (attr "modrm_class"): New.
2488 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
2489 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
2490 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
2491
2492 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2493
2494 PR target/68405
2495 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
2496
2497 2015-11-18 Jakub Jelinek <jakub@redhat.com>
2498
2499 PR tree-optimization/68157
2500 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
2501 pow_stmt or mul_stmt from stmt's uid.
2502 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
2503
2504 2015-11-18 Martin Liska <mliska@suse.cz>
2505
2506 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
2507
2508 2015-11-18 Martin Liska <mliska@suse.cz>
2509
2510 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2511 Fix GNU coding style.
2512 (find_def_preds): Use auto_vec.
2513 (destroy_predicate_vecs): Change signature of the function.
2514 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
2515 new signature.
2516 (simplify_preds_4): Use destroy_predicate_vecs instread of
2517 just releasing preds vector.
2518 (normalize_preds): Likewise.
2519 (is_use_properly_guarded): Use new signature of
2520 destroy_predicate_vecs.
2521 (find_uninit_use): Likewise.
2522
2523 2015-11-18 Richard Biener <rguenther@suse.de>
2524
2525 PR tree-optimization/67790
2526 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
2527 IL rewrite for MINUS_EXPR reductions, rename back to ...
2528 (vect_is_simple_reduction): ... this, removing the wrapper.
2529 (vect_force_simple_reduction): Adjust.
2530 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
2531 reductions and make use if reduc_index in all places. For
2532 the final reduction of MINUS_EXPR use PLUS_EXPR.
2533
2534 2015-11-18 Alan Modra <amodra@gmail.com>
2535
2536 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
2537 to ld.
2538 * configure: Regenerate.
2539
2540 2015-11-17 Tom de Vries <tom@codesourcery.com>
2541
2542 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
2543
2544 2015-11-17 Tom de Vries <tom@codesourcery.com>
2545
2546 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
2547 uses of ssa_name with constant.
2548
2549 2015-11-17 Tom de Vries <tom@codesourcery.com>
2550
2551 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
2552 something changed.
2553
2554 2015-11-17 Tom de Vries <tom@codesourcery.com>
2555
2556 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
2557 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
2558 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
2559
2560 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
2561
2562 * regrename.c (regrename_find_superclass): New function, code moved
2563 from ...
2564 (rename_chains): ... here. Call it.
2565 * regrename.h (regrename_find_superclass): Declare.
2566
2567 * regrename.c (record_out_operands): Terminate earlyclobbered
2568 operands here.
2569
2570 PR target/66785
2571 * regrename.c (record_operand_use): Keep track of failed operands
2572 and stop appending if we see any.
2573 * regrename.h (struct operand_rr_info): Add a failed field and shrink
2574 n_chains to short.
2575
2576 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2577
2578 PR 48568
2579 * doc/extend.texi (Common Function Attributes) [visibility]:
2580 Add cross-references to matching variable and type attributes.
2581 (Common Variable Attributes) [visibility]: Add missing entry.
2582
2583 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2584
2585 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
2586 entries that map directly to optabs.
2587
2588 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2589
2590 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
2591 entries that map directly to optabs.
2592
2593 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2594
2595 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
2596 * internal-fn.c (direct_internal_fn_array): Update accordingly.
2597 * tree-vectorizer.h (vectorizable_function): Delete.
2598 * tree-vect-stmts.c: Include internal-fn.h.
2599 (vectorizable_internal_function): New function.
2600 (vectorizable_function): Inline into...
2601 (vectorizable_call): ...here. Explicitly reject calls that read
2602 from or write to memory. Try using an internal function before
2603 falling back on the old vectorizable_function behavior.
2604
2605 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2606
2607 * target.def (builtin_vectorized_function): Take a combined_fn (in
2608 the form of an unsigned int) rather than a function decl.
2609 (builtin_md_vectorized_function): New.
2610 * targhooks.h (default_builtin_vectorized_function): Replace the
2611 fndecl argument with an unsigned int.
2612 (default_builtin_md_vectorized_function): Declare.
2613 * targhooks.c (default_builtin_vectorized_function): Replace the
2614 fndecl argument with an unsigned int.
2615 (default_builtin_md_vectorized_function): New function.
2616 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
2617 New hook.
2618 * doc/tm.texi: Regenerate.
2619 * tree-vect-stmts.c (vectorizable_function): Update call to
2620 builtin_vectorized_function, also passing internal functions.
2621 Call builtin_md_vectorized_function for target-specific builtins.
2622 * config/aarch64/aarch64-protos.h
2623 (aarch64_builtin_vectorized_function): Replace fndecl argument
2624 with an unsigned int.
2625 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
2626 (aarch64_builtin_vectorized_function): Update after above changes.
2627 Use CASE_CFN_*.
2628 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
2629 fndecl argument with an unsigned int.
2630 * config/arm/arm-builtins.c: Include case-cfn-macros.h
2631 (arm_builtin_vectorized_function): Update after above changes.
2632 Use CASE_CFN_*.
2633 * config/i386/i386.c: Include case-cfn-macros.h
2634 (ix86_veclib_handler): Take a combined_fn rather than a
2635 built_in_function.
2636 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
2637 mathfn_built_in rather than calling builtin_decl_implicit directly.
2638 (ix86_builtin_vectorized_function) Update after above changes.
2639 Use CASE_CFN_*.
2640 * config/rs6000/rs6000.c: Include case-cfn-macros.h
2641 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
2642 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
2643 than calling builtin_decl_implicit directly.
2644 (rs6000_builtin_vectorized_function): Update after above changes.
2645 Use CASE_CFN_*. Move BUILT_IN_MD to...
2646 (rs6000_builtin_md_vectorized_function): ...this new function.
2647 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
2648
2649 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2650
2651 * tree-vect-patterns.c: Include internal-fn.h.
2652 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
2653
2654 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2655
2656 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
2657 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
2658
2659 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2660
2661 * builtins.c (expand_errno_check, expand_builtin_mathfn)
2662 (expand_builtin_mathfn_2): Delete.
2663 (expand_builtin): Remove handling of functions with
2664 internal function equivalents.
2665 * internal-fn.def (SET_EDOM): New internal function.
2666 * internal-fn.h (set_edom_supported_p): Declare.
2667 * internal-fn.c (expand_SET_EDOM): New function.
2668 (set_edom_supported_p): Likewise.
2669 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
2670 Rewrite comment at head of file.
2671 (is_call_dce_candidate): Rename to...
2672 (can_test_argument_range): ...this. Don't check gimple_call_lhs
2673 or gimple_call_builtin_p here.
2674 (edom_only_function): New function.
2675 (shrink_wrap_one_built_in_call_with_conds): New function, split out
2676 from...
2677 (shrink_wrap_one_built_in_call): ...here.
2678 (can_use_internal_fn, use_internal_fn): New functions.
2679 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
2680 for calls that have an lhs.
2681 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
2682 (pass_call_cdce::execute): Skip blocks that are optimized for size.
2683 Check gimple_call_builtin_p here. Use can_use_internal_fn for
2684 calls with an lhs.
2685 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
2686 at -O and above.
2687
2688 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2689
2690 * builtins.h (called_as_built_in): Declare.
2691 * builtins.c (called_as_built_in): Make external.
2692 * internal-fn.h (expand_internal_call): Define a variant that
2693 specifies the internal function explicitly.
2694 * internal-fn.c (expand_load_lanes_optab_fn)
2695 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
2696 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
2697 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
2698 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
2699 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
2700 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
2701 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
2702 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
2703 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
2704 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
2705 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
2706 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
2707 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
2708 argument.
2709 (internal_fn_expanders): Update prototype.
2710 (expand_internal_call): Define a variant that specifies the
2711 internal function explicitly. Use it to implement the previous
2712 interface.
2713 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
2714 functions as calls to internal functions.
2715
2716 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2717
2718 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
2719 (generated_files): Likewise.
2720 (s-cfn-operators, cfn-operators.pd): New rules.
2721 (s-match): Depend on cfn-operators.pd.
2722 * gencfn-macros.c: Expand comment to describe -o behavior.
2723 (print_define_operator_list): New function.
2724 (main): Accept -o. Call print_define_operator_list.
2725 * genmatch.c (main): Add the current directory to the include path.
2726 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
2727 instead.
2728
2729 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2730
2731 * doc/match-and-simplify.texi: Document the "null" identifier.
2732 * genmatch.c (id_base::NULL_ID): New kind.
2733 (null_id): New variable.
2734 (get_operator): Add a parameter that says whether null identifiers
2735 are allowed.
2736 (contains_id): New function.
2737 (lower_for): Skip substitutions that would have a null_id in
2738 either the match or the result.
2739 (parser::parse_for): Allow the null identifier to be used.
2740 (parser::parse_operator_list): Likewise.
2741 (main): Initialize null_id.
2742
2743 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2744
2745 * match.pd: Use HYPOT and COS rather than hypot and cos.
2746 Use CASE_CFN_* macros. Guard log/exp folds with
2747 SCALAR_FLOAT_TYPE_P.
2748 * genmatch.c (internal_fn): New enum.
2749 (fn_id::fn): Change to an unsigned int.
2750 (fn_id::fn_id): Accept internal_fn too.
2751 (add_builtin): Rename to...
2752 (add_function): ...this and turn into a template.
2753 (get_operator): Only try one variation if the original name fails.
2754 Only add _EXPR if the original name was all lower case.
2755 Try converting internal and built-in function names to their
2756 CFN equivalents.
2757 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
2758 (dt_simplify::gen_1): Likewise.
2759 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
2760 and get_call_combined_fn for generic.
2761 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
2762 (decision_tree::gen): Likewise.
2763 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
2764 Use add_function rather than add_builtin. Register internal
2765 functions too.
2766 * generic-match-head.c: Include case-cfn-macros.h.
2767 * gimple-fold.c (replace_stmt_with_simplification): Use
2768 gimple_call_combined_fn to test whether we can keep an
2769 existing call.
2770 * gimple-match.h (code_helper): Replace built_in_function
2771 with combined_fn.
2772 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
2773 and case-fn-macros.h.
2774 (gimple_resimplify1): Use fold_const_call.
2775 (gimple_resimplify2, gimple_resimplify3): Likewise.
2776 (build_call_internal, build_call): New functions.
2777 (maybe_push_res_to_seq): Use them.
2778 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
2779 rather than a built-in function.
2780 * tree.h (build_call_expr_internal_loc): Declare.
2781 (maybe_build_call_expr_loc): Likewise.
2782 * tree.c (build_call_expr_internal_loc_array): New function.
2783 (maybe_build_call_expr_loc): Likewise.
2784
2785 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2786
2787 * builtins.h (mathfn_built_in): Add a variant that takes
2788 a combined_fn.
2789 * builtins.c: Include case-cfn-macros.h.
2790 (CASE_MATHFN): Use CASE_CFN_*.
2791 (CASE_MATHFN_REENT): Use CFN_ codes.
2792 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
2793 argument with a combined_fn.
2794 (mathfn_built_in): Add a variant that takes a combined_fn.
2795 (expand_builtin_int_roundingfn_2): Update callers accordingly.
2796 (fold_builtin_sincos, fold_builtin_classify): Likewise.
2797
2798 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2799
2800 * tree-vect-patterns.c: Include case-cfn-macros.h.
2801 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
2802
2803 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2804
2805 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
2806 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
2807 (pass_cse_sincos::execute): Likewise.
2808
2809 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2810
2811 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
2812 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
2813 (decrement_power, acceptable_pow_call): Likewise.
2814 (attempt_builtin_copysign): Likewise.
2815
2816 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2817
2818 * tree-vrp.c: Include case-cfn-macros.h.
2819 (extract_range_basic): Switch on combined_fn rather than handling
2820 built-in functions and internal functions separately.
2821
2822 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2823
2824 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
2825 than a built_in_function.
2826 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2827 a function decl.
2828 (integer_valued_real_call_p): Likewise.
2829 * fold-const.c: Include case-cfn-macros.h
2830 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
2831 (negate_expr_p): Update accordingly.
2832 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2833 a function decl.
2834 (integer_valued_real_call_p): Likewise.
2835 (tree_invalid_nonnegative_warnv_p): Update accordingly.
2836 (integer_valued_real_p): Likewise.
2837 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
2838 to tree_call_nonnegative_warnv_p.
2839 (gimple_call_integer_valued_real_p): Likewise
2840 integer_valued_real_call_p.
2841 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
2842 (backprop::process_builtin_call_use): Extend to combined_fn.
2843 (strip_sign_op_1): Likewise.
2844 (backprop::process_use): Don't check for built-in calls here.
2845 (backprop::execute): Likewise.
2846 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
2847
2848 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2849
2850 * fold-const-call.h (fold_const_call): Replace built_in_function
2851 arguments with combined_fn arguments.
2852 * fold-const-call.c: Include case-cfn-macros.h.
2853 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
2854 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
2855 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
2856 built_in_function arguments with combined_fn arguments.
2857 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
2858 (fold_builtin_3): Update calls to fold_const_call.
2859
2860 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2861
2862 * Makefile.in (HASH_TABLE_H): Add GGC_H.
2863 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
2864 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
2865 (build/gencfn-macros$(build_exeext): New rules.
2866 (genprogerr): Add cfn-macros.
2867 * hash-set.h (hash_set): Use the traits value_type as the key.
2868 * gencfn-macros.c: New file.
2869
2870 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2871
2872 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
2873 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
2874 * builtins.c (associated_internal_fn): Handle them.
2875
2876 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2877
2878 * builtins.h (associated_internal_fn): Declare.
2879 (replacement_internal_fn): Likewise.
2880 * builtins.c: Include internal-fn.h
2881 (associated_internal_fn, replacement_internal_fn): New functions.
2882 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
2883 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
2884 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
2885 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
2886 (LDEXP): New functions.
2887 * internal-fn.c: Include recog.h.
2888 (unary_direct, binary_direct): New macros.
2889 (expand_direct_optab_fn): New function.
2890 (expand_unary_optab_fn): New macro.
2891 (expand_binary_optab_fn): Likewise.
2892 (direct_unary_optab_supported_p): Likewise.
2893 (direct_binary_optab_supported_p): Likewise.
2894
2895 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2896
2897 * coretypes.h (tree_pair): New type.
2898 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
2899 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
2900 * internal-fn.h (direct_internal_fn_info): New structure.
2901 (direct_internal_fn_array): Declare.
2902 (direct_internal_fn_p, direct_internal_fn): New functions.
2903 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
2904 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
2905 (mask_store_direct, store_lanes_direct): New macros.
2906 (direct_internal_fn_array) New array.
2907 (get_multi_vector_move): Return the optab handler without asserting
2908 that it is available.
2909 (expand_LOAD_LANES): Rename to...
2910 (expand_load_lanes_optab_fn): ...this and add an optab argument.
2911 (expand_STORE_LANES): Rename to...
2912 (expand_store_lanes_optab_fn): ...this and add an optab argument.
2913 (expand_MASK_LOAD): Rename to...
2914 (expand_mask_load_optab_fn): ...this and add an optab argument.
2915 (expand_MASK_STORE): Rename to...
2916 (expand_mask_store_optab_fn): ...this and add an optab argument.
2917 (direct_internal_fn_types, direct_optab_supported_p)
2918 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
2919 (direct_internal_fn_supported_p): New functions.
2920 (direct_mask_load_optab_supported_p): New macro.
2921 (direct_load_lanes_optab_supported_p): Likewise.
2922 (direct_mask_store_optab_supported_p): Likewise.
2923 (direct_store_lanes_optab_supported_p): Likewise.
2924
2925 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2926
2927 * tree-core.h (internal_fn): Move immediately after the definition
2928 of built_in_function.
2929 (combined_fn): New enum.
2930 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
2931 (internal_fn_p, as_internal_fn): New functions.
2932 (get_call_combined_fn, combined_fn_name): Declare.
2933 * tree.c (get_call_combined_fn): New function.
2934 (combined_fn_name): Likewise.
2935 * gimple.h (gimple_call_combined_fn): Declare.
2936 * gimple.c (gimple_call_combined_fn): New function.
2937
2938 2015-11-17 Martin Sebor <msebor@redhat.com>
2939
2940 PR c++/68308
2941 * cp/init.c (build_new_1): Check for expression constness
2942 the right way.
2943
2944 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2945
2946 PR target/53587
2947 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
2948 option list.
2949 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
2950 discussion of the Microsoft structure layout details here from
2951 its former home in extend.texi.
2952 * doc/extend.texi (x86 Variable Attributes): Replace detailed
2953 discussion with pointer to its new location. Add cross-reference
2954 to corresponding type attributes.
2955 (x86 Type Attributes): Add cross-references to command-line options
2956 and variable attributes.
2957
2958 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2959
2960 PR middle-end/68134
2961 * targhooks.c (default_get_mask_mode): Filter out
2962 scalar modes returned by mode_for_vector.
2963
2964 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2965
2966 PR target/68143
2967 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
2968 offset from dstbase and use it appropriately in
2969 adjust_automodify_address.
2970 (arm_block_set_aligned_vect): Likewise.
2971
2972 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
2973
2974 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
2975 (MULTILIB_DIRNAMES): Adjust accordingly.
2976
2977 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
2978
2979 * config/aarch64/aarch64-cores.def (cortex-a35): New.
2980 * config/aarch64/aarch64.c (cortexa35_tunings): New.
2981 * config/aarch64/aarch64-tune.md: Regenerate.
2982 * doc/invoke.texi (-mcpu): Add Cortex-A35
2983
2984 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
2985
2986 PR target/68263
2987 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
2988 to 32 for IAMCU.
2989 * config/i386/sse.md (*mov<mode>_internal): Always enable
2990 AVX and SSE unaligned moves for IAMCU.
2991
2992 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
2993
2994 * tree-if-conv.c: Include varasm.h
2995 (ref_DR_map): Define.
2996 (baseref_DR_map): Like wise
2997 (struct ifc_dr): Add new tree predicate field.
2998 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
2999 (memrefs_read_or_written_unconditionally): Remove.
3000 (write_memrefs_written_at_least_once): Remove.
3001 (ifcvt_memrefs_wont_trap): Use hash maps to query
3002 unconditional read/written information.
3003 (if_convertible_loop_p_1): Initialize hash maps and predicates
3004 before hashing data references and delete hashmaps at the end.
3005
3006 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3007
3008 PR 56036
3009 * doc/invoke.texi (Optimize Options): Move @end table to the right
3010 place.
3011
3012 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
3013
3014 PR 65129
3015 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3016 return value.
3017
3018 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
3019
3020 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3021 128-bit types, just types that fit in a single vector.
3022 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3023
3024 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
3025
3026 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3027 in the user documentation.
3028 (define_peephole2, define_split): Similarly.
3029
3030 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3031
3032 * lto-streamer-out.c (write_global_references): Adjust integer type.
3033 (lto_output_decl_state_refs): Likewise.
3034
3035 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3036
3037 * config/arm/arm-cores.def (cortex-a35): New.
3038 * config/arm/arm.c (arm_cortex_a35_tune): New.
3039 * config/arm/arm-tables.opt: Regenerate.
3040 * config/arm/arm-tune.md: Regenerate.
3041 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3042 * config/arm/t-aprofile: Likewise.
3043 * doc/invoke.texi (-mcpu): Likewise.
3044
3045 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
3046
3047 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3048 and qdf24xx and xgene1 to match -march=armv8-a.
3049
3050 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3051
3052 PR rtl-optimization/68330
3053 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3054 of LSHIFTRT by a non-zero constant integer.
3055
3056 2015-11-16 Richard Biener <rguenther@suse.de>
3057
3058 PR tree-optimization/68306
3059 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3060 bogus copying from verify_data_ref_alignment and use continue
3061 instead of return.
3062
3063 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
3064 Kaz Kojima <kkojima@gcc.gnu.org>
3065
3066 PR target/68277
3067 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3068 operands[2].
3069 (*addsi3): Add another insn_and_split variant for reload.
3070
3071 2015-11-16 Richard Biener <rguenther@suse.de>
3072
3073 PR middle-end/68117
3074 * cfgexpand.c (pass_expand::execute): Destroy the edge
3075 redirection var map before setting RTL CFG hooks.
3076
3077 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
3078
3079 * config/i386/sse.md (reduc_splus_v8df): Rename to...
3080 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3081
3082 (reduc_splus_v4df): Rename to...
3083 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3084
3085 (reduc_splus_v2df): Rename to...
3086 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3087
3088 (reduc_splus_v16sf): Rename to...
3089 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3090
3091 (reduc_splus_v8sf): Rename to...
3092 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3093
3094 (reduc_splus_v4sf): Rename to...
3095 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3096
3097 (reduc_<code>_<mode>, all 3 variants): Rename each to...
3098 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3099
3100 (reduc_umin_v8hf): Rename to...
3101 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3102
3103 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3104
3105 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3106 without additional conditions.
3107 * doc/extend.texi (@item simd): New.
3108
3109 2015-11-16 Tom de Vries <tom@codesourcery.com>
3110
3111 * passes.c (first_pass_instance): Remove variable.
3112 (execute_todo): Remove setting of first_pass_instance.
3113 * tree-pass.h (first_pass_instance): Remove declaration.
3114
3115 2015-11-16 Tom de Vries <tom@codesourcery.com>
3116
3117 * passes.def: Add arg to pass_ccp pass instantiation.
3118 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
3119 instead of first_pass_instance.
3120 (do_ssa_ccp): Add and handle param nonzero_p.
3121 (pass_ccp::pass_ccp): Initialize nonzero_p.
3122 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
3123 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3124 (pass_ccp::nonzero_p): New private member.
3125
3126 2015-11-16 Tom de Vries <tom@codesourcery.com>
3127
3128 * passes.def: Add arg to pass_object_sizes pass instantiation.
3129 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3130 insert_min_max_p.
3131 (pass_object_sizes::set_pass_param): New member function. Set
3132 insert_min_max_p.
3133 (pass_object_sizes::insert_min_max_p): New private member.
3134 (pass_object_sizes::execute): Use insert_min_max_p instead of
3135 first_pass_instance.
3136
3137 2015-11-16 Tom de Vries <tom@codesourcery.com>
3138
3139 * passes.def: Add arg to pass_dominator pass instantiation.
3140 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3141 of comment.
3142 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3143 may_peel_loop_headers_p.
3144 (pass_dominator::set_pass_param): New member function. Set
3145 may_peel_loop_headers_p.
3146 (pass_dominator::may_peel_loop_headers_p): New private member.
3147 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3148 first_pass_instance.
3149
3150 2015-11-16 Tom de Vries <tom@codesourcery.com>
3151
3152 * passes.def: Add arg to pass_reassoc pass instantiation.
3153 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3154 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3155 of first_pass_instance.
3156 (execute_reassoc): Add and handle insert_powi_p parameter.
3157 (pass_reassoc::insert_powi_p): New private member.
3158 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3159 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
3160 (pass_reassoc::execute): Call execute_reassoc with extra arg.
3161
3162 2015-11-16 Tom de Vries <tom@codesourcery.com>
3163
3164 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3165 * gen-pass-instances.awk (handle_line): Same.
3166 * pass_manager.h (class pass_manager): Define and undefine
3167 NEXT_PASS_WITH_ARG.
3168 * passes.c (opt_pass::set_pass_param): New function.
3169 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3170 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3171 * tree-pass.h (gimple_opt::set_pass_param): Declare.
3172 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3173 warn_array_bounds_p parameter.
3174 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3175 (pass_vrp::set_pass_param): New function.
3176 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3177 (pass_vrp::warn_array_bounds_p): New private member.
3178
3179 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3180
3181 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3182 (output_probe_stack_range): Rotate the loop and simplify.
3183
3184 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3185
3186 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3187 (output_probe_stack_range): Rotate the loop and simplify.
3188
3189 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3190
3191 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3192 an lea instruction when possible.
3193 (output_adjust_stack_and_probe): Rotate the loop and simplify.
3194 (ix86_emit_probe_stack_range): Adjust.
3195 (output_probe_stack_range): Rotate the loop and simplify.
3196
3197 2015-11-16 Christian Bruel <christian.bruel@st.com>
3198
3199 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3200 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3201 with appropriate pragma GCC target.
3202
3203 2015-11-16 Christian Bruel <christian.bruel@st.com>
3204
3205 PR target/65837
3206 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3207 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3208
3209 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3210
3211 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3212 (cortexa57_tunings): Use it.
3213
3214 2015-11-16 Christian Bruel <christian.bruel@st.com>
3215
3216 PR target/65837
3217 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3218 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3219 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3220 undefine __ARM_FP.
3221 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3222 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3223 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3224 * doc/extend.texi (-mfpu=): Describe attribute.
3225
3226 2015-11-16 Christian Bruel <christian.bruel@st.com>
3227
3228 PR target/65837
3229 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3230 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3231 arm_init_neon_builtins.
3232 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3233 (arm_init_neon_builtins_internal)
3234 (arm_init_crypto_builtins_internal):
3235 Test and set neon_set_p, neon_crypto_set_p.
3236 (neon_set_p, neon_crypto_set_p): New static booleans.
3237
3238 2015-11-16 Christian Bruel <christian.bruel@st.com>
3239
3240 PR target/65837
3241 * config/arm/arm.c (arm_fpu_desc): Remove.
3242 (all_fpus): Make global.
3243 (arm_option_override): Use FPU TARGET accessors.
3244 (arm_declare_function_name): Likewise.
3245 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3246 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3247 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3248 (TARGET_NEON): Likewise.
3249 (all_fpus): Declare extern.
3250 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3251 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3252
3253 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3254
3255 PR middle-end/68366
3256 * sdbout.c: Include emit-rtl.h and function.h.
3257
3258 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
3259
3260 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3261 Remove support for FreeBSD 5 and earlier.
3262
3263 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3264
3265 * configure: Regenerate.
3266 * configure.ac: Always define ENABLE_OFFLOADING.
3267 * cgraph.c (cgraph_node::create): Adjust.
3268 * gcc.c (process_command): Likewise.
3269 * omp-low.c (create_omp_child_function): Likewise.
3270 (expand_omp_target): Likewise.
3271 * varpool.c (varpool_node::get_create): Likewise.
3272
3273 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3274
3275 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3276 * df-scan.c (df_get_exit_block_use_set): Adjust.
3277 * except.c (expand_eh_return): Likewise.
3278
3279 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3280
3281 * config/i386/i386.h (TARGET_PECOFF): Remove define.
3282 * defaults.h (TARGET_PECOFF): New default definition.
3283 * varasm.c (handle_vtv_comdat_section): Adjust.
3284
3285 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3286
3287 * defaults.h: New definition of SDB_DEBUGGING_INFO.
3288 * doc/tm.texi: Regenerate.
3289 * doc/tm.texi.in: Adjust.
3290 * final.c (rest_of_clean_state): Remove check if
3291 SDB_DEBUGGING_INFO is defined.
3292 * function.c (number_blocks): Likewise.
3293 * output.h: Likewise.
3294 * sdbout.c: Likewise.
3295 * toplev.c (process_options): Likewise.
3296
3297 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3298
3299 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3300 (enum sdb_masks): Likewise.
3301 * sdbout.c (plain_type_1): Likewise.
3302 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3303
3304 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3305
3306 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3307 internal calls - 0 if ordered simd and 1 for ordered threads simd.
3308 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3309 argument is 1, replace it with GOMP_ordered_* call instead of removing
3310 it.
3311
3312 2015-11-13 Rich Felker <dalias@libc.org>
3313
3314 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3315 address loading hack for FDPIC targets.
3316
3317 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
3318 Jeff Law <law@redhat.com>
3319
3320 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3321 * common.opt (-fsplit-paths): New flag controlling path splitting.
3322 * doc/invoke.texi (fsplit-paths): Document.
3323 * opts.c (default_options_table): Add -fsplit-paths to -O2.
3324 * passes.def: Add split_paths pass.
3325 * timevar.def (TV_SPLIT_PATHS): New timevar.
3326 * tracer.c: Include "tracer.h"
3327 (ignore_bb_p): No longer static.
3328 (transform_duplicate): New function, broken out of tail_duplicate.
3329 (tail_duplicate): Use transform_duplicate.
3330 * tracer.h (ignore_bb_p): Declare
3331 (transform_duplicate): Likewise.
3332 * tree-pass.h (make_pass_split_paths): Declare.
3333 * gimple-ssa-split-paths.c: New file.
3334
3335 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3336 Marek Polacek <polacek@redhat.com>
3337 Jason Merrill <jason@redhat.com>
3338
3339 * convert.c (maybe_fold_build1_loc): New.
3340 (maybe_fold_build2_loc): New.
3341 (convert_to_pointer_1): Split out from convert_to_pointer.
3342 (convert_to_pointer_nofold): New.
3343 (convert_to_real_1): Split out from convert_to_real.
3344 (convert_to_real_nofold): New.
3345 (convert_to_integer_1): Split out from convert_to_integer.
3346 (convert_to_integer_nofold): New.
3347 (convert_to_complex_1): Split out from convert_to_complex.
3348 (convert_to_complex_nofold): New.
3349 * convert.h: Declare new functions.
3350 * tree-complex.c (create_one_component_var): Break up line to
3351 avoid sequence point issues.
3352
3353 2015-11-13 Jason Merrill <jason@redhat.com>
3354
3355 * fold-const.c (fold_convert_const): Fold changing cv-quals on
3356 VECTOR_CST.
3357
3358 * hash-map.h (hash_map::empty): New.
3359
3360 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3361
3362 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3363 (oacc_loop_fixed_partitions): Correct return type to bool.
3364 (oacc_loop_auto_partitions): New.
3365 (oacc_loop_partition): Take mask argument, call
3366 oacc_loop_auto_partitions.
3367 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3368
3369 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3370
3371 * config/rs6000/constraints.md (we constraint): New constraint for
3372 64-bit power9 vector support.
3373 (wL constraint): New constraint for the element in a vector that
3374 can be addressed by the MFVSRLD instruction.
3375
3376 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3377 declaration.
3378 (convert_int_to_float128): Likewise.
3379 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3380 hardware support for IEEE 128-bit floating point.
3381 (rs6000_expand_float128_convert): Likewise.
3382 (convert_float128_to_int): Likewise.
3383 (convert_int_to_float128): Likewise.
3384
3385 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3386 ISA 3.0 hardware IEEE 128-bit floating point.
3387 (UNSPEC_IEEE128_MOVE): Likewise.
3388 (UNSPEC_IEEE128_CONVERT): Likewise.
3389 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3390 (Ff): Add support for DImode.
3391 (Fv): Likewise.
3392 (any_fix code iterator): New and updated iterators for IEEE
3393 128-bit floating point hardware support.
3394 (any_float code iterator): Likewise.
3395 (s code attribute): Likewise.
3396 (su code attribute): Likewise.
3397 (az code attribute): Likewise.
3398 (uns code attribute): Likewise.
3399 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
3400 floating point hardware support.
3401 (abs<mode>2, FLOAT128 iterator): Likewise.
3402 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
3403 floating point hardware.
3404 (sub<mode>3, IEEE128 iterator): Likewise.
3405 (mul<mode>3, IEEE128 iterator): Likewise.
3406 (div<mode>3, IEEE128 iterator): Likewise.
3407 (copysign<mode>3, IEEE128 iterator): Likewise.
3408 (sqrt<mode>2, IEEE128 iterator): Likewise.
3409 (neg<mode>2, IEEE128 iterator): Likewise.
3410 (abs<mode>2, IEEE128 iterator): Likewise.
3411 (nabs<mode>2, IEEE128 iterator): Likewise.
3412 (fma<mode>4_hw, IEEE128 iterator): Likewise.
3413 (fms<mode>4_hw, IEEE128 iterator): Likewise.
3414 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
3415 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
3416 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
3417 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
3418 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
3419 (fix_fixuns code attribute): Likewise.
3420 (float_floatuns code attribute): Likewise.
3421 (fix<uns>_<mode>si2_hw): Likewise.
3422 (fix<uns>_<mode>di2_hw): Likewise.
3423 (float<uns>_<mode>si2_hw): Likewise.
3424 (float<uns>_<mode>di2_hw): Likewise.
3425 (xscvqp<su>wz_<mode>): Likewise.
3426 (xscvqp<su>dz_<mode>): Likewise.
3427 (xscv<su>dqp_<mode): Likewise.
3428 (ieee128_mfvsrd): Likewise.
3429 (ieee128_mfvsrwz): Likewise.
3430 (ieee128_mtvsrw): Likewise.
3431 (ieee128_mtvsrd): Likewise.
3432 (trunc<mode>df2_odd): Likewise.
3433 (cmp<mode>_h): Likewise.
3434 (128-bit GPR splitters): Don't split a 128-bit move that is a
3435 direct move between GPR and vector registers using ISA 3.0 direct
3436 move instructions.
3437 (maddld4): Add support for the ISA 3.0 integer multiply-add
3438 instruction.
3439
3440 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
3441 debugging.
3442 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
3443 constraint. Disable the VSX<->GPR direct move helpers if we have
3444 the MFVSRLD and MTVSRDD instructions.
3445 (rs6000_secondary_reload_simple_move): Add support for doing
3446 vector direct moves directly without additional scratch registers
3447 if we have ISA 3.0 instructions.
3448 (rs6000_secondary_reload_direct_move): Update comments.
3449 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
3450 instructions.
3451
3452 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
3453 direct move instructions.
3454 (vsx_movti_64bit): Likewise.
3455 (vsx_extract_<mode>): Likewise.
3456
3457 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
3458 macros for ISA 3.0 direct move instructions.
3459 (TARGET_DIRECT_MOVE_128): Likewise.
3460 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
3461 instruction.
3462
3463 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
3464 constraints. Update wa documentation to say not to use %x<n> on
3465 instructions that only take Altivec registers.
3466
3467 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3468
3469 * Makefile.in (OBJS): Add gcc-rich-location.o.
3470 * diagnostic.c (diagnostic_append_note): Pass line_table to
3471 rich_location ctor.
3472 (emit_diagnostic): Likewise.
3473 (inform): Likewise.
3474 (inform_n): Likewise.
3475 (warning): Likewise.
3476 (warning_at): Likewise.
3477 (warning_n): Likewise.
3478 (pedwarn): Likewise.
3479 (permerror): Likewise.
3480 (error): Likewise.
3481 (error_n): Likewise.
3482 (error_at): Likewise.
3483 (sorry): Likewise.
3484 (fatal_error): Likewise.
3485 (internal_error): Likewise.
3486 (internal_error_no_backtrace): Likewise.
3487 (source_range::debug): Likewise.
3488 * gcc-rich-location.c: New file.
3489 * gcc-rich-location.h: New file.
3490 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
3491 (warning_at): Likewise.
3492 * gimple.h (gimple_set_block): Use set_block function.
3493 * input.c (dump_line_table_statistics): Dump stats on how many
3494 ranges were optimized vs how many needed ad-hoc table.
3495 (write_digit_row): Add "map" param; use its range_bits
3496 to calculate the per-character offset.
3497 (dump_location_info): Print the range and column bits for each
3498 ordinary map. Use the range bits to calculate the per-character
3499 offset. Pass the map as a new param to the various calls to
3500 write_digit_row. Eliminate uses of
3501 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
3502 * print-tree.c (print_node): Print any source range information.
3503 * rtl-error.c (diagnostic_for_asm): Likewise.
3504 * toplev.c (general_init): Initialize line_table's
3505 default_range_bits.
3506 * tree-cfg.c (move_block_to_fn): Likewise.
3507 (move_block_to_fn): Likewise.
3508 * tree-inline.c (copy_phis_for_bb): Likewise.
3509 * tree.c (tree_set_block): Likewise.
3510 (get_pure_location): New function.
3511 (set_source_range): New functions.
3512 (set_block): New function.
3513 (set_source_range): New functions.
3514 * tree.h (CAN_HAVE_RANGE_P): New.
3515 (EXPR_LOCATION_RANGE): New.
3516 (EXPR_HAS_RANGE): New.
3517 (get_expr_source_range): New inline function.
3518 (DECL_LOCATION_RANGE): New.
3519 (set_source_range): New decls.
3520 (get_decl_source_range): New inline function.
3521
3522 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
3523
3524 PR tree-optimization/67682
3525 * tree-vect-slp.c (vect_split_slp_store_group): New.
3526 (vect_analyze_slp_instance): During basic block SLP, recurse on
3527 subgroups if vect_build_slp_tree fails after 1st vector.
3528
3529 2015-11-13 Christian Bruel <christian.bruel@st.com>
3530
3531 PR target/65837
3532 * config/arm/arm.c (arm_option_override): Move NEON check...
3533 (arm_option_check_internal): here
3534 (arm_file_start): Move .fpu print...
3535 (arm_declare_function_name): here
3536 (arm_option_print): Dump current fpu name.
3537 * config/arm/arm.opt (arm_fpu_index): Mark Save.
3538
3539 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
3540 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3541
3542 * combine.c (subst): Don't substitute or simplify when
3543 handling register-wise widening multiply.
3544 (force_to_mode): Likewise.
3545
3546 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
3547
3548 PR tree-optimization/68264
3549 * tree-call-cdce.c (gen_one_condition): Update commentary.
3550 (gen_conditions_for_pow_int_base): Invert the sense of the tests
3551 passed to gen_one_condition.
3552 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
3553 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
3554 using EDGE_FALSE_VALUE for edges to the call block and
3555 EDGE_TRUE_VALUE for the others.
3556
3557 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3558
3559 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
3560 complex types.
3561
3562 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3563
3564 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
3565
3566 2015-11-13 Tom de Vries <tom@codesourcery.com>
3567
3568 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
3569 len_of_prefix.
3570
3571 2015-11-13 Tom de Vries <tom@codesourcery.com>
3572
3573 * gen-pass-instances.awk (handle_line): Add args_str variable.
3574
3575 2015-11-13 Martin Liska <mliska@suse.cz>
3576
3577 * graphite-poly.c (free_scop): Release scop->drs vector.
3578 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
3579 Release dom vector.
3580 (try_generate_gimple_bb): Use vNULL as a default initialization
3581 for vectors.
3582
3583 2015-11-13 Martin Liska <mliska@suse.cz>
3584
3585 PR ipa/68311
3586 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
3587 Replace array initialization (using a variable post-increment)
3588 that possible triggers multiple unsequenced modifications
3589 with a pair of pushes to a vector.
3590
3591 2015-11-13 Richard Biener <rguenther@suse.de>
3592
3593 PR tree-optimization/68306
3594 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
3595 loop related checks ...
3596 (vect_verify_datarefs_alignment): ... here.
3597 (vect_slp_analyze_and_verify_node_alignment): Compute and
3598 verify alignment of the single DR that it matters.
3599 * tree-vect-stmts.c (vectorizable_store): Add an assert.
3600 (vectorizable_load): Add a comment.
3601 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
3602 for determining load cost.
3603
3604 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3605
3606 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
3607 mix of boolean and integer vectors in a single statement.
3608 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
3609 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
3610 determine constant type.
3611 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
3612 for loop invariants.
3613
3614 2015-11-13 Alan Hayward <alan.hayward@arm.com>
3615
3616 PR tree-optimization/66558
3617 * tree-vect-loop.c (is_integer_induction):Add.
3618 (vectorizable_reduction): Add integer induction checks.
3619
3620 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
3621
3622 Revert [ARM] Remove neon-testgen.ml and generated tests.
3623
3624 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3625
3626 [ARM] Remove neon-testgen.ml and generated tests.
3627
3628 * config/arm/neon-testgen.ml: Remove.
3629
3630 2015-11-13 Richard Biener <rguenther@suse.de>
3631
3632 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
3633 Signal fatal failure if early checks fail.
3634 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
3635 do not bother testing further vector sizes.
3636
3637 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
3638
3639 * config/i386/predicates.md (misaligned_operand): Return true if
3640 operand is aligned to less than its natural alignmnet.
3641
3642 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3643
3644 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
3645 (vec_cmpu@var{m}@var{n}): New item.
3646 (vcond@var{m}@var{n}): Specify comparison is signed.
3647 (vcondu@var{m}@var{n}): New item.
3648 (vcond_mask_@var{m}@var{n}): New item.
3649 (maskload@var{m}@var{n}): New item.
3650 (maskstore@var{m}@var{n}): New item.
3651
3652 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3653
3654 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3655 types of stored value and storage are compatible.
3656
3657 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
3658
3659 * gcc.c (POST_LINK_SPEC): Define if not already defined.
3660 (LINK_COMMAND_SPEC): Use post_link.
3661 (post_link_spec): New, initialize to POST_LINK_SPEC.
3662 (post_link): Initialize new static spec.
3663 * doc/tm.texi.in (POST_LINK_SPEC): Document.
3664 * doc/tm.texi: Regenerated.
3665
3666 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3667
3668 PR driver/67613
3669 * Makefile.in (GCC_OBJS): Add spellcheck.o.
3670 (OBJS): Add spellcheck-tree.o.
3671 * gcc.c: Include "spellcheck.h".
3672 (suggest_option): New function.
3673 (driver::handle_unrecognized_options): Call suggest_option to
3674 provide a hint about misspelled options.
3675 * spellcheck.c: Update file comment.
3676 (levenshtein_distance): Convert 4-param implementation from static
3677 to extern scope. Remove note about unit tests from leading
3678 comment for const char * implementation. Move tree
3679 implementation to...
3680 * spellcheck-tree.c: New file.
3681 * spellcheck.h (levenshtein_distance): Add 4-param decl.
3682
3683 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3684
3685 * Makefile.in (OBJS): Add spellcheck.o.
3686 * spellcheck.c: New file.
3687 * spellcheck.h: New file.
3688
3689 2015-11-13 James Bowman <james.bowman@ftdichip.com>
3690
3691 * config/ft32/ft32.md (*sne): New insn pattern.
3692
3693 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
3694
3695 * cprop.c (is_too_expensive): Remove.
3696 (gcse.h): Include.
3697 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
3698 is_too_expensive.
3699 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
3700 * gcse.c (is_too_expensive): Rename to ...
3701 (gcse_or_cprop_is_too_expensive): ... this.
3702 Expand warning to add required size of max-gcse-memory.
3703 (one_pre_gcse_pass): Use it.
3704 (one_code_hoisting_pass): Use it.
3705 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
3706
3707 2015-11-12 James Norris <jnorris@codesourcery.com>
3708 Joseph Myers <joseph@codesourcery.com>
3709
3710 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
3711 GF_OMP_TARGET_KIND_OACC_DECLARE.
3712 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
3713 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3714 * gimplify.c (oacc_declare_returns): New.
3715 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
3716 (device_resident_p): New function.
3717 (oacc_default_clause): Handle device_resident clause.
3718 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
3719 (gimplify_expr): Handle OACC_DECLARE.
3720 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
3721 * omp-low.c (expand_omp_target): Handle
3722 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
3723 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
3724 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
3725 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
3726 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3727 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
3728 GOMP_MAP_DEVICE_RESIDENT.
3729
3730 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3731
3732 [ARM] Remove neon-testgen.ml and generated tests.
3733
3734 * config/arm/neon-testgen.ml: Remove.
3735
3736 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
3737
3738 * config/aarch64/aarch64-cores.def (qdf24xx): New.
3739 * config/aarch64/aarch64-tune.md: Regenerated.
3740 * config/arm/arm-cores.def (qdf24xx): New.
3741 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
3742 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
3743 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
3744 (ARM Options/-mtune): Likewise.
3745
3746 2015-11-12 Martin Liska <mliska@suse.cz>
3747
3748 * config/i386/i386.c (ix86_valid_target_attribute_p):
3749 Finalize options at the of the function.
3750 * gcc.c (driver_get_configure_time_options): Call newly
3751 introduced init_opts_obstack.
3752 * lto-wrapper.c (main): Likewise.
3753 * opts.c (init_opts_obstack): New function.
3754 (init_options_struct): Call newly introduced init_opts_obstack.
3755 * opts.h (init_options_struct): Declare.
3756
3757 2015-11-12 Martin Liska <mliska@suse.cz>
3758
3759 PR ipa/68035
3760 * ipa-icf.c (void sem_item::set_hash): New function.
3761 (sem_function::get_hash): Use renamed m_hash member variable.
3762 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
3763 (sem_item::update_hash_by_local_refs): Likewise.
3764 (sem_variable::get_hash): Use renamed m_hash member variable.
3765 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
3766 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
3767 (sem_item_optimizer::build_graph): As the hash value of an item
3768 is lazy initialized, force the calculation.
3769 * ipa-icf.h (set_hash): Declare new function and rename hash member
3770 variable to m_hash.
3771
3772 2015-11-12 Richard Biener <rguenther@suse.de>
3773
3774 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
3775 Rename to vect_slp_analyze_instance_dependence.
3776 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3777 Remove WAR special-case.
3778 (vect_slp_analyze_node_dependences): Instead add more specific
3779 code here, not relying on other instances being vectorized.
3780 (vect_slp_analyze_instance_dependence): Adjust accordingly.
3781 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
3782 vertical space in dump files.
3783 (vect_print_slp_tree): Likewise.
3784 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
3785 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
3786 not vectorized stmts until after dependence analysis removed
3787 instances. Merge alignment and dependence checks.
3788 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
3789 flag on all stmts.
3790
3791 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
3792
3793 * config/aarch64/aarch64-protos.h (tune_params): Add new members
3794 "max_case_values" and "cache_line_size".
3795 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
3796 function.
3797 (aarch64_override_options_internal): Tune heuristics based on new
3798 members in "tune_params".
3799 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3800
3801 2015-11-12 Richard Biener <rguenther@suse.de>
3802
3803 PR tree-optimization/68306
3804 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
3805 relevant and vectorizable checks here.
3806 (vect_verify_datarefs_alignment): Add relevant check here.
3807
3808 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
3809
3810 * gimplify.c (oacc_default_clause): New.
3811 (omp_notice_variable): Call it.
3812
3813 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3814
3815 PR tree-optimization/68305
3816 * tree-vect-slp.c (vect_get_constant_vectors): Support
3817 COND_EXPR with SSA_NAME as a condition.
3818
3819 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3820
3821 * config/visium/visium-protos.h (notice_update_cc): Delete.
3822 (print_operand): Likewise.
3823 (print_operand_address): Likewise.
3824
3825 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3826
3827 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
3828 FUNCTION_VALUE_REGNO_P): Remove.
3829 * config/alpha/alpha-protos.h (function_value): Remove.
3830 * config/alpha/alpha.c (function_value): Rename to...
3831 (alpha_function_value_1): ... this. Make static.
3832 (alpha_function_value, alpha_libcall_value,
3833 alpha_function_value_regno_p): New functions.
3834 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3835 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3836
3837 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3838
3839 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3840 * config/alpha/alpha.c (alpha_memory_latency): Make static.
3841 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
3842 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3843
3844 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3845
3846 PR target/67265
3847 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
3848 assertion on the CFA register.
3849
3850 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3851
3852 * expr.c (do_store_flag): Expand vector comparison as
3853 VEC_COND_EXPR if vector comparison is not supported by target.
3854
3855 2015-11-12 Renlin Li <renlin.li@arm.com>
3856
3857 * config/arm/arm.md (addsi3_compare_op2): Make the order of
3858 assembly pattern consistent with constraint order.
3859
3860 2015-11-12 Tom de Vries <tom@codesourcery.com>
3861
3862 * gen-pass-instances.awk (handle_line): Simplify match regexp.
3863
3864 2015-11-12 Tom de Vries <tom@codesourcery.com>
3865
3866 * gen-pass-instances.awk (handle_line): Simplify init of
3867 postfix_starts_at.
3868
3869 2015-11-12 Tom de Vries <tom@codesourcery.com>
3870
3871 * gen-pass-instances.awk (handle_line): Rename var where to
3872 call_starts_at.
3873
3874 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
3875
3876 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
3877 do not expand to rtl.
3878
3879 2015-11-12 Richard Biener <rguenther@suse.de>
3880
3881 PR tree-optimization/58497
3882 * tree-vect-generic.c: Include gimplify.h.
3883 (tree_vec_extract): Lookup constant/constructor DEFs.
3884 (do_cond): Unshare cond.
3885
3886 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3887
3888 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
3889 combined insn if the alignment of vector mode memory operand
3890 is less than ssememalign.
3891
3892 2015-11-12 Tom de Vries <tom@codesourcery.com>
3893
3894 * gen-pass-instances.awk (handle_line): Print parentheses and
3895 pass_name explicitly.
3896
3897 2015-11-12 Tom de Vries <tom@codesourcery.com>
3898
3899 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
3900 and postfix vars.
3901
3902 2015-11-12 Tom de Vries <tom@codesourcery.com>
3903
3904 * gen-pass-instances.awk (handle_line): Add comments.
3905
3906 2015-11-12 Tom de Vries <tom@codesourcery.com>
3907
3908 * gen-pass-instances.awk (handle_line): Rename len_of_end to
3909 len_of_close.
3910
3911 2015-11-12 Tom de Vries <tom@codesourcery.com>
3912
3913 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
3914
3915 2015-11-12 Tom de Vries <tom@codesourcery.com>
3916
3917 * gen-pass-instances.awk (handle_line): Restructure using early-out.
3918
3919 2015-11-12 Tom de Vries <tom@codesourcery.com>
3920
3921 * gen-pass-instances.awk (handle_line): Unify semicolon use.
3922
3923 2015-11-12 Tom de Vries <tom@codesourcery.com>
3924
3925 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
3926
3927 2015-11-12 Tom de Vries <tom@codesourcery.com>
3928
3929 * gen-pass-instances.awk: Add emacs indent setting.
3930
3931 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3932
3933 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
3934 to match.pd.
3935 Move Convert A/(B/C) to (A/B)*C to match.pd.
3936 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
3937 Move Optimize (X & (-A)) / A where A is a power of 2, to
3938 X >> log2(A) to match.pd.
3939
3940 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
3941 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
3942 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3943 New simplifier.
3944 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3945
3946 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
3947
3948 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
3949 variable.
3950 (neon_vst2_lane<mode>): Likewise.
3951 (neon_vld3_lane<mode>): Likewise.
3952 (neon_vst3_lane<mode>): Likewise.
3953 (neon_vld4_lane<mode>): Likewise.
3954 (neon_vst4_lane<mode>): Likewise.
3955
3956 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
3957 Sebastian Pop <s.pop@samsung.com>
3958
3959 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3960 New member codegen_error
3961 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
3962 early return.
3963 (translate_isl_ast_node_user): Early return in case of error.
3964 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3965 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
3966 (add_parameters_to_ivs_params): Remove macro.
3967 (graphite_regenerate_ast_isl): Add if_region pointer to region.
3968 * graphite-poly.c (new_poly_dr): Remove macro.
3969 (print_pdr): Same.
3970 (new_gimple_poly_bb): Same.
3971 (free_gimple_poly_bb): Same.
3972 (print_scop_params): Same.
3973 * graphite-poly.h (struct poly_dr): Same.
3974 (struct poly_bb): Add new_bb.
3975 (gbb_from_bb): Remove dead code.
3976 (pbb_from_bb): Same.
3977 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
3978 (parameter_index_in_region): Same.
3979 (find_scop_parameters): Same.
3980 (build_cross_bb_scalars_def): New.
3981 (build_cross_bb_scalars_use): New.
3982 (graphite_find_cross_bb_scalar_vars): New
3983 (try_generate_gimple_bb): Reads and Writes.
3984 (build_alias_set): Move.
3985 (gather_bbs::before_dom_children): Gather bbs visited.
3986 (build_scops): call build_alias_set.
3987 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
3988 (remove_simple_copy_phi): Delete.
3989 (remove_invariant_phi): Delete.
3990 (simple_copy_phi_p): Delete.
3991 (reduction_phi_p): Delete.
3992 (isl_id_for_dr): Remove unused param.
3993 (parameter_index_in_region_1): Remove macro usage.
3994 (set_scop_parameter_dim): Same.
3995 (add_param_constraints): Same.
3996 (add_conditions_to_constraints): Same
3997 (build_scop_iteration_domain): Same.
3998 (pdr_add_alias_set): Comment.
3999 (add_scalar_version_numbers): New.
4000 (build_poly_dr): ISL id.
4001 (build_scop_drs): Move.
4002 (build_poly_sr_1): Same.
4003 (insert_stmts): Remove.
4004 (build_poly_sr): New.
4005 (new_pbb_from_pbb): Delete.
4006 (insert_out_of_ssa_copy_on_edge): Delete.
4007 (create_zero_dim_array): Delete.
4008 (scalar_close_phi_node_p): Delete.
4009 (propagate_expr_outside_region): Delete.
4010 (rewrite_close_phi_out_of_ssa): Delete.
4011 (rewrite_phi_out_of_ssa): Delete.
4012 (rewrite_degenerate_phi): Delete.
4013 (rewrite_reductions_out_of_ssa): Delete.
4014 (rewrite_cross_bb_scalar_dependence): Delete.
4015 (handle_scalar_deps_crossing_scop_limits):
4016 (rewrite_cross_bb_scalar_deps): Delete.
4017 (build_poly_scop): Remove calls to out-of-ssa functions.
4018 * graphite.c (graphite_transform_loops): Early return in case of
4019 codegen error.
4020 * sese.c (debug_rename_map_1): Delete.
4021 (debug_rename_map): Delete.
4022 (sese_record_loop): Remove macro.
4023 (build_sese_loop_nests): Same.
4024 (new_sese_info): Same.
4025 (free_sese_info): Same.
4026 (sese_insert_phis_for_liveouts):
4027 (is_loop_closed_ssa_use): New.
4028 (number_of_phi_nodes): New.
4029 (bb_contains_loop_close_phi_nodes): New.
4030 (bb_contains_loop_phi_nodes): New.
4031 (phi_uses_name): New.
4032 (is_valid_rename):
4033 (get_rename): Add old_bb and loop_phi for more precise matching of
4034 exprs.
4035 (set_rename): Pass region.
4036 (later_of_the_two): New.
4037 (gsi_insert_earliest): New.
4038 (collect_all_ssa_names): New.
4039 (substitute_ssa_name): New.
4040 (rename_all_uses): New.
4041 (get_rename_from_scev): New.
4042 (rename_uses): Pass old_bb for more precise matching of exprs.
4043 (get_def_bb_for_const): New.
4044 (get_new_name): New.
4045 (get_loc): New.
4046 (get_edges): New.
4047 (copy_loop_phi_args): New.
4048 (copy_loop_phi_nodes): New.
4049 (get_loop_init_value): New.
4050 (find_init_value): New.
4051 (find_init_value_close_phi): New.
4052 (copy_loop_close_phi_args): New.
4053 (copy_loop_close_phi_nodes): New.
4054 (add_phi_arg_for_new_expr): New.
4055 (copy_cond_phi_args): New.
4056 (copy_cond_phi_nodes): New.
4057 (copy_phi_nodes): New.
4058 (should_copy_to_new_region): New.
4059 (set_rename_for_each_def): New.
4060 (graphite_copy_stmts_from_block): Early return in case of error.
4061 (copy_bb_and_scalar_dependences): Same.
4062 * sese.h (vec_find): New.
4063 (SESE_PARAMS): Delete.
4064 (SESE_LOOPS): Delete.
4065 (SESE_LOOP_NEST): Delete.
4066 (sese_contains_loop): Remove macro usage.
4067 (sese_nb_params): Same.
4068 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4069
4070 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4071
4072 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4073 isl_union_map_add_map on every pbb->schedule.
4074
4075 2015-11-11 Tom de Vries <tom@codesourcery.com>
4076
4077 * tree-parloops.c (create_parallel_loop): Return void.
4078
4079 2015-11-11 Tom de Vries <tom@codesourcery.com>
4080
4081 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4082 block only when needed.
4083
4084 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
4085
4086 * config/alpha/alpha-protos.h (print_operand): Remove.
4087 (print_operand_address): Remove.
4088 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4089 (PRINT_OPERAND_ADDRESS): Remove.
4090 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4091 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4092 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4093 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4094 (print_operand_address): Rename to...
4095 (alpha_print_operand_address): ...this and make static.
4096 (print_operand): Rename to...
4097 (alpha_print_operand): ...this and make static.
4098 (alpha_print_operand_punct_valid_p): New static function.
4099
4100 2015-11-11 Richard Biener <rguenther@suse.de>
4101
4102 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4103 Declare.
4104 (vect_analyze_data_refs_alignment): Make loop vect specific.
4105 (vect_verify_datarefs_alignment): Likewise.
4106 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4107 Add missing continue.
4108 (vect_compute_data_ref_alignment): Export.
4109 (vect_compute_data_refs_alignment): Merge into...
4110 (vect_analyze_data_refs_alignment): ... this.
4111 (verify_data_ref_alignment): Split out from ...
4112 (vect_verify_datarefs_alignment): ... here.
4113 (vect_slp_analyze_and_verify_node_alignment): New function.
4114 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4115 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4116 misplaced checks on alignment.
4117 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
4118 alignment analysis after SLP discovery and do it per instance.
4119 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4120 bother to re-try using different vector sizes.
4121
4122 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
4123 Cesar Philippidis <cesar@codesourcery.com>
4124
4125 * gimplify.c (enum omp_region_type): Add ORT_ACC,
4126 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
4127 (gimple_add_tmp_var): Add ORT_ACC checks.
4128 (gimplify_var_or_parm_decl): Likewise.
4129 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4130 (omp_add_variable): Look in outer contexts for openacc and allow
4131 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4132 (omp_notice_variable, omp_is_private, omp_check_private): Add
4133 ORT_ACC checks.
4134 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4135 Permit private openacc reductions.
4136 (gimplify_oacc_cache): Specify ORT_ACC.
4137 (gimplify_omp_workshare): Adjust OpenACC region types.
4138 (gimplify_omp_target_update): Likewise.
4139 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4140 (lower-rec_input_clauses): Don't handle openacc firstprivate
4141 references here.
4142 (lower_omp_target): Emit initializers for openacc firstprivate vars.
4143
4144 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
4145
4146 PR target/67265
4147 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4148 frame pointer for stack checking if non-call exceptions aren't used.
4149 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4150
4151 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
4152
4153 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4154 [LA]SHIFTRT.
4155
4156 2015-11-11 Martin Liska <mliska@suse.cz>
4157 Richard Biener <rguenther@suse.de>
4158
4159 PR rtl-optimization/68287
4160 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4161 number of elements.
4162
4163 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
4164
4165 * config/mips/mips.c (mips_breakable_sequence_p): New function.
4166 (mips_break_sequence): New function.
4167 (mips_reorg_process_insns): Use them. Use compact branches in selected
4168 situations.
4169
4170 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
4171
4172 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4173
4174 2015-11-11 Jiong Wang <jiong.wang@arm.com>
4175 Jim Wilson <wilson@gcc.gnu.org>
4176
4177 PR target/67305
4178 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4179 be true and eliminable registers mentioned.
4180
4181 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
4182
4183 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4184 options.
4185 * config/arc/arc-opts.h: Add ARCv2 CPUs.
4186 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4187 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4188 situation, and store instructions with large offsets.
4189 (arc_secondary_reload_conv): New function.
4190 (arc_init): Add ARCv2 options.
4191 (arc_conditional_register_usage): Select the proper register usage
4192 for ARCv2 processors.
4193 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4194 architecture.
4195 (arc_compute_function_type): Likewise.
4196 (arc_print_operand): Handle new ARCv2 punctuation characters.
4197 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4198 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4199 function.
4200 (arc_reorg, arc_hazard): Use it.
4201 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4202 (ASM_SPEC): Add ARCv2 options.
4203 (TARGET_NORM): ARC HS has norm instructions by default.
4204 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4205 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4206 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4207 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4208 Likewise.
4209 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4210 (TARGET_LP_WR_INTERLOCK): Likewise.
4211 * config/arc/arc.md
4212 (commutative_binary_mult_comparison_result_used, movsicc_insn)
4213 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4214 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4215 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4216 Use it for ARCv2.
4217 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4218 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4219 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4220 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4221 (extzvsi): New pattern.
4222 * config/arc/arc.opt: New ARCv2 options.
4223 * config/arc/arcEM.md: New file.
4224 * config/arc/arcHS.md: Likewise.
4225 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4226 values.
4227 (Cm2): A signed 9-bit integer constant constraint.
4228 (C62): An unsigned 6-bit integer constant constraint.
4229 (C16): A signed 16-bit integer constant constraint.
4230 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4231 (short_const_int_operand): New predicate.
4232 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4233 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4234 -mcode-density and -mdiv-rem.
4235
4236 2015-11-11 Julia Koval <julia.koval@intel.com>
4237
4238 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4239
4240 2015-11-11 Julia Koval <julia.koval@intel.com>
4241
4242 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4243
4244 2015-11-11 Martin Liska <mliska@suse.cz>
4245
4246 * gimple-ssa-strength-reduction.c (create_phi_basis):
4247 Use auto_vec.
4248 * passes.c (release_dump_file_name): New function.
4249 (pass_init_dump_file): Used from this function.
4250 (pass_fini_dump_file): Likewise.
4251 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4252 * var-tracking.c (vt_initialize): Use pool_allocator.
4253
4254 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
4255 Jiong Wang <jiong.wang@arm.com>
4256
4257 PR tree-optimization/68234
4258 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4259 node which estimiated to be VR_VARYING initially.
4260
4261 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
4262
4263 * regname.c (scan_rtx_reg): Check the matching number of consecutive
4264 registers when tying chains.
4265 (build_def_use): Move terminated_this_insn earlier in the function.
4266
4267 2015-11-10 Mike Frysinger <vapier@gentoo.org>
4268
4269 * configure.ac: Use = with test and not ==.
4270 * configure: Regenerated.
4271
4272 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
4273
4274 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4275 machine asserts. Update defines for 64 bit.
4276
4277 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4278
4279 PR target/63870
4280 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4281 lane number.
4282 (neon_vst1_lane<mode>): Likewise.
4283 (neon_vld2_lane<mode>): Likewise.
4284 (neon_vst2_lane<mode>): Likewise.
4285 (neon_vld3_lane<mode>): Likewise.
4286 (neon_vst3_lane<mode>): Likewise.
4287 (neon_vld4_lane<mode>): Likewise.
4288 (neon_vst4_lane<mode>): Likewise.
4289
4290 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4291
4292 PR target/63870
4293 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4294 qualifier_struct_load_store_lane_index.
4295 (arm_storestruct_lane_qualifiers) Likewise.
4296 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4297 big-endian.
4298 (neon_vst1_lane<mode>) Likewise.
4299 (neon_vld2_lane<mode>) Likewise.
4300 (neon_vst2_lane<mode>) Likewise.
4301 (neon_vld3_lane<mode>) Likewise.
4302 (neon_vst3_lane<mode>) Likewise.
4303 (neon_vld4_lane<mode>) Likewise.
4304 (neon_vst4_lane<mode>) Likewise.
4305
4306 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4307
4308 PR target/63870
4309 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4310 qualifier_struct_load_store_lane_index.
4311 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4312 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4313 argument qualifiers.
4314 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4315 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4316
4317 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
4318
4319 * config/nvptx/nvptx.opt (moptimize): New flag.
4320 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4321 default.
4322 (nvptx_optimize_inner): New.
4323 (nvptx_process_pars): Call it when optimizing.
4324 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4325
4326 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4327
4328 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4329 Remove redundant code.
4330
4331 2015-11-10 Jeff Law <law@redhat.com>
4332
4333 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4334 call to output_address.
4335 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4336 Add unnamed machine_mode argument.
4337
4338 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4339
4340 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4341 default to 64-bit.
4342
4343 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4344
4345 * config/i386/i386.md (*movabs<mode>_1): Add explicit
4346 size directives for -masm=intel.
4347 (*movabs<mode>_2): Ditto.
4348
4349 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4350
4351 * config/i386/i386.c (ix86_print_operand): Remove dead code that
4352 tried to avoid (%rip) for call operands.
4353
4354 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4355
4356 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4357 argument. Do not use RIP relative addressing when no_rip is set.
4358 (ix86_print_operand): Update call to ix86_print_operand_address_as.
4359 (ix86_print_operand_address): Ditto.
4360 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4361 absolute movabs operand 0. Add square braces for -masm=intel.
4362 (*movabs<mode>_2): Ditto for operand 1.
4363
4364 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4365
4366 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4367 combine_vcvtf2i pattern.
4368
4369 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4370
4371 * config/arm/arm.c (neon_valid_immediate): Remove integer
4372 CONST_DOUBLE handling. It should never occur.
4373
4374 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
4375
4376 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4377 (ATOMIC_LDOP): Likewise.
4378 (atomic_ldop): Likewise.
4379 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4380 (ATOMIC_LDOP): Likewise.
4381 (atomic_ldop): Likewise.
4382
4383 2015-11-10 Martin Liska <mliska@suse.cz>
4384
4385 * alloc-pool.h (allocate_raw): New function.
4386 (operator new (size_t, object_allocator<T> &a)): Use the
4387 function instead of object_allocator::allocate).
4388
4389 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4390
4391 * config/i386/sse.md (HALFMASKMODE): New attribute.
4392 (DOUBLEMASKMODE): New attribute.
4393 (vec_pack_trunc_qi): New.
4394 (vec_pack_trunc_<mode>): New.
4395 (vec_unpacks_lo_hi): New.
4396 (vec_unpacks_lo_si): New.
4397 (vec_unpacks_lo_di): New.
4398 (vec_unpacks_hi_hi): New.
4399 (vec_unpacks_hi_<mode>): New.
4400
4401 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4402
4403 * optabs.c (expand_binop_directly): Allow scalar mode for
4404 vec_pack_trunc_optab.
4405 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4406 boolean vector producers from pattern sequence when computing VF.
4407 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
4408 vect_recog_mask_conversion_pattern.
4409 (search_type_for_mask): Choose the smallest
4410 type if different size types are mixed.
4411 (build_mask_conversion): New.
4412 (vect_recog_mask_conversion_pattern): New.
4413 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
4414 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
4415 load with pattern.
4416 (vectorizable_conversion): Support boolean vectors.
4417 (free_stmt_vec_info): Allow patterns for statements with no lhs.
4418 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
4419
4420 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4421
4422 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
4423 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
4424 Cast mask to FP mode if required.
4425 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
4426 (vcond_mask_<mode><avx512fmaskmodelower>): New.
4427 (vcond_mask_<mode><sseintvecmodelower>): New.
4428 (vcond_mask_<mode><sseintvecmodelower>): New.
4429 (vcond_mask_v2div2di): New.
4430 (vcond_mask_<mode><sseintvecmodelower>): New.
4431 (vcond_mask_<mode><sseintvecmodelower>): New.
4432
4433 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4434
4435 * optabs-query.h (get_vcond_mask_icode): New.
4436 * optabs-tree.c (expand_vec_cond_expr_p): Use
4437 get_vcond_mask_icode for VEC_COND_EXPR with mask.
4438 * optabs.c (expand_vec_cond_mask_expr): New.
4439 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
4440 * optabs.def (vcond_mask_optab): New.
4441 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
4442 generate redundant comparison for COND_EXPR.
4443 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
4444 as a condition.
4445 (vectorizable_condition): Likewise.
4446 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
4447 cond_exp with no embedded comparison.
4448 (vect_build_slp_tree_1): Likewise.
4449
4450 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4451
4452 * config/i386/sse.md (maskload<mode>): Rename to ...
4453 (maskload<mode><sseintvecmodelower>): ... this.
4454 (maskstore<mode>): Rename to ...
4455 (maskstore<mode><sseintvecmodelower>): ... this.
4456 (maskload<mode><avx512fmaskmodelower>): New.
4457 (maskstore<mode><avx512fmaskmodelower>): New.
4458
4459 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4460
4461 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
4462 (expand_MASK_STORE): Adjust to maskstore optab changes.
4463 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
4464 Adjust to maskload, maskstore optab changes.
4465 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
4466 * optabs.def (maskload_optab): Transform into convert optab.
4467 (maskstore_optab): Likewise.
4468 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
4469 can_vec_mask_load_store_p signature change.
4470 (predicate_mem_writes): Use boolean mask.
4471 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
4472 can_vec_mask_load_store_p signature change. Allow invariant masks.
4473 (vectorizable_operation): Ignore type precision for boolean vectors.
4474
4475 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4476
4477 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
4478 (const_vector_mask_from_tree): New.
4479 (const_vector_from_tree): Use const_vector_mask_from_tree
4480 for boolean vectors.
4481 * optabs-query.h (get_vec_cmp_icode): New.
4482 * optabs-tree.c (expand_vec_cmp_expr_p): New.
4483 * optabs-tree.h (expand_vec_cmp_expr_p): New.
4484 * optabs.c (vector_compare_rtx): Add OPNO arg.
4485 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
4486 (expand_vec_cmp_expr): New.
4487 * optabs.def (vec_cmp_optab): New.
4488 (vec_cmpu_optab): New.
4489 * optabs.h (expand_vec_cmp_expr): New.
4490 * tree-vect-generic.c (expand_vector_comparison): Add vector
4491 comparison optabs check.
4492 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
4493 operations for VF. Add mask type computation.
4494 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
4495 (vectorizable_comparison): New.
4496 (vect_analyze_stmt): Add vectorizable_comparison.
4497 (vect_transform_stmt): Likewise.
4498 (vect_init_vector): Support boolean vector invariants.
4499 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4500 (vectorizable_condition): Directly provide vectype for invariants
4501 used in comparison.
4502 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
4503 (enum vect_var_kind): Add vect_mask_var.
4504 (enum stmt_vec_info_type): Add comparison_vec_info_type.
4505 (vectorizable_comparison): New.
4506 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4507 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
4508 (vect_create_destination_var): Likewise.
4509 * tree-vect-patterns.c (check_bool_pattern): Check fails
4510 if we can vectorize comparison directly.
4511 (search_type_for_mask): New.
4512 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
4513 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
4514 comparison statements.
4515 (vect_get_constant_vectors): Support boolean vector constants.
4516 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
4517 (ix86_expand_int_vec_cmp): New.
4518 (ix86_expand_fp_vec_cmp): New.
4519 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
4520 op_true and op_false.
4521 (ix86_int_cmp_code_to_pcmp_immediate): New.
4522 (ix86_fp_cmp_code_to_pcmp_immediate): New.
4523 (ix86_cmp_code_to_pcmp_immediate): New.
4524 (ix86_expand_mask_vec_cmp): New.
4525 (ix86_expand_fp_vec_cmp): New.
4526 (ix86_expand_int_sse_cmp): New.
4527 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
4528 (ix86_expand_int_vec_cmp): New.
4529 (ix86_get_mask_mode): New.
4530 (TARGET_VECTORIZE_GET_MASK_MODE): New.
4531 * config/i386/sse.md (avx512fmaskmodelower): New.
4532 (vec_cmp<mode><avx512fmaskmodelower>): New.
4533 (vec_cmp<mode><sseintvecmodelower>): New.
4534 (vec_cmpv2div2di): New.
4535 (vec_cmpu<mode><avx512fmaskmodelower>): New.
4536 (vec_cmpu<mode><sseintvecmodelower>): New.
4537 (vec_cmpuv2div2di): New.
4538
4539 2015-11-10 Richard Biener <rguenther@suse.de>
4540
4541 PR tree-optimization/68240
4542 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
4543 properly.
4544 (visit_phi): For PHIs with just a single executable edge
4545 take its value directly.
4546 (expressions_equal_p): Handle VN_TOP properly.
4547
4548 2015-11-10 Richard Biener <rguenther@suse.de>
4549
4550 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4551 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
4552 conservatively.
4553
4554 2015-11-10 Richard Biener <rguenther@suse.de>
4555
4556 PR tree-optimization/56118
4557 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
4558 cost favor vectorized version.
4559
4560 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4561
4562 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
4563 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
4564 (neg_not_op): New code attribute.
4565
4566 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4567
4568 * ifcvt.c (noce_try_inverse_constants): New function.
4569 (noce_process_if_block): Call it.
4570 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
4571 * optabs.def (negcc_optab, notcc_optab): Declare.
4572 * optabs.c (emit_conditional_neg_or_complement): New function.
4573 * doc/tm.texi (Standard Names): Document negcc, notcc names.
4574
4575 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4576
4577 PR rtl-optimization/68236
4578 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
4579 if insn_queue doesn't exist.
4580 (haifa_sched_finish): Reset insn_queue to NULL.
4581
4582 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
4583
4584 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
4585 (build_def_use): Initialize terminated_this_insn.
4586 (find_best_rename_reg): Pick and check register from the tied chain.
4587 (regrename_do_replace): Mark head as renamed.
4588 (struct du_head *terminated_this_insn). New static variable.
4589 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
4590 * regrename.h (struct du_head): Add tied_chain, renamed members.
4591
4592 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4593
4594 PR bootstrap/68256
4595 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
4596 Return false.
4597
4598 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4599
4600 PR target/57845
4601 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
4602 not promote the mode for aggregate types.
4603
4604 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4605
4606 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
4607 * omp-low.c (build_oacc_routine_dims): New.
4608
4609 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4610
4611 * config/rs6000/constraints.md (wF constraint): New constraints
4612 for power9/toc fusion.
4613 (wG constraint): Likewise.
4614
4615 * config/rs6000/predicates.md (u6bit_cint_operand): New
4616 predicate, recognize 0..63.
4617 (upper16_cint_operand): New predicate for power9 and toc fusion.
4618 (fpr_reg_operand): Likewise.
4619 (toc_fusion_or_p9_reg_operand): Likewise.
4620 (toc_fusion_mem_raw): Likewise.
4621 (toc_fusion_mem_wrapped): Likewise.
4622 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
4623 address range.
4624 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
4625 instead.
4626 (fusion_addis_mem_combo_load): Add support for power9 fusion of
4627 floating point loads, floating point stores, and gpr stores.
4628 (fusion_addis_mem_combo_store): Likewise.
4629 (fusion_offsettable_mem_operand): Likewise.
4630
4631 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
4632 (emit_fusion_load_store): Likewise.
4633 (fusion_p9_p): Likewise.
4634 (expand_fusion_p9_load): Likewise.
4635 (expand_fusion_p9_store): Likewise.
4636 (emit_fusion_p9_load): Likewise.
4637 (emit_fusion_p9_store): Likewise.
4638 (fusion_wrap_memory_address): Likewise.
4639
4640 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
4641 elements for power9 fusion.
4642 (rs6000_debug_print_mode): Rework debug information to print more
4643 information about fusion.
4644 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
4645 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
4646 offsettable memory address.
4647 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
4648 (emit_fusion_gpr_load): Move most of the code from
4649 emit_fusion_gpr_load into emit_fusion-addis that handles both
4650 power8 and power9 fusion.
4651 (emit_fusion_addis): Likewise.
4652 (emit_fusion_load_store): Likewise.
4653 (fusion_wrap_memory_address): Add support for TOC fusion.
4654 (fusion_split_address): Likewise.
4655 (fusion_p9_p): Add support for power9 fusion.
4656 (expand_fusion_p9_load): Likewise.
4657 (expand_fusion_p9_store): Likewise.
4658 (emit_fusion_p9_load): Likewise.
4659 (emit_fusion_p9_store): Likewise.
4660
4661 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
4662 new instructions in ISA 3.0.
4663 (TARGET_CTZ): Likewise.
4664 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
4665 (TARGET_TOC_FUSION_FP): Likewise.
4666
4667 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
4668 fusion unspecs.
4669 (UNSPEC_FUSION_ADDIS): Likewise.
4670 (QHSI mode iterator): New iterator for power9 fusion.
4671 (GPR_FUSION): Likewise.
4672 (FPR_FUSION): Likewise.
4673 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
4674 (umod<mode>3): Likewise.
4675 (divmod peephole): Likewise.
4676 (udivmod peephole): Likewise.
4677 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
4678 instructions.
4679 (ctz<mode>2_h): Likewise.
4680 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
4681 (ashdi3_extswsli_dot): Likewise.
4682 (ashdi3_extswsli_dot2): Likewise.
4683 (power9 fusion splitter): New power9/toc fusion support.
4684 (toc_fusionload_<mode>): Likewise.
4685 (toc_fusionload_di): Likewise.
4686 (fusion_gpr_load_<mode>): Update predicate function.
4687 (power9 fusion peephole2s): New power9/toc fusion support.
4688 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4689 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
4690 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4691 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4692 (fusion_p9_<mode>_constant): Likewise.
4693
4694 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
4695
4696 * optabs.c (prepare_libcall_arg): New function.
4697 (expand_fixed_convert): Add call to prepare_libcall_arg.
4698
4699 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
4700
4701 * sched-int.h (dump_rgn_dependencies_dot): Declare
4702 * sched-rgn.c (dump_rgn_dependencies_dot): New function
4703 * print-rtl.h (print_insn): Add prototype
4704
4705 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
4706 * common.opt (-fsched-verbose): Set default value to 1.
4707 * invoke.texi (-fsched-verbose): Update the option's description.
4708
4709 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4710
4711 * config/visium/visium.h (PRINT_OPERAND): Delete.
4712 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4713 (PRINT_OPERAND_ADDRESS): Likewise.
4714 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
4715 to...
4716 (visium_print_operand_punct_valid_p): ...this. New function.
4717 (TARGET_PRINT_OPERAND): Define to...
4718 (print_operand): Rename to...
4719 (visium_print_operand): ...this.
4720 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
4721 (visium_output_address): Rename to...
4722 (visium_print_operand_address): ...this.
4723 (print_operand_address): Delete.
4724
4725 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4726
4727 PR middle-end/68259
4728 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
4729 Check that the type of the first operand is an aggregate type.
4730
4731 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4732
4733 * omp-low.c: Fix some OpenACC comment typos.
4734 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
4735 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
4736 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
4737
4738 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
4739
4740 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
4741
4742 2015-11-09 Jeff Law <law@redhat.com>
4743
4744 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
4745 being in gimple/ssa form. Remove redundant check for SSA_NAME.
4746 Fix comment typo.
4747
4748 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4749 Peter Bergner <bergner@vnet.ibm.com>
4750
4751 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
4752 ISA 3.0 (power9).
4753 (-mpower9-vector): Likewise.
4754 (-mpower9-dform): Likewise.
4755 (-mpower9-minmax): Likewise.
4756 (-mtoc-fusion): Likewise.
4757 (-mmodulo): Likewise.
4758 (-mfloat128-hardware): Likewise.
4759
4760 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
4761 mask for ISA 3.0 (power9).
4762 (POWERPC_MASKS): Add new ISA 3.0 switches.
4763 (power9 cpu): Add power9 cpu.
4764
4765 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
4766 (ASM_CPU_SPEC): Likewise.
4767 (EXTRA_SPECS): Likewise.
4768
4769 * config/rs6000/rs6000-opts.h (enum processor_type): Add
4770 PROCESSOR_POWER9.
4771
4772 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
4773 (rs6000_debug_reg_global): Add support for power9 fusion.
4774 (rs6000_setup_reg_addr_masks): Cache mode size.
4775 (rs6000_option_override_internal): Until real power9 tuning is
4776 added, use -mtune=power8 for -mcpu=power9.
4777 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
4778 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
4779 of Altivec registers.
4780 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
4781 (rs6000_loop_align): Add support for power9 cpu.
4782 (rs6000_file_start): Likewise.
4783 (rs6000_adjust_cost): Likewise.
4784 (rs6000_issue_rate): Likewise.
4785 (insn_must_be_first_in_group): Likewise.
4786 (insn_must_be_last_in_group): Likewise.
4787 (force_new_group): Likewise.
4788 (rs6000_register_move_cost): Likewise.
4789 (rs6000_opt_masks): Likewise.
4790
4791 * config/rs6000/rs6000.md (cpu attribute): Add power9.
4792 * config/rs6000/rs6000-tables.opt: Regenerate.
4793
4794 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4795 _ARCH_PWR9 if power9 support is available.
4796
4797 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
4798 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
4799
4800 * configure.ac: Determine if the assembler supports the ISA 3.0
4801 instructions.
4802 * config.in (HAVE_AS_POWER9): Likewise.
4803 * configure: Regenerate.
4804
4805 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
4806 switches.
4807
4808 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4809
4810 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
4811 Remove integer CONST_DOUBLE handling. It should never occur.
4812
4813 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4814
4815 PR target/68129
4816 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
4817 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
4818 Delete VOIDmode case. Assert that mode is not VOIDmode.
4819 * config/aarch64/predicates.md (const0_operand): Remove const_double
4820 match.
4821
4822 2015-11-09 Martin Liska <mliska@suse.cz>
4823
4824 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
4825 body_info release function.
4826 * ipa-prop.c (ipa_release_body_info): New function.
4827 (ipa_analyze_node): Call the function.
4828 (ipa_node_params::~ipa_node_params): Release known_csts.
4829 * ipa-prop.h (ipa_release_body_info): Declare.
4830
4831 2015-11-09 Martin Liska <mliska@suse.cz>
4832
4833 * gcc.c (record_temp_file): Release name string.
4834 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
4835 * lra-lives.c (free_live_range_list): Utilize
4836 lra_live_range_pool for allocation and deallocation.
4837 (create_live_range): Likewise.
4838 (copy_live_range): Likewise.
4839 (lra_merge_live_ranges): Likewise.
4840 (remove_some_program_points_and_update_live_ranges): Likewise.
4841 (lra_create_live_ranges_1): Release point_freq_vec that can
4842 be not freed from previous iteration of the function.
4843 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
4844 * tree-sra.c (sra_deinitialize): Release all vectors in
4845 base_access_vec.
4846 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
4847 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4848 Release edge_info for a removed edge.
4849 (thread_through_all_blocks): Free region vector.
4850 * tree-ssa.h (free_dom_edge_info): Declare function extern.
4851
4852 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
4853
4854 * optabs.c (expand_vec_cond_expr): Always get sign from type.
4855 * tree.c (wide_int_to_tree): Support negative values for boolean.
4856 (build_nonstandard_boolean_type): Use signed type for booleans.
4857
4858 2015-11-09 Richard Biener <rguenther@suse.de>
4859
4860 PR tree-optimization/68248
4861 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
4862
4863 2015-11-09 Richard Biener <rguenther@suse.de>
4864
4865 PR tree-optimization/56118
4866 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
4867 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
4868 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
4869 function.
4870 (vect_slp_analyze_data_ref_dependences): Instead of computing
4871 all dependences of the region DRs just analyze the code motions
4872 SLP vectorization will perform. Remove SLP instances that
4873 cannot have their store/load motions applied.
4874 (vect_analyze_data_refs): Allow DRs without a vectype
4875 in BB vectorization.
4876
4877 2015-11-09 Julian Brown <julian@codesourcery.com>
4878
4879 * final.c (output_asm_insn): Pass VOIDmode to output_address.
4880 (output_address): Add MODE argument. Pass to print_operand_address
4881 hook.
4882 * targhooks.c (default_print_operand_address): Add MODE argument.
4883 * targhooks.h (default_print_operand_address): Update prototype.
4884 * output.h (output_address): Update prototype.
4885 * target.def (print_operand_address): Add MODE argument.
4886 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
4887 output_address.
4888 (print_operand): Pass access mode to output_address.
4889 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
4890 argument.
4891 (mcore_print_operand): Update calls to mcore_print_operand_address.
4892 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
4893 output_address.
4894 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
4895 output_address.
4896 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
4897 global.
4898 (tilegx_print_operand): Don't set above global. Update calls to
4899 output_address.
4900 (tilegx_print_operand_address): Add MODE argument. Use instead of
4901 output_memory_reference_mode global.
4902 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
4903 (frv_print_operand): Pass mode to frv_print_operand_address calls.
4904 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
4905 output_address.
4906 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
4907 (cris_print_operand): Pass mode to output_address calls.
4908 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
4909 * config/aarch64/aarch64.h (aarch64_print_operand)
4910 (aarch64_print_operand_address): Remove prototypes.
4911 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
4912 global.
4913 (aarch64_print_operand): Make static. Update calls to output_address.
4914 (aarch64_print_operand_address): Add MODE argument. Use instead of
4915 aarch64_memory_reference_mode global.
4916 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
4917 hooks.
4918 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4919 Delete macro definitions.
4920 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
4921 * config/xtensa/xtensa.c (print_operand): Pass mode in
4922 output_address calls.
4923 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
4924 argument.
4925 (h83000_print_operand): Update calls to h8300_print_operand_address
4926 and output_address.
4927 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
4928 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
4929 global.
4930 (tilepro_print_operand): Pass mode to output_address.
4931 (tilepro_print_operand_address): Add MODE argument. Use instead of
4932 output_memory_reference_mode.
4933 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
4934 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
4935 to output_address calls.
4936 (nvptx_print_operand_address): Add MODE argument.
4937 * config/alpha/alpha.c (print_operand): Pass mode argument in
4938 output_address calls.
4939 * config/m68k/m68k.c (print_operand): Pass mode argument in
4940 output_address call.
4941 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
4942 (avr_print_operand): Update calls to avr_print_operand_address.
4943 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4944 argument. Update calls to output_address.
4945 (sparc_print_operand): Pass mode to output_address.
4946 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
4947 argument.
4948 (iq2000_print_operand): Pass mode in output_address calls.
4949 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
4950 MODE argument.
4951 (xstormy16_print_operand): Pass mode to
4952 xstormy16_print_operand_address calls.
4953 * config/mips/mips.c (mips_print_operand): Update calls to
4954 output_address.
4955 (mips_print_operand_address): Add MODE argument.
4956 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
4957 to output_address.
4958 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
4959 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
4960 output_address.
4961 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
4962 (rx_print_operand): Update calls to output_address,
4963 rx_print_operand_address.
4964 * config/nds32/nds32.c (nds32_print_operand): Update calls to
4965 output_address.
4966 (nds32_print_operand_address): Add MODE argument.
4967 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
4968 output_address calls.
4969 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
4970 output_address call.
4971 (c6x_print_address_operand): Update calls to output_address.
4972 (c6x_print_operand_address): Pass mode to above.
4973 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
4974 (v850_print_operand): Pass mode to v850_print_operand_address,
4975 output_address.
4976 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
4977 (mmix_print_operand): Pass mode in output_address calls.
4978 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
4979 (sh_print_operand): Pass mem mode to output_address,
4980 sh_print_operand_address.
4981 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
4982 (cr16_print_operand): Pass mode to output_address,
4983 cr16_print_operand_address.
4984 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
4985 output_address.
4986 * config/microblaze/microblaze.c (print_operand): Pass mode to
4987 output_address.
4988 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
4989 output_address.
4990 (nios2_print_operand_address): Add MODE argument. Update call to
4991 nios2_print_operand_address.
4992 * config/s390/s390.c (print_operand): Pass mode to output_address.
4993 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
4994 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
4995 output_address.
4996 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
4997 Use instead of output_memory_reference_mode.
4998 (output_memory_reference_mode): Delete global.
4999 (arm_print_operand): Pass mem mode to output_address.
5000 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5001 (m32r_print_operand): Pass mode to output_address.
5002 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5003 argument.
5004 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5005 * config/i386/i386.c (ix86_print_operand): Pass mode to
5006 output_address calls.
5007 (ix86_print_operand_address): Add MODE argument.
5008
5009 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5010
5011 PR middle-end/68251
5012 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5013 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5014 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5015 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5016
5017 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5018
5019 PR rtl-optimization/67749
5020 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5021 case before emitting the two blocks. Instead modify the register
5022 in the corresponding final insn of the basic block.
5023
5024 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5025
5026 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5027 assembler syntax.
5028 Support Solaris ld.
5029 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5030
5031 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5032 HAVE_INITFINI_ARRAY_SUPPORT.
5033 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5034
5035 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5036 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5037 Don't check HAVE_AS_SPARC_NOBITS.
5038 Heed SECTION_NOTYPE.
5039
5040 * configure: Regenerate.
5041 * config.in: Regenerate.
5042
5043 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5044
5045 PR middle-end/68253
5046 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5047
5048 2015-11-09 Richard Henderson <rth@redhat.com>
5049
5050 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5051 __SEG_GS, __SEG_TLS.
5052 (ix86_register_pragmas): Register address spaces __seg_fs,
5053 __seg_gs, __seg_tls.
5054 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5055 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5056 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5057 * config/i386/i386.c (ix86_decompose_address): Likewise.
5058 (ix86_legitimate_address_p): Likewise.
5059 (memory_address_length): Likewise. Check mem address space too.
5060 (ix86_print_operand): Use ix86_print_operand_address_as.
5061 (ix86_print_operand_address_as): Rename from
5062 ix86_print_operand_address, add new addr_space_t parameter.
5063 Validate that either the parameter or the ix86_address segment
5064 is default address space. Handle ADDR_SPACE_SEG_TLS.
5065 (ix86_print_operand_address): New.
5066 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5067 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5068 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5069 (ix86_addr_space_zero_address_valid): New.
5070 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5071 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5072 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5073 * config/i386/predicates.md (address_no_seg_operand): Likewise.
5074 (vsib_address_operand): Likewise.
5075 (address_mpx_no_base_operand): Likewise.
5076 (address_mpx_no_index_operand): Likewise.
5077 * doc/extend.texi (x86 Named Address Spaces): New section.
5078
5079 * config/i386/i386.c (ix86_check_no_addr_space): New.
5080 (decide_alg): Add have_as parameter.
5081 (alg_usable_p): Likewise; disable rep algorithms if set.
5082 (ix86_expand_set_or_movmem): Notice if either MEM has a
5083 non-default address space.
5084 (ix86_expand_strlen): Likewise.
5085 * config/i386/i386.md (strmov, strset): Likewise.
5086 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5087 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5088 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5089 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5090 *cmpstrnqi_1, *strlenqi_1): Likewise.
5091
5092 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5093 (*movabs<mode>_2): Likewise.
5094
5095 * dwarf2out.c (modified_type_die): Pass the address space number
5096 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5097 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5098 * targhooks.c (default_addr_space_debug): New.
5099 * targhooks.h (default_addr_space_debug): Declare.
5100 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5101 * doc/tm.texi: Rebuild.
5102
5103 * gimple.c (check_loadstore): Return false when 0 is a valid address.
5104 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5105 null when 0 is valid in the source address space.
5106 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5107 * targhooks.c (default_addr_space_zero_address_valid): New.
5108 * targhooks.h (default_addr_space_zero_address_valid): Declare.
5109 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5110 * doc/tm.texi: Rebuild.
5111
5112 * cselib.c (add_mem_for_addr): Compare address spaces when
5113 matching memories.
5114 (cselib_lookup_mem): Likewise.
5115 * fold-const.c (operand_equal_p): Check address spaces of
5116 pointer types before checking integer constants.
5117
5118 PR tree-opt/66768
5119 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5120 the correct type for the base.
5121
5122 2015-11-09 Jeff Law <law@redhat.com>
5123
5124 * tree-into-ssa.c (names_to_release): No longer static.
5125 * tree-into-ssa.h (names_to_release): Declare.
5126 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5127 (release_free_names_and_compact_live_names): New function extracted
5128 from pass_release_ssa_names::execute.
5129 (pass_release_ssa_names::execute): Use it.
5130
5131 2015-11-09 Alan Modra <amodra@gmail.com>
5132
5133 * gensupport.c (add_mnemonic_string): Make len param a size_t.
5134 (gen_mnemonic_setattr): Make "size" var a size_t. Use
5135 obstack_blank_fast to shrink obstack. Cast obstack_next_free
5136 return value.
5137
5138 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5139
5140 PR rtl-optimization/68182
5141 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5142 branch with only one successor just like unconditional branches.
5143
5144 2015-11-08 Jeff Law <law@redhat.com>
5145
5146 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5147 non-FSM path has no edges marked with EDGE_DFS_BACK.
5148 (ssa_redirect_edges): No longer call mark_loop_for_removal.
5149 (thread_single_edge, def_split_header_continue_p): Remove.
5150 (bb_ends_with_multiway_branch): Likewise.
5151 (thread_through_loop_header): Remove cases of threading from
5152 latch through the header. Simplify knowing we won't thread
5153 the latch.
5154 (thread_through_all_blocks): Simplify knowing that only the FSM
5155 threader needs to handle backedges.
5156
5157 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
5158
5159 * doc/extend.texi (type attributes): Document scalar_storage_order.
5160 (Structure-Packing Pragmas): Rename into...
5161 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
5162 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5163 (Warnings): Document -Wno-scalar-storage-order.
5164 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5165 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5166 extract_bit_field and store_bit_field.
5167 (initialize_argument_information): Adjust call to store_expr.
5168 (load_register_parameters): Adjust call to extract_bit_field.
5169 * expmed.c (check_reverse_storage_order_support): New function.
5170 (check_reverse_float_storage_order_support): Likewise.
5171 (flip_storage_order): Likewise.
5172 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
5173 of the value if it is true. Pass REVERSE to recursive call after
5174 adjusting the target offset.
5175 Do not use extraction or movstrict instruction if REVERSE is true.
5176 Pass REVERSE to store_fixed_bit_field.
5177 (store_bit_field): Add REVERSE parameter and pass to it to above.
5178 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5179 store_split_bit_field and store_fixed_bit_field_1.
5180 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5181 order of the value if it is true and adjust the target offset.
5182 (store_split_bit_field): Add REVERSE parameter and pass it to
5183 store_fixed_bit_field. Adjust the target offset if it is true.
5184 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
5185 of the value if it is true. Pass REVERSE to recursive call after
5186 adjusting the target offset.
5187 Do not use extraction or subreg instruction if REVERSE is true.
5188 Pass REVERSE to extract_fixed_bit_field.
5189 (extract_bit_field): Add REVERSE parameter and pass to it to above.
5190 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5191 extract_split_bit_field and extract_fixed_bit_field_1.
5192 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5193 order of the value if it is true and adjust the target offset.
5194 (extract_split_bit_field): Add REVERSE parameter and pass it to
5195 extract_fixed_bit_field. Adjust the target offset if it is true.
5196 * expmed.h (flip_storage_order): Declare.
5197 (store_bit_field): Adjust prototype.
5198 (extract_bit_field): Likewise.
5199 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5200 (emit_group_store): Adjust call to store_bit_field.
5201 (copy_blkmode_from_reg): Likewise.
5202 (copy_blkmode_to_reg): Likewise.
5203 (write_complex_part): Likewise.
5204 (read_complex_part): Likewise.
5205 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
5206 that it isn't true if the target is a register.
5207 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5208 and flip the storage order of the value.
5209 <BIT_IOR_EXPR>: Flip the storage order of the value.
5210 (get_bit_range): Adjust call to get_inner_reference.
5211 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5212 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
5213 with reverse storage order.
5214 (store_expr_with_bounds): Add REVERSE parameter and pass it to
5215 recursive calls and call to store_bit_field. Force the value into a
5216 register if it is true and then flip the storage order of the value.
5217 (store_expr): Add REVERSE parameter and pass it to above.
5218 (categorize_ctor_elements_1): Adjust call to
5219 initializer_constant_valid_p.
5220 (store_constructor_field): Add REVERSE parameter and pass it to
5221 recursive calls and call to store_field.
5222 (store_constructor): Add REVERSE parameter and pass it to calls to
5223 store_constructor_field and store_expr. Set it to true for an
5224 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5225 (store_field): Add REVERSE parameter and pass it to recursive calls
5226 and calls to store_expr and store_bit_field. Temporarily flip the
5227 storage order of the value with record type and integral mode and
5228 adjust the shift if it is true.
5229 (get_inner_reference): Add PREVERSEP parameter and set it to true
5230 upon encoutering a reference with reverse storage order.
5231 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5232 (expand_constructor): Adjust call to store_constructor.
5233 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5234 of the union type to store_expr in the MEM case and assert that it
5235 isn't set in the REG case. Adjust call to store_field.
5236 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5237 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5238 get_inner_reference and extract_bit_field. Temporarily flip the
5239 storage order of the value with record type and integral mode and
5240 adjust the shift if it is true. Flip the storage order of the value
5241 at the end if it is true.
5242 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5243 get_inner_reference. Do not fetch an inner reference if it is true.
5244 * expr.h (store_expr_with_bounds): Ajust prototype.
5245 (store_expr): Likewise.
5246 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5247 REF_REVERSE_STORAGE_ORDER on the reference according to it.
5248 (optimize_bit_field_compare): Deal with reverse storage order.
5249 Adjust calls to get_inner_reference and make_bit_field_ref.
5250 (decode_field_reference): Add PREVERSEP parameter and adjust call to
5251 get_inner_reference.
5252 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
5253 to decode_field_reference and make_bit_field_ref.
5254 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5255 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5256 (fold_comparison): Adjust call to get_inner_reference.
5257 (split_address_to_core_and_offset): Adjust call to
5258 get_inner_reference.
5259 * gimple-expr.c (useless_type_conversion_p): Return false for array
5260 types with different TYPE_REVERSE_STORAGE_ORDER flag.
5261 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5262 REF_REVERSE_STORAGE_ORDER flag.
5263 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5264 * output.h (assemble_real): Adjust prototype.
5265 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5266 * stor-layout.c (finish_record_layout): Propagate the
5267 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5268 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5269 (TYPE_SATURATING): Adjust.
5270 (REF_REVERSE_STORAGE_ORDER): Document.
5271 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5272 set it to true upon encoutering a reference with reverse storage order.
5273 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5274 * tree-inline.c (remap_gimple_op_r): Propagate the
5275 REF_REVERSE_STORAGE_ORDER flag.
5276 (copy_tree_body_r): Likewise.
5277 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5278 store_expr.
5279 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5280 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5281 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5282 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5283 REF_REVERSE_STORAGE_ORDER flag.
5284 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5285 (gimple_canonical_types_compatible_p): Likewise.
5286 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5287 (TYPE_SATURATING): Adjust.
5288 (REF_REVERSE_STORAGE_ORDER): New flag.
5289 (reverse_storage_order_for_component_p): New inline predicate.
5290 (storage_order_barrier_p): Likewise.
5291 (get_inner_reference): Adjust prototype.
5292 * varasm.c: Include expmed.h.
5293 (assemble_variable_contents): Adjust call to output_constant.
5294 (assemble_real): Add REVERSE parameter. Flip the storage
5295 order of the value if REVERSE is true.
5296 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5297 (assemble_constant_contents): Adjust call to output_constant.
5298 (output_constant_pool_2): Adjust call to assemble_real.
5299 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5300 TYPE_REVERSE_STORAGE_ORDER.
5301 (initializer_constant_valid_p): Add REVERSE parameter.
5302 (output_constant): Add REVERSE parameter.
5303 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5304 <REAL_TYPE>: Adjust call to assemble_real.
5305 <COMPLEX_TYPE>: Pass it to recursive calls.
5306 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
5307 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
5308 (struct oc_local_state): Add REVERSE field.
5309 (output_constructor_array_range): Adjust calls to output_constant.
5310 (output_constructor_regular_field): Likewise.
5311 (output_constructor_bitfield): Adjust call to output_constructor.
5312 Flip the storage order of the value if REVERSE is true.
5313 (output_constructor): Add REVERSE parameter. Set it to true for an
5314 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
5315 output_constructor_bitfield.
5316 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5317 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5318 * builtins.c (get_object_alignment_2): Likewise.
5319 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5320 and get_ref_base_and_extent.
5321 * dbxout.c (dbxout_expand_expr): Likewise.
5322 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5323 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5324 (loc_list_from_tree): Likewise.
5325 (fortran_common): Likewise.
5326 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5327 get_ref_base_and_extent.
5328 (get_base_constructor): Likewise.
5329 (fold_const_aggregate_ref_1): Likewise.
5330 * gimple-laddress.c (pass_laddress::execute): Adjust call to
5331 get_inner_reference.
5332 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5333 get_inner_reference and bail out on reverse storage order.
5334 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5335 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5336 build_ref_for_offset.
5337 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5338 get_ref_base_and_extent.
5339 (ipa_polymorphic_call_context): Likewise.
5340 (extr_type_from_vtbl_ptr_store): Likewise.
5341 (check_stmt_for_type_change): Likewise.
5342 (get_dynamic_type): Likewise.
5343 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5344 get_ref_base_and_extent.
5345 (compute_complex_assign_jump_func): Likewise.
5346 (get_ancestor_addr_info): Likewise.
5347 (compute_known_type_jump_func): Likewise.
5348 (determine_known_aggregate_parts): Likewise.
5349 (ipa_get_adjustment_candidate): Likewise.
5350 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5351 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5352 (build_ref_for_offset): Adjust prototype.
5353 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5354 get_inner_reference.
5355 * tree-affine.c (tree_to_aff_combination): Adjust call to
5356 get_inner_reference.
5357 (get_inner_reference_aff): Likewise.
5358 * tree-data-ref.c (split_constant_offset_1): Likewise.
5359 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
5360 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5361 get_inner_reference.
5362 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5363 (dump_access): Print new fields.
5364 (create_access): Adjust call to get_ref_base_and_extent and set the
5365 REVERSE flag according to the result.
5366 (completely_scalarize_record): Set the REVERSE flag.
5367 (scalarize_elem): Add REVERSE parameter.
5368 (build_access_from_expr_1): Preserve storage order barriers.
5369 (build_accesses_from_assign): Likewise.
5370 (build_ref_for_offset): Add REVERSE parameter and set the
5371 REF_REVERSE_STORAGE_ORDER flag accordingly.
5372 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5373 the REF_REVERSE_STORAGE_ORDER flag if there are components.
5374 (analyze_access_subtree): Likewise.
5375 (create_artificial_child_access): Set the REVERSE flag.
5376 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5377 (turn_representatives_into_adjustments): Propagate REVERSE flag.
5378 (ipa_sra_check_caller): Adjust call to get_inner_reference.
5379 * tree-ssa-alias.c (ao_ref_base): Adjust call to
5380 get_ref_base_and_extent.
5381 (aliasing_component_refs_p): Likewise.
5382 (stmt_kills_ref_p_1): Likewise.
5383 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5384 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5385 Return true if reverse storage order.
5386 <BIT_FIELD_REF>: Likewise.
5387 <COMPONENT_REF>: Likewise.
5388 <ARRAY_REF>: Likewise.
5389 <ARRAY_RANGE_REF>: Likewise.
5390 (split_address_cost): Likewise. Bail out if reverse storage order.
5391 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5392 get_inner_reference. Bail out if reverse storage order.
5393 (bswap_replace): Adjust call to get_inner_reference.
5394 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5395 the REF_REVERSE_STORAGE_ORDER flag.
5396 <BIT_FIELD_REF>: Likewise.
5397 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
5398 barriers.
5399 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
5400 to the REF_REVERSE_STORAGE_ORDER flag.
5401 <BIT_FIELD_REF>: Likewise.
5402 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
5403 (contains_storage_order_barrier_p): New predicate.
5404 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
5405 Punt on storage order barriers if necessary.
5406 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
5407 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
5408 call to get_ref_base_and_extent.
5409 (do_structure_copy): Likewise.
5410 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
5411 get_inner_reference.
5412 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
5413 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
5414 * ubsan.c (instrument_bool_enum_load): Likewise.
5415 (instrument_object_size): Likewise.
5416 * var-tracking.c (track_expr_p): Adjust call to
5417 get_ref_base_and_extent.
5418 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
5419 get_inner_reference.
5420 * config/s390/s390.c (s390_expand_atomic): Adjust call to
5421 store_bit_field.
5422 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
5423 extract_bit_field.
5424 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5425
5426 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
5427
5428 * config/sparc/sparc.opt (mfix-at697f): Add final period.
5429
5430 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5431
5432 PR rtl-optimization/67864
5433 * common/config/i386/i386-common.c (ix86_option_optimization_table)
5434 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
5435 at -Os and up.
5436
5437 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5438
5439 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
5440 internal functions.
5441
5442 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5443
5444 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
5445 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
5446
5447 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5448
5449 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
5450 * internal-fn.c: Don't undef it here.
5451 * tree-core.h: Likewise.
5452
5453 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5454
5455 * builtins.c (fold_builtin_nan): Delete.
5456 (fold_builtin_memcmp): Remove case where both arguments are constant.
5457 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5458 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
5459 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
5460 * fold-const-call.c: Include fold-const.h.
5461 (host_size_t_cst_p): New function.
5462 (build_cmp_result, fold_const_builtin_nan): Likewise.
5463 (fold_const_call_1): New function, split out from...
5464 (fold_const_call): ...here (for all three interfaces). Handle
5465 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
5466
5467 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5468
5469 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
5470 (fold_builtin_1): Don't call them.
5471 * fold-const-call.c: Include tm.h.
5472 (fold_const_call_ss): New variant for integer-to-integer folds.
5473 (fold_const_call): Call it.
5474
5475 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5476
5477 * builtins.c (fold_builtin_classify): Move constant cases to...
5478 * fold-const-call.c (fold_const_call_ss): ...here.
5479
5480 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5481
5482 * builtins.h (c_getstr): Move to...
5483 * fold-const.h (c_getstr): ...here.
5484 * builtins.c (c_getstr): Move to...
5485 * fold-const.c (c_getstr): ...here.
5486
5487 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5488
5489 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
5490 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
5491
5492 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5493
5494 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
5495 the dominance info; free it if we can't.
5496 (pass_call_cdce::execute): Don't free the dominance info here.
5497
5498 2015-11-06 Jeff Law <law@redhat.com>
5499
5500 * tree-ssa-threadedge.c (dummy_simplify): Remove.
5501 (thread_around_empty_blocks): Remove backedge_seen_p argument.
5502 If we thread to a backedge, then return false. Update recursive
5503 call to eliminate backedge_seen_p argument.
5504 (thread_through_normal_block): Remove backedge_seen_p argument.
5505 Remove backedge_seen_p argument from calls to
5506 thread_around_empty_blocks. Remove checks on backedge_seen_p.
5507 If we thread to a backedge, then return 0.
5508 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
5509 pass it to thread_through_normal_block or thread_through_empty_blocks.
5510 For joiner handling, if we see a backedge, do not try normal
5511 threading.
5512
5513 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5514
5515 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
5516 * graphite-poly.c (new_scop): Initialize original_schedule.
5517 (free_scop): Free original_schedule.
5518 * graphite-poly.h (struct scop): Add field original_schedule.
5519 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
5520 (build_poly_scop): Call build_scop_original_schedule.
5521
5522 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5523
5524 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5525 (build_pbb_minimal_scattering_polyhedrons): New.
5526 (build_scop_scattering): Remove.
5527 (build_scop_minimal_scattering): New.
5528 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
5529 (build_poly_scop): Call build_scop_minimal_scattering.
5530
5531 2015-11-06 Jeff Law <law@redhat.com>
5532
5533 * cfg-flags.def (IGNORE): New edge flag.
5534 * tree-vrp.c (identify_jump_threads): Mark and clear edges
5535 scheduled for removal with EDGE_IGNORE around call into
5536 jump threader. Do no thread across edges with EDGE_IGNORE,
5537 but do allow threading across those with EDGE_DFS_BACK.
5538
5539 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
5540
5541 * doc/md.texi (multi-alternative constraints): Don't document
5542 alternatives inherently tied to reload for the user documentation.
5543
5544 2015-11-06 Michael Collison <michael.collison@linaro.org>
5545 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5546
5547 Revert:
5548 2015-08-01 Michael Collison <michael.collison@linaro.org
5549 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5550
5551 * config/arm/arm.md (*arm_smin_cmp): New pattern.
5552 (*arm_umin_cmp): Likewise.
5553
5554 2015-11-06 Jakub Jelinek <jakub@redhat.com>
5555
5556 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
5557 * omp-low.c (check_omp_nesting_restrictions): Update for the
5558 various new OpenMP 4.5 nesting restrictions, clarified
5559 nesting glossary, closely nested region relationship clarified
5560 to mean explicit or implicit parallel regions (target/teams),
5561 use %</%> or %qs where appropriate.
5562
5563 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5564 Sebastian Pop <s.pop@samsung.com>
5565
5566 * graphite-scop-detection.c (loop_is_valid_scop): Call
5567 optimize_loop_nest_for_speed_p.
5568
5569 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5570 Sebastian Pop <s.pop@samsung.com>
5571
5572 * graphite-optimize-isl.c (optimize_isl): Call
5573 isl_options_set_schedule_maximize_band_depth.
5574
5575 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5576 Sebastian Pop <s.pop@samsung.com>
5577
5578 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
5579 and exit edges should not be a part of irreducible loop.
5580 (scop_detection::can_represent_loop_1): Loops should not be
5581 irreducible.
5582 (scop_detection::harmful_stmt_in_region): All the basic block
5583 should belong to reducible loops.
5584
5585 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
5586
5587 * config/aarch64/aarch64-simd-builtins.def: Update builtins
5588 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
5589 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
5590 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
5591 (aarch64_tbx4v8qi): Rename to...
5592 aarch64_tbx4<mode>): ... this.
5593 (aarch64_qtbl3<mode>): New pattern.
5594 (aarch64_qtbx3<mode>): New pattern.
5595 (aarch64_qtbl4<mode>): New pattern.
5596 (aarch64_qtbx4<mode>): New pattern.
5597 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
5598 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
5599 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
5600 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
5601 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
5602 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
5603 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
5604 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
5605 functions.
5606
5607 2015-11-06 Mike Stump <mikestump@comcast.net>
5608
5609 PR debug/66728
5610 * dwarf2out.c (get_full_len): Return a value based upon the actual
5611 precision needed for the value.
5612 (add_const_value_attribute): Use a maximal wide-int for
5613 CONST_WIDE_INTs, not VOIDmode.
5614 (output_die): Don't ever output NULL with printf.
5615
5616 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
5617 BLKmode nor VOIDmode values.
5618
5619 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5620
5621 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
5622 and "range2".
5623 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
5624 * diagnostic-core.h (warning_at_rich_loc): New declaration.
5625 (error_at_rich_loc): New declaration.
5626 (permerror_at_rich_loc): New declaration.
5627 (inform_at_rich_loc): New declaration.
5628 * diagnostic-show-locus.c (adjust_line): Delete.
5629 (struct point_state): New struct.
5630 (class colorizer): New class.
5631 (class layout_point): New class.
5632 (class layout_range): New class.
5633 (struct line_bounds): New.
5634 (class layout): New class.
5635 (colorizer::colorizer): New ctor.
5636 (colorizer::~colorizer): New dtor.
5637 (layout::layout): New ctor.
5638 (layout::print_source_line): New method.
5639 (layout::print_annotation_line): New method.
5640 (layout::get_state_at_point): New method.
5641 (layout::get_x_bound_for_row): New method.
5642 (diagnostic_show_locus): Reimplement in terms of class layout.
5643 (diagnostic_print_caret_line): Delete.
5644 * diagnostic.c (diagnostic_initialize): Replace
5645 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
5646 (diagnostic_set_info_translated): Convert param from location_t
5647 to rich_location *. Eliminate calls to set_location on the
5648 message in favor of storing the rich_location ptr there.
5649 (diagnostic_set_info): Convert param from location_t to
5650 rich_location *.
5651 (diagnostic_build_prefix): Break out array into...
5652 (diagnostic_kind_color): New variable.
5653 (diagnostic_get_color_for_kind): New function.
5654 (diagnostic_report_diagnostic): Colorize the option_text
5655 using the color for the severity.
5656 (diagnostic_append_note): Update for change in signature of
5657 diagnostic_set_info.
5658 (diagnostic_append_note_at_rich_loc): New function.
5659 (emit_diagnostic): Update for change in signature of
5660 diagnostic_set_info.
5661 (inform): Likewise.
5662 (inform_at_rich_loc): New function.
5663 (inform_n): Update for change in signature of diagnostic_set_info.
5664 (warning): Likewise.
5665 (warning_at): Likewise.
5666 (warning_at_rich_loc): New function.
5667 (warning_n): Update for change in signature of diagnostic_set_info.
5668 (pedwarn): Likewise.
5669 (permerror): Likewise.
5670 (permerror_at_rich_loc): New function.
5671 (error): Update for change in signature of diagnostic_set_info.
5672 (error_n): Likewise.
5673 (error_at): Likewise.
5674 (error_at_rich_loc): New function.
5675 (sorry): Update for change in signature of diagnostic_set_info.
5676 (fatal_error): Likewise.
5677 (internal_error): Likewise.
5678 (internal_error_no_backtrace): Likewise.
5679 (source_range::debug): New function.
5680 * diagnostic.h (struct diagnostic_info): Eliminate field
5681 "override_column". Add field "richloc".
5682 (struct diagnostic_context): Add field "colorize_source_p".
5683 (diagnostic_override_column): Delete.
5684 (diagnostic_set_info): Convert param from location_t to
5685 rich_location *.
5686 (diagnostic_set_info_translated): Likewise.
5687 (diagnostic_append_note_at_rich_loc): New function.
5688 (diagnostic_num_locations): New function.
5689 (diagnostic_expand_location): Get the location from the
5690 rich_location.
5691 (diagnostic_print_caret_line): Delete.
5692 (diagnostic_get_color_for_kind): New declaration.
5693 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
5694 (error_cb): Update for change in signature of "error" callback.
5695 (fatal_at): Likewise.
5696 (warning_at): Likewise.
5697 * input.c (linemap_client_expand_location_to_spelling_point): New.
5698 * pretty-print.c (text_info::set_range): New method.
5699 (text_info::get_location): New method.
5700 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
5701 (struct text_info): Eliminate "locations" array in favor of
5702 "m_richloc", a rich_location *.
5703 (textinfo::set_location): Add a "caret_p" param, and reimplement
5704 in terms of a call to set_range.
5705 (textinfo::get_location): Eliminate inline implementation in favor of
5706 an out-of-line reimplementation.
5707 (textinfo::set_range): New method.
5708 * rtl-error.c (diagnostic_for_asm): Update for change in signature
5709 of diagnostic_set_info.
5710 * tree-diagnostic.c (default_tree_printer): Update for new
5711 "caret_p" param for textinfo::set_location.
5712 * tree-pretty-print.c (percent_K_format): Likewise.
5713
5714 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5715
5716 Properly apply.
5717 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5718 * config/aarch64/aarch64.c
5719 (aarch64_can_use_per_function_literal_pools_p): New.
5720 (aarch64_use_blocks_for_constant_p): Adjust declaration
5721 and use aarch64_can_use_function_literal_pools_p.
5722 (aarch64_select_rtx_section): Update.
5723
5724 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5725
5726 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
5727 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
5728 (arm_output_multireg_pop): Likewise.
5729 (output_move_double): Likewise.
5730 (output_move_quad): Likewise.
5731 (output_return_instruction): Likewise.
5732 (arm_print_operand): Remove support for %( and %. print modifiers.
5733 (arm_output_shift): Make unified asm.
5734 (arm_declare_function_name): Likewise.
5735 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
5736 (ASM_APP_OFF): Adjust.
5737 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
5738 (ASM_OUTPUT_REG_POP): Likewise.
5739 * config/arm/arm.md: Adjust uses of %., %(, %)
5740 * config/arm/sync.md: Likewise.
5741 * config/arm/thumb2.md: Likewise.
5742 * config/arm/ldmstm.md: Regenerate.
5743 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
5744 * doc/invoke.texi (masm-unified-syntax): Update documentation.
5745
5746 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5747
5748 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
5749
5750 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5751
5752 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
5753 add OEP_MATCH_SIDE_EFFECTS.
5754 * fold-const.c (operand_equal_p): Update documentation; handle
5755 OEP_MATCH_SIDE_EFFECTS.
5756 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
5757 OEP_MATCH_SIDE_EFFECTS.
5758
5759 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
5760 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5761
5762 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
5763 * config/aarch64/aarch64-protos.h: Declare.
5764 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
5765 frsqrts.
5766 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
5767 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
5768 code when applicable.
5769 * config/aarch64/aarch64.md: Added enum entries.
5770 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
5771
5772 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5773
5774 PR ipa/68057
5775 PR ipa/68220
5776 * ipa-polymorphic-call.c
5777 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
5778 issue when offset is out of range.
5779 (contains_type_p): Fix out of range check, clear dynamic flag.
5780
5781 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
5782
5783 * config.gcc (e6500): Fix cpu_is_64bit typo.
5784
5785 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
5786
5787 * tree-sra.c (completely_scalarize): Properly handle negative array
5788 indices using offset_int.
5789
5790 2015-11-06 Richard Biener <rguenther@suse.de>
5791
5792 * alloc-pool.h (object_allocator::allocate): Default-initialize
5793 object.
5794
5795 2015-11-06 Richard Biener <rguenther@suse.de>
5796
5797 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
5798 * lra.c (init_reg_info): Truncate copy_vec instead of
5799 re-allocating a new one and leaking the old.
5800 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
5801 bb_infos vec.
5802 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
5803 * postreload-gcse.c (free_mem): Free modify_mem_list and
5804 canon_modify_mem_list.
5805
5806 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
5807
5808 PR tree-optimization/68145
5809 * tree-vect-stmts.c (vectorizable_operation): Fix
5810 determination for booleans.
5811
5812 2015-11-06 Tom de Vries <tom@codesourcery.com>
5813
5814 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
5815 cond_jump, instead of split after last nondebug insn before cond_jump.
5816 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
5817 returning.
5818
5819 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5820
5821 PR target/68088
5822 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
5823 subregs from accumulator and make sure it's a register.
5824
5825 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
5826
5827 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
5828 low part to scalar.
5829 (reduc_uplus_<mode>): Remove.
5830 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
5831 loongson_extract_lo_<mode>.
5832 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
5833 reduc_smax_<mode>, reduc_smax_<mode>, use vec
5834 loongson_extract_lo_<mode>.
5835 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
5836
5837 2015-11-06 Richard Biener <rguenther@suse.de>
5838
5839 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
5840 members.
5841 (vect_stmt_in_region_p): Declare.
5842 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
5843 (destroy_bb_vec_info): Likewise.
5844 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
5845 (vect_get_and_check_slp_defs): Likewise.
5846 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
5847 (vect_slp_bb): Likewise.
5848 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
5849 in terms of vect_stmt_in_region_p.
5850 (vect_pattern_recog): Iterate over the BB region.
5851 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
5852 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
5853 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
5854 * config/i386/i386.c: Include gimple-iterator.h.
5855 * config/aarch64/aarch64.c: Likewise.
5856
5857 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
5858
5859 PR rtl-optimization/67753
5860 PR rtl-optimization/64164
5861 * function.c (assign_parm_setup_block): Avoid allocating a
5862 stack slot if we don't have an ABI-reserved one. Emit the
5863 copy to target_reg in the conversion seq if the copy from
5864 entry_parm is in it too. Don't use the conversion seq to copy
5865 a PARALLEL to a REG or a CONCAT.
5866
5867 2015-11-06 Richard Biener <rguenther@suse.de>
5868
5869 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
5870 equal_keys.
5871
5872 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
5873 Thomas Schwinge <thomas@codesourcery.com>
5874 James Norris <jnorris@codesourcery.com>
5875
5876
5877 * gimplify.c (gimplify_scan_omp_clauses): Add support for
5878 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
5879 (gimplify_adjust_omp_clauses): Likewise.
5880 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
5881 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
5882 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
5883 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
5884 (omp_clause_code_name): Likewise.
5885 (walk_tree_1): Handle OMP_CLAUSE_TILE.
5886 * tree.h (OMP_TILE_LIST): New macro.
5887
5888 2015-11-05 Martin Sebor <msebor@redhat.com>
5889
5890 PR c++/67942
5891 * doc/invoke.texi (-Wplacement-new): Document new option.
5892
5893 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
5894
5895 PR tree-optimization/65963
5896 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
5897 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
5898
5899 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
5900
5901 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
5902 (noce_convert_multiple_sets): Likewise.
5903 (noce_process_if_block): Call them.
5904
5905 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5906
5907 * gimple-fold.c: Include omp-low.h.
5908 (fold_internal_goacc_dim): New.
5909 (gimple_fold_call): Call it.
5910
5911 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5912 Ilya Verbin <ilya.verbin@intel.com>
5913
5914 * builtin-types.def
5915 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
5916 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
5917 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5918 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
5919 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
5920 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
5921 (struct cgraph_simd_clone_arg): Adjust comment.
5922 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
5923 to GOMP_target_ext. Add num_teams and thread_limit arguments.
5924 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
5925 to GOMP_target_data_ext.
5926 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
5927 to GOMP_target_update_ext.
5928 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
5929 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
5930 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
5931 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
5932 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
5933 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
5934 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
5935 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
5936 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
5937 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
5938 * tree-core.h (enum omp_clause_schedule_kind): Add
5939 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
5940 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
5941 OMP_CLAUSE_SCHEDULE_LAST value.
5942 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
5943 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5944 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5945 OMP_FOR_CHECK. Remove comment.
5946 * tree-pretty-print.c (dump_omp_clause): Handle
5947 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
5948 Simplify. Print schedule clause modifiers.
5949 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
5950 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
5951 cases.
5952 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
5953 (omp_default_clause): Tweak for
5954 private/firstprivate/is_device_ptr variables on target
5955 construct and use_device_ptr on target data.
5956 (omp_check_private): Likewise.
5957 (omp_notice_variable): For references check whether what it refers
5958 to has mappable type, rather than the reference itself.
5959 (omp_is_private): Diagnose linear iteration variables on non-simd
5960 constructs.
5961 (omp_no_lastprivate): Return true only for Fortran.
5962 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
5963 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
5964 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
5965 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
5966 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
5967 lastprivate and linear when combined with distribute. Gimplify
5968 variable low-bound for array reduction. Look through
5969 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
5970 reductions.
5971 (gimplify_adjust_omp_clauses_1): For implicit references to
5972 variables with reference type and when not ref to scalar or
5973 ref to pointer, map what they refer to using tofrom and
5974 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
5975 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
5976 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
5977 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
5978 Diagnose the same var on both firstprivate and lastprivate on
5979 distribute construct.
5980 (gimplify_omp_for): Fix up handling of predetermined
5981 lastprivate or linear iter vars when combined with distribute.
5982 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
5983 functions.
5984 (gimplify_omp_workshare): Call optimize_target_teams.
5985 * omp-low.c (struct omp_region): Add sched_modifiers field.
5986 (struct omp_for_data): Likewise.
5987 (omp_any_child_fn_dumped): New variable.
5988 (extract_omp_for_data): Fill in sched_modifiers, and mask out
5989 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
5990 from sched_kind.
5991 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
5992 bits of OMP_CLAUSE_SCHED_KIND.
5993 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
5994 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
5995 for array section reductions.
5996 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
5997 for distribute parallel for, if there are lastprivate clauses on the
5998 for.
5999 (lower_rec_input_clauses): Handle non-zero low-bound on array
6000 section reductions.
6001 (lower_reduction_clauses): Likewise.
6002 (lower_send_clauses): Look through POINTER_PLUS_EXPR
6003 for array section reductions.
6004 (expand_parallel_call): Use nonmonotonic entrypoints for
6005 nonmonotonic: dynamic/guided.
6006 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6007 child_fn if current_function_decl has assembler name set, but child_fn
6008 does not. Dump the header and IL of the child function when not in SSA
6009 form.
6010 (expand_omp_target): Likewise. Pass num_teams and thread_limit
6011 arguments to BUILT_IN_GOMP_TARGET.
6012 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6013 Initialize the extra _looptemp_ clause to fd->loop.n2.
6014 (expand_omp_for): Use nonmonotonic entrypoints for
6015 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
6016 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
6017 again if we have dumped any child functions.
6018 (lower_omp_for_lastprivate): Determine the right count variable
6019 for distribute simd, or distribute parallel for{, simd}.
6020 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6021 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
6022 support.
6023 (simd_clone_clauses_extract): Handle variable step
6024 for references and arguments passed by reference.
6025 (simd_clone_mangle): Mangle ref/uval/val variable steps.
6026 (simd_clone_adjust_argument_types): Handle
6027 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6028 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6029 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6030 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6031 (simd_clone_linear_addend): New function.
6032 (simd_clone_adjust): Handle variable step like similarly
6033 to constant step, use simd_clone_linear_addend to determine
6034 the actual step at runtime.
6035
6036 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6037
6038 * target.def (goacc.dim_limit): New hook.
6039 * targhooks.h (default_goacc_dim_limit): Declare.
6040 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6041 * doc/tm.texi: Rebuilt.
6042 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6043 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6044 (default_goacc_dim_limit): New.
6045 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6046 (nvptx_goacc_dim_limit) New.
6047 (TARGET_GOACC_DIM_LIMIT): Override.
6048 * tree-vrp.c: Include omp-low.h, target.h.
6049 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6050 IFN_GOACC_DIM_POS.
6051
6052 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6053
6054 * tree-vect-generic.c (do_compare): Use -1 for true
6055 result instead of 1.
6056
6057 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6058
6059 * config/aarch64/aarch64.c
6060 (aarch64_can_use_per_function_literal_pools_p): New.
6061 (aarch64_use_blocks_for_constant_p): Adjust declaration
6062 and use aarch64_can_use_function_literal_pools_p.
6063 (aarch64_select_rtx_section): Update.
6064
6065 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6066
6067 * targhooks.c (default_get_mask_mode): Use BLKmode in
6068 case target doesn't support required vector mode.
6069 * stor-layout.c (layout_type); Check for BLKmode.
6070
6071 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6072 Sebastian Pop <s.pop@samsung.com>
6073
6074 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6075 Remove use of parameter_rename_map.
6076 (copy_def): Remove.
6077 (copy_internal_parameters): Remove.
6078 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6079 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6080 (free_sese_info): Do not free parameter_rename_map.
6081 (set_rename): Do not use parameter_rename_map.
6082 (rename_uses): Update call to set_rename.
6083 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6084 * sese.h (parameter_rename_map_t): Remove.
6085 (struct sese_info_t): Remove field parameter_rename_map.
6086
6087 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6088 Sebastian Pop <s.pop@samsung.com>
6089
6090 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6091 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6092 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6093 anonymous namespace.
6094 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6095 (isl_id_for_pbb): Use a buffer of size 10.
6096 (isl_id_for_ssa_name): Same.
6097 * sese.c (set_rename): Add more dumps.
6098
6099 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6100
6101 * omp-low.c (struct omp_context): Remove reduction_map field.
6102 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6103 (new_omp_context, delete_omp_context, scan_omp_target): Remove
6104 reduction_map handling.
6105 (lower_omp_target): Remove obsolete openacc reduction handling.
6106
6107 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6108
6109 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6110
6111 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6112 Cesar Philippidis <cesar@codesourcery.com>
6113
6114 * config/nvptx/nvptx.c: Include gimple headers.
6115 (worker_red_size, worker_red_align, worker_red_name,
6116 worker_red_sym): New.
6117 (nvptx_option_override): Initialize worker reduction buffer.
6118 (nvptx_file_end): Write out worker reduction buffer var.
6119 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6120 nvptx_expand_cmp_swap): New builtin expanders.
6121 (enum nvptx_builtins): New.
6122 (nvptx_builtin_decls): New.
6123 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6124 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6125 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6126 nvptx_lockless_update): New helpers.
6127 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6128 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6129 (nvptx_goacc_reduction): New.
6130 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6131 TARGET_BUILTIN_DECL): Override.
6132 (TARGET_GOACC_REDUCTION): Override.
6133
6134 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6135 Cesar Philippidis <cesar@codesourcery.com>
6136
6137 * internal-fn.def (GOACC_REDUCTION): New.
6138 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6139 * internal-fn.c (expand_GOACC_REDUCTION): New.
6140 * target.def (goacc.reduction): New OpenACC hook.
6141 * targhooks.h (default_goacc_reduction): Declare.
6142 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6143 * doc/tm.texi: Rebuilt.
6144 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6145 scan_sharing_clauses): Remove oacc reduction handling here.
6146 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6147 (oacc_lower_reduction_var_helper): Delete.
6148 (lower_oacc_reductions): New.
6149 (lower_reduction_clauses): Don't handle OpenACC reductions here.
6150 (lower_oacc_head_tail): Call lower_oacc_reductions.
6151 (oacc_gimple_assign, oacc_init_reduction_array,
6152 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6153 oacc_process_reduction_data): Delete.
6154 (lower_omp_target): Remove old OpenACC reduction handling. Insert
6155 dummy OpenACC gang reduction for reductions at outer level.
6156 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6157 (default_goacc_reduction): New.
6158 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6159
6160 2015-11-04 Martin Liska <mliska@suse.cz>
6161
6162 * cgraphunit.c (cgraph_node::expand_thunk): Call
6163 allocate_struct_function before init_function_start.
6164 (cgraph_node::expand): Use push_cfun and pop_cfun.
6165 * config/i386/i386.c (ix86_code_end): Call
6166 allocate_struct_function before init_function_start.
6167 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6168 * function.c (init_function_start): Move preamble to all
6169 callers.
6170 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6171 (execute_one_pass): Handle newly added TODO_discard_function.
6172 (execute_pass_list_1): Terminate if cfun equals to NULL.
6173 (execute_pass_list): Do not push and pop cfun, expect that
6174 cfun is set.
6175 * tree-pass.h (TODO_discard_function): Define.
6176
6177 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
6178
6179 * cfganal.c (inverted_post_order_compute): Remove conditional
6180 compilation, use flag_checking.
6181 * config.in: Regenerate.
6182 * configure: Regenerate.
6183 * configure.ac: Remove ENABLE_CHECKING.
6184 * genconditions.c: Do not #undef ENABLE_CHECKING.
6185 * sese.h (bb_in_region): Comment out broken check.
6186 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6187 conditional compilation, use flag_checking.
6188
6189 2015-11-04 Tom de Vries <tom@codesourcery.com>
6190
6191 PR tree-optimization/67742
6192 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6193 field.
6194 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6195 (create_variable_info_for_1): Add and handle handle_param parameter.
6196 Add restrict handling.
6197 (create_variable_info_for): Call create_variable_info_for_1 with extra
6198 arg.
6199 (make_param_constraints): Drop restrict_name parameter. Ignore
6200 vi->only_restrict_pointers.
6201 (intra_create_variable_infos): Call create_variable_info_for_1 with
6202 extra arg. Remove restrict handling. Call make_param_constraints with
6203 one fewer arg.
6204
6205 2015-11-04 Tom de Vries <tom@codesourcery.com>
6206
6207 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6208 variable.
6209
6210 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6211
6212 * config/arm/coff.h: Remove.
6213
6214 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
6215
6216 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6217 check for aggregate types and beef up comment for mode check.
6218
6219 2015-11-03 Richard Biener <rguenther@suse.de>
6220
6221 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6222 data references here.
6223 * tree-vect-loop.c: Include cgraph.h.
6224 (vect_analyze_loop_2): Collect data references here.
6225 * tree-vect-slp.c (find_bb_location): Inline ...
6226 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
6227 Factor in vect_slp_transform_bb.
6228 (vect_slp_transform_bb): Removed.
6229 (vect_slp_analyze_bb_1): Collect data references here.
6230 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6231 vect_slp_bb.
6232 * tree-vectorizer.h (vect_slp_bb): Declare.
6233 (vect_slp_analyze_bb): Remove.
6234 (vect_slp_transform_bb): Remove.
6235 (find_bb_location): Remove.
6236 (vect_analyze_data_refs): Remove stmt count reference parameter.
6237
6238 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
6239
6240 * multiple_target.c (create_dispatcher_calls): Add target check
6241 on ifunc.
6242 (create_target_clone): Change assembler name for versioned declarations.
6243
6244 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
6245 Chung-Lin Tang <cltang@codesourcery.com>
6246
6247 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6248 * omp-low.c (check_omp_nesting_restrictions): Allow
6249 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6250 contexts.
6251
6252 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
6253
6254 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6255 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6256 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6257 builtin.
6258 (vmulxq_f32): Likewise.
6259 (vmulx_f64): New.
6260 (vmulxq_f64): Rewrite to call fmulx builtin.
6261 (vmulxs_f32): Likewise.
6262 (vmulxd_f64): Likewise.
6263 (vmulx_lane_f32): Remove.
6264 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6265
6266 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
6267
6268 * config/aarch64/aarch64.md (*movhf_aarch64): Use
6269 aarch64_reg_or_fp_zero for second operand.
6270
6271 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
6272
6273 * gimple-expr.c: Include hash-set.h and rtl.h.
6274 (mark_addressable_queue): New var.
6275 (mark_addressable): Factor actual marking into...
6276 (mark_addressable_1): ... this. Queue it up during expand.
6277 (mark_addressable_2): New.
6278 (flush_mark_addressable_queue): New.
6279 * gimple-expr.h (flush_mark_addressable_queue): Declare.
6280 * cfgexpand.c: Include gimple-expr.h.
6281 (pass_expand::execute): Flush mark_addressable queue.
6282
6283 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
6284
6285 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6286 bb_no_side_effects_p tests...
6287 (tree_ssa_ifcombine_bb): ... here.
6288
6289 PR tree-optimization/68083
6290 * tree-ssa-ifcombine.c: Include tree-ssa.h.
6291 (bb_no_side_effects_p): Test for undefined uses too.
6292 * tree-ssa.c (gimple_uses_undefined_value_p): New.
6293 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6294
6295 2015-11-02 Jeff Law <law@redhat.com>
6296
6297 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6298 cases where the loop latch edge is in the middle of an FSM path.
6299
6300 2015-11-03 Tom de Vries <tom@codesourcery.com>
6301
6302 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6303 (make_param_constraints): ... this. Add and handle restrict_name
6304 parameter. Handle is_full_var case.
6305 (intra_create_variable_infos): Use make_param_constraints.
6306
6307 2015-11-03 Tom de Vries <tom@codesourcery.com>
6308
6309 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6310 make_copy_constraint call with make_constraint_from call.
6311
6312 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
6313
6314 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6315 PIE executables.
6316
6317 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
6318
6319 * builtins.h (fold_fma): Move to fold-const-call.h.
6320 * builtins.c: Include fold-const-call.h.
6321 (mathfn_built_in_2): New function, split out from...
6322 (mathfn_built_in_1): ...here.
6323 (do_real_to_int_conversion, fold_const_builtin_pow)
6324 (fold_const_builtin_logb, fold_const_builtin_significand)
6325 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6326 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6327 (fold_builtin_sincos): Use fold_const_call to handle constants.
6328 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6329 checks for ERROR_MARK. Use fold_const_call to handle constant
6330 folds for math functions.
6331 (fold_fma): Move to fold-const-call.c.
6332 * fold-const.c: Include fold-const-call.h.
6333 * Makefile.in (OBJS): Add fold-const-call.o.
6334 (PLUGIN_HEADERS): Add fold-const-call.h.
6335 * realmpfr.h (real_from_mpfr): Allow the format to be specified
6336 directly.
6337 * realmpfr.c (real_from_mpfr): Likewise.
6338 * fold-const-call.h, fold-const-call.c: New files.
6339
6340 2015-11-02 Julian Brown <julian@codesourcery.com>
6341
6342 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6343 brackets and semicolon.
6344
6345 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
6346
6347 Revert:
6348 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6349
6350 PR tree-optimization/65963
6351 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6352 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6353
6354 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
6355
6356 PR middle-end/68166
6357 * fold-const.c: Include "md5.h".
6358
6359 2015-11-01 Jeff Law <law@redhat.com>
6360
6361 * vmsdbgout.c: Revert unused header file reduction patch.
6362
6363 * config/mcore/mcore.c: Include regs.h.
6364
6365 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6366
6367 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6368
6369 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6370
6371 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6372 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6373 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6374
6375 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
6376
6377 * ggc-common.c: Restore needed header for checking=release.
6378
6379 2015-10-31 Tom de Vries <tom@codesourcery.com>
6380
6381 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6382
6383 2015-10-31 Tom de Vries <tom@codesourcery.com>
6384
6385 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6386 existing varinfo for arguments.
6387
6388 2015-10-31 Tom de Vries <tom@codesourcery.com>
6389
6390 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6391 create_function_info_for. Dump constraints generated during
6392 create_function_info_for. Move intra_create_variable_infos call and
6393 function-return-values-escape bit to ...
6394 (create_function_info_for): ... here, and merge
6395 intra_create_variable_infos call with argument loop. Add and handle
6396 nonlocal_p parameter.
6397
6398 2015-10-31 Tom de Vries <tom@codesourcery.com>
6399
6400 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
6401 updating is alap, and seperated from preceding code. Make sure
6402 insert_vi_for_tree is seperated from surrounding code.
6403
6404 2015-10-31 Tom de Vries <tom@codesourcery.com>
6405
6406 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
6407
6408 2015-10-30 Jeff Law <law@redhat.com>
6409 Nathan Sidwell <nathan@acm.org>
6410
6411 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
6412 args.
6413 (MOVE_MAX): Set to 8.
6414
6415 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
6416
6417 * cgraph.c: Include context.h for offloading.
6418 * varpool.c: Include context.h and omp-low.h.
6419
6420 2015-10-30 Anatoly Sokolov <aesok@post.ru>
6421
6422 * rtl.h (contains_symbol_ref_p): Declare.
6423 (SYMBOL_REF_P): Define.
6424 * rtlanal.c (contains_symbol_ref_p: New function.
6425 * lra-constraints.c (contains_symbol_ref_p): Remove.
6426 * var-tracking.c (contains_symbol_ref): Remove.
6427 (track_expr_p): Use contains_symbol_ref_p instead of
6428 contains_symbol_ref.
6429
6430 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6431
6432 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
6433 * fold-const.c (get_array_ctor_element_at_index): New.
6434 (fold): Remove binary-search through CONSTRUCTOR, call previous.
6435
6436 * fold-const.h (get_array_ctor_element_at_index): New.
6437
6438 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
6439
6440 * Makefile.in (OBJS): Add multiple_target.o.
6441 * attrib.c (make_attribute): Moved from config/i386/i386.c
6442 * config/i386/i386.c (make_attribute): Deleted.
6443 * multiple_target.c (create_dispatcher_calls): New.
6444 (get_attr_len): Ditto.
6445 (get_attr_str): Ditto.
6446 (separate_attrs): Ditto.
6447 (is_valid_asm_symbol): Ditto.
6448 (create_new_asm_name): Ditto.
6449 (create_target_clone): Ditto.
6450 (expand_target_clones): Ditto.
6451 (ipa_target_clone): Ditto.
6452 (ipa_dispatcher_calls): Ditto.
6453 * passes.def (pass_target_clone): Two new ipa passes.
6454 * tree-pass.h (make_pass_target_clone): Ditto.
6455 * doc/extend.texi (target_clones): New attribute description.
6456
6457 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
6458
6459 PR rtl-optimization/68106
6460 * lra-remat.c (input_regno_present_p): Process hard regs
6461 explicitly present in machine description insns.
6462 (call_used_input_regno_present_p): Ditto.
6463 (calculate_gen_cands): Ditto.
6464 (do_remat): Ditto.
6465
6466 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
6467
6468 * config/arm/neon-testgen.ml: Fix comment typo.
6469
6470 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6471
6472 * rtlanal.c (reg_set_p): Expand function comment.
6473
6474 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
6475
6476 * alias.c: Remove unused headers.
6477 * asan.c: Likewise.
6478 * attribs.c: Likewise.
6479 * auto-inc-dec.c: Likewise.
6480 * auto-profile.c: Likewise.
6481 * bb-reorder.c: Likewise.
6482 * bitmap.c: Likewise.
6483 * bt-load.c: Likewise.
6484 * builtins.c: Likewise.
6485 * caller-save.c: Likewise.
6486 * calls.c: Likewise.
6487 * ccmp.c: Likewise.
6488 * cfg.c: Likewise.
6489 * cfganal.c: Likewise.
6490 * cfgbuild.c: Likewise.
6491 * cfgcleanup.c: Likewise.
6492 * cfgexpand.c: Likewise.
6493 * cfghooks.c: Likewise.
6494 * cfgloop.c: Likewise.
6495 * cfgloopanal.c: Likewise.
6496 * cfgloopmanip.c: Likewise.
6497 * cfgrtl.c: Likewise.
6498 * cgraph.c: Likewise.
6499 * cgraphbuild.c: Likewise.
6500 * cgraphclones.c: Likewise.
6501 * cgraphunit.c: Likewise.
6502 * cilk-common.c: Likewise.
6503 * combine-stack-adj.c: Likewise.
6504 * combine.c: Likewise.
6505 * compare-elim.c: Likewise.
6506 * convert.c: Likewise.
6507 * coverage.c: Likewise.
6508 * cppbuiltin.c: Likewise.
6509 * cprop.c: Likewise.
6510 * cse.c: Likewise.
6511 * cselib.c: Likewise.
6512 * data-streamer-in.c: Likewise.
6513 * data-streamer-out.c: Likewise.
6514 * data-streamer.c: Likewise.
6515 * dbxout.c: Likewise.
6516 * dce.c: Likewise.
6517 * ddg.c: Likewise.
6518 * debug.c: Likewise.
6519 * df-core.c: Likewise.
6520 * df-problems.c: Likewise.
6521 * df-scan.c: Likewise.
6522 * dfp.c: Likewise.
6523 * dojump.c: Likewise.
6524 * dominance.c: Likewise.
6525 * domwalk.c: Likewise.
6526 * double-int.c: Likewise.
6527 * dse.c: Likewise.
6528 * dumpfile.c: Likewise.
6529 * dwarf2asm.c: Likewise.
6530 * dwarf2cfi.c: Likewise.
6531 * dwarf2out.c: Likewise.
6532 * emit-rtl.c: Likewise.
6533 * except.c: Likewise.
6534 * explow.c: Likewise.
6535 * expmed.c: Likewise.
6536 * expr.c: Likewise.
6537 * final.c: Likewise.
6538 * fixed-value.c: Likewise.
6539 * fold-const.c: Likewise.
6540 * function.c: Likewise.
6541 * fwprop.c: Likewise.
6542 * gcse.c: Likewise.
6543 * generic-match-head.c: Likewise.
6544 * ggc-common.c: Likewise.
6545 * gimple-builder.c: Likewise.
6546 * gimple-expr.c: Likewise.
6547 * gimple-fold.c: Likewise.
6548 * gimple-iterator.c: Likewise.
6549 * gimple-low.c: Likewise.
6550 * gimple-match-head.c: Likewise.
6551 * gimple-pretty-print.c: Likewise.
6552 * gimple-ssa-isolate-paths.c: Likewise.
6553 * gimple-ssa-strength-reduction.c: Likewise.
6554 * gimple-streamer-in.c: Likewise.
6555 * gimple-streamer-out.c: Likewise.
6556 * gimple-walk.c: Likewise.
6557 * gimple.c: Likewise.
6558 * gimplify-me.c: Likewise.
6559 * gimplify.c: Likewise.
6560 * godump.c: Likewise.
6561 * graph.c: Likewise.
6562 * graphds.c: Likewise.
6563 * haifa-sched.c: Likewise.
6564 * hw-doloop.c: Likewise.
6565 * ifcvt.c: Likewise.
6566 * init-regs.c: Likewise.
6567 * internal-fn.c: Likewise.
6568 * ipa-chkp.c: Likewise.
6569 * ipa-comdats.c: Likewise.
6570 * ipa-cp.c: Likewise.
6571 * ipa-devirt.c: Likewise.
6572 * ipa-icf-gimple.c: Likewise.
6573 * ipa-icf.c: Likewise.
6574 * ipa-inline-analysis.c: Likewise.
6575 * ipa-inline-transform.c: Likewise.
6576 * ipa-inline.c: Likewise.
6577 * ipa-polymorphic-call.c: Likewise.
6578 * ipa-profile.c: Likewise.
6579 * ipa-prop.c: Likewise.
6580 * ipa-pure-const.c: Likewise.
6581 * ipa-ref.c: Likewise.
6582 * ipa-reference.c: Likewise.
6583 * ipa-split.c: Likewise.
6584 * ipa-utils.c: Likewise.
6585 * ipa-visibility.c: Likewise.
6586 * ipa.c: Likewise.
6587 * ira-build.c: Likewise.
6588 * ira-color.c: Likewise.
6589 * ira-conflicts.c: Likewise.
6590 * ira-costs.c: Likewise.
6591 * ira-emit.c: Likewise.
6592 * ira-lives.c: Likewise.
6593 * ira.c: Likewise.
6594 * jump.c: Likewise.
6595 * langhooks.c: Likewise.
6596 * lcm.c: Likewise.
6597 * lists.c: Likewise.
6598 * loop-doloop.c: Likewise.
6599 * loop-init.c: Likewise.
6600 * loop-invariant.c: Likewise.
6601 * loop-iv.c: Likewise.
6602 * loop-unroll.c: Likewise.
6603 * lower-subreg.c: Likewise.
6604 * lra-assigns.c: Likewise.
6605 * lra-coalesce.c: Likewise.
6606 * lra-constraints.c: Likewise.
6607 * lra-eliminations.c: Likewise.
6608 * lra-lives.c: Likewise.
6609 * lra-remat.c: Likewise.
6610 * lra-spills.c: Likewise.
6611 * lra.c: Likewise.
6612 * lto-cgraph.c: Likewise.
6613 * lto-compress.c: Likewise.
6614 * lto-opts.c: Likewise.
6615 * lto-section-in.c: Likewise.
6616 * lto-section-out.c: Likewise.
6617 * lto-streamer-in.c: Likewise.
6618 * lto-streamer-out.c: Likewise.
6619 * lto-streamer.c: Likewise.
6620 * mcf.c: Likewise.
6621 * mode-switching.c: Likewise.
6622 * modulo-sched.c: Likewise.
6623 * optabs.c: Likewise.
6624 * opts-global.c: Likewise.
6625 * passes.c: Likewise.
6626 * plugin.c: Likewise.
6627 * postreload-gcse.c: Likewise.
6628 * postreload.c: Likewise.
6629 * predict.c: Likewise.
6630 * print-tree.c: Likewise.
6631 * profile.c: Likewise.
6632 * real.c: Likewise.
6633 * realmpfr.c: Likewise.
6634 * recog.c: Likewise.
6635 * ree.c: Likewise.
6636 * reg-stack.c: Likewise.
6637 * regcprop.c: Likewise.
6638 * reginfo.c: Likewise.
6639 * regrename.c: Likewise.
6640 * regstat.c: Likewise.
6641 * reload.c: Likewise.
6642 * reload1.c: Likewise.
6643 * reorg.c: Likewise.
6644 * resource.c: Likewise.
6645 * rtl-chkp.c: Likewise.
6646 * rtl-error.c: Likewise.
6647 * rtlanal.c: Likewise.
6648 * rtlhooks.c: Likewise.
6649 * sanopt.c: Likewise.
6650 * sched-deps.c: Likewise.
6651 * sched-ebb.c: Likewise.
6652 * sched-rgn.c: Likewise.
6653 * sdbout.c: Likewise.
6654 * sel-sched-dump.c: Likewise.
6655 * sel-sched-ir.c: Likewise.
6656 * sel-sched.c: Likewise.
6657 * sese.c: Likewise.
6658 * shrink-wrap.c: Likewise.
6659 * simplify-rtx.c: Likewise.
6660 * stack-ptr-mod.c: Likewise.
6661 * statistics.c: Likewise.
6662 * stmt.c: Likewise.
6663 * stor-layout.c: Likewise.
6664 * store-motion.c: Likewise.
6665 * stringpool.c: Likewise.
6666 * symtab.c: Likewise.
6667 * target-globals.c: Likewise.
6668 * targhooks.c: Likewise.
6669 * toplev.c: Likewise.
6670 * tracer.c: Likewise.
6671 * trans-mem.c: Likewise.
6672 * tree-affine.c: Likewise.
6673 * tree-call-cdce.c: Likewise.
6674 * tree-cfg.c: Likewise.
6675 * tree-cfgcleanup.c: Likewise.
6676 * tree-chkp-opt.c: Likewise.
6677 * tree-chkp.c: Likewise.
6678 * tree-chrec.c: Likewise.
6679 * tree-complex.c: Likewise.
6680 * tree-data-ref.c: Likewise.
6681 * tree-dfa.c: Likewise.
6682 * tree-diagnostic.c: Likewise.
6683 * tree-dump.c: Likewise.
6684 * tree-eh.c: Likewise.
6685 * tree-emutls.c: Likewise.
6686 * tree-if-conv.c: Likewise.
6687 * tree-inline.c: Likewise.
6688 * tree-into-ssa.c: Likewise.
6689 * tree-iterator.c: Likewise.
6690 * tree-loop-distribution.c: Likewise.
6691 * tree-nested.c: Likewise.
6692 * tree-nrv.c: Likewise.
6693 * tree-object-size.c: Likewise.
6694 * tree-outof-ssa.c: Likewise.
6695 * tree-parloops.c: Likewise.
6696 * tree-phinodes.c: Likewise.
6697 * tree-predcom.c: Likewise.
6698 * tree-pretty-print.c: Likewise.
6699 * tree-profile.c: Likewise.
6700 * tree-scalar-evolution.c: Likewise.
6701 * tree-sra.c: Likewise.
6702 * tree-ssa-address.c: Likewise.
6703 * tree-ssa-alias.c: Likewise.
6704 * tree-ssa-ccp.c: Likewise.
6705 * tree-ssa-coalesce.c: Likewise.
6706 * tree-ssa-copy.c: Likewise.
6707 * tree-ssa-dce.c: Likewise.
6708 * tree-ssa-dse.c: Likewise.
6709 * tree-ssa-forwprop.c: Likewise.
6710 * tree-ssa-ifcombine.c: Likewise.
6711 * tree-ssa-live.c: Likewise.
6712 * tree-ssa-loop-ch.c: Likewise.
6713 * tree-ssa-loop-im.c: Likewise.
6714 * tree-ssa-loop-ivcanon.c: Likewise.
6715 * tree-ssa-loop-ivopts.c: Likewise.
6716 * tree-ssa-loop-manip.c: Likewise.
6717 * tree-ssa-loop-niter.c: Likewise.
6718 * tree-ssa-loop-prefetch.c: Likewise.
6719 * tree-ssa-loop-unswitch.c: Likewise.
6720 * tree-ssa-loop.c: Likewise.
6721 * tree-ssa-math-opts.c: Likewise.
6722 * tree-ssa-operands.c: Likewise.
6723 * tree-ssa-phiopt.c: Likewise.
6724 * tree-ssa-phiprop.c: Likewise.
6725 * tree-ssa-pre.c: Likewise.
6726 * tree-ssa-propagate.c: Likewise.
6727 * tree-ssa-reassoc.c: Likewise.
6728 * tree-ssa-scopedtables.c: Likewise.
6729 * tree-ssa-sink.c: Likewise.
6730 * tree-ssa-strlen.c: Likewise.
6731 * tree-ssa-structalias.c: Likewise.
6732 * tree-ssa-tail-merge.c: Likewise.
6733 * tree-ssa-ter.c: Likewise.
6734 * tree-ssa-threadupdate.c: Likewise.
6735 * tree-ssa-uncprop.c: Likewise.
6736 * tree-ssa-uninit.c: Likewise.
6737 * tree-ssa.c: Likewise.
6738 * tree-ssanames.c: Likewise.
6739 * tree-stdarg.c: Likewise.
6740 * tree-streamer-in.c: Likewise.
6741 * tree-streamer-out.c: Likewise.
6742 * tree-streamer.c: Likewise.
6743 * tree-switch-conversion.c: Likewise.
6744 * tree-tailcall.c: Likewise.
6745 * tree-vect-data-refs.c: Likewise.
6746 * tree-vect-generic.c: Likewise.
6747 * tree-vect-loop-manip.c: Likewise.
6748 * tree-vect-loop.c: Likewise.
6749 * tree-vect-patterns.c: Likewise.
6750 * tree-vect-slp.c: Likewise.
6751 * tree-vect-stmts.c: Likewise.
6752 * tree-vectorizer.c: Likewise.
6753 * tree-vrp.c: Likewise.
6754 * tree.c: Likewise.
6755 * tsan.c: Likewise.
6756 * ubsan.c: Likewise.
6757 * value-prof.c: Likewise.
6758 * var-tracking.c: Likewise.
6759 * varasm.c: Likewise.
6760 * varpool.c: Likewise.
6761 * vmsdbgout.c: Likewise.
6762 * vtable-verify.c: Likewise.
6763 * web.c: Likewise.
6764 * wide-int-print.cc: Likewise.
6765 * wide-int.cc: Likewise.
6766 * xcoffout.c: Likewise.
6767
6768 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
6769
6770 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
6771 between pass numbering and execution order.
6772
6773 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6774
6775 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
6776 check for dependencies.
6777
6778 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6779
6780 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
6781 CDI_DOMINATORS.
6782
6783 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6784
6785 * real.h (format_helper): New.
6786 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
6787 (real_from_target, real_nan, real_2expN, real_value_truncate)
6788 (significand_size, real_from_string2, exact_real_inverse)
6789 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
6790 (real_round, real_isinteger, real_from_integer): Replace
6791 machine_mode arguments with format_helper arguments.
6792 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
6793 (real_from_integer, real_nan, real_2expN, real_convert)
6794 (real_value_truncate, exact_real_truncate, real_to_target)
6795 (real_from_target, significand_size, real_powi, real_trunc)
6796 (real_floor, real_ceil, real_round, real_isinteger): Replace
6797 machine_mode arguments with format_helper arguments.
6798 (real_to_target_fmt, real_from_target_fmt): Delete.
6799 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
6800 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
6801 argument with real_format.
6802 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
6803
6804 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6805
6806 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
6807 (fixed_to_decimal, fixed_convert_from_real)
6808 (real_convert_from_fixed): Fix mode arguments to real_2expN.
6809
6810 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6811
6812 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
6813 SCALAR_FLOAT_MODE_P.
6814
6815 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6816
6817 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
6818 (completely_scalarize): Comment zero-length arrays.
6819 (get_access_replacement): Correct comment re. precondition.
6820
6821 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6822
6823 * config/i386/i386.c (get_builtin_code_for_version): Set priority
6824 for PROCESSOR_ZNVER1.
6825 (enum processor_model): Add M_AMDFAM17H_znver1.
6826 (struct arch_names_table): Likewise.
6827 * doc/extend.texi: ADD znver1.
6828
6829 2015-10-30 Richard Biener <rguenther@suse.de>
6830
6831 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
6832 fold () on single RHSs. Allow CONSTRUCTORS with trailing
6833 zeros to be folded to VECTOR_CSTs.
6834 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
6835 * fold-const.c (fold): Use build_vector_from_ctor.
6836
6837 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
6838
6839 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
6840 "mov %0.h[0], %1.h[0] to "neon_move".
6841 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
6842 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
6843 "mov_imm".
6844 (*cmovsi_insn_uxtw): Likewise.
6845
6846 2015-10-30 Tom de Vries <tom@codesourcery.com>
6847
6848 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
6849 unsigned, and initialize, and use initial value instead of hardcoded
6850 constant. Add generic constraints dumping section. Don't dump global
6851 initializers constraints dumping section if empty. Don't update
6852 variable from if unused.
6853
6854 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6855
6856 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
6857 flag_checking and/or CHECKING_P to eliminate conditional compilation
6858 on ENABLE_CHECKING.
6859 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
6860 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6861 * config/i386/i386.c (ix86_print_operand_address): Likewise.
6862 (output_387_binary_op): Likewise.
6863 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
6864 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
6865 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
6866 Likewise.
6867 * config/rs6000/rs6000.h: Likewise.
6868 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6869
6870 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
6871
6872 * config/sh/sh.opt (mfdpic): Add missing period.
6873
6874 2015-08-29 Anatoly Sokolov <aesok@post.ru>
6875
6876 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6877 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
6878 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6879 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
6880 mcore_base_register_rtx_p, mcore_legitimate_index_p,
6881 mcore_legitimate_address_p): New functions.
6882 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6883
6884 2015-10-29 Jeff Law <law@redhat.com>
6885
6886 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
6887 method.
6888 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
6889 * tree-ssa-threadedge.c
6890 (record_temporary_equivalences_from_stmts_at_dest): Remove
6891 backedge_seen argument and associated code which invalidated
6892 equivalences based on the value of that argument.
6893 (thread_through_normal_block): Corresponding changes.
6894
6895 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6896
6897 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
6898 function earlier in the file.
6899 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
6900 df_regs_ever_live_p.
6901
6902 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6903
6904 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
6905 by ignoring it.
6906
6907 2015-10-29 Richard Henderson <rth@redhat.com>
6908
6909 PR target/68124
6910 PR rtl-opt/67609
6911 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6912 sse check to the exact conditions of PR 67609.
6913
6914 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6915
6916 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
6917 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
6918 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
6919 of the traditional names that TFmode uses for handling IEEE
6920 extended double. If -mfloat128, add KFmode functions for all of
6921 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
6922 make TFmode use the same emulation functions as KFmode.
6923 (init_float128_ibm): Likewise.
6924 (init_float128_ieee): Likewise.
6925 (rs6000_generate_compare): For IEEE 128-bit floating point
6926 comparisons, call the unordered comparison function instead of the
6927 ordered comparison function.
6928 (rs6000_expand_float128_convert): Deal with operands that are
6929 memory operands. Restructure the code to use a switch statement on
6930 the mode. Add support for TFmode defaulting to either IBM extended
6931 double or IEEE 128-bit floating point. If the underlying types are
6932 the same, use a move instead of a conversion function.
6933 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
6934 use for IEEE 128-bit floating point constants with -mfloat128.
6935 (rs6000_c_mode_for_suffix): Likewise.
6936 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
6937 128-bit floating point with IBM extended double floating point.
6938 (rs6000_invalid_binary_op): Likewise.
6939 (rs6000_gen_le_vsx_permute): On little endian systems generate a
6940 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
6941 types that can go in vector registers.
6942 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
6943 point types that can go in vector registers on little endian
6944 PowerPC systems.
6945 (mark_swaps_for_removal): Likewise.
6946 (rs6000_analyze_swaps): Likewise.
6947 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
6948
6949 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
6950 rework IEEE 128-bit floating point insns to deal with TFmode being
6951 either IBM extended double or IEEE 128-bit floating point.
6952 (IFKF): Likewise.
6953 (IBM128): Update iterator to add condition that the mode is IBM
6954 extended double.
6955 (IEEE128): New iterator for IEEE 128-bit floating point.
6956 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
6957 (FLOAT128): Likewise.
6958 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
6959 iterator.
6960 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
6961 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
6962 instead of hard coding TFmode or KFmode.
6963 (negtf2_internal): Likewise.
6964 (neg<mode>2_internal): Likewise.
6965 (abs<mode>2): Likewise.
6966 (abstf2_internal): Likewise.
6967 (abs<mode>2_internal): Likewise.
6968 (ieee_128bit_neg<mode>2): Likewise.
6969 (ieee_128bit_neg<mode>2_internal): Likewise.
6970 (ieee_128bit_abs<mode>2): Likewise.
6971 (ieee_128bit_abs<mode>2_internal): Likewise.
6972 (ieee_128bit_nabs<mode>2): Likewise.
6973 (ieee_128bit_nabs<mode>2_internal): Likewise.
6974 (extendiftf2): Add explicit conversions between 128-bit floating
6975 point types. Drop the old conversions that had become unwieldy.
6976 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
6977 (extendifkf2): Likewise.
6978 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
6979 (extendtfkf2): Likewise.
6980 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
6981 (trunciftf2): Likewise.
6982 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
6983 (truncifkf2): Likewise.
6984 (float<SDI:mode><IFKF:mode>2): Likewise.
6985 (trunckftf2): Likewise.
6986 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
6987 (trunctfif2): Likewise.
6988 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
6989 (extenddftf2): Rework 128-bit floating point conversions to
6990 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
6991 KFmode expanders into one function.
6992 (extenddf<mode>2): Likewise.
6993 (extenddftf2_fprs): Likewise.
6994 (extenddf<mode>2_fprs): Likewise.
6995 (extenddftf2_vsx): Likewise.
6996 (extenddf<mode>2_vsx): Likewise.
6997 (extendsftf2): Likewise.
6998 (extendsf<mode>2): Likewise.
6999 (trunctfdf2): Likewise.
7000 (trunc<mode>df2): Likewise.
7001 (trunctfdf2_internal1): Likewise.
7002 (trunc<mode>df2_internal1): Likewise.
7003 (trunctfdf2_internal2): Likewise.
7004 (trunc<mode>df2_internal2): Likewise.
7005 (trunctfsf2): Likewise.
7006 (trunc<mode>sf2): Likewise.
7007 (trunctfsf2_fprs): Likewise.
7008 (trunc<mode>sf2_fprs): Likewise.
7009 (floatsit2f): Likewise.
7010 (floatsi<mode>2): Likewise.
7011 (fix_trunc_helper): Likewise.
7012 (fix_trunc_helper<mode>): Likewise.
7013 (fix_trunctfsi2): Likewise.
7014 (fix_trunc<mode>si2): Likewise.
7015 (fix_trunctfsi2_fprs): Likewise.
7016 (fix_trunc<mode>si2_fprs): Likewise.
7017 (fix_trunctfsi2_internal): Likewise.
7018 (fix_trunc<mode>si2_internal): Likewise.
7019 (fix_trunctfdi2): Likewise.
7020 (fix_trunc<mode>di2): Likewise.
7021 (fixuns_trunctf<mode>2): Likewise.
7022 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7023 (floatditf2): Likewise.
7024 (floatdi<mode>2): Likewise.
7025 (floatuns<mode>tf2): Likewise.
7026 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7027 (cmptf_internal1): Use a mode iterator to add support for both
7028 types (IFmode, TFmode) that support IBM extended double.
7029 (cmp<mode>_internal1): Likewise.
7030 (cmptf_internal2): Likewise.
7031 (cmp<mode>_internal2): Likewise.
7032
7033 * doc/extend.texi (Floating Types): Document __ibm128 and
7034 __float128 on PowerPC.
7035
7036 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7037 -mfloat128 and -mno-float128.
7038
7039 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7040
7041 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7042 floating point modes that can go in vector registers.
7043 (MODES_TIEABLE_P): Move tests for vector modes before tests for
7044 scalar floating point, so that IEEE 128-bit floating point that
7045 can go in vector registers bind with vectors and not FP.
7046 (struct rs6000_args): Add libcall field.
7047
7048 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7049 and -mfloat128-software switches. Replace them with a binary
7050 -mfloat128 switch.
7051 (-mfloat128): Likewise.
7052
7053 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7054 128-bit floating point types in GPRs, even if the appropriate
7055 option enabling the type was not used.
7056 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7057 debugging.
7058 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7059 pre-decrement on IEEE 128-bit floating point values.
7060 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7061 is IEEE 128-bit floating point.
7062 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7063 128-bit floating point types that can go in vector registers.
7064 (rs6000_option_override_internal): Change -mfloat128-none and
7065 -mfloat128-software to -mfloat128, and move code to be near other
7066 VSX option handling.
7067 (rs6000_option_override_internal): Disable -mfloat128 if we don't
7068 have the Altivec ABI.
7069 (rs6000_init_builtins): Don't make TFmode use either IFmode or
7070 KFmode floating point nodes. Instead, have three separate nodes.
7071 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7072 eventually moving the long double default to IEEE 128-bit floating
7073 point.
7074 (rs6000_opt_masks): Add -mfloat128.
7075 (struct rs6000_opt_var): Fix typo in comment.
7076 (init_cumulative_args): Initialize libcall field in
7077 CUMULATIVE_ARGS.
7078 (rs6000_function_arg): Treat library functions as if they had
7079 prototypes to prevent IEEE 128-bit support functions from passing
7080 arguments in both GPRs and vector registers.
7081 (rs6000_arg_partial_bytes): Likewise.
7082
7083 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7084 an option that can be turned on via -mcpu=<xxx>.
7085
7086 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7087 longer used.
7088
7089 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7090 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7091 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7092 double is IBM extended double.
7093
7094 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7095 SUBREGs.
7096
7097 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7098
7099 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7100 * genconditions.c: Define CHECKING_P in the generated code.
7101 * genextract.c: Use flag_checking in insn_extract.
7102 * gengtype.c (main): Remove conditional compilation.
7103 * gengtype.h: Likewise.
7104
7105 2015-10-29 Jeff Law <law@redhat.com>
7106
7107 PR tree-optimization/67892
7108 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7109 in comment.
7110 (thread_through_normal_block): If we have seen a backedge, then
7111 do nothing. No longer call find_jump_threads_backwards here.
7112 (thread_across_edge): Use find_jump_threads_backwards to find
7113 jump threads if the old style threader was not successful.
7114 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7115 gsi_last_nondebug_bb. Return NULL if the block does not end
7116 with a control statement.
7117 (find_jump_threads_backwards): Setup code moved here from
7118 tree-ssa-threadedge.c::thread_through_normal_block. Accept
7119 single edge argument instead of name & block.
7120 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7121 prototype.
7122
7123 2015-10-29 Tom de Vries <tom@codesourcery.com>
7124
7125 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7126 types.
7127
7128 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7129
7130 * omp-low.c (lower_omp_target): Remove unreachable code & merge
7131 ifs.
7132
7133 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
7134
7135 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7136
7137 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7138
7139 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7140 guard_bb0 and use guard_bb throughout.
7141
7142 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7143
7144 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7145 unnecessary label.
7146
7147 2015-10-29 Richard Biener <rguenther@suse.de>
7148
7149 PR middle-end/68142
7150 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7151 overflow.
7152
7153 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
7154
7155 * alias.c: Reorder #include statements and remove duplicates.
7156 * asan.c: Likewise.
7157 * attribs.c: Likewise.
7158 * auto-inc-dec.c: Likewise.
7159 * auto-profile.c: Likewise.
7160 * bb-reorder.c: Likewise.
7161 * bt-load.c: Likewise.
7162 * builtins.c: Likewise.
7163 * caller-save.c: Likewise.
7164 * calls.c: Likewise.
7165 * ccmp.c: Likewise.
7166 * cfg.c: Likewise.
7167 * cfganal.c: Likewise.
7168 * cfgbuild.c: Likewise.
7169 * cfgcleanup.c: Likewise.
7170 * cfgexpand.c: Likewise.
7171 * cfghooks.c: Likewise.
7172 * cfgloop.c: Likewise.
7173 * cfgloopanal.c: Likewise.
7174 * cfgloopmanip.c: Likewise.
7175 * cfgrtl.c: Likewise.
7176 * cgraph.c: Likewise.
7177 * cgraphbuild.c: Likewise.
7178 * cgraphclones.c: Likewise.
7179 * cgraphunit.c: Likewise.
7180 * cilk-common.c: Likewise.
7181 * combine-stack-adj.c: Likewise.
7182 * combine.c: Likewise.
7183 * compare-elim.c: Likewise.
7184 * convert.c: Likewise.
7185 * coverage.c: Likewise.
7186 * cppbuiltin.c: Likewise.
7187 * cprop.c: Likewise.
7188 * cse.c: Likewise.
7189 * cselib.c: Likewise.
7190 * data-streamer-in.c: Likewise.
7191 * data-streamer-out.c: Likewise.
7192 * data-streamer.c: Likewise.
7193 * dbxout.c: Likewise.
7194 * dce.c: Likewise.
7195 * ddg.c: Likewise.
7196 * debug.c: Likewise.
7197 * df-core.c: Likewise.
7198 * df-problems.c: Likewise.
7199 * df-scan.c: Likewise.
7200 * dfp.c: Likewise.
7201 * dojump.c: Likewise.
7202 * dominance.c: Likewise.
7203 * double-int.c: Likewise.
7204 * dse.c: Likewise.
7205 * dumpfile.c: Likewise.
7206 * dwarf2asm.c: Likewise.
7207 * dwarf2cfi.c: Likewise.
7208 * dwarf2out.c: Likewise.
7209 * emit-rtl.c: Likewise.
7210 * except.c: Likewise.
7211 * explow.c: Likewise.
7212 * expmed.c: Likewise.
7213 * expr.c: Likewise.
7214 * final.c: Likewise.
7215 * fixed-value.c: Likewise.
7216 * fold-const.c: Likewise.
7217 * function.c: Likewise.
7218 * fwprop.c: Likewise.
7219 * gcse.c: Likewise.
7220 * generic-match-head.c: Likewise.
7221 * ggc-common.c: Likewise.
7222 * gimple-builder.c: Likewise.
7223 * gimple-expr.c: Likewise.
7224 * gimple-fold.c: Likewise.
7225 * gimple-iterator.c: Likewise.
7226 * gimple-low.c: Likewise.
7227 * gimple-match-head.c: Likewise.
7228 * gimple-pretty-print.c: Likewise.
7229 * gimple-ssa-isolate-paths.c: Likewise.
7230 * gimple-ssa-strength-reduction.c: Likewise.
7231 * gimple-streamer-in.c: Likewise.
7232 * gimple-streamer-out.c: Likewise.
7233 * gimple-walk.c: Likewise.
7234 * gimple.c: Likewise.
7235 * gimplify-me.c: Likewise.
7236 * gimplify.c: Likewise.
7237 * godump.c: Likewise.
7238 * graph.c: Likewise.
7239 * graphite-poly.c: Likewise.
7240 * haifa-sched.c: Likewise.
7241 * hw-doloop.c: Likewise.
7242 * ifcvt.c: Likewise.
7243 * incpath.c: Likewise.
7244 * init-regs.c: Likewise.
7245 * internal-fn.c: Likewise.
7246 * ipa-chkp.c: Likewise.
7247 * ipa-comdats.c: Likewise.
7248 * ipa-cp.c: Likewise.
7249 * ipa-devirt.c: Likewise.
7250 * ipa-icf-gimple.c: Likewise.
7251 * ipa-icf.c: Likewise.
7252 * ipa-inline-analysis.c: Likewise.
7253 * ipa-inline-transform.c: Likewise.
7254 * ipa-inline.c: Likewise.
7255 * ipa-polymorphic-call.c: Likewise.
7256 * ipa-profile.c: Likewise.
7257 * ipa-prop.c: Likewise.
7258 * ipa-pure-const.c: Likewise.
7259 * ipa-ref.c: Likewise.
7260 * ipa-reference.c: Likewise.
7261 * ipa-split.c: Likewise.
7262 * ipa-utils.c: Likewise.
7263 * ipa-visibility.c: Likewise.
7264 * ipa.c: Likewise.
7265 * ira-build.c: Likewise.
7266 * ira-color.c: Likewise.
7267 * ira-conflicts.c: Likewise.
7268 * ira-costs.c: Likewise.
7269 * ira-emit.c: Likewise.
7270 * ira-lives.c: Likewise.
7271 * ira.c: Likewise.
7272 * jump.c: Likewise.
7273 * langhooks.c: Likewise.
7274 * lcm.c: Likewise.
7275 * lists.c: Likewise.
7276 * loop-doloop.c: Likewise.
7277 * loop-init.c: Likewise.
7278 * loop-invariant.c: Likewise.
7279 * loop-iv.c: Likewise.
7280 * loop-unroll.c: Likewise.
7281 * lower-subreg.c: Likewise.
7282 * lra-assigns.c: Likewise.
7283 * lra-coalesce.c: Likewise.
7284 * lra-constraints.c: Likewise.
7285 * lra-eliminations.c: Likewise.
7286 * lra-lives.c: Likewise.
7287 * lra-remat.c: Likewise.
7288 * lra-spills.c: Likewise.
7289 * lra.c: Likewise.
7290 * lto-cgraph.c: Likewise.
7291 * lto-compress.c: Likewise.
7292 * lto-opts.c: Likewise.
7293 * lto-section-in.c: Likewise.
7294 * lto-section-out.c: Likewise.
7295 * lto-streamer-in.c: Likewise.
7296 * lto-streamer-out.c: Likewise.
7297 * lto-streamer.c: Likewise.
7298 * mode-switching.c: Likewise.
7299 * modulo-sched.c: Likewise.
7300 * omp-low.c: Likewise.
7301 * optabs.c: Likewise.
7302 * opts-global.c: Likewise.
7303 * passes.c: Likewise.
7304 * plugin.c: Likewise.
7305 * postreload-gcse.c: Likewise.
7306 * postreload.c: Likewise.
7307 * predict.c: Likewise.
7308 * print-tree.c: Likewise.
7309 * profile.c: Likewise.
7310 * real.c: Likewise.
7311 * realmpfr.c: Likewise.
7312 * recog.c: Likewise.
7313 * ree.c: Likewise.
7314 * reg-stack.c: Likewise.
7315 * regcprop.c: Likewise.
7316 * reginfo.c: Likewise.
7317 * regrename.c: Likewise.
7318 * regstat.c: Likewise.
7319 * reload.c: Likewise.
7320 * reload1.c: Likewise.
7321 * reorg.c: Likewise.
7322 * resource.c: Likewise.
7323 * rtl-chkp.c: Likewise.
7324 * rtl-error.c: Likewise.
7325 * rtlanal.c: Likewise.
7326 * rtlhooks.c: Likewise.
7327 * sanopt.c: Likewise.
7328 * sched-deps.c: Likewise.
7329 * sched-ebb.c: Likewise.
7330 * sched-rgn.c: Likewise.
7331 * sese.c: Likewise.
7332 * shrink-wrap.c: Likewise.
7333 * simplify-rtx.c: Likewise.
7334 * stack-ptr-mod.c: Likewise.
7335 * statistics.c: Likewise.
7336 * stmt.c: Likewise.
7337 * stor-layout.c: Likewise.
7338 * store-motion.c: Likewise.
7339 * stringpool.c: Likewise.
7340 * symtab.c: Likewise.
7341 * target-globals.c: Likewise.
7342 * targhooks.c: Likewise.
7343 * toplev.c: Likewise.
7344 * tracer.c: Likewise.
7345 * trans-mem.c: Likewise.
7346 * tree-affine.c: Likewise.
7347 * tree-call-cdce.c: Likewise.
7348 * tree-cfg.c: Likewise.
7349 * tree-cfgcleanup.c: Likewise.
7350 * tree-chkp-opt.c: Likewise.
7351 * tree-chkp.c: Likewise.
7352 * tree-chrec.c: Likewise.
7353 * tree-complex.c: Likewise.
7354 * tree-data-ref.c: Likewise.
7355 * tree-dfa.c: Likewise.
7356 * tree-diagnostic.c: Likewise.
7357 * tree-dump.c: Likewise.
7358 * tree-eh.c: Likewise.
7359 * tree-emutls.c: Likewise.
7360 * tree-if-conv.c: Likewise.
7361 * tree-inline.c: Likewise.
7362 * tree-into-ssa.c: Likewise.
7363 * tree-iterator.c: Likewise.
7364 * tree-loop-distribution.c: Likewise.
7365 * tree-nested.c: Likewise.
7366 * tree-nrv.c: Likewise.
7367 * tree-object-size.c: Likewise.
7368 * tree-outof-ssa.c: Likewise.
7369 * tree-parloops.c: Likewise.
7370 * tree-phinodes.c: Likewise.
7371 * tree-predcom.c: Likewise.
7372 * tree-pretty-print.c: Likewise.
7373 * tree-profile.c: Likewise.
7374 * tree-scalar-evolution.c: Likewise.
7375 * tree-sra.c: Likewise.
7376 * tree-ssa-address.c: Likewise.
7377 * tree-ssa-alias.c: Likewise.
7378 * tree-ssa-ccp.c: Likewise.
7379 * tree-ssa-coalesce.c: Likewise.
7380 * tree-ssa-copy.c: Likewise.
7381 * tree-ssa-dce.c: Likewise.
7382 * tree-ssa-dom.c: Likewise.
7383 * tree-ssa-dse.c: Likewise.
7384 * tree-ssa-forwprop.c: Likewise.
7385 * tree-ssa-ifcombine.c: Likewise.
7386 * tree-ssa-live.c: Likewise.
7387 * tree-ssa-loop-ch.c: Likewise.
7388 * tree-ssa-loop-im.c: Likewise.
7389 * tree-ssa-loop-ivcanon.c: Likewise.
7390 * tree-ssa-loop-ivopts.c: Likewise.
7391 * tree-ssa-loop-manip.c: Likewise.
7392 * tree-ssa-loop-niter.c: Likewise.
7393 * tree-ssa-loop-prefetch.c: Likewise.
7394 * tree-ssa-loop-unswitch.c: Likewise.
7395 * tree-ssa-loop.c: Likewise.
7396 * tree-ssa-math-opts.c: Likewise.
7397 * tree-ssa-operands.c: Likewise.
7398 * tree-ssa-phiopt.c: Likewise.
7399 * tree-ssa-phiprop.c: Likewise.
7400 * tree-ssa-pre.c: Likewise.
7401 * tree-ssa-propagate.c: Likewise.
7402 * tree-ssa-reassoc.c: Likewise.
7403 * tree-ssa-sccvn.c: Likewise.
7404 * tree-ssa-scopedtables.c: Likewise.
7405 * tree-ssa-sink.c: Likewise.
7406 * tree-ssa-strlen.c: Likewise.
7407 * tree-ssa-structalias.c: Likewise.
7408 * tree-ssa-tail-merge.c: Likewise.
7409 * tree-ssa-ter.c: Likewise.
7410 * tree-ssa-threadedge.c: Likewise.
7411 * tree-ssa-threadupdate.c: Likewise.
7412 * tree-ssa-uncprop.c: Likewise.
7413 * tree-ssa-uninit.c: Likewise.
7414 * tree-ssa.c: Likewise.
7415 * tree-ssanames.c: Likewise.
7416 * tree-stdarg.c: Likewise.
7417 * tree-streamer-in.c: Likewise.
7418 * tree-streamer-out.c: Likewise.
7419 * tree-streamer.c: Likewise.
7420 * tree-switch-conversion.c: Likewise.
7421 * tree-tailcall.c: Likewise.
7422 * tree-vect-data-refs.c: Likewise.
7423 * tree-vect-generic.c: Likewise.
7424 * tree-vect-loop-manip.c: Likewise.
7425 * tree-vect-loop.c: Likewise.
7426 * tree-vect-patterns.c: Likewise.
7427 * tree-vect-slp.c: Likewise.
7428 * tree-vect-stmts.c: Likewise.
7429 * tree-vectorizer.c: Likewise.
7430 * tree-vrp.c: Likewise.
7431 * tree.c: Likewise.
7432 * tsan.c: Likewise.
7433 * ubsan.c: Likewise.
7434 * value-prof.c: Likewise.
7435 * var-tracking.c: Likewise.
7436 * varasm.c: Likewise.
7437 * varpool.c: Likewise.
7438 * vtable-verify.c: Likewise.
7439 * web.c: Likewise.
7440 * wide-int-print.cc: Likewise.
7441 * wide-int.cc: Likewise.
7442 * xcoffout.c: Likewise.
7443
7444 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
7445
7446 * Makefile.in (NO_PIE_CFLAGS): New.
7447 (NO_PIE_FLAG): Likewise.
7448 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7449 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7450 (BUILD_NO_PIE_CFLAGS): Likewise.
7451 (BUILD_NO_PIE_FLAG): Likewise.
7452 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
7453 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
7454 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
7455 $(BUILD_NO_PIE_CFLAGS).
7456 (BUILD_CXXFLAGS): Likewise.
7457 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
7458 $(BUILD_NO_PIE_FLAG).
7459 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
7460 (BUILD_NO_PIE_FLAG): Likewise.
7461 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7462 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7463 * configure: Regenerated.
7464
7465 2015-10-29 Richard Biener <rguenther@suse.de>
7466
7467 PR middle-end/56956
7468 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
7469 unsigned conditonal negation to ABS_EXPR.
7470
7471 2015-10-29 Richard Biener <rguenther@suse.de>
7472
7473 * gimple-match-head.c (gimple_simplify): Remove premature checking
7474 of builtin_decl_implicit of function calls we simplify.
7475
7476 2015-10-29 Bin Cheng <bin.cheng@arm.com>
7477
7478 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
7479 (get_computation_cost_at): Ditto.
7480 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
7481 and inv_expr_id.
7482
7483 2015-10-28 Tom de Vries <tom@codesourcery.com>
7484
7485 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
7486 superfluous code.
7487
7488 2015-10-28 Jason Merrill <jason@redhat.com>
7489
7490 * Makefile.in (TAGS): Include libcpp and libiberty.
7491
7492 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7493
7494 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
7495 (extract_omp_for_data): Remove OpenACC special handling of
7496 chunking.
7497
7498 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
7499 (struct parallel): Update comment.
7500 (nvptx_reorg): Likewise.
7501 (nvptx_neuter): Cleanup whitespace.
7502
7503 2015-10-28 Richard Henderson <rth@redhat.com>
7504
7505 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
7506
7507 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7508
7509 PR target/67839
7510 * config/avr/predicates.md (low_io_address_operand): Don't
7511 consider MODE when computing upper bound.
7512 (io_address_operand): Likewise.
7513
7514 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
7515
7516 * fold-const.c (operand_equal_p): Do not verify that types are
7517 compatible for MEM_REFs.
7518
7519 2015-10-28 Richard Biener <rguenther@suse.de>
7520
7521 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
7522 in simplifying VEC_COND_EXPR conditions.
7523
7524 2015-10-28 Tom de Vries <tom@codesourcery.com>
7525
7526 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
7527 into vi_next of a full_var.
7528
7529 2015-10-28 Tom de Vries <tom@codesourcery.com>
7530
7531 * tree-ssa-structalias.c (new_var_info, make_heapvar)
7532 (make_constraint_from_restrict, make_constraint_from_global_restrict)
7533 (create_function_info_for, create_variable_info_for_1)
7534 (create_variable_info_for): Add and handle add_id parameter.
7535 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
7536 (init_base_vars): Add extra argument to calls to new_var_info.
7537 (get_vi_for_tree): Add extra argument to call to
7538 create_variable_info_for.
7539 (process_constraint, do_deref, process_all_all_constraints): Add extra
7540 argument to calls to new_scalar_tmp_constraint_exp.
7541 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
7542 argument to calls to make_heapvar.
7543 (make_restrict_var_constraints): Add extra argument to call to
7544 make_constraint_from_global_restrict.
7545 (intra_create_variable_infos): Add extra argument to call to
7546 create_variable_info_for_1.
7547 (ipa_pta_execute): Add extra argument to call to
7548 create_function_info_for.
7549
7550 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7551
7552 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
7553 (sibcall_value): Likewise.
7554
7555 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7556
7557 * config/nvptx/nvptx.h (struct machine_function): Add
7558 axis_predicate.
7559 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
7560 nvptx_expand_oacc_join): Declare.
7561 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
7562 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
7563 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
7564 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
7565 UNSPECV_JOINING, UNSPECV_JOIN): New.
7566 (BITS, BITD): New mode iterators.
7567 (br_true_uni, br_false_uni): New.
7568 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
7569 (oacc_dim_size, oacc_dim_pos): New.
7570 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
7571 (oacc_fork, oacc_join): New.
7572 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
7573 (worker_load<mode>, worker_store<mode>): New.
7574 (nvptx_barsync): New.
7575 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
7576 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
7577 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
7578 worker_bcast_sym): New.
7579 (nvptx_option_override): Initialize worker broadcast buffer.
7580 (nvptx_emit_forking, nvptx_emit_joining): New.
7581 (nvptx_init_axis_predicate): New.
7582 (nvptx_declare_function_name): Init axis predicates.
7583 (nvptx_expand_call): Add fork/join markers around routine call.
7584 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
7585 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
7586 (nvptx_gen_vcast): New.
7587 (struct wcast_data_t): New.
7588 (enum propagate_mask): New.
7589 (nvptx_gen_wcast): New.
7590 (nvptx_print_operand): Add 'S' case.
7591 (struct parallel): New.
7592 (parallel::parallel, parallel::~parallel): New.
7593 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
7594 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
7595 nvptx_find_par, nvptx_discover_pars): New.
7596 (nvptx_propagate): New.
7597 (vprop_gen, nvptx_vpropagate): New.
7598 (wprop_gen, nvptx_wpropagate): New.
7599 (nvptx_wsync): New.
7600 (nvptx_single, nvptx_skip_par): New.
7601 (nvptx_process_pars, nvptx_neuter_pars): New.
7602 (ntptx_reorg): Split blocks, generate parallel structure, apply
7603 neutering.
7604 (nvptx_cannot_copy_insn_p): New.
7605 (nvptx_file_end): Emit worker broadcast decl.
7606 (nvptx_goacc_fork_join): New.
7607 (TARGET_CANNOT_COPY_INSN_P): Override.
7608 (TARGET_GOACC_FORK_JOIN): Override.
7609
7610 2015-10-28 Richard Biener <rguenther@suse.de>
7611
7612 * fold-const.c (negate_expr_p): Adjust the division case to
7613 properly avoid introducing undefined overflow.
7614 (fold_negate_expr): Likewise.
7615
7616 2015-10-28 Richard Biener <rguenther@suse.de>
7617
7618 PR tree-optimization/65962
7619 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7620 Avoid creating loop carried dependences also for outer loops
7621 of the loop a use to replace is in.
7622
7623 2015-10-28 Richard Biener <rguenther@suse.de>
7624
7625 * common.opt (fchecking): New flag controlling flag_checking.
7626 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
7627 * timevar.c (timer::print): Adjust output.
7628 * doc/invoke.texi (fchecking): Document.
7629
7630 2015-10-28 Richard Biener <rguenther@suse.de>
7631
7632 PR middle-end/68067
7633 * fold-const.c (negate_expr_p): We cannot negate plus or minus
7634 if overflow is not wrapping. Likewise multiplication unless
7635 one operand is constant and not power of two.
7636 (fold_negate_expr): Adjust accordingly.
7637
7638 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7639
7640 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
7641 fields.
7642 (is_oacc_parallel, is_oacc_kernels): New.
7643 (enclosing_target_ctx): May return NULL.
7644 (ctx_in_oacc_kernels_region): New.
7645 (check_oacc_kernel_gwv): New.
7646 (oacc_loop_or_target_p): Delete.
7647 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
7648 operands. Strip reductions fro kernels.
7649 (scan_omp_target): Don't calculate gwv mask.
7650 (lower_oacc_head_mark, lower_oacc_loop_marker,
7651 lower_oacc_head_tail): New.
7652 (struct oacc_collapse): New.
7653 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
7654 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7655 Remove OpenACC handling.
7656 (expand_oacc_for): New.
7657 (expand_omp_for): Call expand_oacc_for.
7658 (lower_omp_for): Call lower_oacc_head_tail.
7659
7660 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
7661
7662 * attribs.c (check_attribute_tables): New function, broken out from...
7663 (init_attributes): Use it.
7664 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
7665 gcc_checking_assert and checking_* functions to eliminate
7666 ENABLE_CHECKING conditionals.
7667 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
7668 (pass_expand::execute): Likewise.
7669 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
7670 * cgraphunit.c (mark_functions_to_output): Likewise.
7671 (cgraph_node::expand_thunk): Likewise.
7672 (symbol_table::compile): Likewise.
7673 * ddg.c (add_cross_iteration_register_deps): Likewise.
7674 (create_ddg_all_sccs): Likewise.
7675 * df-core.c (df_finish_pass, df_analyze): Likewise.
7676 * diagnostic-core.h: Likewise.
7677 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
7678 * dominance.c (calculate_dominance_info): Likewise.
7679 * dwarf2out.c (add_AT_die_ref): Likewise.
7680 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
7681 (loc_list_from_tree, gen_lexical_block_die): Likewise.
7682 gen_type_die_with_usage, gen_type_die): Likewise.
7683 (dwarf2out_decl): Likewise.
7684 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
7685 * except.c (duplicate_eh_regions): Likewise.
7686 * fwprop.c (register_active_defs, update_df_init): Likewise.
7687 (fwprop_init, fwprop_done): Likewise.
7688 (update_uses): Likewise.
7689 * ggc-page.c (ggc_grow): Likewise.
7690 * gimplify.c (gimplify_body): Likewise.
7691 (gimplify_hasher::equal): Likewise.
7692 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
7693 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
7694 Likewise.
7695 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
7696 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
7697 * hash-table.h (::find_empty_slot_for_expand): Likewise.
7698 * ifcvt.c (if_convert): Likewise.
7699 * ipa-cp.c (ipcp_propagate_stage): Likewise.
7700 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
7701 (odr_type_p, odr_types_equivalent_p): Likewise.
7702 (add_type_duplicate, get_odr_type): Likewise.
7703 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7704 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7705 (sem_item_optimizer::verify_classes): Likewise.
7706 (sem_item_optimizer::traverse_congruence_split): Likewise.
7707 (sem_item_optimizer::checking_verify_classes): New.
7708 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
7709 method.
7710 * cfgrtl.c (commit_edge_insertions): Likewise.
7711 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
7712 (rtl_flow_call_edges_add): Likewise.
7713 * cgraph.c (symbol_table::create_edge): Likewise.
7714 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7715 * cgraph.h (symtab_node): Likewise.
7716 (symtab_node::checking_verify_symtab_nodes): Define.
7717 (cgraph_node::checking_verify_cgraph_nodes): Define.
7718 * cfghooks.h (checking_verify_flow_info): Define.
7719 * cfgloop.h (checking_verify_loop_structure): Define.
7720 * dominance.h (checking_verify_dominators): Define.
7721 * et-forest.c: Fix comment.
7722 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
7723 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7724 ENABLE_CHECKING conditionals.
7725 * ipa-inline-transform.c (save_inline_function_body): Likewise.
7726 * ipa-inline.c (inline_small_functions): Likewise.
7727 (early_inliner): Likewise.
7728 * ipa-inline.h (estimate_edge_growth): Likewise.
7729 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7730 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7731 (ipa_single_use): Likewise.
7732 * ira-int.h: Likewise.
7733 * ira.c (ira): Likewise.
7734 * loop-doloop.c (doloop_optimize_loops): Likewise.
7735 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
7736 * loop-invariant.c (move_loop_invariants): Likewise.
7737 * lra-assigns.c (lra_assign): Likewise.
7738 * lra-constraints.c (lra_constraints): Likewise.
7739 * lra-eliminations.c (lra_eliminate): Likewise.
7740 * lra-int.h (struct lra_reg): Likewise.
7741 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7742 (lra_create_live_ranges_1): Likewise.
7743 * lra-remat.c (create_remat_bb_data): Likewise.
7744 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
7745 (lra): Likewise.
7746 (check_rtl): Always define. Remove incorrect guard around
7747 extract_constrain_insn call.
7748 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
7749 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7750 ENABLE_CHECKING conditionals.
7751 * lto-streamer-out.c (DFS::DFS): Likewise.
7752 (lto_output): Likewise.
7753 * lto-streamer.c (lto_streamer_init): Likewise.
7754 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
7755 expand_omp_target, execute_expand_omp): Likewise.
7756 (lower_omp_target): Likewise.
7757 * passes.c (execute_function_todo): Likewise.
7758 (execute_todo, execute_one_pass): Likewise.
7759 (verify_curr_properties): Always define.
7760 * predict.c (tree_estimate_probability: Use flag_checking,
7761 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7762 ENABLE_CHECKING conditionals.
7763 (propagate_freq): Likewise.
7764 * pretty-print.c (pp_format): Likewise.
7765 * real.c (real_to_decimal_for_mode): Likewise.
7766 * recog.c (split_all_insns): Likewise.
7767 * regcprop.c (kill_value_one_regno): Likewise.
7768 (copy_value): Likewise.
7769 (validate_value_data): Define unconditionally.
7770 * reload.c: Fix comment.
7771 * timevar.c: Include options.h
7772 * tree-ssa.h (checking_verify_ssa): Define.
7773 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
7774 * sched-deps.c (CHECK): Remove unused macro.
7775 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
7776 gcc_checking_assert and checking_* functions to eliminate
7777 ENABLE_CHECKING conditionals.
7778 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
7779 * sel-sched.c (struct moveop_static_params): Likewise.
7780 (find_best_reg_for_expr, move_cond_jump): Likewise.
7781 (move_op_orig_expr_not_found): Likewise.
7782 (code_motion_process_successors, move_op): Likewise.
7783 * ssa-iterators.h (first_readonly_imm_use): Likewise.
7784 (next_readonly_imm_use): Likewise.
7785 * store-motion.c (compute_store_table): Likewise.
7786 * symbol-summary.h (function_summary::function_summary): Likewise.
7787 * target.h (cumulative_args_t): Likewise.
7788 (get_cumulative_args, pack_cumulative_args): Likewise.
7789 * timevar.c: (timer::print): Likewise.
7790 * trans-mem.c (ipa_tm_execute): Likewise.
7791 * tree-cfg.c (move_stmt_op): Likewise.
7792 (move_sese_region_to_fn): Likewise.
7793 (gimple_flow_call_edges_add): Likewise.
7794 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
7795 Likewise.
7796 * tree-eh.c (remove_unreachable_handlers): Likewise.
7797 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
7798 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
7799 * tree-into-ssa.c (update_ssa): Likewise.
7800 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
7801 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
7802 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
7803 * tree-predcom.c (suitable_component_p): Likewise.
7804 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
7805 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
7806 * tree-ssa-live.c (verify_live_on_entry): Likewise.
7807 * tree-ssa-live.h (register_ssa_partition): Likewise.
7808 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
7809 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
7810 (tree_transform_and_unroll_loop): Likewise.
7811 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7812 * tree-ssa-operands.c (get_expr_operands): Likewise.
7813 * tree-ssa-propagate.c (replace_exp_1): Likewise.
7814 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7815 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7816 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
7817 * tree-ssanames.c (release_ssa_name_fn): Likewise.
7818 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
7819 * tree-vect-loop-manip.c
7820 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7821 (slpeel_checking_verify_cfg_after_peeling): Likewise.
7822 (vect_do_peeling_for_loop_bound): Likewise.
7823 (vect_do_peeling_for_alignment): Likewise.
7824 * tree-vrp.c (supports_overflow_infinity): Likewise.
7825 (set_value_range): Likewise.
7826 * tree.c (free_lang_data_in_cgraph): Likewise.
7827 * value-prof.c (gimple_remove_histogram_value): Likewise.
7828 (free_hist): Likewise.
7829 * var-tracking.c (canonicalize_values_star): Likewise.
7830 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
7831
7832 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7833
7834 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
7835 IFN_GOACC_LOOP): New.
7836 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
7837 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
7838 IFN_UNIQUE_OACC_TAIL_MARK.
7839 (enum ifn_goacc_loop_kind): New.
7840 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
7841 IFN_UNIQUE_OACC_JOIN cases.
7842 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
7843 (expand_GOACC_LOOP): New.
7844 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
7845 * omp-low.c: Include gimple-pretty-print.h.
7846 (struct oacc_loop): New.
7847 (enum oacc_loop_flags): New.
7848 (oacc_thread_numbers): New.
7849 (oacc_xform_loop): New.
7850 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
7851 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
7852 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
7853 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
7854 oacc_loop_discovery): New.
7855 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
7856 oacc_loop_process): New.
7857 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
7858 (execute_oacc_device_lower): Discover & process loops. Process
7859 internal fns.
7860 * target.def (goacc.fork_join): Change sense of hook, clarify
7861 documentation.
7862 * doc/tm.texi: Regenerated.
7863
7864 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7865
7866 * target-insns.def (oacc_fork, oacc_join): Define.
7867 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
7868 (goacc.fork_join): New GOACC hook.
7869 * targhooks.h (default_goacc_fork_join): Declare.
7870 * omp-low.c (default_goacc_forkjoin): New.
7871 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
7872 * doc/tm.texi: Regenerate.
7873
7874 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7875
7876 * omp-low.c (oacc_init_rediction_array): New.
7877 (oacc_initialize_reduction_data): Initialize array.
7878
7879 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7880
7881 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
7882
7883 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7884
7885 * internal-fn.c (expand_UNIQUE): New.
7886 * internal-fn.h (enum ifn_unique_kind): New.
7887 * internal-fn.def (IFN_UNIQUE): New.
7888 * target-insns.def (unique): Define.
7889 * gimple.h (gimple_call_internal_unique_p): New.
7890 * gimple.c (gimple_call_same_target_p): Check internal fn
7891 uniqueness.
7892 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
7893 * tree-ssa-threadedge.c
7894 (record_temporary_equivalences_from_stmts): Likewise.
7895 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
7896
7897 2015-10-27 Richard Henderson <rth@redhat.com>
7898
7899 PR rtl-opt/67609
7900 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
7901 narrowing subregs on SSE and MMX registers.
7902 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
7903 appear to be sub-words of multi-register pseudos must be rejected.
7904 * doc/tm.texi: Regenerate.
7905
7906 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7907
7908 PR target/68102
7909 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
7910 operands[0] is a reg before taking its REGNO in split condition.
7911 (*movdi_aarch64): Likewise.
7912
7913 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7914
7915 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
7916 Handle floating point inner modes properly.
7917
7918 2015-10-27 Alan Hayward <alan.hayward@arm.com>
7919
7920 * tree-vect-looop.c
7921 (vectorizable_live_operation): Change iterator.
7922
7923 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7924 Aditya Kumar <aditya.k7@samsung.com>
7925
7926 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
7927 function to schedule based on isl_schedule_node.
7928 (get_schedule_map_st): New schedule optimizer based on
7929 isl_schedule_node.
7930 (scop_get_domains): New. Return the isl_union_set containing the
7931 domains of all the pbbs.
7932 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
7933
7934 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
7935
7936 PR target/67215
7937 * calls.c (prepare_call_address): Don't handle -fno-plt here.
7938 * config/i386/i386.c (ix86_expand_call): Generate indirect call
7939 via GOT for -fno-plt. Support indirect call via GOT for x32.
7940 * config/i386/predicates.md (sibcall_memory_operand): Allow
7941 GOT memory operand.
7942
7943 2015-10-27 Richard Biener <rguenther@suse.de>
7944
7945 PR tree-optimization/68104
7946 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7947 strided access check ...
7948 (vect_compute_data_refs_alignment): ... here.
7949
7950 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
7951 Joseph Myers <joseph@codesourcery.com>
7952 Mark Shinwell <shinwell@codesourcery.com>
7953 Andrew Stubbs <ams@codesourcery.com>
7954 Rich Felker <dalias@libc.org>
7955
7956 * config.gcc: Handle --enable-fdpic.
7957 * config/sh/constraints.md (Ccl): New constraint.
7958 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
7959 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
7960 __SH_FDPIC__.
7961 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
7962 library functions.
7963 * config/sh/sh-protos.h (function_symbol_result): New struct.
7964 (function_symbol): Return function_symbol_result.
7965 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
7966 declarations.
7967 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
7968 target hook.
7969 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
7970 (sh_option_override): Force -fPIC if FDPIC is in effect.
7971 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
7972 UNSPEC_GOTOFFFUNCDESC cases.
7973 (prepare_move_operands): Use FDPIC initial GOT register for
7974 TLS-related GOT access; inhibit cross-section address offset constants
7975 for FDPIC.
7976 (sh_assemble_integer): New function.
7977 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
7978 PC-relative call sites.
7979 (expand_ashiftrt): Adapt invocation of function_symbol.
7980 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
7981 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
7982 UNSPEC_GOTOFFFUNCDESC.
7983 (legitimize_pic_address): Resolve function symbols to function
7984 descriptors for FDPIC. Do not use GOT-relative addressing for local
7985 data that may be read-only on FDPIC.
7986 (sh_emit_storesi, sh_emit_storehi): New functions.
7987 (sh_trampoline_init): Generate FDPIC trampolines.
7988 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
7989 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
7990 (sh_output_mi_thunk): Generate FDPIC call.
7991 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
7992 FDPIC, generate call site labels to use PC-relative addressing rather
7993 than GOT-relative addressing.
7994 (sh_conditional_register_usage): Make PIC register fixed and call used
7995 when FDPIC is in effect.
7996 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
7997 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
7998 sh_get_fdpic_reg_initial_val): New functions.
7999 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8000 Handle -mfdpic.
8001 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8002 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8003 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8004 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8005 FDPIC_SELF_SPECS.
8006 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8007 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8008 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8009 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8010 constants.
8011 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8012 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8013 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8014 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8015 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8016 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8017 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8018 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8019 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8020 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8021 block_move_real, block_lump_real, block_move_real_i4,
8022 block_lump_real_i4): Add support for FDPIC calls.
8023 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8024 call_value_pop): Adjust for new function_symbol signature.
8025 * config/sh/sh.opt (-mfdpic): New option.
8026 * doc/install.texi (Options specification): Document --enable-fdpic.
8027 * doc/invoke.texi (SH Options): Document -mfdpic.
8028
8029
8030 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8031
8032 PR tree-optimization/65963
8033 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8034 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8035
8036 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8037
8038 PR target/67929
8039 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8040 * config/arm/constraints.md (Dp): Update callsite.
8041 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8042
8043 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8044
8045 * builtins.c (fold_builtin_load_exponent): Rename to...
8046 (fold_const_builtin_load_exponent): ...this and only handle
8047 constant arguments.
8048 (fold_builtin_2): Update accordingly.
8049 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8050
8051 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8052
8053 * builtins.c (fold_builtin_logb): Rename to...
8054 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8055 (fold_builtin_significand): Rename to...
8056 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8057 (fold_builtin_1): Update accordingly.
8058
8059 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8060
8061 * builtins.c (fold_builtin_fmin_fmax): Delete.
8062 (fold_builtin_2): Handle constant fmin and fmax arguments here.
8063 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8064
8065 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
8066
8067 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8068 for register extension into sign and zero register extension.
8069 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8070 for sign and zero register extension.
8071 (cortexa57_addrcost_table): Likewise.
8072 (xgene1_addrcost_table): Likewise.
8073
8074 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8075
8076 * fold-const.c (fold_minmax): Delete.
8077 (fold_binary_loc): Don't call it.
8078 * match.pd: Add rules previously handled by fold_minmax.
8079
8080 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8081
8082 * builtins.c (fold_builtin_fma): Remove constant handling.
8083 (fold_builtin_3): Handle constant fma arguments here.
8084
8085 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8086
8087 * builtins.c (fold_builtin_fabs): Remove constant handling.
8088 (fold_builtin_abs): Likewise.
8089
8090 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8091
8092 * builtins.c (fold_builtin_copysign): Delete.
8093 (fold_builtin_2): Handle constant copysign arguments here.
8094 * match.pd: Add rules previously handled by fold_builtin_copysign.
8095
8096 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8097
8098 * builtins.c (fold_builtin_signbit): Delete.
8099 (fold_builtin_2): Handle constant signbit arguments here.
8100 * match.pd: Add rules previously handled by fold_builtin_signbit.
8101
8102 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8103
8104 * match.pd: Handle sqrt(x) cmp 0 specially.
8105
8106 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
8107
8108 * tree-vect-generic.c (expand_vector_operations_1): Check
8109 optab type before using it.
8110
8111 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8112
8113 * config/aarch64/aarch64-protos.h
8114 (struct tune_params): Add autoprefetcher_model field.
8115 * config/aarch64/aarch64.c: Include params.h
8116 (generic_tunings): Specify autoprefetcher_model value.
8117 (cortexa53_tunings): Likewise.
8118 (cortexa57_tunings): Likewise.
8119 (cortexa72_tunings): Likewise.
8120 (thunderx_tunings): Likewise.
8121 (xgene1_tunings): Likewise.
8122 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8123 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8124 (aarch64_override_options_internal): Set
8125 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8126
8127 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8128
8129 * builtins.c (fold_builtin_exponent): Delete.
8130 (fold_builtin_2): Handle constant expN arguments here.
8131 * match.pd: Fold expN(logN(x)) -> x.
8132
8133 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8134
8135 * builtins.c (fold_builtin_powi): Delete.
8136 (fold_builtin_2): Handle constant powi arguments here.
8137 * match.pd: Add rules previously handled by fold_builtin_powi.
8138
8139 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8140
8141 * builtins.c (fold_builtin_pow): Delete in favor of...
8142 (fold_const_builtin_pow): ...this new function. Only handle constant
8143 arguments.
8144 (fold_builtin_2): Update accordingly.
8145 * match.pd: Add rules previously handled by fold_builtin_pow.
8146
8147 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8148
8149 * builtins.c (fold_builtin_hypot): Delete.
8150 (fold_builtin_2): Handle constant hypot arguments here.
8151 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
8152 hypot(x, x) to fabs(x)*sqrt(2).
8153
8154 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8155
8156 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8157 instead of make_ssa_name if not yet in SSA form.
8158
8159 2015-10-27 Richard Biener <rguenther@suse.de>
8160
8161 * cfg.c (free_edge): Add function argument and use it instead of cfun.
8162 (clear_edges): Likewise.
8163 * cfg.h (clear_edges): Adjust prototype.
8164 * cfgexpand.c (pass_expand::execute): Adjust.
8165 * cfgloop.c (release_recorded_exits): Add function argument and use
8166 it instead of cfun.
8167 * cfgloop.h (release_recorded_exits): Adjust prototype.
8168 (loops_state_satisfies_p): Add overload with function argument.
8169 (loops_state_set): Likewise.
8170 (loops_state_clear): Likewise.
8171 (struct loop_iterator): Add function argument to constructor
8172 and iterator and use it instead of cfun.
8173 (FOR_EACH_LOOP_FN): New macro.
8174 (loop_optimizer_finalize): Add overload with function argument.
8175 * loop-init.c (loop_optimizer_init): Adjust.
8176 (fix_loop_structure): Likewise.
8177 (loop_optimizer_finaliz): Add function argument and use it
8178 instead of cfun.
8179 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8180 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8181 * cgraph.c (release_function_body): Do not push/pop cfun.
8182 * final.c (rest_of_clean_state): Adjust.
8183 * graphite.c (graphite_finalize): Likewise.
8184 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8185 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8186 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8187 (tree_unroll_loops_completely): Likewise.
8188 (pass_complete_unrolli::execute): Likewise.
8189 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8190 Add function argument and use it instead of cfun.
8191 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8192 Adjust prototype.
8193 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8194 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8195 instead of cfun.
8196 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8197 * tree-ssanames.c (fini_ssanames): Add function argument and use it
8198 instead of cfun.
8199 * tree-ssanames.c (fini_ssanames): Adjust prototype.
8200 * tree-vrp.c (execute_vrp): Adjust.
8201 * value-prof.c (free_histograms): Add function argument and use it
8202 instead of cfun.
8203 * value-prof.h (free_histograms): Adjust prototype.
8204
8205 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
8206
8207 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8208 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8209 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
8210
8211 2015-10-27 Tom de Vries <tom@codesourcery.com>
8212
8213 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8214 field_type.
8215
8216 2015-10-27 Bin Cheng <bin.cheng@arm.com>
8217
8218 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8219 (inv_can_prop_to_addr_use): New function.
8220 (record_use): Call can_prop_to_addr_uses, set the new field.
8221 (get_inv_cost): Count cost if inv can't be propagated into its
8222 address uses.
8223
8224 2015-10-26 Doug Evans <dje@google.com>
8225
8226 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8227
8228 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
8229
8230 * match.pd (fold_widened_comparison): Apply simplifications to all
8231 integral types.
8232
8233 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
8234
8235 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8236 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8237 * doc/tm.texi: Regenerated.
8238 * reorg.c (dbr_schedule): Use new hook.
8239 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8240
8241 2015-10-26 Jeff Law <law@redhat.com>
8242
8243 PR tree-optimization/68013
8244 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8245 Make sure the first block in the path is in VISITED_BBs.
8246
8247 2015-10-26 Richard Biener <rguenther@suse.de>
8248 Dominik Vogt <vogt@linux.vnet.ibm.com>
8249
8250 PR middle-end/67443
8251 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8252 Properly prune ref->ref for accesses outside of ref.
8253
8254 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8255
8256 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8257 new statements to be inserted if inplace. Allow calls to have
8258 nonempty sequences.
8259
8260 2015-10-26 Richard Biener <rguenther@suse.de>
8261
8262 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8263 (do_valueize): New function.
8264 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8265 replace_uses_by.
8266 * tree-ssa-threadedge.c: Remove builtins.h include, include
8267 gimple-fold.h
8268 (fold_assignment_stmt): Remove.
8269 (threadedge_valueize): New function.
8270 (record_temporary_equivalences_from_stmts): Use
8271 gimple_fold_stmt_to_constant_1, note additional cleanup
8272 opportunities.
8273
8274 2015-10-26 Richard Biener <rguenther@suse.de>
8275
8276 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8277 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8278
8279 2015-10-26 Alan Hayward <alan.hayward@arm.com>
8280
8281 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8282 VEC_COND_EXPR types.
8283
8284 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8285
8286 * auto-inc-dec.c (insert_move_insn_before): Delete.
8287 (attempt_change): Remember to cost the simple move in the
8288 FORM_PRE_ADD and FORM_POST_ADD cases.
8289
8290 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
8291
8292 PR target/68091
8293 * config/sh/sh.c (sh_vector_mode_supported_p): Use
8294 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8295
8296 2015-10-26 Tom de Vries <tom@codesourcery.com>
8297
8298 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8299 factored out of ...
8300 (intra_create_variable_infos): ... here.
8301
8302 2015-10-26 Tom de Vries <tom@codesourcery.com>
8303
8304 * tree-ssa-structalias.c (intra_create_variable_infos): Add
8305 restrict_pointer_p and recursive_restrict_p variables.
8306
8307 2015-10-26 Tom de Vries <tom@codesourcery.com>
8308
8309 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8310 get_vi_for_tree call.
8311
8312 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8313
8314 PR middle-end/67989
8315 * optabs.c (expand_atomic_compare_and_swap): Handle case when
8316 ptarget_oval or ptarget_bool are const0_rtx.
8317
8318 2015-10-26 Christian Bruel <christian.bruel@st.com>
8319
8320 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8321 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8322 * cp/method.c (implicitly_declare_fn): Likewise.
8323 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8324 * java/class.c (add_method_1): Likewise.
8325
8326 2015-10-26 Richard Biener <rguenther@suse.de>
8327
8328 * alloc-pool.h (base_pool_allocator): Use placement new.
8329 (base_pool_allocator::remove): Likewise. Compute size outside of
8330 flag_checking.
8331
8332 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8333
8334 * builtins.c (do_real_to_int_conversion): New function.
8335 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8336 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8337 arguments here.
8338 * match.pd: Add rules previously handled by fold_fixed_mathfn
8339 and fold_builtin_int_roundingfn.
8340
8341 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8342
8343 * match.pd: Use macros to define built-in operator lists.
8344
8345 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
8346 Richard Biener <rguenther@suse.de>
8347
8348 * genmatch.c (dt_simplify::gen): Skip captures that are
8349 part of the result.
8350 (parser::parse_expr): Allow captures in results too.
8351 * builtins.c (fold_builtin_cexp): Delete.
8352 (fold_builtin_1): Handle constant cexp arguments here.
8353 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8354
8355 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
8356
8357 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8358 conditional compilation.
8359 (base_pool_allocator::remove): Use flag_checking.
8360
8361 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
8362
8363 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8364
8365 PR middle-end/68079
8366 * dojump.c (do_compare_and_jump): Canonicalize both function and
8367 method types.
8368
8369 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
8370
8371 PR target/68084
8372 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8373 for =@ccae.
8374
8375 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8376
8377 PR ipa/pr67600
8378 * ipa-polymorphic-call.c
8379 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8380 instance offset with offset of outer type.
8381
8382 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8383
8384 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8385
8386 2015-10-23 Caroline Tice <cmtice@google.com>
8387
8388 (from Richard Biener
8389 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
8390 call to iterative_hash_host_wide_int.
8391
8392 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8393
8394 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8395 Define as yes.
8396
8397 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8398
8399 * tree-vect-generic.c (expand_vector_operations_1): Check
8400 optab exists before use it.
8401
8402 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8403
8404 * tree-vect-generic.c (expand_vector_condition): Avoid
8405 uninitialized variable warning.
8406
8407 2015-10-23 Jeff Law <law@redhat.com>
8408
8409 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
8410 here. Instead...
8411 (execute_todo): Call it here.
8412 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
8413 statistics
8414 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
8415
8416 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8417 Szabolcs Nagy <szabolcs.nagy@arm.com>
8418
8419 * config.gcc (enable_secureplt): Add *-linux*-musl*.
8420
8421 2015-10-23 Jeff Law <law@redhat.com>
8422
8423 PR tree-optimization/67830
8424 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8425 Explicitly verify the mask has no bits outside the type of
8426 the innermost operands.
8427
8428 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8429 Szabolcs Nagy <szabolcs.nagy@arm.com>
8430
8431 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8432 (MUSL_DYNAMIC_LINKER64): Define.
8433 (GNU_USER_DYNAMIC_LINKER32): Update.
8434 (GNU_USER_DYNAMIC_LINKER64): Update.
8435 (CHOOSE_DYNAMIC_LINKER): Update.
8436
8437 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
8438 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
8439 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8440 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8441 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8442 (CHOOSE_DYNAMIC_LINKER): Update.
8443 (INCLUDE_DEFAULTS): Redefine.
8444
8445 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
8446
8447 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8448
8449 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
8450 comparing addresses.
8451
8452 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8453
8454 * fold-const.c (operand_equal_p): Handle matching of vector
8455 constructors.
8456
8457 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8458
8459 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
8460
8461 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
8462 Andrew Pinski <apinski@cavium.com>
8463
8464 PR rtl-optimization/67736
8465 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
8466 of gen_lowpart.
8467
8468 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8469
8470 PR middle-end/68066
8471 * tree.c (build_truth_vector_type): Support BLK mode
8472 returned for boolean vector.
8473
8474 2015-10-23 Alan Hayward <alan.hayward@arm.com>
8475
8476 PR tree-optimization/65947
8477 * tree-vect-loop.c
8478 (vect_is_simple_reduction_1): Find condition reductions.
8479 (vect_model_reduction_cost): Add condition reduction costs.
8480 (get_initial_def_for_reduction): Add condition reduction initial var.
8481 (vect_create_epilog_for_reduction): Add condition reduction epilog.
8482 (vectorizable_reduction): Condition reduction support.
8483 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
8484 * doc/sourcebuild.texi (Vector-specific attributes): Document
8485 vect_max_reduc
8486
8487 2015-10-23 Richard Biener <rguenther@suse.de>
8488
8489 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
8490 and builtins.def.
8491
8492 2015-10-23 Richard Biener <rguenther@suse.de>
8493 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8494
8495 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
8496 into (A ^ B) - B to match.pd
8497 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
8498
8499 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
8500 New simplifier.
8501 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
8502 New simplifier.
8503 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
8504 New simplifier.
8505 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
8506 New simplifier.
8507 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
8508 INTEGER_CST@1)): New simplifier.
8509
8510 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
8511
8512 * builtins.c (integer_valued_real_p): Move to fold-const.c.
8513 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
8514 (fold_builtin_ceil, fold_builtin_round): Delete.
8515 (fold_builtin_1): Handle constant trunc, floor, ceil and round
8516 arguments here.
8517 * convert.c (convert_to_real): Remove narrowing of rounding
8518 functions.
8519 * fold-const.h (integer_valued_real_unary_p)
8520 (integer_valued_real_binary_p, integer_valued_real_call_p)
8521 (integer_valued_real_single_p, integer_valued_real_p): Declare.
8522 * fold-const.c (tree_single_nonnegative_warnv_p): Move
8523 name_registered_for_update_p check to SSA_NAME case statement.
8524 Don't call tree_simple_nonnegative_warnv_p for SSA names.
8525 (integer_valued_real_unary_p, integer_valued_real_binary_p)
8526 (integer_valued_real_call_p, integer_valued_real_single_p)
8527 (integer_valued_real_invalid_p): New functions.
8528 (integer_valued_real_p): Move from fold-const.c and rework
8529 to call the functions above. Handle SSA names.
8530 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
8531 * gimple-fold.c (gimple_assign_integer_valued_real_p)
8532 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
8533 (gimple_stmt_integer_valued_real_p): New functions.
8534 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
8535 Fold f(x)->x for the same f if x is known to be integer-valued.
8536 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
8537 the result. Canonicalize floor(x) as trunc(x) if x is
8538 nonnegative.
8539
8540 2015-10-23 Tom de Vries <tom@codesourcery.com>
8541
8542 * tree-ssa-structalias.c (intra_create_variable_infos): Use
8543 make_constraint_from.
8544
8545 2015-10-23 Tom de Vries <tom@codesourcery.com>
8546
8547 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
8548 setting of is_full_var in case of a single field.
8549
8550 2015-10-22 Martin Sebor <msebor@redhat.com>
8551
8552 PR driver/68043
8553 * config/i386/i386.opt: Add missing periods to the ends of sentences.
8554 * config/msp430/msp430.opt: Same.
8555
8556 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8557
8558 * doc/extend.exp (Global Register Variables): Rewrite.
8559
8560 2015-10-22 Jeff Law <law@redhat.com>
8561
8562 * genattrtab.c (main): If we do not have any annul-true or annul-false
8563 slots, then write out a dummy eligible_for_annul_true or
8564 eligible_for_annul_false as needed.
8565
8566 2015-10-22 Nick Clifton <nickc@redhat.com>
8567
8568 * config/msp430/msp430.opt: Add -msilicon-errata and
8569 -msilicon-errata-warn.
8570 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
8571 assembler.
8572 * doc/invoke.texi: Document new options.
8573
8574 2015-10-22 Richard Biener <rguenther@suse.de>
8575
8576 PR tree-optimization/58497
8577 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
8578 (expand_vector_operations_1): Use it. Lower operations on
8579 all uniform vectors to scalar operations if the HW supports it.
8580
8581 2015-10-22 Richard Biener <rguenther@suse.de>
8582
8583 PR tree-optimization/19049
8584 PR tree-optimization/65962
8585 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
8586 to strided accesses if single-element interleaving doesn't work.
8587
8588 2015-10-22 Richard Biener <rguenther@suse.de>
8589
8590 PR middle-end/68046
8591 PR middle-end/61893
8592 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
8593 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
8594 (expand_unop): Likewise.
8595
8596 2015-10-22 Richard Biener <rguenther@suse.de>
8597
8598 * fold-const.c (fold_addr_of_array_ref_difference): Properly
8599 convert operands before folding a MINUS_EXPR.
8600 (fold_binary_loc): Move simplification of MINUS_EXPR on
8601 converted POINTER_PLUS_EXPRs ...
8602 * match.pd: ... here.
8603
8604 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
8605
8606 * builtins.c (fold_builtin_tan): Delete.
8607 (fold_builtin_1): Handle constant tan arguments here.
8608 * match.pd: Simplify (tan (atan x)) to x.
8609
8610 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
8611
8612 * builtins.c (fold_builtin_cproj): Delete.
8613 (fold_builtin_1): Handle constant arguments here.
8614 (build_complex_cproj): Move and rename to...
8615 * tree.c: (build_complex_inf): ...this.
8616 * tree.h (build_complex_inf): Declare.
8617 * match.pd: Fold cproj(x)->x if x has no infinity.
8618 Use build_complex_inf for existing cproj rules.
8619
8620 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8621
8622 PR target/68015
8623 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
8624 already have a comparison result.
8625
8626 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8627
8628 PR target/63304
8629 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
8630 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
8631 (aarch64_classify_address): Likewise.
8632 (aarch64_secondary_reload): Likewise.
8633 (aarch64_override_options_after_change_1): Adjust.
8634 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8635 Use aarch64_nopcrelative_literal_loads.
8636 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8637 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
8638 Declare.
8639
8640 2015-10-21 Martin Sebor <msebor@redhat.com>
8641
8642 PR driver/68043
8643 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
8644 (print_filtered_help): Reference aliased option's name and encourage
8645 readers to use it in preference to the alias if the former is not
8646 documented. Mention when using an option is diagnosed.
8647 * gcc.c (display_help): End each sentence with a period.
8648
8649 * common.opt: End each sentence that describes an option with
8650 a period.
8651 * config/aarch64/aarch64.opt: Same.
8652 * config/alpha/alpha.opt: Same.
8653 * config/arc/arc.opt: Same.
8654 * config/arm/arm.opt: Same.
8655 * config/avr/avr.opt: Same.
8656 * config/bfin/bfin.opt: Same.
8657 * config/c6x/c6x.opt: Same.
8658 * config/cr16/cr16.opt: Same.
8659 * config/cris/cris.opt: Same.
8660 * config/cris/linux.opt: Same.
8661 * config/darwin.opt: Same.
8662 * config/epiphany/epiphany.opt: Same.
8663 * config/fr30/fr30.opt: Same.
8664 * config/frv/frv.opt: Same.
8665 * config/ft32/ft32.opt: Same.
8666 * config/g.opt: Same.
8667 * config/h8300/h8300.opt: Same.
8668 * config/i386/cygming.opt: Same.
8669 * config/i386/djgpp.opt: Same.
8670 * config/i386/i386.opt: Same.
8671 * config/i386/interix.opt: Same.
8672 * config/i386/mingw-w64.opt: Same.
8673 * config/i386/mingw.opt: Same.
8674 * config/ia64/ia64.opt: Same.
8675 * config/ia64/ilp32.opt: Same.
8676 * config/iq2000/iq2000.opt: Same.
8677 * config/linux.opt: Same.
8678 * config/lm32/lm32.opt: Same.
8679 * config/lynx.opt: Same.
8680 * config/m32c/m32c.opt: Same.
8681 * config/m32r/m32r.opt: Same.
8682 * config/m68k/ieee.opt: Same.
8683 * config/m68k/m68k.opt: Same.
8684 * config/mcore/mcore.opt: Same.
8685 * config/mep/mep.opt: Same.
8686 * config/microblaze/microblaze.opt: Same.
8687 * config/mips/mips.opt: Same.
8688 * config/mmix/mmix.opt: Same.
8689 * config/mn10300/mn10300.opt: Same.
8690 * config/moxie/moxie.opt: Same.
8691 * config/msp430/msp430.opt: Same.
8692 * config/nios2/elf.opt: Same.
8693 * config/nios2/nios2.opt: Same.
8694 * config/nvptx/nvptx.opt: Same.
8695 * config/pa/pa-hpux.opt: Same.
8696 * config/pa/pa-hpux1010.opt: Same.
8697 * config/pa/pa-hpux1111.opt: Same.
8698 * config/pa/pa-hpux1131.opt: Same.
8699 * config/pa/pa.opt: Same.
8700 * config/pa/pa64-hpux.opt: Same.
8701 * config/pdp11/pdp11.opt: Same.
8702 * config/rl78/rl78.opt: Same.
8703 * config/rs6000/476.opt: Same.
8704 * config/rs6000/aix64.opt: Same.
8705 * config/rs6000/darwin.opt: Same.
8706 * config/rs6000/linux64.opt: Same.
8707 * config/rs6000/rs6000.opt: Same.
8708 * config/rs6000/sysv4.opt: Same.
8709 * config/s390/s390.opt: Same.
8710 * config/s390/tpf.opt: Same.
8711 * config/sh/sh.opt: Same.
8712 * config/sol2.opt: Same.
8713 * config/sparc/long-double-switch.opt: Same.
8714 * config/sparc/sparc.opt: Same.
8715 * config/spu/spu.opt: Same.
8716 * config/stormy16/stormy16.opt: Same.
8717 * config/tilegx/tilegx.opt: Same.
8718 * config/tilepro/tilepro.opt: Same.
8719 * config/v850/v850.opt: Same.
8720 * config/vax/vax.opt: Same.
8721 * config/visium/visium.opt: Same.
8722 * config/vms/vms.opt: Same.
8723 * config/vxworks.opt: Same.
8724 * config/xtensa/xtensa.opt: Same.
8725
8726 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8727 Sebastian Pop <s.pop@samsung.com>
8728
8729 * graphite-scop-detection.c (parameter_index_in_region): Update call to
8730 invariant_in_sese_p_rec.
8731 * graphite-sese-to-poly.c (extract_affine): Same.
8732 * sese.c (invariant_in_sese_p_rec): Pass in an extra
8733 parameter has_vdefs.
8734 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
8735 variable depends on virtual definitions in the current region.
8736 * sese.h (invariant_in_sese_p_rec): Update declaration.
8737
8738 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8739 Sebastian Pop <s.pop@samsung.com>
8740
8741 * graphite-scop-detection.c (build_scops): Do not handle scops
8742 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
8743 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
8744
8745 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
8746
8747 * config.in: Regenerate.
8748 * configure: Regenerate.
8749 * configure.ac (CHECKING_P): Define.
8750 * system.h: Use CHECKING_P.
8751
8752 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8753
8754 PR ipa/67056
8755 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
8756 is negative we don't know the type.
8757 (check_stmt_for_type_change): Skip constructors of non-polymorphic
8758 types as those won't help devirutalization.
8759
8760 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8761
8762 * fold-const.c (operand_equal_p): Add code matching empty constructors.
8763
8764 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
8765
8766 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
8767 comments.
8768 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
8769 Add comments on sign of the result.
8770 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
8771 Recurse on operand #1 instead of operand #0.
8772 <CEIL_MOD_EXPR>: Do not recurse.
8773 <ROUND_MOD_EXPR>: Likewise.
8774
8775 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8776
8777 * cfgrtl.c (pass_free_cfg::execute): Adjust.
8778 * final.c (dbr_sequence_length): Always define.
8779 (shorten_branches): Adjust.
8780 * genattr-common.c (main): Always define DELAY_SLOTS.
8781 * genattr.c (main): Unconditionally declare functions and define
8782 macros related to delay slots.
8783 * genattrtab.c (write_eligible_delay): Adjust.
8784 (main): Always write out delay slot functions.
8785 * opts.c (default_options_table): Adjust.
8786 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
8787 (redirect_with_delay_list_safe_p): Likewise.
8788 (fill_simple_delay_slots): Likewise.
8789 (fill_slots_from_thread): Likewise.
8790 (make_return_insns): Likewise.
8791 (dbr_schedule): Likewise.
8792 (rest_of_handle_delay_slots): Likewise.
8793 (pass_delay_slots::gate): Likewise.
8794 * toplev.c (process_options): Likewise.
8795
8796 2015-10-21 Richard Henderson <rth@redhat.com>
8797
8798 * targhooks.c (default_addr_space_pointer_mode): Remove check
8799 for generic address space.
8800 (default_addr_space_address_mode): Likewise.
8801 (default_addr_space_valid_pointer_mode): Likewise.
8802 (default_addr_space_legitimate_address_p): Likewise.
8803 (default_addr_space_legitimize_address): Likewise.
8804 * target.def (addr_space.pointer_mode): Update documentation
8805 of default behavior.
8806 (addr_space.address_mode): Likewise.
8807 * tm.texi: Update.
8808
8809 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
8810 address spaces.
8811
8812 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8813
8814 * builtins.c (fold_builtin_cabs): Delete.
8815 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8816 * match.pd: Add rules previously handled by fold_builtin_cabs.
8817
8818 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8819
8820 * fold-const.h (fold_strip_sign_ops): Delete.
8821 * fold-const.c (fold_strip_sign_ops): Likewise.
8822 (fold_unary_loc, fold_binary_loc): Remove calls to it.
8823 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
8824 (fold_builtin_ccos): Delete.
8825 (fold_builtin_pow): Don't call fold_strip_sign_ops.
8826 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
8827 Remove fndecl argument.
8828 (fold_builtin_1): Update calls accordingly. Handle constant
8829 cos, cosh, ccos and ccosh here.
8830
8831 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8832
8833 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
8834 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
8835 * common.opt (fssa-backprop): New option.
8836 * fold-const.h (negate_mathfn_p): Declare.
8837 * fold-const.c (negate_mathfn_p): Make public.
8838 * timevar.def (TV_TREE_BACKPROP): New.
8839 * tree-pass.h (make_pass_backprop): Declare.
8840 * passes.def (pass_backprop): Add.
8841 * gimple-ssa-backprop.c: New file.
8842
8843 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8844 Sebastian Pop <s.pop@samsung.com>
8845
8846 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
8847 Do not call create_empty_if_region_on_edge when cond_expr is true.
8848 (translate_isl_ast_node_for): Check whether a guard has been generated.
8849
8850 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8851
8852 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
8853 (operator=): Removed.
8854 (dr_info): Make alias_set number the last argument with default
8855 value of invalid_alias_set.
8856 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
8857 of dr_info.
8858 (rewrite_reductions_out_of_ssa): Iterate only through the
8859 basic blocks which are inside region.
8860 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
8861 * sese.h (struct sese_l): Removed assignment operator.
8862 (split_region_for_bb): Removed dead code.
8863
8864 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8865
8866 * graphite-poly.h (struct dr_info): Removed conversion constructor.
8867 (struct scop): Renamed scop::region to scop::scop_info
8868 (scop_set_region): Same.
8869 (SCOP_REGION): Removed
8870 (SCOP_CONTEXT): Removed.
8871 (POLY_SCOP_P): Removed.
8872 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
8873 Rename scop->region to scop->scop_info.
8874 (add_parameters_to_ivs_params): Same.
8875 (graphite_regenerate_ast_isl): Same.
8876 * graphite-poly.c (new_scop): Same.
8877 (free_scop): Same.
8878 (print_scop_params): Same.
8879 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
8880 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
8881 (dot_all_scops_1): Rename scop->region to scop->scop_info.
8882 (scop_detection::nb_pbbs_in_loops): Same.
8883 (find_scop_parameters): Same.
8884 (try_generate_gimple_bb): Same.
8885 (gather_bbs::before_dom_children): Same.
8886 (gather_bbs::after_dom_children): Same.
8887 (build_scops): Same.
8888 * graphite-sese-to-poly.c (build_scop_scattering): Same.
8889 (extract_affine_chrec): Same.
8890 (extract_affine): Same.
8891 (set_scop_parameter_dim): Same.
8892 (build_loop_iteration_domains): Same.
8893 (create_pw_aff_from_tree): Same.
8894 (add_param_constraints): Same.
8895 (build_scop_iteration_domain): Same.
8896 (build_scop_drs): Same.
8897 (analyze_drs_in_stmts): Same.
8898 (insert_out_of_ssa_copy_on_edge): Same.
8899 (rewrite_close_phi_out_of_ssa):Same.
8900 (rewrite_reductions_out_of_ssa):Same.
8901 (handle_scalar_deps_crossing_scop_limits):Same.
8902 (rewrite_cross_bb_scalar_deps):Same.
8903 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
8904 (build_poly_scop):Same.
8905 (build_alias_set): Use pointer to dr_info.
8906 * graphite.c (print_graphite_scop_statistics):
8907 (graphite_transform_loops):
8908 * sese.h (struct sese_l): Remove conversion constructor.
8909
8910 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8911
8912 PR middle-end/67966
8913 * tree.c (verify_type): Verify that TYPE_MODE match
8914 between TYPE_CANONICAL and type.
8915 * expr.c (store_expr_with_bounds): Revert my previous change.
8916 * expmed.c (store_bit_field_1): Revert prevoius change.
8917 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
8918 to match for all types.
8919
8920 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
8921
8922 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
8923 nesting.
8924
8925 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8926
8927 * doc/tm.texi: Regenerated.
8928 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
8929 * stor-layout.c (layout_type): Use mode to get vector mask size.
8930 * target.def (get_mask_mode): New.
8931 * targhooks.c (default_get_mask_mode): New.
8932 * targhooks.h (default_get_mask_mode): New.
8933 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
8934 for boolean vector.
8935 * tree.c (MAX_BOOL_CACHED_PREC): New.
8936 (nonstandard_boolean_type_cache): New.
8937 (build_nonstandard_boolean_type): New.
8938 (make_vector_type): Vector mask has no canonical type.
8939 (build_truth_vector_type): New.
8940 (build_same_sized_truth_vector_type): New.
8941 (truth_type_for): Support vector masks.
8942 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
8943 (build_truth_vector_type): New.
8944 (build_same_sized_truth_vector_type): New.
8945 (build_nonstandard_boolean_type): New.
8946 * tree-cfg.c (verify_gimple_comparison) Require boolean
8947 vector type for vector comparison.
8948 (verify_gimple_assign_ternary): Likewise.
8949 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
8950 condition operand.
8951 * tree-vect-stmts.c (vectorizable_condition): Use boolean
8952 vector type for vector comparison.
8953 * tree-vect-generic.c (elem_op_func): Add new operand to hold
8954 vector type.
8955 (do_unop): Adjust to modified function type.
8956 (do_binop): Likewise.
8957 (do_plus_minus): Likewise.
8958 (do_negate); Likewise.
8959 (expand_vector_piecewise): Likewise.
8960 (do_cond): Likewise.
8961 (do_compare): Use comparison instead of condition.
8962 (expand_vector_divmod): Use boolean vector type for comparison.
8963 (expand_vector_operations_1): Skip scalar mask operations.
8964
8965 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8966
8967 * omp-low.c (simd_clone_create): Set in_other_partition
8968 for created clones.
8969
8970 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8971
8972 * doc/extend.exp (Local Register Variables): Rewrite.
8973
8974 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8975
8976 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
8977 and x*x in cases where the operands are sign ops. Extend these
8978 rules to handle copysign as a sign op (including for cos, cosh
8979 and pow, which already treated negate and abs as sign ops).
8980
8981 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
8982
8983 PR target/68018
8984 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
8985 for 64-bit MS_ABI targets also when default incoming stack boundary
8986 is overriden.
8987
8988 2015-10-21 Richard Biener <rguenther@suse.de>
8989
8990 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
8991 cond stmts, enhanced and split out from ...
8992 (vn_phi_eq): ... here.
8993
8994 2015-10-21 Richard Biener <rguenther@suse.de>
8995
8996 PR middle-end/68031
8997 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
8998 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
8999 (tree_single_nonnegative_warnv_p): ... here. For SSA names
9000 make sure they are not registered for update.
9001
9002 2015-10-21 Richard Biener <rguenther@suse.de>
9003
9004 PR tree-optimization/68026
9005 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9006 unsigned VARYING values.
9007
9008 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
9009
9010 * asan.c (asan_emit_stack_protection): Don't pass local stack to
9011 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9012 NULL and use local stack than.
9013 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9014 in addition to __asan_init.
9015 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9016 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9017 * asan.h (asan_intercepted_p): Handle new string builtins.
9018 * ubsan.c (ubsan_use_new_style_p): New function.
9019 (ubsan_instrument_float_cast): If location is unknown, assign
9020 input_location to loc. Propagate loc to ubsan_create_data if
9021 ubsan_use_new_style_p returned true.
9022
9023 2015-10-21 Jeff Law <law@redhat.com>
9024
9025 * Makefile.in (OBJS): Remove sched-vis.c
9026 * sched-vis.c: Removed. Code moved into...
9027 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
9028 * rtl.h: Remove prototypes for functions now living in print-rtl.c
9029 * print-rtl.h Add prototypes for new functions in print-rtl.c.
9030 * auto-inc-dec.c: Include print-rtl.h
9031 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9032 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9033
9034 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9035 ATTRIBUTE_UNUSED.
9036
9037 2015-10-21 Richard Biener <rguenther@suse.de>
9038 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9039
9040 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9041 to match.pd.
9042 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9043 about signed left shift stronger and clarify the cases when they're
9044 broken.
9045 Move (a * (1 << b)) is (a << b) to match.pd.
9046 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9047 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9048 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9049
9050 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9051 New simplifier.
9052 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9053 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9054 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9055 : New simplifier.
9056 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9057 New simplifier.
9058 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9059
9060 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
9061 Szabolcs Nagy <szabolcs.nagy@arm.com>
9062 Alan Modra <amodra@gmail.com>
9063
9064 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9065 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9066 (LINK_SPEC): Add %(link_secure_plt).
9067 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9068 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9069
9070 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
9071 Szabolcs Nagy <szabolcs.nagy@arm.com>
9072
9073 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9074 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9075
9076 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9077
9078 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9079 New function.
9080 (fusion_load_store): Use it.
9081 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9082 ldp and stp in VD modes.
9083 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9084 (store_pair<mode>, VD): Likewise.
9085
9086 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
9087
9088 PR rtl-optimization/67609
9089 * lra-splill.c (lra_final_code_change): Don't remove all
9090 sub-registers.
9091
9092 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9093
9094 * simplify-rtx.c (simplify_binary_operation): If either operand was
9095 a constant pool reference use them if all other simplifications failed.
9096
9097 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9098
9099 * config/aarch64/aarch64.md
9100 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9101 * config/aarch64/aarch64-simd.md
9102 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9103 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9104 (aarch64_fpconst_pow_of_2): New function.
9105 (aarch64_vec_fpconst_pow_of_2): Likewise.
9106 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9107 prototype.
9108 (aarch64_vec_fpconst_pow_of_2): Likewise.
9109 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9110 (aarch64_fp_vec_pow2): Likewise.
9111
9112 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
9113
9114 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9115 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
9116 * config/alpha/alpha.c (alpha_function_arg_advance): Update
9117 ALPHA_ARG_SIZE usage.
9118 (alpha_arg_partial_bytes): Ditto.
9119
9120 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9121
9122 PR target/66810
9123 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9124 error_mark_node decls.
9125
9126 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9127
9128 PR target/67963
9129 PR target/67985
9130 * common/config/i386/i386-common.c (ix86_handle_option): Remove
9131 OPT_miamcu handling.
9132 * config/i386/i386.c (PTA_NO_80387): New macro.
9133 (processor_alias_table): Add PTA_NO_80387 to lakemont.
9134 (ix86_option_override_internal): Update MASK_80387 from
9135 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
9136 SSE math only if 80387 is supported. Don't change
9137 MASK_FLOAT_RETURNS.
9138 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9139 80387 is supported.
9140 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9141 if TARGET_80387 is true and TARGET_IAMCU is false.
9142 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9143 is true and TARGET_IAMCU_P is false.
9144
9145 2015-10-20 Richard Biener <rguenther@suse.de>
9146
9147 PR tree-optimization/68017
9148 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9149
9150 2015-10-20 Martin Liska <mliska@suse.cz>
9151
9152 * cgraphclones.c (cgraph_node::create_virtual_clone):
9153 Verify cgraph_node.local.versionable instead of calling
9154 tree_versionable_function_p.
9155 * ipa-cp.c (determine_versionability): Save the information
9156 to ipa_node_params summary.
9157 (ipcp_versionable_function_p): Use it.
9158 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9159 (ipcp_generate_summary): Do not compute cgraph_node
9160 versionability.
9161 * ipa-inline-analysis.c (inline_generate_summary): Compute
9162 versionability for all cgraph nodes.
9163 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9164 ipa_node_params::versionability.
9165 * ipa-prop.h (struct ipa_node_params): Declare it.
9166
9167 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9168
9169 PR other/67868
9170 * varasm.c (assemble_variable): Move special vtv handling to..
9171 (handle_vtv_comdat_sections): .. here. New function.
9172 (output_object_block): Handle vtv sections.
9173
9174 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
9175
9176 PR target/66912
9177 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9178
9179 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
9180
9181 * doc/extend.texi: Update documentation WRT inline functions.
9182
9183 2015-10-20 Alan Modra <amodra@gmail.com>
9184
9185 PR go/66870
9186 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9187 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9188 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9189
9190 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
9191
9192 PR rtl-optimization/66790
9193 * df.h (DF_MIR): New macro.
9194 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9195 (DF_MIR_INFO_BB): New macro.
9196 (DF_MIR_IN, DF_MIR_OUT): New macros.
9197 (struct df_mir_bb_info): New.
9198 (df_mir): New macro.
9199 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9200 declarations.
9201 (df_mir_get_bb_info): New.
9202 * df-problems.c (struct df_mir_problem_data): New.
9203 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9204 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9205 df_mir_confluence_0, df_mir_confluence_n,
9206 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9207 df_mir_bottom_dump, df_mir_verify_solution_start,
9208 df_mir_verify_solution_end): New.
9209 (problem_MIR): New.
9210 (df_mir_add_problem, df_mir_simulate_one_insn): New.
9211 * timevar.def (TV_DF_MIR): New.
9212 * ree.c: Include bitmap.h
9213 (add_removable_extension): Add an INIT_REGS parameter. Use it
9214 to skip zero-extensions that may get an uninitialized register.
9215 (find_removable_extensions): Compute must-initialized registers
9216 using the MIR dataflow problem. Update the call to
9217 add_removable_extension.
9218 (find_and_remove_re): Call df_mir_add_problem.
9219
9220 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
9221
9222 * common/config/mn10300/mn10300-common.c
9223 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9224 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9225
9226 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
9227
9228 * doc/extend.texi (Explicit Register Variables): Simplify and
9229 avoid unnecessary and confusion abbreviations. Update cross
9230 references.
9231 doc/implement-c.tex: Update cross reference.
9232
9233 2015-10-19 Jeff Law <law@redhat.com>
9234
9235 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9236 that create irreducible loops unless the path elimiantes a multiway
9237 branch.
9238
9239 2015-10-19 Richard Biener <rguenther@suse.de>
9240
9241 PR tree-optimization/67975
9242 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9243 * tree-cfg.c (extract_true_false_controlled_edges): Split out
9244 core worker from ...
9245 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9246 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9247 instead of block number for PHIs with two or one args.
9248 (vn_phi_eq): Compare edge predicates of PHIs that are in different
9249 blocks.
9250
9251 2015-10-19 Richard Biener <rguenther@suse.de>
9252
9253 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9254 (gimple_stmt_nonnegative_warnv_p): Use it.
9255 * match.pd (CPROJ): New operator list.
9256 (cproj (complex ...)): Move simplifications from ...
9257 * builtins.c (fold_builtin_cproj): ... here.
9258
9259 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9260
9261 * config/i386/i386.c (ix86_expand_vector_move): Use
9262 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9263 alignment.
9264
9265 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9266
9267 * doc/invoke.texi: Replace @optindex with @opindex.
9268
9269 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9270
9271 PR target/67995
9272 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9273 arch= is set, clear all bits in x_ix86_isa_flags, except for
9274 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9275
9276 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
9277
9278 PR middle-end/68002
9279 * common.opt (fkeep-static-functions): New option.
9280 * doc/invoke.texi: Document it.
9281 * cgraphunit.c (cgraph_node::finalize_function): Use it.
9282
9283 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9284
9285 * sched-int.h (struct autopref_multipass_data_): Remove offset
9286 field. Add min_offset, max_offset, multi_mem_insn_p fields.
9287 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9288 (autopref_multipass_init): Use it. Handle PARALLEL sets.
9289 (autopref_rank_data): New function.
9290 (autopref_rank_for_schedule): Use it.
9291 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9292
9293 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
9294
9295 PR other/65800
9296 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9297
9298 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9299
9300 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9301 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
9302 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9303 (STANDARD_STARTFILE_PREFIX_1): New.
9304 (STANDARD_STARTFILE_PREFIX_2): New.
9305
9306 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9307
9308 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9309 (darwin_driver_init): Note a version-min when provided on the c/l.
9310 * config/darwin.h (%darwin_minversion): Remove.
9311 * config/i386/darwin.h: Likewise.
9312 * config/rs6000/darwin.h: Likewise.
9313 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9314 rather than an arbitrary constant.
9315
9316 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9317
9318 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9319 PPC, detect conflicts between -arch and multilib settings. Detect
9320 and warn about conflicts between multiple -arch definitions.
9321
9322 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9323
9324 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9325
9326 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9327
9328 * lra-constraints.c (add_next_usage_insn): Change argument type
9329 from rtx to rtx_insn *.
9330
9331 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
9332
9333 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9334 for Lakemont.
9335
9336 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
9337
9338 * config/tilepro/gen-mul-tables.cc: Adjust include files.
9339 * config/tilegx/mul-tables.c: Regenerate.
9340 * config/tilepro/mul-tables.c: Regenerate.
9341
9342 * config/tilegx/tilegx-c.c: Adjust include files.
9343 * config/tilegx/tilegx.c: Likewise.
9344 * config/tilepro/tilepro-c.c: Likewise.
9345 * config/tilepro/tilepro.c: Likewise.
9346 * config/aarch64/aarch64-builtins.c: Likewise.
9347 * config/aarch64/aarch64.c: Likewise.
9348 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9349 * config/alpha/alpha.c: Likewise.
9350 * config/arc/arc.c: Likewise.
9351 * config/arm/aarch-common.c: Likewise.
9352 * config/arm/arm-builtins.c: Likewise.
9353 * config/arm/arm-c.c: Likewise.
9354 * config/arm/arm.c: Likewise.
9355 * config/avr/avr-c.c: Likewise.
9356 * config/avr/avr-devices.c: Likewise.
9357 * config/avr/avr-log.c: Likewise.
9358 * config/avr/avr.c: Likewise.
9359 * config/bfin/bfin.c: Likewise.
9360 * config/c6x/c6x.c: Likewise.
9361 * config/cr16/cr16.c: Likewise.
9362 * config/cris/cris.c: Likewise.
9363 * config/darwin-c.c: Likewise.
9364 * config/darwin-driver.c: Likewise.
9365 * config/darwin.c: Likewise.
9366 * config/default-c.c: Likewise.
9367 * config/epiphany/epiphany.c: Likewise.
9368 * config/epiphany/mode-switch-use.c: Likewise.
9369 * config/epiphany/resolve-sw-modes.c: Likewise.
9370 * config/fr30/fr30.c: Likewise.
9371 * config/frv/frv.c: Likewise.
9372 * config/ft32/ft32.c: Likewise.
9373 * config/glibc-c.c: Likewise.
9374 * config/h8300/h8300.c: Likewise.
9375 * config/i386/host-cygwin.c: Likewise.
9376 * config/i386/host-mingw32.c: Likewise.
9377 * config/i386/i386-c.c: Likewise.
9378 * config/i386/i386.c: Likewise.
9379 * config/i386/msformat-c.c: Likewise.
9380 * config/i386/winnt-cxx.c: Likewise.
9381 * config/i386/winnt-stubs.c: Likewise.
9382 * config/i386/winnt.c: Likewise.
9383 * config/ia64/ia64-c.c: Likewise.
9384 * config/ia64/ia64.c: Likewise.
9385 * config/iq2000/iq2000.c: Likewise.
9386 * config/lm32/lm32.c: Likewise.
9387 * config/m32c/m32c-pragma.c: Likewise.
9388 * config/m32c/m32c.c: Likewise.
9389 * config/m32r/m32r.c: Likewise.
9390 * config/mcore/mcore.c: Likewise.
9391 * config/mep/mep-pragma.c: Likewise.
9392 * config/mep/mep.c: Likewise.
9393 * config/microblaze/microblaze-c.c: Likewise.
9394 * config/microblaze/microblaze.c: Likewise.
9395 * config/mips/mips-tables.opt
9396 * config/mips/mips.c: Likewise.
9397 * config/mmix/mmix.c: Likewise.
9398 * config/mn10300/mn10300.c: Likewise.
9399 * config/moxie/moxie.c: Likewise.
9400 * config/msp430/msp430-c.c: Likewise.
9401 * config/msp430/msp430.c: Likewise.
9402 * config/nds32/nds32-cost.c: Likewise.
9403 * config/nds32/nds32-fp-as-gp.c: Likewise.
9404 * config/nds32/nds32-intrinsic.c: Likewise.
9405 * config/nds32/nds32-isr.c: Likewise.
9406 * config/nds32/nds32-md-auxiliary.c: Likewise.
9407 * config/nds32/nds32-memory-manipulation.c: Likewise.
9408 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9409 * config/nds32/nds32-predicates.c: Likewise.
9410 * config/nds32/nds32.c: Likewise.
9411 * config/nios2/nios2.c: Likewise.
9412 * config/nvptx/mkoffload.c: Likewise.
9413 * config/nvptx/nvptx.c: Likewise.
9414 * config/pa/pa.c: Likewise.
9415 * config/pdp11/pdp11.c: Likewise.
9416 * config/rl78/rl78-c.c: Likewise.
9417 * config/rl78/rl78.c: Likewise.
9418 * config/rs6000/host-darwin.c: Likewise.
9419 * config/rs6000/rs6000-c.c: Likewise.
9420 * config/rs6000/rs6000-linux.c: Likewise.
9421 * config/rs6000/rs6000.c: Likewise.
9422 * config/rx/rx.c: Likewise.
9423 * config/s390/s390-c.c: Likewise.
9424 * config/s390/s390.c: Likewise.
9425 * config/sh/sh-c.c: Likewise.
9426 * config/sh/sh-mem.cc: Likewise.
9427 * config/sh/sh.c: Likewise.
9428 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9429 * config/sh/sh_treg_combine.cc: Likewise.
9430 * config/sol2-c.c: Likewise.
9431 * config/sol2-cxx.c: Likewise.
9432 * config/sol2-stubs.c: Likewise.
9433 * config/sol2.c: Likewise.
9434 * config/sparc/sparc-c.c: Likewise.
9435 * config/sparc/sparc.c: Likewise.
9436 * config/spu/spu-c.c: Likewise.
9437 * config/spu/spu.c: Likewise.
9438 * config/stormy16/stormy16.c: Likewise.
9439 * config/v850/v850-c.c: Likewise.
9440 * config/v850/v850.c: Likewise.
9441 * config/vax/vax.c: Likewise.
9442 * config/visium/visium.c: Likewise.
9443 * config/vms/vms-c.c: Likewise.
9444 * config/vms/vms.c: Likewise.
9445 * config/vxworks.c: Likewise.
9446 * config/winnt-c.c: Likewise.
9447 * config/xtensa/xtensa.c: Likewise.
9448
9449 2015-10-16 Christian Bruel <christian.bruel@st.com>
9450
9451 PR target/67745
9452 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
9453 (FUNCTION_BOUNDARY_P): New macro:
9454 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
9455 New hook.
9456 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
9457 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
9458 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
9459 * function.c (allocate_struct_function): Call
9460 relayout_function hook.
9461 * passes.c (rest_of_decl_compilation): Likewise.
9462
9463 2015-10-16 Christian Bruel <christian.bruel@st.com>
9464
9465 PR target/67745
9466 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
9467 * config/arm/arm.c (arm_option_override_internal): Call
9468 arm_override_options_after_change_1.
9469 (arm_override_options_after_change): New function.
9470 (arm_override_options_after_change_1): Likewise.
9471 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
9472
9473 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9474
9475 Revert:
9476 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9477 empty constructors.
9478
9479 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
9480
9481 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
9482 argument is an ADDR_EXPR.
9483
9484 2015-10-16 Richard Biener <rguenther@suse.de>
9485
9486 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
9487 and get rid of force_gimple_operand_gsi.
9488 (gimple_fold_builtin_memory_chk): Likewise.
9489 (gimple_fold_builtin_stxcpy_chk): Likewise.
9490 (rewrite_to_defined_overflow): Likewise.
9491 (gimple_convert_to_ptrofftype): New function.
9492 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
9493
9494 2015-10-16 Richard Biener <rguenther@suse.de>
9495
9496 * tree-nested.h (build_addr): Adjust prototype.
9497 * tree-nested.c (build_addr): Remove context argument and use
9498 mark_addressable.
9499 (get_static_chain): Adjust calls to build_addr.
9500 (convert_nl_goto_reference): Likewise.
9501 (convert_tramp_reference_op): Likewise.
9502 (finalize_nesting_tree_1): Likewise.
9503 * value-prof.c (gimple_ic): Likewise.
9504 * gimple-low.c (lower_builtin_setjmp): Likewise.
9505 * tree-parloops.c (take_address_of): Likewise.
9506 (create_call_for_reduction_1): Likewise.
9507 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
9508 (gimple_gen_ic_func_profiler): Likewise.
9509
9510 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9511
9512 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9513 empty constructors.
9514
9515 2015-10-16 Michael Collison <michael.collison@linaro.org>
9516 Andrew Pinski <andrew.pinski@caviumnetworks.com>
9517
9518 * match.pd ((x < y) && (x < z) -> x < min (y,z),
9519 (x > y) and (x > z) -> x > max (y,z))
9520
9521 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
9522 Szabolcs Nagy <szabolcs.nagy@arm.com>
9523
9524 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
9525 (DYNAMIC_LINKER): Renamed to ...
9526 (GLIBC_DYNAMIC_LINKER): This.
9527 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
9528
9529 2015-10-15 Marek Polacek <polacek@redhat.com>
9530
9531 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
9532 gimple_call_builtin instead of is_gimple_call.
9533
9534 2015-10-15 Richard Biener <rguenther@suse.de>
9535
9536 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
9537
9538 2015-10-15 Richard Biener <rguenther@suse.de>
9539
9540 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
9541 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
9542 * tree-vect-loop.c (get_initial_def_for_induction): Drop
9543 use of force_gimple_operand in favor of gimple_build.
9544 Use vect_get_new_ssa_name.
9545 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
9546 (vectorizable_mask_load_store): Likewise.
9547 (vectorizable_call): Likewise.
9548 (vectorizable_store): Likewise.
9549 (vectorizable_load): Likewise.
9550 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
9551
9552 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
9553
9554 PR tree-optimization/67945
9555 * tree-pass.h (PROP_gimple_opt_math): New property flag.
9556 * generic-match-head.c (canonicalize_math_p): New function.
9557 * gimple-match-head.c: Include tree-pass.h.
9558 (canonicalize_math_p): New function.
9559 * match.pd: Group math built-in rules into simplifications
9560 and canonicalizations. Guard the latter with canonicalize_math_p.
9561 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
9562 PROP_gimple_opt_math property.
9563
9564 2015-10-15 Marek Polacek <polacek@redhat.com>
9565
9566 PR tree-optimization/67953
9567 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
9568
9569 2015-10-15 Jiong Wang <jiong.wang@arm.com>
9570
9571 * config.gcc: Recognize "." in architecture base name for AArch64.
9572
9573 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9574
9575 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
9576 ROUND_UP macro.
9577 * config/mips/mips.c (mips_setup_incoming_varargs): Use
9578 ROUND_DOWN to calculate off.
9579 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
9580 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
9581 rounded_size.
9582
9583 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
9584
9585 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
9586
9587 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
9588 Torvald Riegel <triegel@redhat.com>
9589
9590 PR target/67281
9591 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
9592 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9593 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
9594 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
9595 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
9596 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9597 trechkpt, treclaim, tsr, ttest): New define_expands.
9598 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9599 __TM_FENCE__ for htm.
9600 * doc/extend.texi: Update documentation for htm builtins.
9601
9602 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9603
9604 PR target/67967
9605 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
9606 REG_CFA_EXPRESSION to aligned SSE stores.
9607
9608 2015-10-14 Jeff Law <law@redhat.com>
9609
9610 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
9611 num_threaded_edges for successful FSM threads too.
9612
9613 2015-10-14 Richard Biener <rguenther@suse.de>
9614
9615 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
9616 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
9617 (vect_get_vec_def_for_operand): Remove unused parameter.
9618 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
9619 (vect_create_epilog_for_reduction): Likewise.
9620 (vectorizable_reduction): Likewise.
9621 (vectorizable_live_operation): Likewise.
9622 * tree-vect-patterns.c (type_conversion_p): Likewise.
9623 (vect_recog_vector_vector_shift_pattern): Likewise.
9624 (check_bool_pattern): Likewise.
9625 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9626 (vect_analyze_slp_cost_1): Likewise.
9627 * tree-vect-stmts.c (process_use): Likewise.
9628 (vect_get_vec_def_for_operand): Do not handle reductions.
9629 (vect_get_vec_defs): Adjust.
9630 (vectorizable_mask_load_store): Likewise.
9631 (vectorizable_call): Likewise.
9632 (vectorizable_simd_clone_call): Likewise.
9633 (vect_get_loop_based_defs): Likewise.
9634 (vectorizable_conversion): Likewise.
9635 (vectorizable_assignment): Likewise.
9636 (vectorizable_shift): Likewise.
9637 (vectorizable_operation): Likewise.
9638 (vectorizable_store): Likewise.
9639 (vectorizable_load): Likewise.
9640 (vect_is_simple_cond): Likewise.
9641 (vectorizable_condition): Likewise.
9642 (vect_is_simple_use): Remove unused parameters.
9643 (vect_is_simple_use_1): Adjust and rename.
9644
9645 2015-10-14 Richard Biener <rguenther@suse.de>
9646
9647 PR tree-optimization/67915
9648 * match.pd: Handle comparisons of addresses of STRING_CSTs.
9649 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
9650 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
9651 stmt folding in favor of GIMPLE one.
9652
9653 2015-10-14 Marek Polacek <polacek@redhat.com>
9654
9655 PR tree-optimization/67815
9656 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
9657 (reassociate_bb): Call it.
9658
9659 2015-10-14 Richard Biener <rguenther@suse.de>
9660
9661 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9662 Reset info at start.
9663 (vect_analyze_group_access_1): Add debug print.
9664 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
9665 (vect_compute_single_scalar_iteration_cost): ... to this.
9666 (vect_analyze_loop_2): Adjust.
9667 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
9668 * tree-vectorizer.h: ... here.
9669 (add_stmt_info_to_vec): Remove.
9670 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
9671
9672 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
9673
9674 * targhooks.c (default_target_option_pragma_parse): Do not warn if
9675 called on behalf of "#pragma GCC pop_options".
9676
9677 2015-10-14 Tom de Vries <tom@codesourcery.com>
9678
9679 * cfganal.c (verify_no_unreachable_blocks): New function.
9680 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
9681 verify_no_unreachable_blocks.
9682 cfganal.h (verify_no_unreachable_blocks): Declare.
9683
9684 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
9685
9686 * common.opt: Add flag_checking.
9687 * system.h (CHECKING_P): Define.
9688
9689 2015-10-13 Jakub Jelinek <jakub@redhat.com>
9690 Aldy Hernandez <aldyh@redhat.com>
9691 Ilya Verbin <ilya.verbin@intel.com>
9692
9693 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
9694 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
9695 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
9696 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
9697 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
9698 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
9699 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
9700 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
9701 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
9702 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
9703 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9704 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9705 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
9706 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
9707 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
9708 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
9709 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
9710 (struct cgraph_simd_clone_arg): Adjust comment.
9711 * coretypes.h (struct gomp_ordered): New forward decl.
9712 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
9713 set critical clauses to it.
9714 (gimple_build_omp_ordered): Return gomp_ordered * instead of
9715 gimple *. Add CLAUSES argument, set ordered clauses to it.
9716 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
9717 GIMPLE_OMP_ORDERED.
9718 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
9719 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
9720 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
9721 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
9722 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
9723 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
9724 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
9725 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
9726 renumber
9727 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
9728 (gomp_critical): Add clauses field.
9729 (gomp_ordered): New struct.
9730 (is_a_helper <gomp_ordered *>::test): New inline.
9731 (gimple_build_omp_critical): Add CLAUSES argument.
9732 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
9733 instead of gimple *.
9734 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
9735 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
9736 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
9737 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
9738 inline functions.
9739 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
9740 (dump_gimple_omp_target): Handle enter data and exit data.
9741 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
9742 (dump_gimple_omp_critical): Print clauses.
9743 (dump_gimple_omp_ordered): New function.
9744 (dump_gimple_omp_task): Handle taskloop.
9745 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
9746 GIMPLE_OMP_ORDERED.
9747 * gimple-walk.c (walk_gimple_op): Walk clauses on
9748 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
9749 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
9750 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
9751 (struct gimplify_omp_ctx): Add loop_iter_var,
9752 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
9753 and target_firstprivatize_array_bases fields.
9754 (delete_omp_context): Release loop_iter_var.
9755 (gimplify_bind_expr): Handle ORT_NONE.
9756 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
9757 ORT_COMBINED_TARGET.
9758 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
9759 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
9760 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
9761 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
9762 ctx->target_map_scalars_firstprivate.
9763 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
9764 data sharing clauses. For data sharing clause with VLA decl
9765 on omp target/target data don't add firstprivate for the pointer.
9766 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
9767 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
9768 the addition of ORT_COMBINED_TARGET.
9769 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
9770 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
9771 pointers as zero length array sections and
9772 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
9773 data sharing.
9774 (omp_check_private): Handle omp_member_access_dummy_var vars.
9775 (find_decl_expr): New function.
9776 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
9777 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
9778 Handle OMP_CLAUSE_GANG separately. Handle
9779 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9780 clauses. Diagnose linear clause on combined
9781 distribute {, parallel for} simd construct, unless it is the loop
9782 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
9783 Handle map clauses with COMPONENT_REF. Initialize
9784 ctx->target_map_scalars_firstprivate,
9785 ctx->target_firstprivatize_array_bases and
9786 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
9787 linear clause even to target region if combined. Remove
9788 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
9789 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
9790 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
9791 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
9792 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
9793 For linear clause on worksharing loop combined with parallel add
9794 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
9795 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
9796 omp_member_access_dummy_var vars. Add lastprivate clause to outer
9797 taskloop if needed.
9798 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
9799 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
9800 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
9801 GOMP_MAP_POINTER.
9802 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
9803 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
9804 in target body. Handle removal of struct mapping if struct is not
9805 seen in target body. Remove GOMP_MAP_STRUCT map clause on
9806 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
9807 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
9808 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
9809 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
9810 clause appear together. Handle
9811 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
9812 clause if it has map-type-modifier always. Handle
9813 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9814 clauses.
9815 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
9816 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
9817 callers.
9818 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
9819 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
9820 iterators in doacross loops.
9821 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
9822 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
9823 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
9824 for the addition of ORT_COMBINED_TARGET.
9825 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
9826 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
9827 and OMP_TARGET_EXIT_DATA.
9828 (gimplify_omp_ordered): New function.
9829 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
9830 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
9831 Gimplify clauses on OMP_CRITICAL.
9832 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
9833 expand_GOMP_SIMD_ORDERED_END): New functions.
9834 * internal-fn.def (GOMP_SIMD_ORDERED_START,
9835 GOMP_SIMD_ORDERED_END): New internal functions.
9836 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
9837 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
9838 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
9839 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
9840 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
9841 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
9842 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
9843 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
9844 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
9845 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
9846 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
9847 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
9848 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
9849 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
9850 adjust type.
9851 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
9852 GOMP_target_data_41, adjust type.
9853 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
9854 GOMP_target_update_41, adjust type.
9855 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
9856 field.
9857 (struct omp_for_data): Add ordered and simd_schedule fields.
9858 (omp_member_access_dummy_var, unshare_and_remap_1,
9859 unshare_and_remap, is_taskloop_ctx): New functions.
9860 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
9861 (extract_omp_for_data): Handle taskloops and doacross loops
9862 and simd schedule modifier.
9863 (omp_adjust_chunk_size): New function.
9864 (get_ws_args_for): Use it.
9865 (lookup_sfield): Change first argument to splay_tree_key,
9866 add overload with first argument tree.
9867 (maybe_lookup_field): Likewise.
9868 (use_pointer_for_field): Handle omp_member_access_dummy_var.
9869 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
9870 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
9871 (build_outer_var_ref): Add LASTPRIVATE argument, handle
9872 taskloops and omp_member_access_dummy_var vars.
9873 (build_sender_ref): Change first argument to splay_tree_key,
9874 add overload with first argument tree.
9875 (install_var_field): For mask & 8 use &DECL_UID as key instead
9876 of the tree itself.
9877 (fixup_child_record_type): Const qualify *.omp_data_i.
9878 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
9879 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
9880 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
9881 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
9882 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
9883 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
9884 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
9885 kinds.
9886 (add_taskreg_looptemp_clauses): New function.
9887 (scan_omp_parallel): Use it.
9888 (scan_omp_task): Likewise.
9889 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9890 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
9891 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9892 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
9893 sandwiched taskloop constructs. Type check
9894 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
9895 region. Diagnose depend(source) or depend(sink:...) on
9896 target constructs or task/taskloop.
9897 (handle_simd_reference): Use get_name.
9898 (lower_rec_input_clauses): Likewise. Ignore all
9899 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
9900 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
9901 before passing it to omp_clause_{default,copy}_ctor. Handle
9902 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
9903 lastprivate_firstprivate flag for linear that needs copyin and
9904 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
9905 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
9906 on taskloop lookup decl in outer context. Pass true to
9907 build_outer_var_ref lastprivate argument. Handle
9908 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
9909 outside of outer taskloop for.
9910 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
9911 OMP_CLAUSE_DECL.
9912 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
9913 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
9914 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
9915 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
9916 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
9917 abstract origin. Handle omp_member_access_dummy_var vars.
9918 (expand_parallel_call): Use expand_omp_build_assign.
9919 (expand_task_call): Handle taskloop construct expansion. Add
9920 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
9921 integers. Add priority argument to GOMP_task* calls. Or in
9922 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
9923 GOMP_task call.
9924 (expand_omp_build_assign): Add prototype. Add AFTER
9925 argument, if true emit statements after *GSI_P and continue linking.
9926 (expand_omp_taskreg): Adjust expand_task_call caller.
9927 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
9928 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
9929 zero_iter2_bb and first_zero_iter2 arguments, handle computation
9930 of counts even for ordered loops.
9931 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
9932 (expand_omp_ordered_source, expand_omp_ordered_sink,
9933 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
9934 functions.
9935 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
9936 clauses on worksharing loop. Handle DOACROSS loop expansion.
9937 (expand_omp_for_static_nochunk): Handle linear clauses on
9938 worksharing loop. Adjust expand_omp_for_init_counts
9939 callers.
9940 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
9941 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
9942 expand_omp_for_init_counts callers.
9943 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9944 functions.
9945 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9946 Handle doacross loops.
9947 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9948 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
9949 GOMP_target_{41,update_41,enter_exit_data} libcalls.
9950 (expand_omp): Don't expand ordered depend constructs here, record
9951 ord_stmt instead for later expand_omp_for_generic.
9952 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9953 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9954 clause as stand-alone directive.
9955 (lower_omp_ordered_clauses): New function.
9956 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
9957 don't lower anything.
9958 (lower_omp_for_lastprivate): Use last _looptemp_ clause
9959 on taskloop for comparison.
9960 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
9961 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
9962 expansion for linear adjustments.
9963 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9964 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
9965 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
9966 to tree * pointing to the stmt's clauses.
9967 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
9968 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9969 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
9970 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
9971 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
9972 clauses. Always use short kind and 8-bit align shift.
9973 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
9974 (struct lower_omp_regimplify_operands_data): New type.
9975 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
9976 New functions.
9977 (lower_omp_1): Use lower_omp_regimplify_operands instead of
9978 gimple_regimplify_operands.
9979 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9980 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9981 clause as stand-alone directive.
9982 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
9983 (simd_clone_mangle): Mangle the various linear kinds
9984 per the new ABI.
9985 (simd_clone_adjust_argument_types): Handle
9986 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
9987 (simd_clone_init_simd_arrays): Don't do anything for uval.
9988 (simd_clone_adjust): Handle
9989 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
9990 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
9991 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
9992 * omp-low.h (omp_member_access_dummy_var): New prototype.
9993 * passes.def (pass_simduid_cleanup): Schedule another copy of the
9994 pass after all optimizations.
9995 * tree.c (omp_clause_code_name): Add entries for
9996 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
9997 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
9998 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
9999 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10000 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10001 OMP_CLAUSE_REDUCTION 5 arguments. Handle
10002 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10003 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10004 clauses.
10005 * tree-core.h (enum omp_clause_linear_kind): New.
10006 (struct tree_omp_clause): Change type of map_kind
10007 from unsigned char to unsigned int. Add subcode.if_modifier
10008 and subcode.linear_kind fields.
10009 (enum omp_clause_code): Add
10010 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10011 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10012 (OMP_CLAUSE_REDUCTION): Document
10013 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10014 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10015 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10016 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
10017 operand.
10018 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
10019 operand.
10020 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10021 codes.
10022 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10023 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10024 char.
10025 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10026 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10027 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10028 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10029 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10030 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10031 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10032 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10033 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10034 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10035 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10036 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10037 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10038 * tree-inline.c (remap_gimple_stmt): Handle clauses on
10039 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
10040 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10041 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10042 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10043 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10044 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10045 (convert_local_omp_clauses): Likewise.
10046 * tree-pretty-print.c (dump_omp_clause): Handle
10047 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10048 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10049 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10050 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10051 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
10052 GOMP_MAP_FORCE_DEALLOC. Handle
10053 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10054 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10055 and clauses on OMP_ORDERED and OMP_CRITICAL.
10056 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10057 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10058 (vectorize_loops): Adjust comments.
10059 (pass_simduid_cleanup::execute): Likewise.
10060 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10061 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10062 * wide-int.h (wi::gcd): New.
10063
10064 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10065
10066 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10067 (ix86_function_arg_advance): Ditto.
10068 (ix86_function_arg): Ditto.
10069 (ix86_gimplify_va_arg): Ditto.
10070 (ix86_class_max_nregs): Ditto.
10071 (inline_memory_move_cost): Ditto.
10072 (ix86_set_reg_reg_cost): Ditto.
10073 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10074
10075 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
10076
10077 PR middle-end/67912
10078 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10079
10080 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10081
10082 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10083 ROUND_UP macro and UNITS_PER_WORD * 2.
10084 * config/sparc/sparc.c (sparc_compute_frame_size):
10085 Use ROUND_UP and ROUND_DOWN macros where applicable.
10086 (function_arg_record_value, function_arg_record_value_1)
10087 (function_arg_record_value_1): Ditto.
10088 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10089 alignment to double-word.
10090 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10091 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10092 rounded_size.
10093
10094 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
10095
10096 * rtl.h (print_insn): Fix prototype.
10097
10098 2015-10-13 Tom de Vries <tom@codesourcery.com>
10099
10100 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10101 -1. Add assert that returned entry matches phi argument.
10102 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10103 free_stmt_vec_info_vec ...
10104 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
10105 with -1.
10106
10107 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
10108
10109 PR tree-optimization/67909, 67947
10110 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10111 really skip the inner loop.
10112
10113 2015-10-13 Jeff Law <law@redhat.com>
10114
10115 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10116 Allow single block jump threading paths.
10117
10118 2015-10-13 Tom de Vries <tom@codesourcery.com>
10119
10120 PR tree-optimization/67476
10121 * doc/invoke.texi (@item parloops-schedule): New item.
10122 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10123 * tree-parloops.c: Include params-enum.h.
10124 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10125
10126 2015-10-13 Tom de Vries <tom@codesourcery.com>
10127
10128 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10129 * params-enum.h: New file.
10130 * opts.c (handle_param): Handle case that param arg is a string.
10131 * params-list.h: Handle DEFPARAMENUM5 in params.def.
10132 * params.c (find_param): New function, factored out of ...
10133 (set_param_value): ... here.
10134 (param_string_value_p): New function.
10135 * params.h (struct param_info): Add value_names field.
10136 (find_param, param_string_value_p): Declare.
10137
10138 2015-10-13 Tom de Vries <tom@codesourcery.com>
10139
10140 PR tree-optimization/67476
10141 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10142
10143 2015-10-13 Richard Biener <rguenther@suse.de>
10144
10145 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10146 the data dependence vector.
10147 (vect_peeling_hash_insert): Get the peeling hash table as argument.
10148 (vect_peeling_hash_get_lowest_cost): Likewise.
10149 (vect_enhance_data_refs_alignment): Adjust.
10150 (struct _vect_peel_info, struct _vect_peel_extended_info,
10151 struct peel_info_hasher): Move from ...
10152 * tree-vectorizer.h: ... here.
10153 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10154 (LOOP_VINFO_PEELING_HTAB): Likewise.
10155 (struct _loop_vec_info): Remove min_profitable_iters and
10156 peeling_htab members.
10157 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10158 here.
10159 (destroy_loop_vec_info): Adjust.
10160 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10161 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10162 to estimate alias versioning cost.
10163 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10164
10165 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
10166
10167 * real.h (real_isinteger): Declare.
10168 * real.c (real_isinteger): New function.
10169 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10170 if y is an even integer.
10171
10172 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10173
10174 revert:
10175 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10176 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10177 counts when these are more informative.
10178
10179 2015-10-12 Jeff Law <law@redhat.com>
10180
10181 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10182 (fsm_find_control_stmt_paths): Change name of first argument to
10183 more accurately relfect what it really is. Handle simplification
10184 of GIMPLE_COND after finding a thread path for NAME.
10185 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10186 nontrivial conditions to be handled by FSM threader.
10187 (thread_through_normal_block): Extract the name to looup via
10188 FSM threader from COND_EXPR.
10189
10190 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10191 restriction that traced SSA_NAME is a user variable.
10192
10193 2015-10-12 Tom de Vries <tom@codesourcery.com>
10194
10195 PR tree-optimization/67476
10196 * omp-low.c (expand_omp_for_generic): Add missing phis.
10197
10198 2015-10-12 Tom de Vries <tom@codesourcery.com>
10199
10200 PR tree-optimization/67476
10201 * omp-low.c (expand_omp_for_generic): Handle simple latch.
10202
10203 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
10204
10205 * config/aarch64/aarch64-simd-builtins.def: Update builtins
10206 tables: add tbl3 and tbx4.
10207 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10208 (aarch64_tbx4v8qi): New.
10209 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10210 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10211 Rewrite using builtin functions.
10212 * config/aarch64/iterators.md (UNSPEC_TBX): New.
10213
10214 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10215
10216 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10217 ROUND_UP macro.
10218 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10219 Use ROUND_UP and ROUND_DOWN macros where applicable.
10220 (rs6000_darwin64_record_arg_flush): Ditto.
10221 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10222 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10223 rounded_size.
10224
10225 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10226
10227 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10228 (AARCH64_ROUND_DOWN): Ditto.
10229 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10230
10231 2015-10-12 Richard Biener <rguenther@suse.de>
10232
10233 PR ipa/67783
10234 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10235 code that analyzes IVs on each stmt but in a cheaper way avoiding
10236 quadratic behavior.
10237
10238 2015-10-12 Nick Clifton <nickc@redhat.com>
10239
10240 * config/msp430/msp430.c (msp430_mcu_names): Rename to
10241 msp430_mcu_data, add fields for ISA and hardware multiply
10242 support. Import latest data from the devices.csv file.
10243 (msp430_override_option): Use the data from the new array.
10244 (msp430_use_f5_series_hwmult): Likewise.
10245 (use_32bit_hwmult): Likewise.
10246 (msp430_no_hwmult): Likewise.
10247 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10248 MCU names.
10249 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10250 not recognised then no hardware multiply support is assumed and
10251 that only the MSP430 ISA is allowed.
10252
10253 2015-10-12 Richard Biener <rguenther@suse.de>
10254
10255 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10256 related code ...
10257 (vect_analyze_loop_2): ... here.
10258
10259 2015-10-11 Jason Merrill <jason@redhat.com>
10260
10261 PR c++/67557
10262 * expr.c (store_field): Call store_constructor directly when
10263 storing a CONSTRUCTOR into a target smaller than its type.
10264 Guard against unsafe bitwise copy.
10265
10266 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10267
10268 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10269 counts when these are more informative.
10270
10271 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10272
10273 * tree-profile.c (tree_profiling): Do not clear
10274 pure/const when not instrumenting.
10275 (pass tree_profile): Add dump of symtab.
10276
10277 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10278
10279 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10280 addresses.
10281 (fold_addr_of_array_ref_difference): Likewise.
10282
10283 2015-10-11 Jeff Law <law@redhat.com>
10284
10285 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10286 tree-ssa-threadbackward.c.
10287 (fsm_find_control_statement_thread_paths): Likewise.
10288 (thread_through_normal_block): Break out FSM bits and move them
10289 into a new function in tree-ssa-threadbackward.c. Call new function
10290 instead.
10291 Minimize header file usage.
10292 * tree-ssa-threadbackward.h: New file.
10293 * tree-ssa-threadbackward.c: Likewise.
10294 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10295
10296 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
10297
10298 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10299
10300 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
10301
10302 PR rtl-optimization/67864
10303 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10304 fallthrough edges for conditional jumps. Don't sort candidate
10305 edges if not optimizing for speed.
10306
10307 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10308
10309 * defaults.h (REVERSE_CONDITION): New default definition.
10310 * jump.c (reversed_comparison_code_parts): Adjust.
10311
10312 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10313
10314 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10315 check HARD_FRAME_POINTER_IS_ARG_POINTER.
10316
10317 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10318
10319 * defaults.h (FRAME_ADDR_RTX): New default definition.
10320 * builtins.c (expand_builtin_return_addr): Adjust.
10321
10322 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10323
10324 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10325 * builtins.c (expand_builtin_return_addr): Adjust.
10326
10327 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10328
10329 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10330 * builtins.c (expand_builtin_return_addr): Adjust.
10331 * doc/tm.texi: Likewise.
10332 * doc/tm.texi.in: Likewise.
10333 * except.c (expand_builtin_unwind_init): Likewise.
10334
10335 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10336
10337 * builtins.c (expand_builtin_return_addr): Adjust.
10338 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10339
10340 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10341
10342 * tree.c (type_with_interoperable_signedness): New.
10343 (gimple_canonical_types_compatible_p): Use it.
10344 * tree.h (type_with_interoperable_signedness): Declare
10345
10346 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10347
10348 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10349 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10350 when OEP_ADDRESS_OF is se.
10351
10352 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10353 Sebastian Pop <s.pop@samsung.com>
10354
10355 * graphite-dependences.c (scop_get_dependences): Add dump of the
10356 data dependence graph.
10357 * graphite-poly.c (print_isl_union_map): New.
10358 (debug_isl_union_map): New.
10359 * graphite-poly.h (print_isl_union_map): Declare.
10360 (debug_isl_union_map): Declare.
10361
10362 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10363 Sebastian Pop <s.pop@samsung.com>
10364
10365 * graphite-poly.c (print_iteration_domain): Remove verbosity.
10366 Remove OpenScop formatting.
10367 (print_iteration_domains): Same.
10368 (debug_iteration_domain): Same.
10369 (debug_iteration_domains): Same.
10370 (print_pdr): Same.
10371 (debug_pdr): Same.
10372 (dump_gbb_cases): Same.
10373 (dump_gbb_conditions): Same.
10374 (print_pdrs): Same.
10375 (debug_pdrs): Same.
10376 (print_pbb_body): Same.
10377 (print_pbb): Same.
10378 (print_scop_params): Same.
10379 (print_scop_context): Same.
10380 (print_scop): Same.
10381 (debug_pbb_domain): Same.
10382 (debug_pbb): Same.
10383 (debug_scop_context): Same.
10384 (debug_scop): Same.
10385 (debug_scop_params): Same.
10386 * graphite-poly.h: Same.
10387 * graphite.c (graphite_transform_loops): Same.
10388
10389 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10390
10391 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10392 call that isn't needed.
10393
10394 2015-10-09 Jeff Law <law@redhat.com>
10395
10396 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
10397 rather than moving each name to the freelist individually.
10398
10399 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
10400
10401 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
10402 * frame-header-opt.c: New file.
10403 * config/mips/mips-proto.h (mips_register_frame_header_opt):
10404 Add prototype.
10405 * config/mips/mips.c (mips_compute_frame_info): Check
10406 optimize_call_stack flag.
10407 (mips_option_override): Register new frame_header_opt pass.
10408 (mips_frame_info, mips_int_mask, mips_shadow_set,
10409 machine_function): Move these types to...
10410 * config/mips/mips.h: here.
10411 (machine_function): Add does_not_use_frame_header and
10412 optimize_call_stack fields.
10413 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
10414 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
10415 Document new flags.
10416 * config/mips/mips.opt (mframe-header-opt): Add new option.
10417
10418 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
10419
10420 * config/i386/i386.c
10421 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
10422 ROUND_DOWN where applicable.
10423
10424 2015-10-09 Jeff Law <law@redhat.com>
10425
10426 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
10427 correct statement.
10428
10429 2015-10-09 Renlin Li <renlin.li@arm.com>
10430
10431 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
10432 operands[0] and operands[2].
10433 (neon_vtrn<mode>_insn): Likewise.
10434 (neon_vzip<mode>_insn): Likewise.
10435
10436 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
10437
10438 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
10439 ((X & C2) << C1): Expand to...
10440 (X {&,^,|} C2 << C1): ...This.
10441 ((X & C2) >> C1): Expand to...
10442 (X {&,^,|} C2 >> C1): ...This.
10443
10444 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
10445
10446 PR target/67895
10447 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
10448 Adjust embedded rounding/SAE specifier position.
10449 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
10450 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
10451 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
10452 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
10453 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
10454 Likewise.
10455 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
10456
10457 2015-10-09 Martin Jambor <mjambor@suse.cz>
10458
10459 tree-optimization/67794
10460 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
10461 between types of state,ents but accept original definitions as a
10462 parameter.
10463 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
10464 iterate over definitions.
10465
10466 2015-10-09 James Norris <jnorris@codesourcery.com>
10467
10468 * config/rs6000/rs6000.c (rs6000_offload_options): New.
10469 (TARGET_OFFLOAD_OPTIONS): New.
10470
10471 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
10472
10473 PR middle-end/67891
10474 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
10475
10476 PR middle-end/67766
10477 * function.c (expand_function_end): Move return value
10478 promotion past the handling of PARALLELs and CONCATs.
10479
10480 PR rtl-optimization/67828
10481 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
10482 (tree_may_unswitch_on): Don't unswitch on expressions
10483 involving undefined values.
10484
10485 2015-10-09 Richard Biener <rguenther@suse.de>
10486
10487 * genmatch.c (print_operand): Fix formatting.
10488 (dt_node::append_simplify): Warn for multiple simplifiers
10489 that match the same pattern.
10490 * match.pd (log (exp @0)): Remove duplicates.
10491
10492 2015-10-09 Richard Biener <rguenth@suse.de>
10493
10494 PR target/67366
10495 * gimple-fold.c (optabs-query.h): Include
10496 (gimple_fold_builtin_memory_op): Allow unaligned stores
10497 when movmisalign_optabs are available.
10498
10499 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10500
10501 PR target/67366
10502 * config/arm/arm.md (movmisalign<mode>): New.
10503 * config/arm/iterators.md (HSI): New.
10504
10505 2015-10-09 Richard Biener <rguenther@suse.de>
10506
10507 PR tree-optimization/67891
10508 * gimple-match.h (gimple_simplified_result_is_gimple_val):
10509 New helper.
10510 (gimple_resimplify1): Declare.
10511 (gimple_resimplify2): Likewise.
10512 (gimple_resimplify3): Likewise.
10513 * gimple-match-head.c (gimple_resimplify1): Export.
10514 (gimple_resimplify2): Likewise.
10515 (gimple_resimplify3): Likewise.
10516 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
10517 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10518 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
10519 to avoid creating stmts without VN info.
10520
10521 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
10522
10523 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
10524 of availability.
10525
10526 2015-10-08 Jeff Law <law@redhat.com>
10527
10528 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
10529 and release_ssa_name in two places.
10530 (gimple_stringop_fixed_value): Similarly.
10531
10532 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
10533 release_defs.
10534
10535 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
10536 unlink_stmt_vdef and release_ssa_name_fn.
10537
10538 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
10539 release_defs.
10540
10541 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
10542
10543 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
10544 SSE register save area to 16 bytes only if the incoming stack
10545 boundary is no less than 16 bytes.
10546
10547 2015-10-08 Jeff Law <law@redhat.com>
10548
10549 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
10550 release_ssa_name. Fix typo in comment.
10551
10552 2015-10-08 Nathan Sidwell <nathan@acm.org>
10553
10554 * config/nvptx/nvptx.h (struct machine_function): Add comment.
10555 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
10556 may return pointer as well as in memory.
10557 (nvptx_output_return): Likewise.
10558
10559 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10560
10561 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
10562 (fold_builtin_1): Update accordingly. Handle constant arguments here.
10563 * match.pd: Add rules previously handled by fold_builtin_sqrt
10564 and fold_builtin_cbrt.
10565
10566 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10567
10568 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
10569 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
10570 * fold-const.h (tree_unary_nonnegative_warnv_p)
10571 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10572 (tree_expr_nonnegative_warnv_p): Add depth parameters.
10573 * fold-const.c: Include gimple-fold.h and params.h.
10574 (tree_ssa_name_nonnegative_warnv_p): New function.
10575 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
10576 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10577 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
10578 Add a depth parameter and increment it for recursive calls to
10579 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
10580 to handle SSA names.
10581 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
10582 (gimple_stmt_nonnegative_warnv_p): Declare.
10583 * tree-vrp.c (remove_range_assertions): Remove assert that condition
10584 cannot be proven false.
10585 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
10586 (gimple_stmt_nonnegative_warnv_p): Move to...
10587 * gimple-fold.c: ...here. Add depth parameters and pass them
10588 down to the tree routines. Accept statements that aren't
10589 assignments or calls but just return false for them.
10590 (gimple_val_nonnegative_real_p): Delete.
10591 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10592 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
10593 Check HONOR_NANs first.
10594
10595 2015-10-08 Martin Jambor <mjambor@suse.cz>
10596
10597 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
10598 unnecessary MIN.
10599
10600 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10601
10602 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
10603 in the tail of outer-loop.
10604
10605 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
10606
10607 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
10608 return UI_NONE.
10609
10610 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10611
10612 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
10613 "cfghooks.h", add prototypes for introduced new functions.
10614 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
10615 checks on ability of loop unswitching to tree_unswitch_single_loop;
10616 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
10617 on innermost loop check.
10618 (tree_unswitch_single_loop): Add all required checks on ability of
10619 loop unswitching under zero recursive level guard.
10620 (tree_unswitch_outer_loop): New function.
10621 (find_loop_guard): Likewise.
10622 (empty_bb_without_guard_p): Likewise.
10623 (used_outside_loop_p): Likewise.
10624 (get_vop_from_header): Likewise.
10625 (hoist_guard): Likewise.
10626 (check_exit_phi): Likewise.
10627
10628 2015-10-08 Marek Polacek <polacek@redhat.com>
10629
10630 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
10631 ops element.
10632
10633 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10634
10635 PR c/65345
10636 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
10637 create_tmp_var_raw instead of create_tmp_var.
10638
10639 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
10640
10641 * expr.c (store_expr_with_bounds): Handle aggregate moves from
10642 BLKmode.
10643 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
10644 to define gimple type system; compare aggregates only by size.
10645
10646 2015-10-07 Jeff Law <law@redhat.com>
10647
10648 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
10649 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
10650 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
10651 unnecessarily.
10652
10653 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10654 Sebastian Pop <s.pop@samsung.com>
10655
10656 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
10657 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
10658 (generate_isl_schedule): Same.
10659 * graphite-optimize-isl.c (scop_get_domains): Same.
10660 (apply_schedule_map_to_scop): Same.
10661 * graphite-poly.c (print_iteration_domains): Same.
10662 (remove_gbbs_in_scop): Same.
10663 (new_scop): Same.
10664 (free_scop): Same.
10665 (print_scop): Same.
10666 * graphite-poly.h (struct scop): Rename bbs to pbbs.
10667 (SCOP_BBS): Remove.
10668 * graphite-scop-detection.c (compare_bb_depths): Remove.
10669 (graphite_sort_dominated_info): Remove.
10670 (try_generate_gimple_bb): Move out of scop_detection.
10671 (all_non_dominated_preds_marked_p): Remove.
10672 (build_scop_bbs_1): Remove.
10673 (build_scop_bbs): Remove.
10674 (nb_pbbs_in_loops): Do not use SCOP_BBS.
10675 (find_scop_parameters): Same.
10676 (sese_dom_walker): Rename gather_bbs.
10677 (before_dom_children): Call try_generate_gimple_bb and collect gbb
10678 and pbb.
10679 (build_scops): Call gather_bbs.
10680 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
10681 (add_conditions_to_constraints): Same.
10682 (build_scop_iteration_domain): Same.
10683 (build_scop_drs): Same.
10684 (new_pbb_from_pbb): Same.
10685 * sese.c (new_sese_info): Create bbs.
10686 * sese.h (struct sese_info_t): Add bbs.
10687
10688 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
10689
10690 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
10691 encoding in 64-bit mode.
10692
10693 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
10694
10695 PR target/66697
10696 * config/i386/i386.c (ix86_option_override_internal): Always use
10697 8-byte minimum stack boundary in 64-bit mode.
10698 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
10699 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
10700 Add a REG_CFA_EXPRESSION note if needed.
10701 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
10702 (ix86_handle_force_align_arg_pointer_attribute): New.
10703 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
10704 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
10705 with ix86_handle_force_align_arg_pointer_attribute.
10706 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
10707
10708 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10709 Sebastian Pop <s.pop@samsung.com>
10710
10711 * graphite-scop-detection.c (parameter_index_in_region): Remove
10712 use of SESE_ADD_PARAMS.
10713 (find_scop_parameters): Same.
10714 * sese.c (new_sese_info): Same.
10715 * sese.h (struct sese_info_t): Remove add_params.
10716 (SESE_ADD_PARAMS): Remove.
10717
10718 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10719 Sebastian Pop <s.pop@samsung.com>
10720
10721 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
10722 an sese_info_p.
10723 (copy_def): Same.
10724 (copy_internal_parameters): Same.
10725 (translate_isl_ast_to_gimple): Use an sese_l.
10726 (build_iv_mapping): Same.
10727 * graphite-poly.c (new_sese): Rename new_sese_info.
10728 (free_sese): Rename free_sese_info.
10729 * graphite-poly.h (struct scop): Use an sese_info_p.
10730 (scop_set_region): Same.
10731 * graphite-scop-detection.c (struct sese_l): Moved...
10732 (get_entry_bb): Moved...
10733 (get_exit_bb): Moved...
10734 (parameter_index_in_region_1): Use an sese_info_p.
10735 (parameter_index_in_region): Same.
10736 (scan_tree_for_params): Same.
10737 (find_params_in_bb): Same.
10738 (sese_dom_walker): Use an sese_l.
10739 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
10740 (reduction_phi_p): Same.
10741 (parameter_index_in_region_1): Use an sese_info_p.
10742 (propagate_expr_outside_region): Use an sese_l.
10743 * graphite.c: Replace uses of SCOP_REGION.
10744 * sese.c (sese_record_loop): Use an sese_info_p.
10745 (build_sese_loop_nests): Same.
10746 (sese_build_liveouts_use): Same.
10747 (sese_build_liveouts_bb): Same.
10748 (sese_build_liveouts_bb): Same.
10749 (sese_bad_liveouts_use): Same.
10750 (sese_reset_debug_liveouts_bb): Same.
10751 (sese_build_liveouts): Same.
10752 (new_sese): Renamed new_sese_info.
10753 (free_sese): Renamed free_sese_info.
10754 (set_rename): Use an sese_info_p.
10755 (graphite_copy_stmts_from_block): Same.
10756 (copy_bb_and_scalar_dependences): Same.
10757 (outermost_loop_in_sese_1): Use an sese_l.
10758 (outermost_loop_in_sese): Same.
10759 (if_region_set_false_region): Use an sese_info_p.
10760 (move_sese_in_condition): Same.
10761 (scalar_evolution_in_region): Use an sese_l.
10762 * sese.h (struct sese_l): ... here.
10763 (SESE_ENTRY): Remove.
10764 (SESE_ENTRY_BB): Remove.
10765 (SESE_EXIT): Remove.
10766 (SESE_EXIT_BB): Remove.
10767 (sese_contains_loop): Use an sese_info_p.
10768 (sese_nb_params): Same.
10769 (bb_in_sese_p): Use an sese_l.
10770 (stmt_in_sese_p): Same.
10771 (defined_in_sese_p): Same.
10772 (loop_in_sese_p): Same.
10773 (sese_loop_depth): Same.
10774 (struct ifsese_s): Use an sese_info_p.
10775 (gbb_loop_at_index): Use an sese_l.
10776 (nb_common_loops): Same.
10777 (scev_analyzable_p): Same.
10778
10779 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10780
10781 * config/i386/i386.c (ix86_conditional_register_usage): Use
10782 CALL_USED_REGISTERS_MASK.
10783 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
10784
10785 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10786
10787 PR bootstrap/67385
10788 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
10789 * configure: Regenerated.
10790
10791 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10792
10793 PR target/67850
10794 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
10795 (ix86_set_current_function): This.
10796 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
10797
10798 2015-10-07 Richard Biener <rguenther@suse.de>
10799
10800 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
10801 (vinfo_for_stmt): Adjust.
10802 (set_vinfo_for_stmt): Likewise.
10803 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
10804 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
10805 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
10806 of inner loop.
10807 (vect_analyze_loop_1): Remove.
10808 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
10809 inner loop when vectorizing an outer loop by splitting out from ...
10810 (vect_analyze_loop_form): ... here.
10811
10812 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10813
10814 PR c/65345
10815 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
10816 Use create_tmp_var_raw instead of create_tmp_var.
10817
10818 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
10819
10820 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
10821 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
10822 * real.c (CACHED_FRACTION): New helper macro.
10823 (dconst_third_ptr): Use it.
10824 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
10825 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
10826 dconst_sixth.
10827 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
10828
10829 2015-10-06 Jeff Law <law@redhat.com>
10830
10831 PR tree-optimization/67816
10832 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
10833 from remove_jump_threads_starting_at. Accept an edge rather than
10834 a basic block.
10835 * tree-ssa-threadupdate.c (removed_edges): New hash table.
10836 (remove_jump_threads_including): Note edges that get removed from
10837 the CFG for later pruning of jump threading paths including them.
10838 (thread_through_all_blocks): Remove paths which include edges that
10839 have been removed.
10840 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
10841 on each outgoing edges when optimizing away a control statement.
10842
10843 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10844
10845 * reorg.c (emit_delay_sequence): Store list of delay slot insns
10846 in a vector instead of rtx_insn_list.
10847 (add_to_delay_list): Likewise.
10848 (delete_from_delay_slot): Likewise.
10849 (optimize_skip): Likewise.
10850 (redirect_with_delay_list_safe_p): Likewise.
10851 (check_annul_list_true_false): Likewise.
10852 (steal_delay_list_from_target): Likewise.
10853 (steal_delay_list_from_fallthrough): Likewise.
10854 (redundant_insn): Likewise.
10855 (fill_simple_delay_slots): Likewise.
10856 (fill_slots_from_thread): Likewise.
10857 (fill_eager_delay_slots): Likewise.
10858 (relax_delay_slots): Likewise.
10859
10860 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
10861
10862 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
10863 For -mgpopt=local, also exclude unintialized common symbols.
10864 * doc/invoke.texi (Nios II Options): Document the change.
10865
10866 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10867
10868 * config/aarch64/iterators.md (vwcore): Add missing cases for
10869 V4HF/V8HF modes.
10870
10871 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10872 Sebastian Pop <s.pop@samsung.com>
10873
10874 * graphite-poly.c (new_scop): Initialize drs.
10875 * graphite-poly.h (struct dr_info): New.
10876 (struct scop): Add drs.
10877 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
10878 (pdr_add_memory_accesses): Same.
10879 (build_poly_dr): Same.
10880 (build_alias_set): Same.
10881 (build_scop_drs): Same.
10882 (build_pbb_drs): Remove.
10883 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
10884 * tree-data-ref.h (data_reference): Remove alias_set.
10885
10886 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10887 Sebastian Pop <s.pop@samsung.com>
10888
10889 * graphite-poly.c (free_data_refs_aux): Remove.
10890 (free_gimple_poly_bb): Do not call free_data_refs_aux.
10891 * graphite-poly.h (struct base_alias_pair): Remove.
10892 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
10893 base_alias_pair and dr->aux.
10894 (build_alias_set): Same.
10895 * tree-data-ref.c (create_data_ref): Initialize alias_set.
10896 * tree-data-ref.h (data_reference): Add alias_set.
10897
10898 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10899 Sebastian Pop <s.pop@samsung.com>
10900
10901 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
10902 Do not set PDR_BASE_OBJECT_SET.
10903 * graphite-poly.h (poly_dr): Same.
10904 (PDR_BASE_OBJECT_SET): Remove.
10905 (new_poly_dr): Update decl.
10906 * graphite-sese-to-poly.c (build_poly_dr): Update call to
10907 new_poly_dr.
10908 (write_alias_graph_to_ascii_dimacs): Remove.
10909 (write_alias_graph_to_ascii_dot): Remove.
10910 (write_alias_graph_to_ascii_ecc): Remove.
10911 (dr_same_base_object_p): Remove.
10912 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
10913 code.
10914 (build_base_obj_set_for_drs): Remove.
10915 (dump_alias_graphs): Remove.
10916 (build_scop_drs): Remove dead code.
10917
10918 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10919 Peter Bergner <bergner@vnet.ibm.com>
10920
10921 PR target/67808
10922 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
10923 allow registers, but provide insns for the combiner to create for
10924 loads from memory. Separate VSX code from non-VSX code. For
10925 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
10926 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
10927 so that registers come before memory operations. Drop support from
10928 converting DFmode to TFmode, if the DFmode value is in a GPR
10929 register.
10930 (extenddftf2_fprs): Likewise.
10931 (extenddftf2_internal): Likewise.
10932 (extenddftf2_vsx): Likewise.
10933 (extendsftf2): In the expander, only allow registers, but provide
10934 insns for the combiner to create for stores and loads.
10935
10936 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10937
10938 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
10939 from the decl parameter.
10940
10941 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
10942
10943 PR 67861
10944 * gimple-fold.c (gimple_fold_builtin): Add break after
10945 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10946
10947 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
10948
10949 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
10950 to scop->isl_context.
10951
10952 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10953
10954 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
10955 (output_probe_stack_range): Rotate the loop and simplify.
10956 (thumb1_expand_prologue): Tweak sorry message.
10957 * config/arm/arm.md (probe_stack): Use bare string.
10958
10959 2015-10-06 Nick Clifton <nickc@redhat.com>
10960
10961 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
10962
10963 2015-10-06 Nick Clifton <nickc@redhat.com>
10964
10965 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
10966 (ATTR_PERSIST): New constant.
10967 (msp430_data_attr): New function - verifies an attribute that only
10968 applies to variables.
10969 (msp430_attributes): Add noinit and persistent attributes.
10970 (noinit_section): New variable.
10971 (presis_section): New variable.
10972 (TARGET_ASM_INIT_SECTIONS): Define.
10973 (msp430_init_sections): New function - initialises the noinit and
10974 persist section variables.
10975 (msp430_select_section): Add support for noinit and persist
10976 attributes.
10977 (msp430_section_type_flags): Likewise.
10978 * doc/extend.texi: Document the reent, critical, wakeup, noinit
10979 and persistent attributes.
10980
10981 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
10982 Sebastian Pop <s.pop@samsung.com>
10983
10984 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
10985 (no_violations): Remove.
10986 (subtract_commutative_associative_deps): Remove.
10987 (compute_deps): Do not call subtract_commutative_associative_deps.
10988 (transform_is_safe): Remove.
10989 (graphite_legal_transform): Remove.
10990 * graphite-poly.h (graphite_legal_transform): Remove.
10991
10992 2015-10-05 Aditya Kumar <hiraditya@msn.com>
10993
10994 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
10995 which are in this region are passed so gcc_assert and remove redundant
10996 computation.
10997 * sese.c (sese_build_liveouts): Pass only those bbs which are not
10998 in region.
10999 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11000 gcc_assert on that and remove unnecessary computation.
11001 (sese_build_liveouts_use): Same.
11002
11003 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11004
11005 * graphite-dependences.c (scop_get_reads): Renamed scop->context
11006 to scop->param_context.
11007 (scop_get_must_writes): Same.
11008 (scop_get_may_writes): Same.
11009 (scop_get_original_schedule): Same.
11010 (scop_get_transformed_schedule): Same.
11011 (subtract_commutative_associative_deps): Same.
11012 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11013 (generate_isl_context): Same.
11014 (generate_isl_schedule): Same.
11015 (scop_to_isl_ast): Same.
11016 (graphite_regenerate_ast_isl): Same.
11017 * graphite-optimize-isl.c (scop_get_domains): Same.
11018 (optimize_isl): Renamed scop->context to scop->param_context.
11019 * graphite-poly.c (new_poly_bb): Change the type of argument to
11020 gimple_poly_bb_p.
11021 (new_scop): Renamed scop->context to scop->param_context.
11022 (free_scop): Same.
11023 (print_scop_context): Same.
11024 * graphite-poly.h (new_poly_dr): Change the type of argument from
11025 void* to data_reference_p.
11026 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11027 (new_poly_bb): Change the type of argument from void* to
11028 gimple_poly_bb_p.
11029 (pbb_set_black_box): Same.
11030 (struct scop): Rename context to param_context, ctx to isl_context.
11031 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11032 Move declarations closer to assignment.
11033 (find_params_in_bb): Same.
11034 (find_scop_parameters): Same.
11035 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11036 Global to be used for statement IDs.
11037 (isl_id_for_pbb): Use ssa_name_version_typesize.
11038 (simple_copy_phi_p): Move declarations closer to assignment.
11039 (build_pbb_scattering_polyhedrons): Same.
11040 (build_scop_scattering): Same.
11041 (isl_id_for_ssa_name): Same.
11042 (extract_affine_name): Same.
11043 (extract_affine_int): Same.
11044 (extract_affine): Same.
11045 (set_scop_parameter_dim): Use renamed member.
11046 (build_loop_iteration_domains): Same.
11047 (add_param_constraints): Same.
11048 (build_scop_iteration_domain): Same.
11049 (pdr_add_data_dimensions): Same.
11050 (build_poly_dr): Same.
11051 (build_scop_drs): Move declarations closer to assignment.
11052 (analyze_drs_in_stmts): Same.
11053 (insert_out_of_ssa_copy): Same.
11054 (insert_out_of_ssa_copy_on_edge): Same.
11055 (propagate_expr_outside_region): Same.
11056 (rewrite_phi_out_of_ssa): Same.
11057 (rewrite_degenerate_phi): Same.
11058 (rewrite_reductions_out_of_ssa): Same.
11059 (rewrite_cross_bb_scalar_dependence): Same.
11060 (handle_scalar_deps_crossing_scop_limits): Same.
11061 (rewrite_cross_bb_scalar_deps): Same.
11062 * graphite.c (graphite_transform_loops): Use renamed member.
11063
11064 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
11065
11066 PR c/65345
11067 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11068 create_tmp_var_raw instead of create_tmp_var.
11069
11070 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11071
11072 PR c/65345
11073 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11074 Use create_tmp_var_raw instead of create_tmp_var.
11075
11076 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
11077
11078 PR target/67849
11079 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11080 split for upper-bank registers when target does not support
11081 AVX512VL.
11082 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11083 split when target does not support AVX512VL.
11084
11085 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
11086
11087 PR c/65345
11088 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11089 Adjust to use create_tmp_var_raw instead of create_tmp_var.
11090
11091 2015-10-06 Nick Clifton <nickc@redhat.com>
11092
11093 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11094 multiplication.
11095
11096 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11097
11098 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11099 (case ${target}): Add znver1.
11100 * config/i386/cpuid.h(bit_CLZERO): Define.
11101 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11102 -march=native recognize znver1 processors.
11103 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11104 znver1, clzero def_and_undef.
11105 * config/i386/i386.c (struct processor_costs znver1_cost): New.
11106 (m_znver1): New definition.
11107 (m_AMD_MULTIPLE): Includes m_znver1.
11108 (processor_target_table): Add znver1 entry.
11109 (ix86_target_string) : Add clzero entry.
11110 (static const char *const cpu_names): Add znver1 entry.
11111 (ix86_option_override_internal): Add znver1 instruction sets.
11112 (PTA_CLZERO) : New definition.
11113 (ix86_option_override_internal): Handle new clzerooption.
11114 (ix86_issue_rate): Add znver1.
11115 (ix86_adjust_cost): Add znver1.
11116 (ia32_multipass_dfa_lookahead): Add znver1.
11117 (has_dispatch): Add znver1.
11118 * config/i386/i386.h (TARGET_znver1): New definition.
11119 (TARGET_CLZERO): Define.
11120 (TARGET_CLZERO_P): Define.
11121 (struct ix86_size_cost): Add TARGET_ZNVER1.
11122 (enum processor_type): Add PROCESSOR_znver1.
11123 * config/i386/i386.md (define_attr "cpu"): Add znver1.
11124 (set_attr znver1_decode): New definitions for znver1.
11125 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11126 (mclzero): New.
11127 * config/i386/mmx.md (set_attr znver1_decode): New definitions
11128 for znver1.
11129 * config/i386/sse.md (set_attr znver1_decode): Likewise.
11130 * config/i386/x86-tune.def: Add znver1 tunings.
11131 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11132 * doc/invoke.texi: Add details about znver1
11133
11134 2015-10-06 Richard Biener <rguenther@suse.de>
11135
11136 PR tree-optimization/67859
11137 * tree-ssa-pre.c (create_expression_by_pieces): Properly
11138 discard not inserted stmts.
11139
11140 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
11141
11142 * doc/extend.texi (Template Instantiation): Reorder options and
11143 de-emphasize -frepo.
11144 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11145 example instead of -frepo.
11146
11147 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11148
11149 PR c/65345
11150 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11151 use create_tmp_var_raw rather than create_tmp_var.
11152
11153 2015-10-06 Richard Biener <rguenther@suse.de>
11154
11155 * tree-vectorizer.h (vec_info): New base class for...
11156 (_loop_vec_info): ... this and ...
11157 (_bb_vec_info): ... this.
11158 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11159 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11160 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11161 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11162 vect_destroy_datarefs): Adjust interface to take a vec_info *
11163 rather than both a loop_vec_info and a bb_vec_info argument.
11164 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11165 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11166 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11167 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11168 accordingly.
11169 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11170 (destroy_loop_vec_info, vect_analyze_loop_2,
11171 vect_is_simple_reduction_1, get_initial_def_for_induction,
11172 vect_create_epilog_for_reduction, vectorizable_reduction,
11173 vectorizable_live_operation, vect_transform_loop): Adjust.
11174 * tree-vect-patterns.c (type_conversion_p,
11175 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11176 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11177 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11178 check_bool_pattern, vect_recog_bool_pattern,
11179 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11180 * tree-vect-slp.c (vect_get_and_check_slp_defs,
11181 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11182 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11183 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11184 (new_bb_vec_info): Initialize base classs.
11185 * tree-vect-stmts.c (record_stmt_cost, process_use,
11186 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11187 vectorizable_mask_load_store, vectorizable_call,
11188 vectorizable_simd_clone_call, vectorizable_conversion,
11189 vectorizable_assignment, vectorizable_shift,
11190 vectorizable_operation, vectorizable_store,
11191 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11192 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11193 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11194
11195 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
11196
11197 PR c/65345
11198 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11199 create_tmp_var_raw rather than create_tmp_var.
11200
11201 2015-10-05 Marek Polacek <polacek@redhat.com>
11202
11203 * tree-ssa-loop-im.c
11204 (move_computations_dom_walker::before_dom_children): Don't set
11205 SSA_NAME_ANTI_RANGE_P.
11206 * tree-ssa-phiopt.c (value_replacement): Likewise.
11207
11208 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11209 Sebastian Pop <s.pop@samsung.com>
11210
11211 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11212
11213 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11214 Sebastian Pop <s.pop@samsung.com>
11215
11216 * graphite-poly.c (new_gimple_poly_bb): ... here.
11217 (free_data_refs_aux): ... here.
11218 (free_gimple_poly_bb): ... here.
11219 (remove_gbbs_in_scop): ... here.
11220 (new_scop): Call new_sese.
11221 (free_scop): Call remove_gbbs_in_scop and free_sese.
11222 * graphite-poly.h (base_alias_pair): ... here.
11223 (new_gimple_poly_bb): Declare.
11224 (free_gimple_poly_bb): Declare.
11225 * graphite-scop-detection.c (parameter_index_in_region_1):
11226 (parameter_index_in_region): ... here.
11227 (scan_tree_for_params): ... here.
11228 (find_params_in_bb): ... here.
11229 (find_scop_parameters): ... here.
11230 (build_scops): Call find_scop_parameters.
11231 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11232 (free_scops): Move...
11233 (single_pred_cond_non_loop_exit): Move...
11234 (sese_dom_walker::before_dom_children): Move...
11235 (sese_dom_walker::after_dom_children): Move...
11236 (build_poly_scop): Move...
11237 * graphite-sese-to-poly.h (base_alias_pair): Move...
11238 * graphite.c (free_scops): ... here.
11239
11240 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11241 Sebastian Pop <s.pop@samsung.com>
11242
11243 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11244 (trivially_empty_bb_p): Move...
11245 (same_close_phi_node): Move...
11246 (new_gimple_poly_bb): Move...
11247 (compare_bb_depths): Move...
11248 (graphite_sort_dominated_info): Move...
11249 (remove_duplicate_close_phi): Move...
11250 (make_close_phi_nodes_unique): Move...
11251 (canonicalize_loop_closed_ssa): Move...
11252 (canonicalize_loop_closed_ssa_form): Move...
11253 (loop_ivs_can_be_represented): Move...
11254 (single_pred_cond_non_loop_exit): Move...
11255 (graphite_can_represent_init): Move...
11256 (graphite_can_represent_scev): Move...
11257 (stmt_has_simple_data_refs_p): Move...
11258 (stmt_has_side_effects): Move...
11259 (graphite_can_represent_stmt): Move...
11260 (scop_detection): ... here.
11261 (sese_dom_walker): ... and here.
11262 (build_scops): Call all moved functions.
11263 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11264 (all_non_dominated_preds_marked_p): Move...
11265 (build_scop_bbs_1): Move...
11266 (build_scop_bbs): Move...
11267 (set_scop_parameter_dim): Move...
11268 (nb_pbbs_in_loops): Move...
11269 (build_poly_scop): Do not call all the moved functions.
11270
11271 2015-10-05 Martin Jambor <mjambor@suse.cz>
11272 Jan Hubicka <hubicka@ucw.cz>
11273
11274 * ipa-cp.c (ipcp_alignment_lattice): New type.
11275 (ipcp_param_lattices): Use the above to represent alignment.
11276 (ipcp_alignment_lattice::print): New function.
11277 (print_all_lattices): Use it to print alignment information.
11278 (ipcp_alignment_lattice::top_p): New function.
11279 (ipcp_alignment_lattice::bottom_p): Likewise.
11280 (ipcp_alignment_lattice::set_to_bottom): Likewise.
11281 (ipcp_alignment_lattice::meet_with_1): Likewise.
11282 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11283 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11284 (initialize_node_lattices): Likewise.
11285 (propagate_alignment_accross_jump_function): Work with the new class
11286 for alignment lattices.
11287 (propagate_constants_accross_call): Pass only the alignment lattice to
11288 propagate_alignment_accross_jump_function.
11289 (ipcp_store_alignment_results): Work with the new class for alignment
11290 lattices.
11291
11292 2015-10-05 Marek Polacek <polacek@redhat.com>
11293
11294 PR tree-optimization/67821
11295 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11296
11297 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
11298
11299 PR other/65021
11300 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11301 function to...
11302 (mkoffload_cleanup): ... this. Adjust all users.
11303 (maybe_unlink): Look at save_temps and verbose flags instead of
11304 debug flag.
11305 (main): Parse "-save-temps" flag.
11306 (generate_target_descr_file, generate_target_offloadend_file)
11307 (generate_host_descr_file, prepare_target_image): Pass it on.
11308 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11309 (mkoffload_cleanup): New function.
11310 (maybe_unlink): Look at save_temps and verbose flags instead of
11311 debug flag.
11312 (main): Instead of calling utils_cleanup, register atexit handler
11313 for mkoffload_cleanup.
11314 (main): Parse "-save-temps" flag.
11315 (compile_native, main): Pass it on.
11316 * lto-wrapper.c (compile_offload_image): Likewise.
11317
11318 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11319
11320 * gimple.h (gimple_op_ptr): Require a non const gimple *.
11321 (gimple_assign_lhs_ptr): Likewise.
11322 (gimple_assign_rhs1_ptr): Likewise.
11323 (gimple_assign_rhs2_ptr): Likewise.
11324 (gimple_assign_rhs3_ptr): Likewise.
11325 (gimple_call_lhs_ptr): Likewise.
11326 (gimple_call_fn_ptr): Likewise.
11327 (gimple_call_chain_ptr): Likewise.
11328 (gimple_call_arg_ptr): Likewise.
11329 (gimple_cond_lhs_ptr): Likewise.
11330 (gimple_cond_rhs_ptr): Likewise.
11331 (gimple_switch_index_ptr): Likewise.
11332 (gimple_return_retval_ptr): Likewise.
11333
11334 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11335
11336 * gimple.h (gimple_asm_input_op_ptr): Remove.
11337 (gimple_asm_output_op_ptr): Likewise.
11338
11339 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11340
11341 * gimple.h (gimple_location_ptr): Remove.
11342 * tree-vrp.c (check_all_array_refs): Adjust.
11343
11344 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11345
11346 * tree-ssa-operands.c (build_uses): store tree * instead of
11347 tree.
11348 (finalize_ssa_uses): Adjust.
11349 (append_use): Likewise.
11350 (verify_ssa_operands): Likewise.
11351
11352 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11353
11354 * real.h (build_real_truncate): Declare.
11355 * tree.c (build_real_truncate): New function.
11356 (strip_float_extensions): Use it.
11357 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11358 (fold_builtin_hypot, fold_builtin_pow): Likewise.
11359 * match.pd: Likewise.
11360
11361 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11362 Jiong Wang <jiong.wang@arm.com>
11363
11364 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11365
11366 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11367
11368 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11369 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11370 (aarch64_print_operand, aarch64_float_const_representable_p)
11371 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11372 instead of REAL_VALUE_FROM_CONST_DOUBLE.
11373 * config/arc/arc.c (arc_print_operand): Likewise.
11374 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11375 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11376 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11377 Likewise.
11378 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11379 (consttable_16): Likewise.
11380 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11381 * config/avr/avr.c (avr_print_operand): Likewise.
11382 * config/bfin/bfin.md: Likewise (in a define_split).
11383 * config/c6x/c6x.md: Likewise (in a define_split).
11384 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11385 (cr16_print_operand): Likewise.
11386 * config/cris/cris.c (cris_print_operand): Likewise.
11387 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11388 * config/fr30/fr30.c (fr30_print_operand): Likewise.
11389 (fr30_const_double_is_zero): Likewise.
11390 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11391 * config/frv/frv.md: Likewise (in a define_split).
11392 * config/frv/predicates.md (int_2word_operand): Likewise.
11393 * config/h8300/h8300.c (h8300_print_operand): Likewise.
11394 * config/i386/i386.c (standard_80387_constant_p): Likewise.
11395 (ix86_print_operand, ix86_split_to_parts): Likewise.
11396 * config/i386/i386.md: Likewise (in a define_split).
11397 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
11398 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
11399 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
11400 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
11401 (print_operand): Likewise.
11402 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
11403 * config/mep/mep.md: Likewise (in define_split).
11404 * config/microblaze/microblaze.c (microblaze_const_double_ok)
11405 (print_operand): Likewise.
11406 * config/mips/mips.md (consttable_float): Likewise.
11407 * config/mmix/mmix.c (mmix_intval): Likewise.
11408 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
11409 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
11410 * config/pa/pa.c (pa_singlemove_string): Likewise.
11411 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
11412 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
11413 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
11414 (output_toc): Likewise.
11415 * config/rs6000/rs6000.md: Likewise (in define_splits).
11416 * config/rx/rx.c (rx_print_operand): Likewise.
11417 * config/s390/s390.c (s390_output_pool_entry): Likewise.
11418 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11419 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
11420 (and also in define_splits).
11421 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
11422 (fp_high_losum_p): Likewise.
11423 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
11424 (*movsf_high): Likewise.
11425 * config/spu/spu.c (const_double_to_hwint): Likewise.
11426 * config/v850/v850.c (const_double_split): Likewise.
11427 * config/vax/vax.c (vax_float_literal): Likewise.
11428 * config/visium/visium.c (visium_expand_copysign): Likewise.
11429 * config/visium/visium.md: Likewise (in define_split).
11430 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11431 * config/xtensa/xtensa.c (print_operand): Likewise.
11432 (xtensa_output_literal): Likewise.
11433 * cprop.c (implicit_set_cond_p): Likewise.
11434 * dwarf2out.c (insert_float): Likewise.
11435 * expmed.c (expand_mult, make_tree): Likewise.
11436 * expr.c (compress_float_constant): Likewise.
11437 * rtlanal.c (split_double): Likewise.
11438 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11439 (simplify_const_unary_operation, simplify_binary_operation_1)
11440 (simplify_const_binary_operation): Likewise.
11441 (simplify_const_relational_operation): Likewise.
11442 * varasm.c (output_constant_pool_2): Likewise.
11443
11444 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11445
11446 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
11447 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11448 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
11449 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
11450 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11451 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
11452 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
11453 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
11454 (ix86_emit_swsqrtsf): Likewise.
11455 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
11456 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
11457 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11458 * config/pa/pa.c (pa_expand_builtin): Likewise.
11459 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
11460 (rs6000_scale_v2df): Likewise.
11461 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
11462 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
11463 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
11464 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
11465 (vec_ctul): Likewise.
11466 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
11467 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
11468 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
11469 * cse.c (fold_rtx): Likewise.
11470 * emit-rtl.c (immed_double_const): Likewise (in comments).
11471 (init_emit_once): Likewise.
11472 * expr.c (compress_float_constant, expand_expr_real_1)
11473 (const_vector_from_tree): Likewise.
11474 * optabs.c (expand_float, expand_fix): Likewise.
11475 * reg-stack.c (reg_to_stack): Likewise.
11476 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11477 (simplify_const_unary_operation, simplify_binary_operation_1)
11478 (simplify_const_binary_operation, simplify_relational_operation)
11479 (simplify_immed_subreg): Likewise.
11480
11481 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11482
11483 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
11484 * doc/tm.texi: Regenerate.
11485 * real.h (REAL_ARITHMETIC): Delete.
11486 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
11487 (ix86_expand_round_sse4): Use real_arithmetic instead of
11488 REAL_ARITHMETIC.
11489 * config/i386/sse.md (round<mode>2): Likewise.
11490 * rtl.h (rtx_to_tree_code): Likewise (in comment).
11491 * explow.c (rtx_to_tree_code): Likewise (in comment).
11492 * match.pd: Likewise.
11493 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11494 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11495 (expand_pow_as_sqrts): Likewise.
11496 * tree-pretty-print.c (dump_generic_node): Remove code that
11497 was conditional on REAL_ARITHMETIC being undefined.
11498
11499 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11500
11501 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
11502 * doc/tm.texi: Regenerate.
11503 * real.h (real_less): Declare.
11504 (REAL_VALUES_LESS): Delete.
11505 * real.c (real_less): New function.
11506 (real_compare): Use it.
11507 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
11508 of REAL_VALUES_LESS.
11509 * config/microblaze/microblaze.c (microblaze_const_double_ok):
11510 Likewise.
11511 * fold-const.c (fold_convert_const_int_from_real): Likewise.
11512 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11513 (simplify_const_relational_operation): Likewise.
11514 * tree-call-cdce.c (check_pow): Likewise.
11515 (gen_conditions_for_pow_cst_base): Likewise.
11516
11517 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11518
11519 * real.h (REAL_VALUES_IDENTICAL): Delete.
11520 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
11521 instead of REAL_VALUES_IDENTICAL.
11522 * fold-const.c (operand_equal_p): Likewise.
11523 * ipa-icf.c (sem_variable::equals): Likewise.
11524 * tree-complex.c (some_nonzerop): Likewise.
11525 (expand_complex_multiplication): Likewise.
11526 * tree.c (simple_cst_equal): Likewise.
11527 * varasm.c (compare_constant): Likewise.
11528
11529 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11530
11531 * real.h (real_equal): Declare.
11532 (REAL_VALUES_EQUAL): Delete.
11533 * real.c (real_equal): New function.
11534 (real_compare): Use it.
11535 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
11536 * doc/tm.texi: Regenerate.
11537 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
11538 real_equal instead of REAL_VALUES_EQUAL.
11539 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
11540 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
11541 (fp_const_from_val): Likewise.
11542 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
11543 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
11544 (floating_exact_log2): Likewise.
11545 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11546 * config/vax/vax.c (vax_float_literal): Likewise.
11547 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11548 * cprop.c (implicit_set_cond_p): Likewise.
11549 * expmed.c (expand_mult): Likewise.
11550 * fold-const.c (const_binop): Likewise.
11551 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11552 (simplify_const_binary_operation): Likewise.
11553 (simplify_const_relational_operation): Likewise.
11554 * tree-call-cdce.c (check_pow): Likewise.
11555 (gen_conditions_for_pow_cst_base): Likewise.
11556 * tree-inline.c (estimate_num_insns): Likewise.
11557 * tree-ssa-dom.c (record_equality): Likewise.
11558 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11559 (gimple_expand_builtin_pow): Likewise.
11560 (pass_optimize_widening_mul::execute): Likewise.
11561 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
11562 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
11563 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
11564
11565 2015-10-05 Richard Biener <rguenther@suse.de>
11566
11567 PR ipa/67783
11568 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
11569 consider loop header PHI defs as IVs.
11570
11571 2015-10-05 Richard Biener <rguenther@suse.de>
11572
11573 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
11574 call handling ...
11575 (create_expression_by_pieces): ... here and build GIMPLE
11576 calls directly. Use gimple_build API and avoid force_gimple_operand.
11577 (insert_into_preds_of_block): Simplify.
11578 (do_regular_insertion): Add comment.
11579
11580 2015-10-04 Jason Merrill <jason@redhat.com>
11581
11582 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
11583
11584 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
11585
11586 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
11587 check for general register.
11588 (ix86_emit_save_regs): Ditto.
11589 (ix86_emit_save_regs_using_mov): Ditto.
11590 (ix86_emit_restore_regs_using_pop): Ditto.
11591 (ix86_emit_restore_regs_using_mov): Ditto.
11592
11593 2015-10-03 Marek Polacek <polacek@redhat.com>
11594
11595 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
11596 (insn-dfatab.o): Likewise.
11597
11598 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
11599
11600 * config.gcc (xtensa*-*-uclinux*): New configuration.
11601 * config/xtensa/uclinux.h: New file.
11602 * config/xtensa/uclinux.opt: New file.
11603
11604 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
11605
11606 * doc/cpp.texi (Standard Predefined Macros): Document value of
11607 __cplusplus for C++14.
11608
11609 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
11610
11611 * gcc.c (process_command): Use spec_machine rather than
11612 spec_host_machine to build tooldir_prefix2.
11613
11614 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11615 Bernd Schmidt <bernds@codesourcery.com>
11616
11617 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
11618 (Token, Stmt): Remove structs.
11619 (decls, vars, fns): Remove variables.
11620 (alloc_comment, append_stmt, is_keyword): Remove macros.
11621 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
11622 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
11623 (parse_init, parse_file): Remove functions.
11624 (read_file): Accept a pointer to a length and store into it.
11625 (process): Don't try to parse the input file, just write it out as
11626 a string, but looking for maps. Also write out the length.
11627 (main): Don't use "-S" to compile PTX code.
11628
11629 2015-10-02 Jeff Law <law@redhat.com>
11630
11631 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
11632 fixups.
11633
11634 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11635
11636 PR target/67822
11637 * config/nvptx/mkoffload.c (main): Scan the argument vector for
11638 -fopenmp, and skip generating an offloading image if specified.
11639
11640 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
11641
11642 * system.h (ROUND_UP): New macro definition.
11643 (ROUND_DOWN): Ditto.
11644 * ggc-page.c (ROUND_UP): Remove local macro definition.
11645 (PAGE_ALIGN): Implement using ROUND_UP macro.
11646
11647 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
11648 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
11649 to align values.
11650 (ix86_compute_frame_layout): Ditto.
11651 (ix86_expand_prologue): Ditto.
11652 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
11653 to round down values.
11654 (expand_set_or_movmem_via_rep): Ditto.
11655
11656 2015-10-02 Marek Polacek <polacek@redhat.com>
11657
11658 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
11659
11660 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
11661
11662 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
11663 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
11664 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
11665 (free_gimple_bb): Renamed free_gimple_poly_bb.
11666 (try_generate_gimple_bb): Hoist loop invariant code.
11667 (analyze_drs_in_stmts): Same.
11668 (build_scop_drs): Call renamed functions.
11669 (new_pbb_from_pbb): Same.
11670 (scop_ivs_can_be_represented): Delete as functionality now moved to
11671 graphite-scop-detection.c
11672 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
11673
11674 2015-10-02 Aditya Kumar <hiraditya@msn.com>
11675
11676 * graphite-scop-detection.c (stmt_has_side_effects): New function
11677 outlined from stmt_simple_for_scop_p.
11678 (graphite_can_represent_stmt): Same.
11679 (stmt_simple_for_scop_p): Moved code out of this function for better
11680 readability.
11681
11682 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11683
11684 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
11685 F_AVX512IFMA.
11686 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
11687
11688 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11689
11690 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
11691
11692 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
11693
11694 PR rtl-optimization/67756
11695 * lra-constraints.c (match_reload): Add a new parameter. Use it
11696 for creating a pseudo with the same value.
11697 (curr_insn_transform): Pass a new argument to match_reload.
11698
11699 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11700
11701 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
11702 (expand_vec_perm_even_odd_1): Handle V64QImode.
11703 (ix86_expand_vec_perm_const_1): Try expansion with
11704 expand_vec_perm_even_odd_trunc as well.
11705 * config/i386/sse.md (VI124_AVX512F): Rename to ...
11706 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
11707 to V54QI.
11708 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
11709 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
11710 to V32HI and V16SI.
11711 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
11712 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
11713 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
11714 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
11715 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
11716 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
11717
11718 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11719
11720 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
11721 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
11722
11723 2015-10-02 Jason Merrill <jason@redhat.com>
11724
11725 PR c/59218
11726 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
11727 (diagnose_tm_1_op): Also diagnose volatile accesses in
11728 transaction_safe function.
11729
11730 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
11731
11732 * system.h (malloc.h): Don't include obsolete header.
11733
11734 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11735
11736 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
11737 (TLS_SECTION_ASM_FLAG): Delete.
11738
11739 2015-10-02 Marek Polacek <polacek@redhat.com>
11740
11741 PR c/64249
11742 * doc/invoke.texi: Document -Wduplicated-cond.
11743 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
11744 (insn-dfatab.o): Likewise.
11745 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
11746 warning.
11747
11748 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
11749
11750 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
11751 sequences.
11752
11753 2015-10-02 Renlin Li <renlin.li@arm.com>
11754
11755 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
11756
11757 2015-10-02 Renlin Li <renlin.li@arm.com>
11758
11759 PR target/66776
11760 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
11761
11762 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11763
11764 PR rtl-optimization/67786
11765 PR rtl-optimization/67787
11766 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
11767 it modifies a reg used in the condition calculation.
11768
11769 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
11770
11771 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11772 alternatives for reads from memory and moves from general-purpose
11773 registers.
11774 (*aarch64_combinez_be<mode>): Likewise.
11775
11776 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
11777
11778 PR target/51726
11779 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
11780 selectany within this function without need to keep attribute.
11781 (i386_pe_encode_section_info): Remove selectany-code.
11782
11783 2015-10-02 Richard Biener <rguenther@suse.de>
11784
11785 * tree-ssa-sccvn.c (has_VN_INFO): New function.
11786 (free_scc_vn): Use it.
11787 (visit_use): Remove dead code and refactor to use gassign
11788 and use less indentation.
11789
11790 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11791
11792 PR target/67788
11793 PR target/67789
11794 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
11795 (rs6000_cannot_copy_insn_p): New function.
11796 * config/rs6000/rs6000.md (cannot_copy): New attribute.
11797 (load_toc_v4_PIC_1_normal): Set cannot_copy.
11798 (load_toc_v4_PIC_1_476): Ditto.
11799
11800 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11801
11802 * graphite-scop-detection.c (struct sese_l): New conversion constructor
11803 so that this type can be pushed into a vec.
11804 (class scop_builder): use sese_l to collect scops.
11805 (get_scops): New getter function.
11806 (remove_intersecting_scops): Use sese_l instead of scops_p.
11807 (intersects): Same.
11808 (add_scop): Same.
11809 (subsumes): Same.
11810 (remove_subscops): Same.
11811 (build_scops): Add scops to vec<scops_p> once all the scops have been
11812 detected.
11813
11814 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11815
11816 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11817 Renamed type from gimple_bb_p to gimple_poly_bb_p.
11818 (translate_isl_ast_node_user): Same.
11819 * graphite-poly.c (new_poly_bb): Same.
11820 * graphite-poly.h (gbb_from_bb): Same.
11821 * sese.h: Same.
11822 * graphite-sese-to-poly.c (new_gimple_bb):
11823 gimple_bb_p -> gimple_poly_bb_p
11824 (build_scop_scattering): Same.
11825 (find_params_in_bb): Same.
11826 (add_conditions_to_domain): Same.
11827 (sese_dom_walker::before_dom_children): Same.
11828 (analyze_drs_in_stmts): Same.
11829 (new_pbb_from_pbb): Same.
11830 (free_data_refs_aux): New pointer to type base_alias_pair.
11831 * graphite-sese-to-poly.h: Same.
11832 * sese.c (if_region_set_false_region): Fixed Indentation.
11833 (move_sese_in_condition): Same.
11834
11835 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11836 Aditya Kumar <aditya.k7@samsung.com>
11837
11838 PR tree-optimization/66980
11839 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
11840 when data reference analysis has failed.
11841
11842 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11843 Aditya Kumar <aditya.k7@samsung.com>
11844
11845 PR tree-optimization/67754
11846 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
11847 scev analysis on the same loop nest as analyze_drs_in_stmts.
11848 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
11849 renamed...
11850 (try_generate_gimple_bb): Call outermost_loop_in_sese.
11851 (analyze_drs_in_stmts): Same.
11852 * sese.c (outermost_loop_in_sese): ...here.
11853
11854 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11855 Aditya Kumar <aditya.k7@samsung.com>
11856
11857 PR tree-optimization/67754
11858 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
11859 recursion on the inner loops.
11860
11861 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11862
11863 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
11864 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
11865 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
11866 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
11867 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
11868
11869 2015-10-01 Marek Polacek <polacek@redhat.com>
11870
11871 PR c/65345
11872 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
11873 create_tmp_var_raw rather than create_tmp_var.
11874
11875 2015-10-01 Marek Polacek <polacek@redhat.com>
11876
11877 PR tree-optimization/67769
11878 * tree-ssa-phiopt.c (conditional_replacement): Call
11879 reset_flow_sensitive_info_in_bb.
11880 (minmax_replacement): Likewise.
11881 (abs_replacement): Likewise.
11882
11883 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
11884
11885 * builtins.c: Don't include gomp-constants.h.
11886 (fold_builtin_1): Don't fold acc_on_device here.
11887 * gimple-fold.c: Include gomp-constants.h.
11888 (gimple_fold_builtin_acc_on_device): New.
11889 (gimple_fold_builtin): Call it.
11890
11891 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
11892
11893 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
11894 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
11895
11896 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
11897
11898 * config/arm/aarch-common-protos.h
11899 (aarch_accumulator_forwarding): New.
11900 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11901 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
11902 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11903 * config/arm/cortex-a53.md: Rewrite.
11904
11905 2015-10-01 Richard Biener <rguenther@suse.de>
11906
11907 * gimple-match.h (mprts_hook): Declare.
11908 * gimple-match.head.c (mprts_hook): Define.
11909 (maybe_push_res_to_seq): Use new hook.
11910 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11911 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
11912 (vn_ssa_aux::has_constants): Remove.
11913 * tree-ssa-sccvn.c: Include gimple-match.h.
11914 (VN_INFO_GET): Assert we don't re-use SSA names.
11915 (vn_get_expr_for): Remove.
11916 (expr_has_constants): Likewise.
11917 (stmt_has_constants): Likewise.
11918 (simplify_binary_expression): Likewise.
11919 (simplify_unary_expression): Likewise.
11920 (vn_lookup_simplify_result): New hook.
11921 (visit_copy): Adjust.
11922 (visit_reference_op_call): Likewise.
11923 (visit_phi): Likewise.
11924 (visit_use): Likewise.
11925 (process_scc): Likewise.
11926 (init_scc_vn): Likewise.
11927 (visit_reference_op_load): Likewise. Use match-and-simplify and
11928 a gimple seq for inserted expressions.
11929 (try_to_simplify): Remove GENERIC stmt combining code.
11930 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
11931 * tree-ssa-pre.c (eliminate_insert): Adjust.
11932 (eliminate_dom_walker::before_dom_children): Likewise.
11933
11934 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11935
11936 * doc/invoke.texi (Optimization Options): Add
11937 -freorder-blocks-algorithm=.
11938 (Optimize Options) <-O>: Add -freorder-blocks.
11939 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
11940 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
11941 <-freorder-blocks>: Also enabled at levels -O and -Os.
11942 <-freorder-blocks-algorithm=>: Document new option.
11943
11944 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11945
11946 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
11947 with flag_reorder_blocks_algorithm.
11948 * common.opt (freorder-blocks-algorithm=): New flag.
11949 (reorder_blocks_algorithm): New enum.
11950 * flag-types.h (reorder_blocks_algorithm): New enum.
11951 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
11952 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
11953
11954 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11955
11956 * bb-reorder.c: Add intro comment.
11957 (reorder_basic_blocks_software_trace_cache): Print a header to
11958 the dump file.
11959 (edge_order): New function.
11960 (reorder_basic_blocks_simple): New function.
11961 (reorder_basic_blocks): Choose between the STC and the simple
11962 algorithms (always choose the former).
11963
11964 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11965
11966 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
11967 function, factored out from ...
11968 (reorder_basic_blocks): ... here.
11969
11970 2015-10-01 Tom de Vries <tom@codesourcery.com>
11971
11972 * tree-cfg.c (dump_function_to_file): Dump function attributes using
11973 __attribute__(()) string. Move dumping of function attributes to before
11974 function name.
11975
11976 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
11977
11978 PR target/66870
11979 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11980 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
11981 based on gold linker version.
11982 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
11983 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
11984 * configure, config.in: Regenerate.
11985
11986 2015-10-01 Alan Modra <amodra@gmail.com>
11987
11988 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
11989 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
11990 (rs6000_output_mi_thunk): Likewise.
11991
11992 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
11993
11994 * config/nvptx/mkoffload.c (process): Change offload data format.
11995
11996 2015-09-30 Jeff Law <law@redhat.com>
11997
11998 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
11999 with constant conditions.
12000 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12001 (remove_ctrl_stmt_and_useless_edges): No longer static.
12002 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12003 (remove_ctrl_stmt_and_useless_edges): Likewise.
12004
12005 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12006 Cesar Philippidis <cesar@codesourcery.com>
12007
12008 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12009 (TARGET_GOACC_VALIDATE_DIMS): Override.
12010 * target.def (TARGET_GOACC): New target hook prefix.
12011 (validate_dims): New hook.
12012 * targhooks.h (default_goacc_validate_dims): New.
12013 * omp-low.c (oacc_validate_dims): New.
12014 (execute_oacc_device_lower): New.
12015 (default_goacc_validate_dims): New.
12016 (pass_data_oacc_device_lower): New.
12017 (pass_oacc_device_lower): New pass.
12018 (make_pass_oacc_device_lower): New.
12019 * tree-pass.h (make_pass_oacc_device_lower): Declare.
12020 * passes.def (pass_oacc_device_lower): Add it.
12021 * doc/tm.texi: Rebuilt.
12022 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12023 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12024
12025 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12026
12027 PR rtl-optimization/67037
12028 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12029
12030 2015-09-30 Bernd Schmidt <bernds@redhat.com>
12031
12032 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12033 * passes.c: Include tree-ssanames.h.
12034 (execute_function_todo): Flush the pending free SSA_NAMEs after
12035 eliminating unreachable basic blocks.
12036 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12037 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12038 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12039 (flush_ssanames_freelist): New function.
12040 (release_ssaname_fn): Put released names on the queue.
12041 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12042 * tree-ssanames.h (flush_ssanames_freelist): Declare.
12043
12044 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12045
12046 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12047 (generate_target_descr_file, generate_target_offloadend_file)
12048 (generate_host_descr_file, prepare_target_image): Pass it on.
12049 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12050 (compile_native, main): Pass it on.
12051 * lto-wrapper.c (compile_offload_image): Likewise.
12052
12053 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12054 Ilya Verbin <ilya.verbin@intel.com>
12055 Andrey Turetskiy <andrey.turetskiy@intel.com>
12056
12057 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12058 (prepare_target_image, main): Refactor argv building to use
12059 obstacks.
12060
12061 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12062
12063 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12064 * config/spu/spu.c (spu_expand_atomic_op): New function.
12065 * config/spu/spu.md (AINT): New mode iterator.
12066 (ATOMIC): New code iterator.
12067 (atomic_name, atomic_pred): New code predicates.
12068 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12069 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12070 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12071 "atomic_<atomic_name>_fetch<mode>"): Likewise.
12072
12073 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
12074
12075 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12076 debug insns.
12077 (scalar_chain::convert_reg): Likewise.
12078
12079 2015-09-30 Richard Biener <rguenther@suse.de>
12080
12081 * builtins.c: Add comment that no new simplifications should
12082 be added here.
12083
12084 2015-09-30 Marek Polacek <polacek@redhat.com>
12085
12086 PR tree-optimization/67690
12087 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12088 reset_flow_sensitive_info_in_bb.
12089 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12090 * tree-ssanames.c: Include "gimple-iterator.h".
12091 (reset_flow_sensitive_info_in_bb): New function.
12092 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12093
12094 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12095
12096 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12097 variable, replacing it with...
12098 (offload_abi): ... this new variable. Adjust all users.
12099 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12100
12101 2015-09-30 Matthias Klose <doko@ubuntu.com>
12102
12103 * configure.ac: Remove extraneous ;;.
12104 * configure: Regenerate.
12105
12106 2015-09-29 James Bowman <james.bowman@ftdichip.com>
12107
12108 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12109 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12110 predicate, disallow register for operand 2.
12111
12112 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
12113
12114 * graphite-dependences.c (scop_get_dependences): Moved in down
12115 in order to be visible to its caller.
12116 * graphite-poly.h: Removed compute_deps, and extend_schedule.
12117
12118 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12119 Aditya Kumar <aditya.k7@samsung.com>
12120
12121 PR tree-optimization/67754
12122 * graphite-optimize-isl.c (optimize_isl): Call
12123 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12124
12125 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12126
12127 * builtins.c (expand_builtin_acc_on_device): Delete.
12128 (expand_builtin): Don't call it.
12129 (fold_builtin_1): Fold acc_on_device.
12130
12131 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
12132
12133 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12134 (ix86_nsaved_sseregs): Likewise.
12135
12136 2015-09-29 Jeff Law <law@redhat.com>
12137
12138 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12139 computation of unused value.
12140
12141 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12142 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12143 inline macro expansion.
12144
12145 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12146
12147 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12148 (gen_shl_sext): Likewise.
12149 * config/sh/sh.md (divsi3): Likewise.
12150 (imm->ext_dest_operand splitter): Likewise.
12151
12152 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12153 Aditya Kumar <aditya.k7@samsung.com>
12154
12155 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12156 (nb_data_writes_in_bb): Remove.
12157 (split_pbb): Remove.
12158 (split_reduction_stmt): Remove.
12159 (is_reduction_operation_p): Remove.
12160 (phi_contains_arg): Remove.
12161 (follow_ssa_with_commutative_ops): Remove.
12162 (detect_commutative_reduction_arg): Remove.
12163 (detect_commutative_reduction_assign): Remove.
12164 (follow_inital_value_to_phi): Remove.
12165 (edge_initial_value_for_loop_phi): Remove.
12166 (initial_value_for_loop_phi): Remove.
12167 (used_outside_reduction): Remove.
12168 (detect_commutative_reduction): Remove.
12169 (translate_scalar_reduction_to_array_for_stmt): Remove.
12170 (remove_phi): Remove.
12171 (dr_indices_valid_in_loop): Remove.
12172 (close_phi_written_to_memory): Remove.
12173 (translate_scalar_reduction_to_array): Remove.
12174 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12175 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12176 (rewrite_commutative_reductions_out_of_ssa): Remove.
12177 (build_poly_scop): Remove call to
12178 rewrite_commutative_reductions_out_of_ssa.
12179
12180 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
12181
12182 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12183 Add new insn types for vector load and store pairs.
12184 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12185 types "neon_ldp{,_q}".
12186 * config/arm/cortex-a57.md (neon_load_c): Add insn types
12187 "neon_ldp{,_q}".
12188 (neon_store_complex): Add insn types "neon_stp{,_q}".
12189 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12190 "neon_{ldp,stp}_q".
12191
12192 2015-09-29 Jeff Law <law@redhat.com>
12193
12194 * config/rx/constraints.md (Int08): Fix undefined left shift
12195 behaviour.
12196 (Sint08, Sint16, Sint24): Likewise.
12197 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12198
12199 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12200 behaviour.
12201
12202 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12203 left shift behaviour.
12204 * config/msp430/constraints.md ('L' constraint): Similarly.
12205 ('Ys' constraint): Similarly.
12206
12207 2015-09-29 Richard Biener <rguenther@suse.de>
12208
12209 PR tree-optimization/67170
12210 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12211 the translate function pointer parameter to get the
12212 bool whether to disambiguate only by reference.
12213 (walk_non_aliased_vuses): Likewise.
12214 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12215 (get_continuation_for_phi_1): Likewise.
12216 (get_continuation_for_phi): Likewise.
12217 (walk_non_aliased_vuses): Likewise.
12218 * tree-ssa-sccvn.c (const_parms): New bitmap.
12219 (vn_reference_lookup_3): Adjust for interface change.
12220 Disambiguate parameters pointing to readonly memory.
12221 (free_scc_vn): Free const_parms.
12222 (run_scc_vn): Initialize const_parms from a fn spec attribute.
12223
12224 2015-09-29 Richard Biener <rguenther@suse.de>
12225
12226 PR tree-optimization/67741
12227 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12228 builtin calls with correct signature.
12229
12230 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
12231
12232 PR target/65105
12233 * config/i386/i386.c: Include dbgcnt.h.
12234 (has_non_address_hard_reg): New.
12235 (convertible_comparison_p): New.
12236 (scalar_to_vector_candidate_p): New.
12237 (remove_non_convertible_regs): New.
12238 (scalar_chain): New.
12239 (scalar_chain::scalar_chain): New.
12240 (scalar_chain::~scalar_chain): New.
12241 (scalar_chain::add_to_queue): New.
12242 (scalar_chain::mark_dual_mode_def): New.
12243 (scalar_chain::analyze_register_chain): New.
12244 (scalar_chain::add_insn): New.
12245 (scalar_chain::build): New.
12246 (scalar_chain::compute_convert_gain): New.
12247 (scalar_chain::replace_with_subreg): New.
12248 (scalar_chain::replace_with_subreg_in_insn): New.
12249 (scalar_chain::emit_conversion_insns): New.
12250 (scalar_chain::make_vector_copies): New.
12251 (scalar_chain::convert_reg): New.
12252 (scalar_chain::convert_op): New.
12253 (scalar_chain::convert_insn): New.
12254 (scalar_chain::convert): New.
12255 (convert_scalars_to_vector): New.
12256 (pass_data_stv): New.
12257 (pass_stv): New.
12258 (make_pass_stv): New.
12259 (ix86_option_override): Created and register stv pass.
12260 (flag_opts): Add -mstv.
12261 (ix86_option_override_internal): Likewise.
12262 * config/i386/i386.md (SWIM1248x): New.
12263 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12264 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12265 (*anddi3_doubleword): New.
12266 (*zext<mode>_doubleword): New.
12267 (*zextsi_doubleword): New.
12268 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12269 (*<code>di3_doubleword): New.
12270 * config/i386/i386.opt (mstv): New.
12271 * dbgcnt.def (stv_conversion): New.
12272
12273 2015-09-29 Tom de Vries <tom@codesourcery.com>
12274
12275 * tree-cfg.c (dump_function_to_file): Dump function attributes.
12276
12277 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
12278
12279 PR target/67716
12280 * config/sh/sh.c (sh_override_options_after_change): New.
12281 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12282 (sh_option_override): Move align_loops, align_jumps and
12283 align_functions handling into sh_override_options_after_change.
12284
12285 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12286
12287 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12288 (nvptx_record_offload_symbol): Record function execution geometry.
12289 * config/nvptx/mkoffload.c (process): Include launch geometry in
12290 function data.
12291 * omp-low.c (oacc_launch_pack): New.
12292 (replace_oacc_fn_attrib): New.
12293 (set_oacc_fn_attrib): New.
12294 (get_oacc_fn_attrib): New.
12295 (expand_omp_target): Create keyed varargs for GOACC_parallel call
12296 generation.
12297 * omp-low.h (get_oacc_fn_attrib): Declare.
12298 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12299 (DEF_FUNCTION_TYPE_VAR_11): Delete.
12300 * tree.h (OMP_CLAUSE_EXPR): New.
12301 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12302
12303 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12304 Sebastian Pop <s.pop@samsung.com>
12305
12306 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12307
12308 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12309 Sebastian Pop <s.pop@samsung.com>
12310
12311 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12312 * graphite-scop-detection.c (struct sese_l): New type.
12313 (get_entry_bb): API for getting entry bb of SESE.
12314 (get_exit_bb): API for getting exit bb of SESE.
12315 (class debug_printer): New type. Simple printer in debug mode.
12316 (trivially_empty_bb_p): New. Return true when BB is empty or
12317 contains only debug instructions.
12318 (graphite_can_represent_expr): Call scalar_evoution_in_region
12319 instead of analyze_scalar_evolution. Pass in scop instead of only
12320 the scop entry.
12321 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12322 scop entry.
12323 (stmt_simple_for_scop_p): Same.
12324 (harmful_stmt_in_bb): Same.
12325 (graphite_can_represent_loop): Deleted.
12326 (struct scopdet_info): Deleted.
12327 (scopdet_basic_block_info): Deleted.
12328 (build_scops_1): Deleted.
12329 (bb_in_sd_region): Deleted.
12330 (find_single_entry_edge): Deleted.
12331 (find_single_exit_edge): Deleted.
12332 (create_single_entry_edge): Deleted.
12333 (sd_region_without_exit): Deleted.
12334 (create_single_exit_edge): Deleted.
12335 (unmark_exit_edges): Deleted.
12336 (mark_exit_edges): Deleted.
12337 (create_sese_edges): Deleted.
12338 (build_graphite_scops): Deleted.
12339 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12340 (build_scops): Use the new scop_builder to build scops.
12341 (dot_all_scops_1): Use the new pretty printer. Print loop father
12342 as well.
12343 (loop_body_is_valid_scop): New. Return true if loop body is a
12344 valid scop.
12345 (class scop_builder): New. Builds SCoPs for polyhedral
12346 optimizations.
12347 (scop_builder): New constructor.
12348 (static sese_l invalid_sese): sese_l with invalid edges.
12349 (get_sese): Get an sese (from a loop) if possible, invalid_sese
12350 otherwise.
12351 (get_nearest_dom_with_single_entry): Get nearest dominator of a
12352 basic_block with single entry. Return NULL if we get to the
12353 beginning of a function.
12354 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12355 a basic_block with single exit. Return NULL if we get to the
12356 beginning of a function.
12357 (print_sese): Pretty-print SESE.
12358 (merge_sese): Merge two SESEs if possible and return the new SESE.
12359 (build_scop_depth): Start building the SCoP within a loop nest.
12360 (build_scop_breadth): Start building the SCoP at a single loop
12361 depth. Merge adjacent SESEs if valid.
12362 (can_represent_loop_1): Returns true if Graphite can represent
12363 loop inside SCoP. Helper for can_represent_loop.
12364 (can_represent_loop): Returns true if Graphite can represent LOOP
12365 and all its nested loops in SCoP.
12366 (loop_is_valid_scop): Returns true if LOOP and all its nests
12367 constitute a valid SCoP.
12368 (region_has_one_loop): Returns true of a region has only one loop.
12369 (add_scop): Add SCoP to the list of valid scops. Removes an
12370 already existing scop if it intersects with or subsumed by this one.
12371 (harmful_stmt_in_region): Returns true if SCoP has any statment
12372 which cannot be represented by Graphite.
12373 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12374 (remove_subscops): Remove any SCoP from the list of already found
12375 SCoPs, if subsumed by S1.
12376 (intersects): Return true if region bounded by SCoPs S1 and S2
12377 intersect.
12378 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12379 * graphite.c (print_graphite_scop_statistics):
12380 (print_graphite_statistics): Print SCoP info while debugging.
12381 (graphite_initialize): Early exit in case number of loops in a
12382 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12383 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12384 (graphite_finalize):
12385 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12386 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12387 (recompute_all_dominators): Recalculate POST_DOMINATORS.
12388 * tree-cfg.c (print_loops): Print the function name while printing
12389 loops.
12390
12391 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12392 Sebastian Pop <s.pop@samsung.com>
12393
12394 PR tree-optimization/67700
12395 * graphite-sese-to-poly.c (parameter_index_in_region): Call
12396 invariant_in_sese_p_rec.
12397 (extract_affine): Same.
12398 (rewrite_cross_bb_scalar_deps): Call update_ssa.
12399 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
12400 * sese.h (invariant_in_sese_p_rec): Declare.
12401
12402 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
12403
12404 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
12405
12406 2015-09-28 Jiong Wang <jiong.wang@arm.com>
12407
12408 Revert:
12409 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12410 Jiong Wang <jiong.wang@arm.com>
12411
12412 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12413 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12414 (REG_CLASS_NAMES): Likewise.
12415 (REG_CLASS_CONTENTS): Likewise.
12416 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12417 (aarch64_register_move_cost): Likewise.
12418 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12419 possible.
12420 * config/aarch64/constraints.md (Uc0): New constraint.
12421
12422 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
12423
12424 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
12425
12426 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
12427
12428 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
12429 SECTION_EXCLUDE in XO mapping class.
12430
12431 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12432
12433 PR target/54236
12434 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
12435 and handle ne and eq codes.
12436 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12437 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
12438 CONST_INT_P. Use reverse_condition.
12439 (sh_split_treg_set_expr): Likewise.
12440
12441 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
12442
12443 * config/arm/types.md (type): Add rotate_imm.
12444 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
12445 ROR immediate case.
12446 (*rorsi3_insn_uxtw): Likewise.
12447 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
12448 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
12449 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
12450
12451 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12452
12453 PR rtl-optimization/67481
12454 * ifcvt.c (contains_ccmode_rtx_p): New function.
12455 (insn_valid_noce_process_p): Use it.
12456
12457 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12458
12459 PR rtl-optimization/67456
12460 PR rtl-optimization/67464
12461 PR rtl-optimization/67465
12462 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
12463 move in the mode of x. Handle combination of complex and simple
12464 block pairs as well as the case when one is empty.
12465
12466 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12467
12468 * doc/gimple.texi: Update references to gimple_statement_base.
12469 * gdbhooks.py: Likewise.
12470 * gimple.h: Likewise.
12471
12472 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12473
12474 * config/sparc/driver-sparc.c: map LEON to leon3
12475
12476 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12477
12478 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
12479 and make it inverse to change default
12480 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
12481 supervisor mode
12482 * doc/invoke.texi: Document change of default
12483
12484 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12485
12486 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
12487 true on %f0 for a target without FPU.
12488 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
12489 without FPU.
12490 (untyped_return): Do not load %f0 for a target without FPU.
12491
12492 2015-09-28 Andrew Pinski <apinski@cavium.com>
12493
12494 * config/aarch64/aarch64.md (prefetch):
12495 Change the predicate of operand 0 to register_operand.
12496
12497 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
12498
12499 * config/i386/predicates.md (register_sse4nonimm_operand): New
12500 predicate.
12501 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
12502 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
12503 Use register_sse4nonimm_operand as operand 0 predicate.
12504 (*vec_extractv8hi_sse2): Remove insn pattern.
12505 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
12506 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
12507
12508 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
12509 Kaz Kojima <kkojima@gcc.gnu.org>
12510
12511 PR target/67391
12512 * config/sh/sh-protos.h (sh_lra_p): Declare.
12513 * config/sh/sh.c (sh_lra_p): Make non-static.
12514 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
12515 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
12516 Expand into addsi3_scr if operands[2] if needed.
12517 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
12518 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
12519 (addsi3_scr, *addsi3): New insn_and_split patterns.
12520
12521 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
12522
12523 PR rtl-optimization/64164
12524 PR tree-optimization/67312
12525 PR middle-end/67340
12526 PR middle-end/67490
12527 PR bootstrap/67597
12528 * cfgexpand.c (parm_in_stack_slot_p): Remove.
12529 (ssa_default_def_partition): Remove.
12530 (get_rtl_for_parm_ssa_default_def): Remove.
12531 (set_rtl): Check that RTL assignments match expectations.
12532 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
12533 default def location for params and results. Record SSA names
12534 or types in REG and MEM attrs, respectively.
12535 (set_parm_rtl): New.
12536 (expand_one_ssa_partition): Drop logic that assigned MEMs with
12537 unassigned addresses.
12538 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
12539 deferred stack alloc vars.
12540 (expand_used_vars): Skip partitions holding parm default defs.
12541 Move adjust_one_expanded_partition_var loop...
12542 (pass_expand::execute): ... here. Drop redundant assert.
12543 Adjust comments before the final loop over all ssa names.
12544 Require assigned rtl of parms and results to match exactly.
12545 Reset its attributes to match them, not any other variables in
12546 the same partition.
12547 (expand_debug_expr): Use entry value for PARM's default defs
12548 only iff they have zero nondebug uses.
12549 * cfgexpand.h (parm_in_stack_slot_p): Remove.
12550 (get_rtl_for_parm_ssa_default_def): Remove.
12551 (set_parm_rtl): Declare.
12552 * doc/invoke.texi: Improve wording.
12553 * explow.c (promote_decl_mode): Fix promote_function_mode for
12554 result decls not by reference.
12555 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
12556 bypass TYPE_MODE to get the actual vector mode.
12557 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
12558 2015-08-19's changes as follows. Drop include of
12559 basic-block.h and df.h.
12560 (rtl_for_parm): Remove.
12561 (maybe_reset_rtl_for_parm): Remove.
12562 (parm_in_unassigned_mem_p): Remove.
12563 (use_register_for_decl): Add logic for RESULT_DECLs matching
12564 assign_parms' behavior.
12565 (split_complex_args): Revert.
12566 (assign_parms_augmented_arg_list): Revert. Add comment
12567 referencing the logic above.
12568 (assign_parm_adjust_stack_rtl): Revert.
12569 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
12570 of SET_DECL_RTL. Set up a REG if the parm demands so.
12571 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
12572 calls into a single set_parm_rtl. Set up a temporary RTL
12573 temporarily for expand_assignment.
12574 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
12575 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
12576 (assign_bounds): Revert.
12577 (assign_parms): Revert. Use set_parm_rtl.
12578 (allocate_struct_function): Relayout result and parms of
12579 non-abstruct functions.
12580 (expand_function_start): Revert. Use set_parm_rtl. If the
12581 result is not a hard reg, create a pseudo from the promoted
12582 mode of the default def. Promote static chain mode.
12583 * tree-outof-ssa.c (remove_ssa_form): Drop unused
12584 partition_has_default_def. Set up
12585 partitions_for_parm_default_defs.
12586 (finish_out_of_ssa): Remove partition_has_default_def.
12587 Release partitions_for_parm_default_defs.
12588 * tree-outof-ssa.h (struct ssaexpand): Remove
12589 partition_has_default_def. Add
12590 partitions_for_parm_default_defs.
12591 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
12592 stor-layout.h.
12593 (build_ssa_conflict_graph): Fix conflict-detection of default
12594 defs of even unused default defs of params and results.
12595 (for_all_parms): New.
12596 (create_default_def): New.
12597 (register_default_def): New.
12598 (coalesce_with_default): New.
12599 (create_outofssa_var_map): Create default defs for all parms
12600 and results, and register their partitions. Add GIMPLE_RETURN
12601 operands as coalesce candidates with results. Add default
12602 defs of each parm or result as coalesce candidates with its
12603 other defs. Mark each result def, and each default def of
12604 parms, as used_in_copy.
12605 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
12606 with the ssa names, even anonymous ones. Drop
12607 parm_in_stack_slot_p calls. Require same signedness and
12608 alignment.
12609 (coalesce_ssa_name): Add coalesce candidates for all defs of
12610 each parm and result, even unused ones.
12611 (parm_default_def_partition_arg): New type.
12612 (set_parm_default_def_partition): New.
12613 (get_parm_default_def_partitions): New.
12614 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
12615 * tree-ssa-live.c (partition_view_init): Regard unused defs of
12616 parms and results as used.
12617 (verify_live_on_entry): Don't error out just because they're
12618 not live.
12619
12620 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
12621
12622 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12623 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
12624 (output_fde): Don't output length for debug_frame on AIX.
12625 (output_call_frame_info): Don't output length for debug_frame on AIX.
12626 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
12627 HAVE_XCOFF_DWARF_EXTRAS.
12628 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
12629 HAVE_XCOFF_DWARF_EXTRAS.
12630 (output_compilation_unit_header): Don't output length on AIX.
12631 (output_pubnames): Don't output length on AIX.
12632 (output_aranges): Delete argument. Compute length locally. Don't
12633 output length on AIX.
12634 (output_line_info): Don't output length on AIX.
12635 (dwarf2out_finish): Don't compute aranges_length.
12636 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12637 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
12638 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
12639 symbol decoration for AIX.
12640 (rs6000_xcoff_debug_unwind_info): New.
12641 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
12642 for SECTION_DEBUG.
12643 (rs6000_xcoff_declare_function_name): Emit different
12644 .function pseudo-op when DWARF2_DEBUG. Don't call
12645 xcoffout_declare_function for DWARF2_DEBUG.
12646 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
12647 Redefine.
12648 * config/rs6000/aix71.h: New.
12649 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
12650 locations support.
12651 * configure: Regenerate.
12652 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
12653 DWARF support.
12654
12655 2015-09-26 Jeff Law <law@redhat.com>
12656
12657 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
12658 behaviour.
12659 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
12660 behaviour.
12661
12662 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
12663 behaviour
12664
12665 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
12666 undefined behaviour.
12667
12668 * config/cris/cris.md (asrandb): Fix left shift undefined
12669 behaviour.
12670 (asrandw): Likewise.
12671
12672 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
12673
12674 PR target/61578
12675 * lra-constarints.c (match_reload): Check presence of the input pseudo
12676 in the output operand.
12677
12678 2015-09-25 Tobias Burnus <burnus@net-b.de>
12679
12680 * doc/invoke.texi (-fsanitize): Minor wording tweak.
12681
12682 2015-09-25 Tobias Burnus <burnus@net-b.de>
12683
12684 * doc/invoke.texi (-fsanitize): Update URLs.
12685
12686 2015-09-25 Teresa Johnson <tejohnson@google.com>
12687
12688 * opts.c (finish_options): Unset -freorder-blocks-and-partition
12689 if not using profile.
12690
12691 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12692
12693 PR pretty-print/67567
12694 * pretty-print.c (pp_string): Add gcc_checking_assert.
12695 * pretty-print.h (output_buffer_append_r): Likewise.
12696
12697 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
12698
12699 PR target/67675
12700 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
12701 addr2 individually. Don't emit logical or insn if one is known to
12702 be aligned approriately.
12703 (sh_expand_cmpnstr): Likewise.
12704
12705 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
12706
12707 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
12708 __builtin_aarch64_fp[sc]r arguments into a register.
12709
12710 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
12711
12712 * config.gcc (x86_archs): Replace lakemount with lakemont.
12713 (with_cpu): Likewise.
12714 (with_arch): Likewise.
12715 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12716 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
12717 __tune_lakemount__ with __tune_lakemont__.
12718 * config/i386/i386.c (lakemount_cost): Renamed to ...
12719 (lakemont_cost): This.
12720 (m_LAKEMOUNT): Renamed to ...
12721 (m_LAKEMONT): This.
12722 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
12723 (processor_target_table): Replace "lakemount" with "lakemont".
12724 (processor_alias_table): Likewise.
12725 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
12726 PROCESSOR_LAKEMONT.
12727 (ix86_adjust_cost): Likewise.
12728 (ia32_multipass_dfa_lookahead): Likewise.
12729 * config/i386/i386.h (processor_type): Likewise.
12730 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
12731 * doc/invoke.texi: Replace lakemount with lakemont. Replace
12732 Lakemount with Lakemont.
12733
12734 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
12735
12736 * config.gcc (x86_archs): Replace iamcu with lakemount.
12737 (with_cpu): Likewise.
12738 (with_arch): Likewise.
12739 * doc/invoke.texi: Likewise.
12740 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12741 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
12742 __tune_iamcu__ with __tune_lakemount__.
12743 * config/i386/i386.c (iamcu_cost): Renamed to ...
12744 (lakemount_cost): This.
12745 (m_IAMCU): Renamed to ...
12746 (m_LAKEMOUNT): This.
12747 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
12748 (processor_target_table): Replace "iamcu" with "lakemount".
12749 (processor_alias_table): Likewise.
12750 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
12751 PROCESSOR_LAKEMOUNT.
12752 (ix86_adjust_cost): Likewise.
12753 (ia32_multipass_dfa_lookahead): Likewise.
12754 * config/i386/i386.h (processor_type): Likewise.
12755 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
12756
12757 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
12758
12759 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
12760 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
12761 Declare.
12762 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
12763 (pa_expand_compare_and_swap_loop): New.
12764 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
12765 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
12766 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
12767 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
12768 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
12769 Revise.
12770
12771 2015-09-24 Michael Collison <michael.collison@linaro.org>
12772
12773 PR other/57195
12774 * read-md.c (read_name): Allow mode iterators inside angle
12775 brackets in rtl expressions.
12776
12777 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
12778
12779 PR target/61578
12780 * ira-color.c (update_allocno_cost): Add parameter.
12781 (update_costs_from_allocno): Decrease conflict cost. Pass the new
12782 parameter.
12783
12784 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12785
12786 PR driver/67640
12787 * opts-common.c (prune_options): Discard all -fdiagnostics-color
12788 but the last one, which is moved to the front to be processed
12789 first.
12790 * opts.c (enable_warning_as_error): Reject options that do not
12791 control warnings.
12792
12793 2015-09-24 Jiong Wang <jiong.wang@arm.com>
12794
12795 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
12796
12797 2015-09-24 Jiong Wang <jiong.wang@arm.com>
12798
12799 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
12800 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
12801 (aarch64_cannot_force_const_mem): Likewise.
12802 (aarch64_classify_address): Likewise.
12803 (aarch64_classify_symbolic_expression): Likewise.
12804 (aarch64_print_operand): Likewise.
12805 (aarch64_classify_symbol): Likewise.
12806 (aarch64_mov_operand_p): Likewise.
12807 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
12808 (aarch64_mov_operand): Likewise.
12809
12810 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
12811
12812 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
12813 for info->spe_gp_size.
12814
12815 2015-09-24 Richard Biener <rguenther@suse.de>
12816
12817 PR lto/67699
12818 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
12819 abstract origins.
12820
12821 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
12822
12823 * tree-object-size.c (plus_stmt_object_size)
12824 (cond_expr_object_size): Change the formal parameters from gimple
12825 to gimple *.
12826 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
12827 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
12828 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
12829
12830 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12831
12832 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
12833 Check for ld -type pie on Solaris 11.x and 12.
12834 * configure: Regenerate.
12835 * config.in: Regenerate.
12836
12837 * gcc.c (LD_PIE_SPEC): Allow redefinition.
12838
12839 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
12840 (STARTFILE_SPEC): Use it.
12841 (ENDFILE_CRTEND_SPEC): Define.
12842 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
12843 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
12844 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
12845 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
12846 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
12847 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
12848 (ENDFILE_ARCH_SPEC): Define.
12849 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
12850
12851 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12852
12853 * configure.ac (gcc_cv_solaris_crts): New test.
12854 * configure. Regenerate.
12855 * config.in: Regenerate.
12856 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
12857 HAVE_SOLARIS_CRTS variant.
12858
12859 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12860
12861 * tree-inline.h (count_insns_seq): Delete prototype.
12862 (estimate_num_insns_seq): Define prototype.
12863 * tree-inline.c (count_insns_seq): Delete.
12864 (estimate_num_insns_seq): Remove static qualifier.
12865 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
12866 with estimate_num_insns_seq.
12867
12868 2015-09-24 Richard Biener <rguenther@suse.de>
12869
12870 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
12871 members.
12872 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
12873 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
12874 offset.
12875 (ao_ref_init_from_vn_reference): Record clique and base in the
12876 built base.
12877 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
12878
12879 2015-09-24 Richard Biener <rguenther@suse.de>
12880
12881 PR tree-optimization/48885
12882 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
12883 as not including any restrict tags from other pointers.
12884
12885 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12886
12887 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
12888 character when appending to offload_targets.
12889
12890 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
12891 offload targets by commas, not colons.
12892 * config.in: Regenerate.
12893 * configure: Likewise.
12894 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
12895 instead of setting up the default offload targets here...
12896 (process_command): ..., do it here.
12897 libgomp/
12898 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
12899 targets are separated by commas.
12900 * config.h.in: Regenerate.
12901
12902 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12903 Nathan Sidwell <nathan@codesourcery.com>
12904
12905 * omp-low.h (omp_reduction_init_op): Declare.
12906 * omp-low.c (omp_reduction_init_op): New, broken out of ...
12907 (omp_reduction_init): ... here. Call it.
12908 * tree-parloops.c (initialize_reductions): Use
12909 omp_reduction_init_op.
12910
12911 2015-09-23 Richard Biener <rguenther@suse.de>
12912
12913 PR middle-end/67662
12914 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
12915 undefined overflow unless they will cancel out.
12916
12917 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12918
12919 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
12920 insn emit.
12921
12922 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12923
12924 PR c/49655
12925 * opts.h (write_langs): Declare.
12926 * opts-global.c (write_langs): Make it extern.
12927
12928 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
12929
12930 PR target/67391
12931 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
12932 overlapping regs when matching the pattern.
12933
12934 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
12935
12936 * config/aarch64/aarch64-simd.md
12937 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
12938 (aarch64_float_truncate_hi_v4sf_le): New.
12939 (aarch64_float_truncate_hi_v4sf_be): Likewise.
12940
12941 2015-09-23 Richard Biener <rguenther@suse.de>
12942
12943 * tree-ssa-structalias.c (intra_create_variable_infos): Build
12944 representatives for all restrict qualified pointer destinations.
12945
12946 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12947
12948 * config/i386/i386.md (define_code_attr mshift): New.
12949 (define_mode_iterator SWI1248_AVX512BW): Rename ...
12950 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
12951 only.
12952 (define_insn "*k<logic><mode>"): Use new iterator name.
12953 (define_insn "*<mshift><mode>3"): New.
12954
12955 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
12956
12957 PR middle-end/67649
12958 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
12959 mark the block as accessible.
12960
12961 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
12962
12963 * function.c (thread_prologue_and_epilogue_insns): Delete
12964 orig_entry_edge argument to try_shrink_wrapping.
12965 * shrink-wrap.c (can_get_prologue): New function.
12966 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
12967 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
12968 can_get_prologue where needed. Remove code that finds a single
12969 edge for the prologue. Remove code that tests if any reg clobbered
12970 by the prologue is live on the prologue edge. Remove code that finds
12971 the new prologue edge after duplicating blocks. Make a new prologue
12972 block and edge.
12973 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
12974
12975 2015-09-22 Jeff Law <law@redhat.com>
12976
12977 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
12978 behavior.
12979
12980 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
12981
12982 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
12983 -Wtemplates, -Wnamespaces): Document.
12984
12985 2015-09-22 Tom de Vries <tom@codesourcery.com>
12986
12987 PR tree-optimization/67671
12988 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
12989 pointer references as restrict.
12990
12991 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
12992
12993 * config/nios2/nios2.c (nios2_legitimize_address): When handling
12994 'reg + reloc' cases, allow first operand to be non-REG, and use
12995 force_reg() to enforce address pattern.
12996
12997 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
12998
12999 PR target/67480
13000 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13001 (define_mode_iterator VI12_AVX_AVX512F): New.
13002 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13003 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13004 (define_insn "*<code><mode>3"): ... Into new pattern using
13005 VI12_AVX_AVX512F iterators without masking.
13006
13007 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13008
13009 * config.gcc: Support "skylake-avx512".
13010 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13011 PROCESSOR_SKYLAKE_AVX512.
13012 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13013 (processor_target_table): Add "skylake-avx512".
13014 (PTA_SKYLAKE_AVX512): Define.
13015 (ix86_option_override_internal): Add "skylake_avx512".
13016 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13017 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13018 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13019 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13020 * doc/invoke.texi (skylake-avx512): New.
13021
13022 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13023
13024 * config/i386/i386.md (define_insn "kunpckhi"): Fix
13025 operand in pattern.
13026 (define_insn "kunpcksi"): Ditto.
13027 (define_insn "kunpckdi"): Ditto.
13028
13029 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13030
13031 * config/i386/i386.md (define_split not/xor SWI1248x): Use
13032 iterator instead of fixed modes.
13033
13034 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13035
13036 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13037 Adjust declaration.
13038 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13039 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
13040 out_result. Update to support update-fetch operations.
13041 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13042 Adjust for change to aarch64_gen_atomic_ldop.
13043 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13044 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13045 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13046 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13047 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13048
13049 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13050
13051 * config/aarch64/aarch64-protos.h
13052 (aarch64_atomic_ldop_supported_p): Declare.
13053 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13054 (enum aarch64_atomic_load_op_code): New.
13055 (aarch64_emit_atomic_load_op): New.
13056 (aarch64_gen_atomic_ldop): Update to support load-operate
13057 patterns.
13058 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13059 to an expander.
13060 (aarch64_atomic_<atomic_optab><mode>): New.
13061 (aarch64_atomic_<atomic_optab><mode>_lse): New.
13062 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13063 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13064 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13065
13066 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13067
13068 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13069 (UNSPECV_ATOMIC_LDOP_OR): New.
13070 (UNSPECV_ATOMIC_LDOP_BIC): New.
13071 (UNSPECV_ATOMIC_LDOP_XOR): New.
13072 (UNSPECV_ATOMIC_LDOP_PLUS): New.
13073 (ATOMIC_LDOP): New.
13074 (atomic_ldop): New.
13075 (aarch64_atomic_load<atomic_ldop><mode>): New.
13076
13077 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13078
13079 * config/aarch64/aarch64.md
13080 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13081 pattern.
13082
13083 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13084
13085 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13086 Declare.
13087 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13088 (aarch64_gen_atomic_ldop): New.
13089 (aarch64_split_atomic_op): Fix whitespace and add a comment.
13090 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13091 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13092 (atomic_exchange<mode>): Replace with an expander.
13093 (aarch64_atomic_exchange<mode>): New.
13094 (aarch64_atomic_exchange<mode>_lse): New.
13095 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13096 (aarch64_atomic_swp<mode>): New.
13097
13098 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13099
13100 * tree-inline.c (expand_call_inline): Use inform for extra note.
13101 Do not give a note with UNKNOWN_LOCATION.
13102 Replace input_location with gimple_location (stmt).
13103 Use true/false instead of TRUE/FALSE.
13104
13105 2015-09-22 Tom de Vries <tom@codesourcery.com>
13106
13107 PR tree-optimization/67666
13108 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13109 with single field non-conservative.
13110
13111 2015-09-21 David S. Miller <davem@davemloft.net>
13112
13113 PR/67622
13114 Revert:
13115 2015-09-11 David S. Miller <davem@davemloft.net>
13116
13117 * config/sparc/constraints.md: Make "U" constraint a real register
13118 constraint.
13119 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13120 (D_MODES, DF_MODES): Add missing cast.
13121 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13122 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13123 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13124 cost to 8.
13125 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13126 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13127 provide these insn when flag_pic.
13128
13129 2015-09-17 David S. Miller <davem@davemloft.net>
13130
13131 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13132 Declare.
13133 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13134 function.
13135 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13136 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13137 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13138 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13139 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13140 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13141 provide when flag_pic.
13142
13143 2015-09-21 Jeff Law <law@redhat.com>
13144
13145 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13146 behavior.
13147
13148 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13149
13150 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13151
13152 2015-09-21 Richard Biener <rguenther@suse.de>
13153
13154 * passes.c (rest_of_decl_compilation): Do not call
13155 dwarf2out_early_global_decl for aliases.
13156
13157 2015-09-21 Richard Biener <rguenther@suse.de>
13158
13159 PR debug/67664
13160 * dwarf2out.c (add_location_or_const_value_attribute): Remove
13161 attribute parameter. Early exit if either DW_AT_const_value
13162 or DW_AT_location are present already.
13163 (gen_variable_die): Adjust caller.
13164 (dwarf2out_late_global_decl): Likewise.
13165
13166 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13167
13168 PR target/67657
13169 * config/sh/sh.c (sh_remove_overlapping_post_inc,
13170 sh_peephole_emit_move_insn): Add new functions.
13171 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13172 sh_peephole_emit_move_insn): Declere them.
13173 * config/sh/sh.md: Use them in various peephole2 patterns.
13174
13175 2015-09-21 Richard Biener <rguenther@suse.de>
13176
13177 PR middle-end/67651
13178 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13179 address with -fno-delete-null-pointer-checks.
13180
13181 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
13182
13183 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13184 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13185 (reduc_uplus_v16qi): Remove.
13186
13187 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13188 (reduc_<VEC_reduc_name>_v2df): Remove.
13189 (reduc_<VEC_reduc_name>_v4sf): Remove.
13190 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13191
13192 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13193 gen_ function by removing * prefix.
13194 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13195
13196 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13197
13198 PR middle-end/60832
13199 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13200 Print i_bound without converting it to a tree.
13201
13202 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
13203
13204 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13205 operands[4] operands[5] swap with std::swap, removed tmp variable.
13206 (arm_evpc_neon_vzip): Replaced in0/in1 and
13207 out0/out1 swaps with std::swap, removed x variable.
13208 (arm_evpc_neon_vtrn): Replaced in0/int1 and
13209 out0/out1 swaos with std::swap, removed x variable.
13210 (arm_expand_vec_perm_const_1): Replaced
13211 d->op0/d->op1 swap with std::swap, removed x variable.
13212 (arm_evpc_neon_vuzp): Replaced in0/in1 and
13213 out0/out1 swaps with std::swap, removed x variable.
13214
13215 2015-09-21 Jonathan Yong <10walls@gmail.com>
13216
13217 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13218 sysroot/usr/lib/32api for additional win32 libraries,
13219 fixes failing Cygwin bootstrapping.
13220
13221 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13222
13223 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13224
13225 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13226
13227 PR target/67126
13228 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13229 (*mov_t_msb_neg): Rewrite negc pattern.
13230
13231 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13232
13233 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13234 immediate generation code.
13235
13236 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13237
13238 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13239 redundant immediate generation code.
13240
13241 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13242
13243 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13244 (AARCH64_NUM_BITMASKS): Remove.
13245 (aarch64_bitmasks_cmp): Remove.
13246 (aarch64_build_bitmask_table): Remove.
13247
13248 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13249
13250 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13251 slow immediate matching loops with a faster algorithm.
13252
13253 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13254
13255 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13256 faster algorithm.
13257
13258 2015-09-20 Jeff Law <law@redhat.com>
13259
13260 PR tree-optimization/47679
13261 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13262 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13263 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13264 (thread_through_normal_block): Use record_temporary_equivalences.
13265
13266 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
13267
13268 * coretypes.h (gimple): Change typedef to be a forward declaration.
13269 * gimple.h (gimple_statement_base): rename to gimple.
13270 * (all functions and types using gimple): Adjust.
13271 * *.[ch]: Likewise.
13272
13273 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
13274 David Edelsohn <dje.gcc@gmail.com>
13275
13276 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13277 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13278 (EH_FRAME_THROUGH_COLLECT2): Define.
13279 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13280 (ASM_OUTPUT_DWARF_PCREL): Define.
13281 (ASM_OUTPUT_DWARF_DATAREL): Define.
13282
13283 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
13284
13285 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13286 of TARGET_ELF32.
13287
13288 2015-09-18 Jeff Law <law@redhat.com>
13289
13290 PR tree-optimization/47679
13291 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
13292 it here ...
13293 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13294 object. Update constructor.
13295 (pass_dominator::execute): Corresponding chagnes to declaration
13296 and initialization of avail_exprs_stack. Update constructor call
13297 for dom_opt_dom_walker object.
13298 (lookup_avail_expr, record_cond): Accept additional argument. Pass
13299 it down to children as needed.
13300 (record_equivalences_from_incoming_edge): Likewise.
13301 (eliminate_redundant_computations): Likewise.
13302 (record_equivalences_from_stmt): Likewise.
13303 (simplify_stmt_for_jump_threading): Likewise.
13304 (record_temporary_equivalences): Likewise.
13305 (optimize_stmt): Likewise.
13306 (dom_opt_dom_walker::thread_across_edge): Update access to
13307 avail_exprs_stack object and pass it to children as needed.
13308 (dom_opt_dom_walker::before_dom_children): Similarly.
13309 (dom_opt_dom_walker::after_dom_children): Similarly.
13310 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13311 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13312 Add avail_expr_stack argument. Pass it to children as needed.
13313 (dummy_simplify): Likewise.
13314 (simplify_control_stmt_condition): Likewise.
13315 (thread_around_empty_blocks): Likewise.
13316 (thread_through_normal_block): Likewise.
13317 (thread_across_edge): Likewise.
13318 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13319 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13320
13321 PR tree-optimization/47679
13322 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
13323 it here ...
13324 (dom_opt_dom_walker): New private member holding the const_and_copies
13325 object. Update constructor.
13326 (pass_dominator::execute): Corresponding changes to declaration
13327 and initialization of const_and_copies. Update constructor call
13328 for the dom_opt_dom_walker object.
13329 (record_temporary_equivalences): Accept const_and_copies argument
13330 pass it down to children as needed.
13331 (record_equality): Likewise.
13332 (record_equivalences_from_incoming_edge): Likewise.
13333 (cprop_into_successor_phis, optimize_stmt): Likewise.
13334 (eliminate_redundant_computations): Likewise.
13335 (dom_opt_dom_walker::thread_across_edge): Update access to
13336 const_and_copies object and pass it to children as needed.
13337 (dom_opt_dom_walker::before_dom_children): Similarly.
13338 (dom_opt_dom_walker::after_dom_children): Similarly.
13339
13340 PR tree-optimization/47679
13341 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
13342 it into the avail_exprs_stack class.
13343 (pass_dominator::execute): Corresponding changes to declaration
13344 and initialization of avail_exprs. Pass avail_exprs to
13345 dump_dominator_optimization_stats.
13346 (record_cond): Extract avail_exprs from avail_exprs_stack.
13347 (lookup_avail_expr): Similarly.
13348 (htab_staticstics): Remove unnecessary prototype. Move to earlier
13349 position in file.
13350 (dump_dominator_optimization_stats): Make static and prototype.
13351 Add argument for the hash table to dump.
13352 (debug_dominator_optimization_stats): Remove.
13353 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13354 prototype.
13355 (debug_dominator_optimization_stats): Similarly.
13356 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13357 "void" in prototype for pop_to_marker method. Add accessor method
13358 for the underlying avail_exprs table.
13359
13360 * tree-ssa-threadedge.c: Remove trailing whitespace.
13361
13362 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
13363
13364 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13365 unsigned.
13366 (pa_ldil_cint_p): Likewise.
13367 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13368 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13369 Update callers.
13370 * config/pa/pa.md: Likewise.
13371
13372 2015-09-18 David Malcolm <dmalcolm@redhat.com>
13373
13374 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13375 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13376 (diagnostic_show_locus): Likewise.
13377 (diagnostic_print_caret_line): Likewise.
13378 * diagnostic-show-locus.c: New file.
13379
13380 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
13381
13382 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13383 "back" parameter. Declare label in #if block.
13384
13385 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
13386
13387 PR middle-end/67619
13388 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13389 the address to a register.
13390
13391 2015-09-18 Jeff Law <law@redhat.com>
13392
13393 PR tree-optimization/47679
13394 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13395 * tree-ssa-dom.c: Remove unnecessary header includes.
13396 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
13397 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
13398 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
13399 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
13400 (pass_phi_only_cprop::execute): Likewise.
13401 (make_pass_phi_only_cprop): Likewise.
13402 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
13403 uses of file scoped statics by passing the required objects
13404 as parameters wherever needed.
13405
13406 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
13407 David Edelsohn <dje.gcc@gmail.com>
13408
13409 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
13410 EH_FRAME_THROUGH_COLLECT2.
13411 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
13412 DW_EH_PE_datarel.
13413 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
13414 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
13415 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
13416 * except.c (switch_to_exception_section): Use a read-only section
13417 even if EH_FRAME_SECTION_NAME is undefined.
13418 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
13419 * collect2.c (write_c_file_stat): Provide dbase on AIX.
13420 (scan_prog_file): Don't export __dso_handle nor
13421 __gcc_unwind_dbase.
13422 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13423 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13424 (ASM_OUTPUT_DWARF_PCREL): Define.
13425 (ASM_OUTPUT_DWARF_DATAREL): Define.
13426 (EH_FRAME_THROUGH_COLLECT2): Define.
13427 (EH_FRAME_IN_DATA_SECTION): Delete.
13428 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
13429 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
13430 Declare.
13431 (rs6000_asm_output_dwarf_datarel): Declare.
13432 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
13433 (rs6000_aix_asm_output_dwarf_datarel): New.
13434 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
13435 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
13436 (EH_FRAME_THROUGH_COLLECT2): Define.
13437 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
13438 (EH_FRAME_THROUGH_COLLECT2): Define.
13439 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13440 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
13441 (EH_FRAME_THROUGH_COLLECT2): New.
13442 (ASM_OUTPUT_DWARF_DATAREL): New.
13443 * doc/tm.texi: Regenerate.
13444
13445 2015-09-18 Richard Biener <rguenther@suse.de>
13446
13447 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
13448 we're in early phase.
13449 (schedule_generic_params_dies_gen): Likewise.
13450 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
13451 work as possible, retaining unhandled cases.
13452 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
13453 clear out generic_type_instances at the end.
13454 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
13455 (dwarf2out_early_finish): ... here. Do most of
13456 gen_remaining_tmpl_value_param_die_attribute here.
13457
13458 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
13459
13460 PR tree-optimization/67283
13461 * tree-sra.c (type_consists_of_records_p): Rename to...
13462 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13463 (completely_scalarize_record): Rename to...
13464 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13465 (scalarize_elem): New.
13466 (analyze_all_variable_accesses): Follow renamings.
13467
13468 2015-09-18 Richard Biener <rguenther@suse.de>
13469
13470 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
13471 in early-dwarf.
13472
13473 2015-09-18 Richard Biener <rguenther@suse.de>
13474
13475 PR tree-optimization/66142
13476 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
13477 treat MEM[&x] and x the same.
13478 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
13479 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
13480 when we simplified sth.
13481 (vn_reference_maybe_forwprop_address): Likewise.
13482 (valueize_refs_1): When we simplified through
13483 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
13484 set valueized_anything to true.
13485 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
13486 one ref kills the other instead of just a offset-based test.
13487 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
13488 for the operand_equal_p test to compare bases and also compare
13489 sizes.
13490
13491 2015-09-17 Christian Bruel <christian.bruel@st.com>
13492
13493 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
13494
13495 2015-09-17 Richard Henderson <rth@redhat.com>
13496
13497 PR libstdc++/65913
13498 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
13499 pointers that encode the alignment of the object.
13500
13501 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13502
13503 PR rtl-optimization/66790
13504 * df-problems.c (LIVE): Amend documentation.
13505
13506 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
13507
13508 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
13509 and optabs-tree.o.
13510 (GTFILES): Replace optabs.c with optabs-libfunc.c.
13511 * genopinit.c (main): Add an include guard to insn-opinit.h.
13512 Protect the rtx_code parts with NUM_RTX_CODE.
13513 * optabs.h: Split parts out to...
13514 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
13515 * optabs.c: Split parts out to...
13516 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
13517 * cilk-common.c: Include optabs-query.h rather than optabs.h.
13518 * fold-const.c: Likewise.
13519 * target-globals.c: Likewise.
13520 * tree-if-conv.c: Likewise.
13521 * tree-ssa-forwprop.c: Likewise.
13522 * tree-ssa-loop-prefetch.c: Likewise.
13523 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
13524 Remove unncessary include files.
13525 * tree-ssa-phiopt.c: Likewise.
13526 * tree-ssa-reassoc.c: Likewise.
13527 * tree-switch-conversion.c: Likewise.
13528 * tree-vect-data-refs.c: Likewise.
13529 * tree-vect-generic.c: Likewise.
13530 * tree-vect-loop.c: Likewise.
13531 * tree-vect-patterns.c: Likewise.
13532 * tree-vect-slp.c: Likewise.
13533 * tree-vect-stmts.c: Likewise.
13534 * tree-vrp.c: Likewise.
13535 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
13536 rather than optabs.h.
13537 * expr.c: Include optabs-tree.h.
13538 * function.c: Likewise.
13539
13540 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13541
13542 PR middle-end/65958
13543 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
13544 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
13545 * config/arm/arm.c: Include common/common-target.h.
13546 (use_return_insn): Return 0 if the static chain register was saved
13547 above a non-APCS frame.
13548 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
13549 (struct scratch_reg): New.
13550 (get_scratch_register_on_entry): New function.
13551 (release_scratch_register_on_entry): Likewise.
13552 (arm_emit_probe_stack_range): Likewise.
13553 (output_probe_stack_range): Likewise.
13554 (arm_expand_prologue): Factor out code dealing with the IP register
13555 for nested function and adjust it for stack checking.
13556 Invoke arm_emit_probe_stack_range if static builtin stack checking
13557 is enabled.
13558 (thumb1_expand_prologue): Sorry out if static builtin stack checking
13559 is enabled.
13560 (arm_expand_epilogue): Add the saved static chain register, if any, to
13561 the amount of pre-pushed registers to pop.
13562 (arm_frame_pointer_required): Return true if static stack checking is
13563 enabled and we want to catch the exception with the EABI unwinder.
13564 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
13565 (UNSPEC_PROBE_STACK_RANGE): Likewise.
13566 * config/arm/arm.md (probe_stack): New insn.
13567 (probe_stack_range): Likewise.
13568
13569 2015-09-17 Richard Biener <rguenther@suse.de>
13570
13571 * genmatch.c (parser::parse_expr): Improve error message
13572 for mis-placed flags.
13573
13574 2015-09-17 Richard Biener <rguenther@suse.de>
13575
13576 * passes.c (rest_of_decl_compilation): Always call early_global_decl
13577 debug hook when we created a varpool node.
13578 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
13579 dwarf2out_early_global_decl, when not just add location or
13580 value attributes to existing DIEs.
13581
13582 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
13583
13584 * config/aarch64/aarch64.md (copysigndf3): New.
13585 (copysignsf3): Likewise.
13586
13587 2015-09-17 David S. Miller <davem@davemloft.net>
13588
13589 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
13590 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
13591 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13592 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13593 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13594 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13595 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13596 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13597 provide when flag_pic.
13598
13599 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
13600
13601 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
13602 object_allocator change.
13603
13604 2015-09-17 Bin Cheng <bin.cheng@arm.com>
13605
13606 PR tree-optimization/66388
13607 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
13608 (dump_iv): Dump no_overflow information.
13609 (alloc_iv): Initialize new field for struct iv.
13610 (mark_bivs): Count number of no_overflow bivs.
13611 (find_deriving_biv_for_expr, record_biv_for_address_use): New
13612 functions.
13613 (idx_find_step): Call new functions above.
13614 (add_candidate_1, add_candidate): New paramter.
13615 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
13616 (get_computation_aff): Simplify convertion of cand for BIV.
13617 (get_computation_cost_at): Step cand's base if necessary.
13618
13619 2015-09-17 Bin Cheng <bin.cheng@arm.com>
13620
13621 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
13622 parameter.
13623 (tree_simplify_using_condition): Ditto.
13624 (simplify_using_initial_conditions): Ditto.
13625 (loop_exits_before_overflow): Pass new argument to function
13626 simplify_using_initial_conditions. Remove case for type conversions
13627 simplification.
13628 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
13629 parameter.
13630 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
13631 in iv base using loop initial conditions.
13632
13633 2015-09-16 Jeff Law <law@redhat.com>
13634
13635 PR tree-optimization/47679
13636 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
13637 (free_all_edge_infos): Use it.
13638 (allocate_edge_info): Free preexisting edge info data.
13639 (pass_dominator::execute): Set up initial edge info structures.
13640 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
13641 thread_across_edge.
13642 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
13643 If non-null, then push/pop markers appropriately.
13644 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13645 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
13646 thread-across_edge.
13647
13648 2015-09-16 James Bowman <james.bowman@ftdichip.com>
13649
13650 * config/ft32/ft32.c: Fix the memory address space predicate.
13651
13652 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
13653
13654 PR target/67573
13655 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
13656 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13657
13658 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13659
13660 * toplev.h (check_global_declaration): Remove declaration.
13661 * toplev.c (check_global_declaration): Move to ...
13662 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
13663 (analyze_functions): Update call.
13664
13665 2015-09-16 David S. Miller <davem@davemloft.net>
13666
13667 * lra-constraints.c (simplify_operand_subreg): Do not assume that
13668 lowpart of a SUBREG has offset zero.
13669
13670 2015-09-16 Jeff Law <law@redhat.com>
13671
13672 PR tree-optimization/47679
13673 * tree-ssa-dom.c (enum expr_kind): Moved from here to
13674 tree-ssa-scopedtables.h.
13675 (struct hashable_expr, class expr_hash_elt): Likewise.
13676 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
13677 Move associated methods into tree-ssa-scopedtables.c.
13678 (avail_expr_hash, initialize_expr_from_cond): Similarly.
13679 (hashable_expr_equal_p, add_expr_commutative): Likewise.
13680 (add_hashable_expr): Likewise.
13681 (record_cond): Delete element directly.
13682 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
13683 private copy ctor and assignment operator methods.
13684 (expr_elt_hasher): Inline trivial methods.
13685 (initialize_expr_from_cond): Prototype.
13686 * tree-ssa-scopedtables.c: Add necessary includes, functions and
13687 methods that were previously in tree-ssa-dom.c. Improve various
13688 comments.
13689
13690 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
13691
13692 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
13693
13694 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
13695
13696 PR bootstrap/67587
13697 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13698 fixup_partitions.
13699
13700 2015-09-16 Richard Biener <rguenther@suse.de>
13701
13702 PR middle-end/67253
13703 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
13704 location of possibly shared trees.
13705
13706 2015-09-16 Richard Biener <rguenther@suse.de>
13707
13708 PR middle-end/67271
13709 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
13710
13711 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
13712
13713 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
13714 offset and size computations instead of HOST_WIDE_INT.
13715
13716 2015-09-16 Richard Biener <rguenther@suse.de>
13717
13718 PR middle-end/67442
13719 * fold-const.c (extract_muldiv_1): Properly extend multiplication
13720 result before builting a tree via wide_int_to_tree.
13721
13722 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
13723
13724 * Makefile.in: Add memory-block.cc
13725 (pool_allocator::initialize): Use fixed block size.
13726 (pool_allocator::release): Use memory_block_pool.
13727 (pool_allocator::allocate): Likewise.
13728 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
13729 object pools.
13730 * cfg.c (initialize_original_copy_tables): Likewise.
13731 * cselib.c (elt_list_pool, elt_loc_list_pool,
13732 cselib_val_pool): Likewise.
13733 * df-problems.c (df_chain_alloc): Likewise.
13734 * df-scan.c (df_scan_alloc): Likewise.
13735 * dse.c (cse_store_info_pool, rtx_store_info_pool,
13736 read_info_type_pool, insn_info_type_pool, bb_info_pool,
13737 group_info_pool, deferred_change_pool): Likewise.
13738 * et-forest.c (et_nodes, et_occurrences): Likewise.
13739 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
13740 ipcp_agg_lattice_pool): Likewise.
13741 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
13742 * ipa-profile.c (histogram_pool): Likewise.
13743 * ipa-prop.c (ipa_refdesc_pool): Likewise.
13744 * ira-build.c (live_range_pool, allocno_pool, object_pool,
13745 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
13746 * ira-color.c (update_cost_record_pool): Likewise.
13747 * lra-lives.c (lra_live_range_pool): Likewise.
13748 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
13749 * memory-block.cc: New file.
13750 * memory-block.h: New file.
13751 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
13752 * sched-deps.c (sched_deps_init): Likewise.
13753 * sel-sched-ir.c (sched_lists_pool): Likewise.
13754 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
13755 * tree-sra.c (access_pool): Likewise.
13756 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13757 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
13758 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
13759 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13760 * tree-ssa-strlen.c (strinfo_pool): Likewise.
13761 * tree-ssa-structalias.c (variable_info_pool): Likewise.
13762 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
13763 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
13764
13765 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13766
13767 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
13768 definition.
13769 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
13770 call0 ABI.
13771
13772 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13773
13774 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
13775 to pass TLS call argument, according to current ABI.
13776 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
13777 callx0 for TLS call, according to current ABI.
13778
13779 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13780
13781 * tree-eh.c (lower_try_finally_dup_block): Clear location information
13782 on stack restore statements.
13783 (decide_copy_try_finally): Do not consider a stack restore statement as
13784 coming from sources.
13785
13786 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
13787
13788 * config/alpha/alpha.c (alpha_expand_block_clear): Use
13789 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
13790
13791 2015-09-15 Jeff Law <law@redhat.com>
13792
13793 PR tree-optimization/47679
13794 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
13795 methods and private members.
13796 (avail_exprs_stack): Similarly. Change type of global
13797 from a pair of expr_hash_elt_t to the new class.
13798 (expr_elt_hasher::hash): Corresponding changes.
13799 (expr_elt_hasher::equal): Similarly.
13800 (avail_expr_hash): Similarly.
13801 (pass_dominator::execute): Similarly.
13802 (dom_opt_dom_walker::thread_across_edge): Similarly.
13803 (record_cond): Similarly.
13804 (dom_opt_dom_walker::before_dom_children): Similarly.
13805 (dom_opt_dom_walker::after_dom_children): Similarly.
13806 (lookup_avail_expr): Likewise.
13807 (initialize_hash_element): Now a expr_hash_elt constructor.
13808 (initialize_hash_element_from_expr): Similarly.
13809 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
13810 (free_expr_hash_elt): Call dtor for the element.
13811 (remove_local_expressions_from_table): Now the "pop_to_marker"
13812 method in the available_exprs_stack class.
13813 (avail_expr_stack::record_expr): Method factored out.
13814 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
13815 Fix formatting.
13816 (hashable_expr_equal_p): Fix formatting.
13817
13818 2015-09-15 David Malcolm <dmalcolm@redhat.com>
13819
13820 * input.h (location_get_source_line): Drop "expanded_location"
13821 param in favor of a file and line number.
13822 * input.c (location_get_source_line): Likewise.
13823 (dump_location_info): Update for change in signature of
13824 location_get_source_line.
13825 * diagnostic.c (diagnostic_print_caret_line): Likewise.
13826
13827 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13828
13829 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
13830 Bump to 4KB for SJLJ exceptions.
13831 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
13832 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
13833 * doc/tm.texi: Regenerate.
13834
13835 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13836
13837 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
13838 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
13839 Update prototype.
13840
13841 2015-09-15 Richard Biener <rguenther@suse.de>
13842
13843 PR tree-optimization/67470
13844 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
13845 structure for PHI hoisting by inserting a forwarder block
13846 if appropriate.
13847
13848 2015-09-15 Christian Bruel <christian.bruel@st.com>
13849
13850 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
13851 (arm_option_print): New function.
13852
13853 2015-09-15 Christian Bruel <christian.bruel@st.com>
13854
13855 PR target/52144
13856 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
13857 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
13858 Remove flags parameter.
13859 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
13860 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
13861 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
13862 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
13863 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
13864 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
13865 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
13866 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
13867
13868 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13869
13870 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
13871
13872 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
13873 AARCH64_VALID_SIMD_DREG_MODE.
13874
13875 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13876
13877 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
13878 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
13879 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
13880 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
13881 aarch64_ld4_lane<mode>): Combine together, making...
13882 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13883 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13884 aarch64_st4_lane<mode>): Combine together, making...
13885 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13886 * config/aarch64/iterators.md (nregs): Add comment.
13887
13888 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13889
13890 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
13891 Change operand mode from <V_TWO_ELEM> to BLK.
13892 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
13893 (aarch64_vec_store_lanesoi_lane<mode): Likewise
13894 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13895 (aarch64_ld2_lane<mode>): Likewise.
13896 (aarch64_st2_lane<VQ:mode>): Likewise.
13897 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
13898
13899 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13900
13901 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
13902 Change operand mode from <V_FOUR_ELEM> to BLK.
13903 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13904 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
13905 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13906 (aarch64_ld4_lane<mode>): Likewise.
13907 (aarch64_st4_lane<mode>): Likewise.
13908 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
13909
13910 2015-09-15 Richard Biener <rguenther@suse.de>
13911
13912 PR middle-end/67563
13913 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
13914 transfer EH info from old to new stmt.
13915 (replace_call_with_value): Likewise.
13916 (replace_call_with_call_and_fold): Likewise.
13917 (gimple_fold_builtin_memory_op): Likewise.
13918 (gimple_fold_builtin_memset): Likewise.
13919 (gimple_fold_builtin_stpcpy): Likewise.
13920 (gimple_fold_call): Likewise.
13921
13922 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13923
13924 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
13925 comment.
13926 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
13927 (aarch64_simd_intEI_type_node): Likewise.
13928 (aarch64_simd_builtin_std_type): Remove EImode case.
13929 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
13930 * config/aarch64/aarch64-modes.def: Remove EImode.
13931
13932 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13933
13934 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
13935 Change operand mode from <V_THREE_ELEM> to BLK.
13936 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13937 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
13938 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13939 (aarch64_ld3_lane<mode>): Likewise.
13940 (aarch64_st3_lane<mode>): Likewise.
13941 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
13942
13943 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13944
13945 * config/aarch64/aarch64-simd.md
13946 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
13947 Change all TImode operands to BLKmode.
13948 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
13949 Change all EImode operands to BLKmode.
13950 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
13951 Change all OImode operands to BLKmode.
13952
13953 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
13954 and call set_mem_size.
13955 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
13956
13957 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
13958
13959 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13960
13961 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
13962 to...
13963 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
13964
13965 (vec_store_lanesci_lane<mode>): Rename to...
13966 (aarch64_vec_store_lanesci_lane<mode>): ...this.
13967
13968 (vec_store_lanesxi_lane<mode>): Rename to...
13969 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
13970
13971 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13972 aarch64_st4_lane<mode>): Follow renaming.
13973
13974 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13975
13976 * config/s390/s390.c (s390_const_operand_ok): Add missing
13977 brackets.
13978
13979 2015-09-15 Richard Biener <rguenther@suse.de>
13980
13981 PR lto/67568
13982 * lto-streamer.h (lto_location_cache::current_sysp): Properly
13983 initialize.
13984 * lto-streamer-out.c (clear_line_info): Likewise.
13985
13986 2015-09-15 Richard Biener <rguenther@suse.de>
13987
13988 * doc/match-and-simplify.texi: Fix wording.
13989
13990 2015-09-15 Bin Cheng <bin.cheng@arm.com>
13991
13992 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
13993 unnecessary type conversion in op1.
13994
13995 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
13996
13997 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
13998 (dup_block_and_redirect): Delete function.
13999 (can_dup_for_shrink_wrapping): New function.
14000 (fix_fake_fallthrough_edge): New function.
14001 (try_shrink_wrapping): Rewrite function.
14002 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14003
14004 2015-09-14 Rich Felker <dalias@libc.org>
14005
14006 * configure.ac: Change target pattern for sh TLS support
14007 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14008 * configure: Regenerate.
14009
14010 2015-09-14 Jeff Law <law@redhat.com>
14011
14012 PR tree-optimization/47679
14013 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14014 type rather than void *.
14015
14016 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14017
14018 PR fortran/67460
14019 * diagnostic.c (diagnostic_initialize): Do not set
14020 some_warnings_are_errors.
14021 (diagnostic_finish): Use DK_WERROR count instead.
14022 (diagnostic_report_diagnostic): Do not set
14023 some_warnings_are_errors.
14024 * diagnostic.h (struct diagnostic_context): Remove
14025 some_warnings_are_errors.
14026
14027 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
14028
14029 * config/sparc/predicates.md (const_all_ones_operand): Use
14030 CONSTM1_RTX to simplify definition.
14031
14032 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
14033
14034 PR target/67061
14035 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14036 Handle call insns.
14037
14038 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
14039
14040 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14041 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14042 OPT_fshow_column to handled saved option cases.
14043 (append_compiler_options): Do not skip the above added options.
14044
14045 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14046
14047 PR target/63304
14048 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14049 nopcrelative_literal_loads.
14050 (aarch64_classify_address): Likewise.
14051 (aarch64_constant_pool_reload_icode): Define.
14052 (aarch64_secondary_reload): Handle secondary reloads for
14053 literal pools.
14054 (aarch64_override_options): Handle nopcrelative_literal_loads.
14055 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14056 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14057 Define.
14058 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14059 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14060 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14061 predicate.
14062 * doc/invoke.texi (mpc-relative-literal-loads): Document.
14063
14064 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
14065
14066 PR middle-end/67401
14067 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14068 sync_compare_and_swap_optab libcall to target_oval.
14069
14070 2015-09-14 Marek Polacek <polacek@redhat.com>
14071
14072 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14073 value.
14074 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14075
14076 2015-09-11 Mark Wielaard <mjw@redhat.com>
14077
14078 PR c/28901
14079 * toplev.c (check_global_declaration): Check and use
14080 warn_unused_const_variable.
14081 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14082 (-Wunused-variable): Remove non-constant. For C implies
14083 -Wunused-const-variable.
14084 (-Wunused-const-variable): New.
14085
14086 2015-09-14 Richard Biener <rguenther@suse.de>
14087
14088 * doc/match-and-simplify.texi: Update for changed syntax
14089 of inner ifs and the new switch expression.
14090
14091 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14092
14093 * config/i386/haswell.md: New file describing Haswell pipeline.
14094 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14095 haswell-like processors.
14096 (ix86_reassociation_width): Increase reassociation width for 64-bit
14097 Haswell processor family.
14098 * config/i386/i386.md: Introduce haswell cpu and include new md file.
14099
14100 2015-09-14 Richard Biener <rguenther@suse.de>
14101
14102 * doc/match-and-simplify.texi: Fixup some formatting issues
14103 and document the 's' flag.
14104
14105 2015-09-13 Olivier Hainque <hainque@adacore.com>
14106 Eric Botcazou <ebotcazou@adacore.com>
14107
14108 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14109 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
14110 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14111 (TARGET_CPU_gr5): Likewise.
14112 (TARGET_CPU_gr6): Likewise.
14113 (MULTILIB_DEFAULTS): Likewise.
14114 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14115 for mcpu=gr5 and mcpu=gr6.
14116 (MULTILIB_DIRNAMES): Adjust accordingly.
14117
14118 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14119
14120 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14121 (mem_ref_p): Likewise.
14122 (outermost_indep_loop): Adjust.
14123 (mem_ref_in_stmt): Likewise.
14124 (determine_max_movement): Likewise.
14125 (mem_ref_alloc): Likewise.
14126 (record_mem_ref_loc): Likewise.
14127 (set_ref_stored_in_loop): Likewise.
14128 (mark_ref_stored): Likewise.
14129 (gather_mem_refs_stmt): Likewise.
14130 (mem_refs_may_alias_p): Likewise.
14131 (for_all_locs_in_loop): Likewise.
14132 (struct rewrite_mem_ref_loc): Likewise.
14133 (rewrite_mem_refs): Likewise.
14134 (struct first_mem_ref_loc_1): Likewise.
14135 (first_mem_ref_loc): Likewise.
14136 (struct sm_set_flag_if_changed): Likewise.
14137 (execute_sm_if_changed_flag_set): Likewise.
14138 (execute_sm): Likewise.
14139 (hoist_memory_references):
14140 (struct ref_always_accessed): Likewise.
14141 (ref_always_accessed_p): Likewise.
14142 (refs_independent_p): Likewise.
14143 (record_dep_loop): Likewise.
14144 (ref_indep_loop_p_1): Likewise.
14145 (ref_indep_loop_p_2): Likewise.
14146 (ref_indep_loop_p): Likewise.
14147 (can_sm_ref_p): Likewise.
14148 (find_refs_for_sm): Likewise.
14149 (tree_ssa_lim_finalize): Likewise.
14150
14151 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14152
14153 * dwarf2out.c (dw_attr_ref): Remove typedef.
14154 (dw_line_info_ref): Likewise.
14155 (pubname_ref): Likewise.
14156 (dw_ranges_ref): Likewise.
14157 (dw_ranges_by_label_ref): Likewise.
14158 (comdat_type_node_ref): Likewise.
14159 (get_AT): Adjust.
14160 (get_AT_low_pc): Likewise.
14161 (get_AT_hi_pc): Likewise.
14162 (get_AT_string): Likewise.
14163 (get_AT_flag): Likewise.
14164 (get_AT_unsigned): Likewise.
14165 (get_AT_ref): Likewise.
14166 (get_AT_file): Likewise.
14167 (remove_AT): Likewise.
14168 (print_die): Likewise.
14169 (check_die): Likewise.
14170 (die_checksum): Likewise.
14171 (attr_checksum_ordered): Likewise.
14172 (struct checksum_attributes): Likewise.
14173 (collect_checksum_attributes): Likewise.
14174 (die_checksum_ordered): Likewise.
14175 (same_die_p): Likewise.
14176 (is_declaration_die): Likewise.
14177 (clone_die): Likewise.
14178 (clone_as_declaration): Likewise.
14179 (copy_declaration_context): Likewise.
14180 (break_out_comdat_types): Likewise.
14181 (copy_decls_walk): Likewise.
14182 (output_location_lists): Likewise.
14183 (external_ref_hasher::hash): Likewise.
14184 (optimize_external_refs_1): Likewise.
14185 (build_abbrev_table): Likewise.
14186 (size_of_die): Likewise.
14187 (unmark_all_dies): Likewise.
14188 (size_of_pubnames): Likewise.
14189 (output_die_abbrevs): Likewise.
14190 (output_die): Likewise.
14191 (output_pubnames): Likewise.
14192 (add_ranges_num): Likewise.
14193 (add_ranges_by_labels): Likewise.
14194 (add_high_low_attributes): Likewise.
14195 (gen_producer_string): Likewise.
14196 (dwarf2out_set_name): Likewise.
14197 (new_line_info_table): Likewise.
14198 (prune_unused_types_walk_attribs): Likewise.
14199 (prune_unused_types_update_strings): Likewise.
14200 (prune_unused_types): Likewise.
14201 (resolve_addr): Likewise.
14202 (optimize_location_lists_1): Likewise.
14203 (index_location_lists): Likewise.
14204 (dwarf2out_finish): Likewise.
14205
14206 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14207
14208 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14209
14210 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14211
14212 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14213 (dump_asserts_for): Adjust.
14214 (register_new_assert_for): Likewise.
14215 (process_assert_insertions): Likewise.
14216 (insert_range_assertions): Likewise.
14217
14218 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14219
14220 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14221 and remove typedef.
14222 (new_temp_expr_table): Adjust.
14223 (free_temp_expr_table): Likewise.
14224 (version_to_be_replaced_p): Likewise.
14225 (make_dependent_on_partition): Likewise.
14226 (add_to_partition_kill_list): Likewise.
14227 (remove_from_partition_kill_list): Likewise.
14228 (add_dependence): Likewise.
14229 (finished_with_expr): Likewise.
14230 (process_replaceable): Likewise.
14231 (kill_expr): Likewise.
14232 (kill_virtual_exprs): Likewise.
14233 (mark_replaceable): Likewise.
14234 (find_replaceable_in_bb): Likewise.
14235 (find_replaceable_exprs): Likewise.
14236 (debug_ter): Likewise.
14237
14238 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14239
14240 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14241 (struct btr_user): Rename from btr_user_s.
14242 (struct btr_def): Rename from btr_def_s.
14243 (find_btr_def_group): Adjust.
14244 (add_btr_def): Likewise.
14245 (new_btr_user): Likewise.
14246 (note_other_use_this_block): Likewise.
14247 (compute_defs_uses_and_gen): Likewise.
14248 (link_btr_uses): Likewise.
14249 (build_btr_def_use_webs): Likewise.
14250 (block_at_edge_of_live_range_p): Likewise.
14251 (btr_def_live_range): Likewise.
14252 (combine_btr_defs): Likewise.
14253 (move_btr_def): Likewise.
14254 (migrate_btr_def): Likewise.
14255 (migrate_btr_defs): Likewise.
14256
14257 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14258
14259 * var-tracking.c (shared_hash_def): Rename to shared_hash.
14260 (shared_hash): Remove typedef.
14261 (struct dataflow_set): Adjust.
14262 (shared_hash_unshare): Likewise.
14263 (dataflow_set_merge): Likewise.
14264 (vt_initialize): Likewise.
14265 (vt_finalize): Likewise.
14266
14267 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14268
14269 * var-tracking.c (struct location_chain): Rename from
14270 location_chain_def.
14271 (struct variable_part): Adjust.
14272 (variable_htab_free): Likewise.
14273 (unshare_variable): Likewise.
14274 (get_init_value): Likewise.
14275 (get_addr_from_local_cache): Likewise.
14276 (drop_overlapping_mem_locs): Likewise.
14277 (val_reset): Likewise.
14278 (struct variable_union_info): Likewise.
14279 (variable_union): Likewise.
14280 (find_loc_in_1pdv): Likewise.
14281 (insert_into_intersection): Likewise.
14282 (intersect_loc_chains): Likewise.
14283 (canonicalize_loc_order_check): Likewise.
14284 (canonicalize_values_mark): Likewise.
14285 (canonicalize_values_star): Likewise.
14286 (canonicalize_vars_star): Likewise.
14287 (variable_merge_over_cur): Likewise.
14288 (remove_duplicate_values): Likewise.
14289 (variable_post_merge_new_vals): Likewise.
14290 (variable_post_merge_perm_vals): Likewise.
14291 (find_mem_expr_in_1pdv): Likewise.
14292 (dataflow_set_preserve_mem_locs): Likewise.
14293 (dataflow_set_remove_mem_locs): Likewise.
14294 (variable_part_different_p): Likewise.
14295 (onepart_variable_different_p): Likewise.
14296 (find_src_set_src): Likewise.
14297 (dump_var): Likewise.
14298 (set_slot_part): Likewise.
14299 (clobber_slot_part): Likewise.
14300 (delete_slot_part): Likewise.
14301 (vt_expand_var_loc_chain): Likewise.
14302 (emit_note_insn_var_location): Likewise.
14303 (vt_finalize): Likewise.
14304
14305 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14306
14307 * dse.c (store_info_t): Remove typedef.
14308 (group_info_t): Likewise.
14309 (const_group_info_t): Likewise.
14310 (deferred_change_t): Likewise.
14311 (get_group_info): Adjust.
14312 (free_store_info): Likewise.
14313 (canon_address): Likewise.
14314 (clear_rhs_from_active_local_stores): Likewise.
14315 (record_store): Likewise.
14316 (replace_read): Likewise.
14317 (check_mem_read_rtx): Likewise.
14318 (scan_insn): Likewise.
14319 (remove_useless_values): Likewise.
14320 (dse_step1): Likewise.
14321 (dse_step2_init): Likewise.
14322 (dse_step2_nospill): Likewise.
14323 (scan_stores_nospill): Likewise.
14324 (scan_reads_nospill): Likewise.
14325 (dse_step3_exit_block_scan): Likewise.
14326 (dse_step3): Likewise.
14327 (dse_step5_nospill): Likewise.
14328 (dse_step6): Likewise.
14329
14330 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14331
14332 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14333 (alias_set_entry): Remove typedef.
14334 (alias_set_subset_of): Adjust.
14335 (alias_sets_conflict_p): Likewise.
14336 (init_alias_set_entry): Likewise.
14337 (get_alias_set): Likewise.
14338 (new_alias_set): Likewise.
14339 (record_alias_subset): Likewise.
14340
14341 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
14342
14343 * doc/install.texi (Downloading the source): Mark up
14344 contrib/download_prerequisites properly and drop leading "./".
14345
14346 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14347
14348 * config/arc/arc.h: Remove define of STRUCT_VALUE.
14349 * config/lm32/lm32.h: Likewise.
14350 * config/mep/mep.h: Likewise.
14351 * config/visium/visium.h: Likewise.
14352 * system.h: Poison STRUCT_VALUE macro.
14353
14354 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
14355
14356 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14357 CONSTANT_P operands.
14358
14359 2015-09-11 David S. Miller <davem@davemloft.net>
14360
14361 * config/sparc/constraints.md: Make "U" constraint a real register
14362 constraint.
14363 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14364 (D_MODES, DF_MODES): Add missing cast.
14365 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14366 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14367 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14368 cost to 8.
14369 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14370 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14371 provide these insn when flag_pic.
14372
14373 2015-09-11 Jeff Law <law@redhat.com>
14374
14375 PR tree-optimization/47679
14376 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14377 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14378 member with m_. Update inline member functions as necessary. Add
14379 toplevel comment.
14380 * tree-ssa-scopedtables.c: Update const_and_copies's member
14381 functions to use m_ prefix to access the stack.
14382
14383 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14384
14385 * graphite-optimize-isl.c (disable_tiling): Remove.
14386 (get_schedule_for_band): Do not use disable_tiling.
14387 (get_prevector_map): Delete function.
14388 (enable_polly_vector): Remove.
14389 (get_schedule_for_band_list): Remove dead code.
14390
14391 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14392
14393 * graphite-optimize-isl.c (get_tile_map): Refactor.
14394 (get_schedule_for_band): Same.
14395 (getScheduleForBand): Same.
14396 (get_prevector_map): Same.
14397 (get_schedule_for_band_list): Same.
14398 (get_schedule_map): Same.
14399 (get_single_map): Same.
14400 (apply_schedule_map_to_scop): Same.
14401 (optimize_isl): Same.
14402
14403 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14404
14405 PR target/63304
14406 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
14407 (movtf): Delete.
14408 * config/aarch64/iterators.md (GPF_TF_F16): New.
14409 (GPF_F16): Delete.
14410
14411 2015-09-10 Nathan Sidwell <nathan@acm.org>
14412
14413 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
14414 (nvptx_reorg): Adjust comments.
14415
14416 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
14417
14418 PR bootstrap/67363
14419 * configure.ac: Check if setenv and unsetenv are declared.
14420 * configure: Rebuild.
14421 * config.in: Rebuild.
14422 * system.h: Declare setenv and unsetenv if not declared.
14423
14424 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14425
14426 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
14427 commentary to simplify permute mask adjustment equation.
14428 (special_handling_values): Add SH_VPERM.
14429 (const_load_sequence_p): New function.
14430 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
14431 the mask loaded from the constant pool.
14432 (adjust_vperm): New function.
14433 (handle_special_swappables): Call adjust_vperm.
14434 (dump_swap_insn_table): Handle SH_VPERM.
14435
14436 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
14437
14438 * shrink-wrap.c (requires_stack_frame_p): Remove static.
14439 * shrink-wrap.h (requires_stack_frame_p): Put back.
14440
14441 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
14442
14443 * reload1.c (elimination_costs_in_insn): Locally turn
14444 -Wmaybe-uninitialized into a warning.
14445
14446 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
14447
14448 * shrink-wrap.c (requires_stack_frame_p): Make static.
14449 (prepare_shrink_wrap): Likewise.
14450 (dup_block_and_redirect): Likewise.
14451 * shrink-wrap.h: Remove declarations of those functions.
14452
14453 2015-09-10 Mark Wielaard <mjw@redhat.com>
14454
14455 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
14456
14457 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
14458
14459 PR target/67506
14460 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
14461 missing simplify_gen_subreg.
14462
14463 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14464
14465 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
14466 the vector element is bigger than 64 bit.
14467
14468 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14469
14470 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
14471 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
14472
14473 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14474
14475 * config/s390/s390.c: Add V1TImode to constant pool modes.
14476
14477 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14478
14479 PR target/67439
14480 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
14481 predicate. Set predicable_short_it attr to "no".
14482
14483 2015-09-10 Jiong Wang <jiong.wang@arm.com>
14484
14485 PR rtl-optimization/67421
14486 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
14487 left wide shift tranformation.
14488
14489 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14490
14491 * common/config/arc/arc-common.c: Remove references to A5.
14492 * config/arc/arc-opts.h: Likewise.
14493 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
14494 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
14495 * config/arc/t-arc-newlib: Likewise.
14496
14497 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14498
14499 * config/arc/arc.md (length): Fix attribute length for conditional
14500 executed instructions with long immediate.
14501
14502 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14503
14504 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
14505 type for second alternative.
14506
14507 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
14508
14509 * doc/invoke.texi (Downloading GCC): Mention
14510 contrib/download_prerequisites script.
14511
14512 2015-09-10 Jakub Jelinek <jakub@redhat.com>
14513
14514 PR c++/67523
14515 * gimplify.c (gimplify_omp_for): If inner stmt is not found
14516 for combined loop, assert seen_error () and return GS_ERROR.
14517
14518 PR middle-end/67521
14519 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
14520 if decl is already in outer->variables.
14521
14522 PR middle-end/67517
14523 * gimplify.c (gimplify_scan_omp_clauses): Instead of
14524 asserting that decl is not specified in octx->variables,
14525 break out of the loop if it is.
14526
14527 PR c++/67514
14528 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
14529 iterator is not explicitly determined, but is defined inside
14530 of the combined workshare region, handle it like if it has
14531 DECL_EXPR in OMP_FOR_PRE_BODY.
14532
14533 2015-09-09 Nathan Sidwell <nathan@acm.org>
14534
14535 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
14536 (*cmp<mode>): Add assembler spacing.
14537 (setcc_int<mode>, set_cc_float<mode>): Likewise.
14538 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
14539 level.
14540 (write_func_decl_from_insn): Refactor argument loops & comma emission.
14541 (nvptx_expand_call): Likewise.
14542 (nvptx_output_call_insn): Likewise.
14543 (nvptx_reorg_subreg): Add spacing.
14544
14545 2015-09-09 Marek Polacek <polacek@redhat.com>
14546
14547 PR middle-end/67512
14548 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
14549 for comparisons.
14550
14551 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
14552
14553 PR c++/53184
14554 * doc/invoke.texi ([Wsubobject-linkage]): Document.
14555
14556 2015-09-09 Tom de Vries <tom@codesourcery.com>
14557
14558 * params-list.h: Add missing copyright notice.
14559
14560 2015-09-09 Nathan Sidwell <nathan@acm.org>
14561
14562 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
14563 sel_truesi, not andsi.
14564
14565 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14566
14567 * config/arm/arm.md (*subsi3_compare0): Rename to...
14568 (subsi3_compare0): ... This.
14569 (modsi3): New define_expand.
14570 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
14571 when operand is power of 2.
14572
14573 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14574
14575 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
14576 (*neg<mode>2_compare0): Rename to...
14577 (neg<mode>2_compare0): ... This.
14578 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
14579 Move check for speed inside the if-then-elses. Reflect
14580 CSNEG sequence in MOD by power of 2 case.
14581
14582 2015-09-09 Alan Modra <amodra@gmail.com>
14583
14584 PR target/67378
14585 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
14586 reload replacement for PRE_MODIFY address reg.
14587
14588 2015-09-09 Sebastian Pop <s.pop@samsung.com>
14589
14590 PR tree-optimization/53852
14591 * config.in: Regenerate.
14592 * configure: Regenerate.
14593 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
14594 * graphite-optimize-isl.c (optimize_isl): Stop computation when
14595 PARAM_MAX_ISL_OPERATIONS is reached.
14596 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
14597 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
14598 result equal to isl_stat_ok as the status now can be isl_error_quota.
14599 (subtract_commutative_associative_deps): Same.
14600 (compute_deps): Same.
14601
14602 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14603 Sebastian Pop <s.pop@samsung.com>
14604
14605 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14606 Return the parameter if it was saved in corresponding
14607 parameter_rename_map of the region.
14608 (copy_def): Copy def from sese region to the newly created region.
14609 (copy_internal_parameters): Copy all the internal parameters defined
14610 within a region to the newly created region.
14611 (graphite_regenerate_ast_isl): Copy parameters to the new region before
14612 translating isl to gimple.
14613 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
14614 the loop-nest does not have any data-references.
14615 (build_graphite_scops): Create a scop only when there is at least one
14616 loop inside it.
14617 (contains_only_close_phi_nodes): Deleted.
14618 (print_graphite_scop_statistics): Deleted
14619 (print_graphite_statistics): Deleted
14620 (limit_scops): Deleted.
14621 (build_scops): Removed call to limit_scops.
14622 * sese.c (new_sese): Construct.
14623 (free_sese): Destruct.
14624 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
14625 added.
14626 (set_rename): Pass sese region so that parameters inside the region can
14627 be added to its parameter_rename_map.
14628 (rename_uses): Pass sese region.
14629 (graphite_copy_stmts_from_block): Do not copy parameters that have been
14630 generated in the header of the scop. For each SSA_NAME in the
14631 parameter_rename_map rename its usage.
14632 (invariant_in_sese_p_rec): Return false if tree t is defined outside
14633 sese region.
14634 (scalar_evolution_in_region): If the tree t is invariant just return t.
14635 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
14636 struct sese to keep track of all the parameters which need renaming.
14637 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
14638 any data-refs.
14639 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
14640
14641 2015-09-08 Tom de Vries <tom@codesourcery.com>
14642
14643 * Makefile.in (generated_files): Add params.list.
14644 (params.list, s-params.list): Add rule.
14645 * params.h (enum compiler_param): Include params-list.h. Move define
14646 DEFPARAM, include params.def and undef DEFPARAM ...
14647 * params-list.h: ... here. New file.
14648
14649 2015-09-08 David Malcolm <dmalcolm@redhat.com>
14650
14651 * pretty-print.h (printer_fn): Fix typo in comment.
14652
14653 2015-09-07 Jeff Law <law@redhat.com>
14654
14655 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
14656
14657 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14658
14659 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
14660 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
14661 (arm_neon_fp16_hw): New.
14662
14663 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14664
14665 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
14666 UNITS_PER_WORD >= 4.
14667
14668 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14669
14670 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
14671 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
14672 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
14673 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
14674 (aarch64_float_extend_lo_v2df): Rename to...
14675 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
14676
14677 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
14678 (float_extend_lo): Add v4sf.
14679
14680 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
14681 * config/aarch64/iterators.md (VQ_HSF): New iterator.
14682 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
14683 (Vwide): New mode_attr.
14684
14685 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14686
14687 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
14688 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
14689 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
14690 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
14691 V4HF and V8HF variants to iterator.
14692
14693 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
14694
14695 * config/aarch64/iterators.md (VDQF_F16): New.
14696 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
14697
14698 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14699
14700 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
14701 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14702 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
14703 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
14704 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
14705 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14706 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
14707 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
14708 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
14709 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
14710 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
14711 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14712 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
14713 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
14714 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
14715 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
14716 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
14717 vld1q_dup_f16): New.
14718
14719 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14720
14721 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
14722 Reparameterize to...
14723 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
14724 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
14725 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
14726
14727 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
14728 v8hf variant.
14729 (float_truncate_lo_): Use BUILTIN_VDF iterator.
14730
14731 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
14732
14733 * config/aarch64/iterators.md (VDF, Vdtype): New.
14734 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
14735
14736 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14737
14738 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
14739 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
14740 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
14741 Add __builtin_aarch64_simd_hf.
14742 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
14743 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
14744 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
14745 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
14746 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
14747 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
14748 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
14749 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
14750 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
14751
14752 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
14753 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
14754 (VDC, Vdbl): Add V4HF.
14755
14756 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14757
14758 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
14759 V4HFmode and V8HFmode.
14760 (aarch64_split_simd_move): Add case for V8HFmode.
14761 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
14762 (aarch64_simd_builtin_std_type): Handle HFmode.
14763 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
14764
14765 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
14766 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
14767 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
14768
14769 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
14770 Float16x8_t.
14771
14772 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
14773 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
14774 New typedefs.
14775 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
14776 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
14777 vst1q_lane_f16): New.
14778 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
14779 (VALLDI_F16, VALL_F16): New.
14780 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
14781 Add cases for V4HF and V8HF.
14782 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
14783
14784 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14785
14786 * config/arm/arm-builtins.c (VAR11, VAR12): New.
14787 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
14788 vld4_dup): Add v4hf variant.
14789 (vget_high, vget_low): Add v8hf variant.
14790 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
14791 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
14792 v4hf and v8hf variants.
14793
14794 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
14795 (VDX): Add V4HF.
14796 (V_DOUBLE): Add case for V4HF.
14797 (VQX): Add V8HF.
14798 (V_HALF): Add case for V8HF.
14799 (VDQX): Add V4HF, V8HF.
14800 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
14801 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
14802
14803 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
14804 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
14805 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
14806 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
14807 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
14808 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
14809 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
14810 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
14811 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
14812
14813 (neon_vcreate, neon_vreinterpretv8qi<mode>,
14814 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14815 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
14816 Change VDX to VD_RE.
14817
14818 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
14819 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
14820 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
14821
14822 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
14823 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
14824 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
14825 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
14826 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
14827 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
14828 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
14829 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
14830 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
14831
14832 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14833
14834 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
14835 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
14836 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
14837 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
14838 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14839 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
14840 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
14841 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
14842 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
14843 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
14844 New.
14845
14846 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14847
14848 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
14849
14850 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
14851
14852 * config/arm/arm-builtins.c (v8hf_UP): New.
14853 (arm_init_simd_builtin_types): Initialise Float16x8_t.
14854
14855 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
14856
14857 * config/arm/arm_neon.h (float16x8_t): New typedef.
14858
14859 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14860
14861 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
14862 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
14863 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
14864 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
14865 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14866 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
14867 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
14868 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
14869 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14870 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
14871
14872 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
14873
14874 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
14875 non-alphanumeric characters in the symbol name.
14876
14877 2015-09-07 Marek Polacek <polacek@redhat.com>
14878
14879 PR inline-asm/67448
14880 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
14881 a memory input.
14882
14883 2015-09-07 Marek Polacek <polacek@redhat.com>
14884
14885 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
14886
14887 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
14888
14889 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
14890 not warn.
14891
14892 2015-09-04 Jakub Jelinek <jakub@redhat.com>
14893
14894 PR middle-end/67452
14895 * tree-ssa-live.c: Include cfgloop.h.
14896 (remove_unused_locals): Clear loop->simduid if simduid is about
14897 to be removed from cfun->local_decls.
14898
14899 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14900
14901 PR target/65210
14902 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
14903 attribute as well.
14904
14905 2015-09-04 Tom de Vries <tom@codesourcery.com>
14906
14907 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
14908
14909 2015-09-04 Jeff Law <law@redhat.com>
14910
14911 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
14912 unnecessary constructor. It's now trivial and implemented inside...
14913 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
14914 constructor. Add comments to various methods. Remove unused
14915 private fields.
14916 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
14917 * tree-vrp.c (identify_jump_threads): Likewise.
14918 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
14919 indentation issues.
14920 (thread_across_edge): Similarly.
14921 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
14922 arguments in constructor call.
14923
14924 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
14925
14926 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
14927 temp path contains a '-'.
14928
14929 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14930 Petr Murzin <petr.murzin@intel.com>
14931 Kirill Yukhin <kirill.yukhin@intel.com>
14932
14933 * config/i386/i386-builtin-types.def
14934 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
14935 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
14936 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
14937 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
14938 * config/i386/i386.c
14939 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
14940 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14941 IX86_BUILTIN_SCATTERALTDIV16SI.
14942 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
14943 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14944 __builtin_ia32_scatteraltdiv8si.
14945 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14946 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14947 IX86_BUILTIN_SCATTERALTDIV16SI.
14948 (ix86_vectorize_builtin_scatter): New.
14949 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
14950 ix86_vectorize_builtin_scatter.
14951
14952 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14953 Petr Murzin <petr.murzin@intel.com>
14954 Kirill Yukhin <kirill.yukhin@intel.com>
14955
14956 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
14957 * doc/tm.texi: Regenerate.
14958 * target.def: Add scatter builtin.
14959 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
14960 for loads/stores in case of gather/scatter accordingly.
14961 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14962 STMT_VINFO_GATHER_P(S).
14963 (vect_check_gather): Rename to ...
14964 (vect_check_gather_scatter): this.
14965 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14966 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
14967 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14968 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
14969 variable and new checkings for it accordingly.
14970 * tree-vect-stmts.c
14971 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14972 STMT_VINFO_GATHER_P(S).
14973 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14974 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
14975
14976 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
14977
14978 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
14979 define_insn.
14980 (mulv16qi3): New define_expand.
14981
14982 2015-09-03 Martin Sebor <msebor@redhat.com>
14983
14984 PR c/66516
14985 * doc/extend.texi (Other Builtins): Document when the address
14986 of a built-in function can be taken.
14987
14988 2015-09-03 Richard Biener <rguenther@suse.de>
14989
14990 * dwarf2out.c (flush_limbo_die_list): Split out from ...
14991 (dwarf2out_early_finish): ... here.
14992 (dwarf2out_finish): Do not call dwarf2out_early_finish but
14993 flush_limbo_die_list. Assert we have no deferred asm names.
14994
14995 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14996
14997 * optabs.c (expand_binop): Don't create a broadcast vector with a
14998 source element wider than the inner mode.
14999
15000 2015-09-03 Richard Biener <rguenther@suse.de>
15001
15002 * varasm.c (output_constant): Use fold_convert instead of
15003 wide_int_to_tree.
15004
15005 2015-09-03 Tom de Vries <tom@codesourcery.com>
15006
15007 PR tree-optimization/65637
15008 * omp-low.c (expand_omp_for_static_chunk): Handle case that
15009 fin_bb has 2 predecessors.
15010
15011 2015-09-03 Tom de Vries <tom@codesourcery.com>
15012
15013 PR tree-optimization/65637
15014 * omp-low.c (find_phi_with_arg_on_edge): New function.
15015 (expand_omp_for_static_chunk): Fix inner loop phi.
15016
15017 2015-09-03 Tom de Vries <tom@codesourcery.com>
15018
15019 PR tree-optimization/65637
15020 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15021 that head is NULL.
15022
15023 2015-09-03 Tom de Vries <tom@codesourcery.com>
15024
15025 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15026
15027 2015-09-03 Tom de Vries <tom@codesourcery.com>
15028
15029 * doc/invoke.texi (parloops-chunk-size): Add item.
15030 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15031 * tree-parloops.c: Include params.h.
15032 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15033 param parloops-chunk-size is used.
15034
15035 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15036
15037 PR middle-end/67351
15038 * fold-const.c (fold_binary_loc) : Move
15039 Transform (x >> c) << c into x & (-1<<c) or
15040 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15041 types using simplify and match.
15042 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15043 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15044
15045 2015-09-03 Richard Biener <rguenther@suse.de>
15046
15047 PR ipa/66705
15048 * tree-ssa-structalias.c (ctor_for_analysis): New function.
15049 (create_variable_info_for_1): Use ctor_for_analysis instead
15050 of get_constructor.
15051 (create_variable_info_for): Likewise.
15052
15053 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
15054
15055 PR ipa/67280
15056 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15057 in new callgraph edge.
15058
15059 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
15060
15061 PR target/59810
15062 PR target/63652
15063 PR target/63653
15064 * config/aarch64/aarch64-simd.md
15065 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15066 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15067 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15068 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15069
15070 2015-09-02 Alan Modra <amodra@gmail.com>
15071
15072 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15073 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15074 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15075
15076 2015-09-02 Alan Modra <amodra@gmail.com>
15077
15078 PR target/67417
15079 * config/rs6000/predicates.md (current_file_function_operand): Don't
15080 return true for weak symbols.
15081 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15082
15083 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
15084 Andrew Bennett <andrew.bennett@imgtec.com>
15085
15086 * config/mips/mips-opts.h (mips_cb_setting): New enum.
15087 * config/mips/mips-protos.h: Add definitions for
15088 mips_output_jump and mips_output_equal_conditional_branch
15089 * config/mips/mips.c (MIPS_JR): Change to support the
15090 JIC instruction.
15091 (mips_emit_compare): Add support for the MIPS R6 conditional
15092 compact branches.
15093 (mips_process_sync_loop): Likewise.
15094 (mips_output_order_conditional_branch): Likewise.
15095 (mips16_build_call_stub): Change MIPS_CALL to
15096 mips_output_jump.
15097 (mips_print_operand_punctuation): Update 's' case to only
15098 apply to micromips r2.
15099 (mips_adjust_insn_length): Add support for forbidden slot
15100 hazards.
15101 (mips_avoid_hazard): Likewise.
15102 (mips_reorg_process_insns): Likewise.
15103 (mips_output_jump): New function.
15104 (mips_output_equal_conditional_branch): Likewise.
15105 (mips_output_conditional_branch): Use jrc/bc if compact
15106 branch support is enabled. Ensure the forbidden slots
15107 between the two branch instructions is filled with a nop.
15108 (mips_option_override): Add support to process the compact
15109 branch option and set the correct defaults. Prevent
15110 non-explict relocs being using for MIPS R6.
15111 (mips_trampoline_init): Add compact branch support.
15112 (mips_mult_zero_zero_cost): Allow zero initialisation of
15113 accumulators with TARGET_DSP.
15114 * config/mips/mips.h (TARGET_CB_NEVER): New define.
15115 (TARGET_CB_MAYBE): New define.
15116 (TARGET_CB_ALWAYS): New define.
15117 (ISA_HAS_DELAY_SLOTS): New define.
15118 (ISA_HAS_COMPACT_BRANCHES): New define.
15119 (ISA_HAS_JRC): New define.
15120 (MIPS_BRANCH_C): New define.
15121 (MIPS_CALL): Removed.
15122 (MICROMIPS_J): Removed.
15123 * config/mips/mips.md (compact_form): New attr.
15124 (hazard): Add support for forbidden slots.
15125 (define_delay): Add support for compact branches.
15126 (*branch_order<mode>): Likewise.
15127 (*branch_order<mode>_inverted): Likewise.
15128 (*branch_equality<mode>): Likewise.
15129 (*branch_equality<mode>_inverted): Likewise.
15130 (*jump_absolute): Likewise.
15131 (*jump_pic): Likewise.
15132 (indirect_jump): Use mips_output_jump to produce assembly output.
15133 (tablejump_<mode>"): Likewise.
15134 (*<optab>"): Likewise.
15135 (<optab>_internal): Likewise.
15136 (sibcall_internal): Likewise.
15137 (sibcall_value_internal): Likewise.
15138 (sibcall_value_multiple_internal): Likewise.
15139 (call_internal): Likewise.
15140 (call_split): Likewise.
15141 (call_internal_direct): Likewise.
15142 (call_direct_split): Likewise.
15143 (call_value_internal): Likewise.
15144 (call_value_split): Likewise.
15145 (call_value_internal_direct): Likewise.
15146 (call_value_direct_split): Likewise.
15147 (call_value_multiple_internal): Likewise.
15148 (call_value_multiple_split): Likewise.
15149 (mips_get_fcsr_mips16_<mode>): Likewise.
15150 (mips_set_fcsr_mips16_<mode>): Likewise.
15151 (tls_get_tp_mips16_<mode>): Likewise.
15152 * config/mips/mips.opt: Add -mcompact-branches option.
15153 * config/mips/predicates.md (order_operator): Ensure the
15154 conditional compact branches are only used if the ISA them.
15155 * doc/invoke.texi: Document -mcompact-branches option.
15156
15157 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
15158
15159 PR target/61578
15160 * lra-lives.c (process_bb_lives): Process move pseudos with the
15161 same value for copies and preferences
15162 * lra-constraints.c (match_reload): Create match reload pseudo
15163 with the same value from single dying input pseudo.
15164
15165 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
15166
15167 PR target/67405
15168 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15169
15170 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
15171
15172 * trans-mem.c: Add contributed-by.
15173 * trans-mem.h: Same.
15174
15175 2015-09-01 Richard Biener <rguenther@suse.de>
15176
15177 * expr.c (expand_expr_real_1): For expanding TERed defs
15178 set the current location to that of the def if not UNKNOWN.
15179
15180 2015-09-01 David Sherwood <david.sherwood@arm.com>
15181
15182 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15183
15184 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15185
15186 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15187 then_cost, else_cost fields. Change branch_cost field to unsigned int.
15188 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15189 Include rtl-iter.h.
15190 (noce_simple_bbs): New function.
15191 (noce_try_move): Bail if basic blocks are not simple.
15192 (noce_try_store_flag): Likewise.
15193 (noce_try_store_flag_constants): Likewise.
15194 (noce_try_addcc): Likewise.
15195 (noce_try_store_flag_mask): Likewise.
15196 (noce_try_cmove): Likewise.
15197 (noce_try_minmax): Likewise.
15198 (noce_try_abs): Likewise.
15199 (noce_try_sign_mask): Likewise.
15200 (noce_try_bitop): Likewise.
15201 (bbs_ok_for_cmove_arith): New function.
15202 (noce_emit_all_but_last): Likewise.
15203 (noce_emit_insn): Likewise.
15204 (noce_emit_bb): Likewise.
15205 (noce_try_cmove_arith): Handle non-simple basic blocks.
15206 (insn_valid_noce_process_p): New function.
15207 (contains_mem_rtx_p): Likewise.
15208 (bb_valid_for_noce_process_p): Likewise.
15209 (noce_process_if_block): Allow non-simple basic blocks
15210 where appropriate.
15211
15212 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
15213
15214 * tree-ssa-dom.c (record_equivalences_from_phis,
15215 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15216 (lookup_avail_expr): Likewise, and remove comment and unused temp.
15217
15218 2015-09-01 Nick Clifton <nickc@redhat.com>
15219
15220 * config/msp430/msp430.opt (mcpu): Fix typo.
15221
15222 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15223
15224 * config/aarch64/aarch64.c (aarch64_set_current_function):
15225 Re-layout any vector parameters have non-simd layout.
15226 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15227 Delete.
15228 (aarch64_simd_expand_args): Delete call to the above.
15229
15230 2015-08-31 Mike Frysinger <vapier@gentoo.org>
15231
15232 * doc/invoke.texi (asan-stack): Add space before option.
15233
15234 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15235
15236 * tree.h (zerop): New function.
15237 * tree.c (zerop): Likewise.
15238 (element_precision): Handle expressions.
15239 * match.pd (define_predicates): Add zerop.
15240 (x <= +Inf): Fix comment.
15241 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15242 * fold-const.c (fold_binary_loc): ... here. Remove.
15243
15244 2015-08-31 Richard Biener <rguenther@suse.de>
15245
15246 PR middle-end/67381
15247 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15248
15249 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15250
15251 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15252 (CEXPI): New operator list.
15253 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15254 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15255 Converted from ...
15256 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15257
15258 2015-08-31 Tom de Vries <tom@codesourcery.com>
15259
15260 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15261 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15262 parameter.
15263 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15264 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15265 (rewrite_into_loop_closed_ssa): ... here.
15266 (replace_uses_in_dominated_bbs): Remove function.
15267 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15268 rewrite_into_loop_closed_ssa_1.
15269
15270 2015-08-31 Michael Matz <matz@suse.de>
15271
15272 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15273 enter entry and exit blocks for reverse post order.
15274
15275 2015-08-31 Richard Biener <rguenther@suse.de>
15276
15277 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15278 (lto_location_cache::current_sysp): Likewise.
15279 (output_block::current_sysp): Likewise.
15280 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15281 (lto_location_cache::apply_location_cache): Properly record
15282 system header locations.
15283 (lto_location_cache::input_location): Input whether a file
15284 is a system header.
15285 * lto-streamer-out.c (lto_output_location): Stream whether a file
15286 is a system header.
15287
15288 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15289
15290 PR bootstrap/67363
15291 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15292
15293 2015-08-31 Tom de Vries <tom@codesourcery.com>
15294
15295 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15296 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15297 Improve function header comments.
15298
15299 2015-08-30 Michael Collison <michael.collison@linaro.org>
15300
15301 PR other/67320
15302 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15303 standard names
15304
15305 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15306
15307 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15308 special_handling bitfield.
15309 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15310 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15311 that represents a general xxpermdi.
15312 (insn_is_swappable_p): Add handling for vec_concat of two
15313 doublewords, which maps to a specific xxpermdi.
15314 (adjust_xxpermdi): New function.
15315 (adjust_concat): Likewise.
15316 (handle_special_swappables): Call adjust_xxpermdi and
15317 adjust_concat.
15318 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15319
15320 2015-08-30 Rich Felker <dalias@libc.org>
15321
15322 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15323 case instead of sh[123456ble]-*-*.
15324
15325 2015-08-29 Anatoly Sokolov <aesok@post.ru>
15326
15327 * ira.c (print_unform_and_important_classes,
15328 print_translated_classes): Remove reg_class_names static array.
15329 (print_unform_and_important_classes): Rename to ...
15330 (print_uniform_and_important_classes): ... this.
15331 (ira_debug_allocno_classes): Update accordingly.
15332
15333 2015-08-29 Tom de Vries <tom@codesourcery.com>
15334
15335 PR tree-optimization/46193
15336 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15337 clause.
15338
15339 2015-08-28 Jeff Law <law@redhat.com>
15340
15341 PR lto/66752
15342 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15343 unable to find X NE 0 in the tables, return X as the simplified
15344 condition.
15345 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15346 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15347 to VISISTED_BBS.
15348 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15349 after removing the control flow statement and unnecessary edges.
15350
15351 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
15352
15353 Revert:
15354 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15355
15356 PR tree-optimization/67283
15357 * tree-sra.c (type_consists_of_records_p): Rename to...
15358 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15359
15360 (completely_scalarize_record): Rename to...
15361 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15362 code to:
15363 (scalarize_elem): New.
15364
15365 2015-08-28 Jiong Wang <jiong.wang@arm.com>
15366
15367 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15368 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15369 (aarch64_symbol_type): Likewise.
15370 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15371 Likewise.
15372 (aarch64_expand_mov_immediate): Likewise.
15373 (aarch64_print_operand): Likewise.
15374 (aarch64_classify_tls_symbol): Likewise.
15375
15376 2015-08-28 Richard Biener <rguenther@suse.de>
15377
15378 * cgraphunit.c (symbol_table::compile): Move early debug generation
15379 and finish...
15380 (symbol_table::finalize_compilation_unit): ... back here and
15381 add a !seen_error () guard.
15382
15383 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15384
15385 * toplev.c (process_options): Do not use flag_loop_block,
15386 flag_loop_interchange, and flag_loop_strip_mine. Add check for
15387 flag_loop_optimize_isl.
15388
15389 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15390
15391 * Makefile.in (OBJS): Remove graphite-blocking.o and
15392 graphite-interchange.o.
15393 * common.opt (floop-strip-mine, floop-interchange, floop-block):
15394 Alias of floop-nest-optimize.
15395 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15396 Document as alias of -floop-nest-optimize.
15397 * graphite-blocking.c: Remove.
15398 * graphite-interchange.c: Remove.
15399 * graphite-optimize-isl.c: Include dumpfile.h.
15400 (getScheduleForBand): Add dump for tiled loops. Use
15401 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
15402 * graphite-poly.c (scop_max_loop_depth): Remove.
15403 (print_scattering_function_1): Remove.
15404 (print_scattering_function): Remove.
15405 (print_scattering_functions): Remove.
15406 (debug_scattering_function): Remove.
15407 (debug_scattering_functions): Remove.
15408 (apply_poly_transforms): Remove use of flag_loop_block,
15409 flag_loop_strip_mine, and flag_loop_interchange.
15410 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
15411 PBB_ORIGINAL.
15412 (print_pdr_access_layout): Remove.
15413 (print_pdr): Print ISL representation.
15414 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
15415 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
15416 (free_scop): Same.
15417 (openscop_print_pbb_domain): Remove.
15418 (print_pbb): Remove call to print_scattering_function.
15419 (openscop_print_scop_context): Remove.
15420 (print_scop_context): Do not print matrices anymore.
15421 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
15422 SCOP_TRANSFORMED_SCHEDULE.
15423 (print_isl_set): Add printing of a new line.
15424 (print_isl_map): Same.
15425 (print_isl_aff): Same.
15426 (print_isl_constraint): Same.
15427 (loop_to_lst): Remove.
15428 (scop_to_lst): Remove.
15429 (lst_indent_to): Remove.
15430 (print_lst): Remove.
15431 (debug_lst): Remove.
15432 (dot_lst_1): Remove.
15433 (dot_lst): Remove.
15434 (reverse_loop_at_level): Remove.
15435 (reverse_loop_for_pbbs): Remove.
15436 * graphite-poly.h (pdr_dim_iter_domain): Remove.
15437 (pdr_nb_params): Remove.
15438 (pdr_alias_set_dim): Remove.
15439 (pdr_subscript_dim): Remove.
15440 (pdr_iterator_dim): Remove.
15441 (pdr_parameter_dim): Remove.
15442 (same_pdr_p): Remove.
15443 (struct poly_scattering): Remove.
15444 (struct poly_bb): Remove _original, _transformed, _saved.
15445 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
15446 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
15447 (PBB_NB_LOCAL_VARIABLES): Remove.
15448 (PBB_NB_SCATTERING_TRANSFORM): Remove.
15449 (schedule_to_scattering): Remove.
15450 (number_of_write_pdrs): Remove.
15451 (pbb_dim_iter_domain): Remove.
15452 (pbb_nb_params): Remove.
15453 (pbb_nb_scattering_orig): Remove.
15454 (pbb_nb_scattering_transform): Remove.
15455 (pbb_nb_dynamic_scattering_transform): Remove.
15456 (pbb_nb_local_vars): Remove.
15457 (pbb_iterator_dim): Remove.
15458 (pbb_parameter_dim): Remove.
15459 (psco_scattering_dim): Remove.
15460 (psct_scattering_dim): Remove.
15461 (psct_local_var_dim): Remove.
15462 (psco_iterator_dim): Remove.
15463 (psct_iterator_dim): Remove.
15464 (psco_parameter_dim): Remove.
15465 (psct_parameter_dim): Remove.
15466 (psct_dynamic_dim): Remove.
15467 (psct_static_dim): Remove.
15468 (psct_add_local_variable): Remove.
15469 (new_lst_loop): Remove.
15470 (new_lst_stmt): Remove.
15471 (free_lst): Remove.
15472 (copy_lst): Remove.
15473 (lst_add_loop_under_loop): Remove.
15474 (lst_depth): Remove.
15475 (lst_dewey_number): Remove.
15476 (lst_dewey_number_at_depth): Remove.
15477 (lst_pred): Remove.
15478 (lst_succ): Remove.
15479 (lst_find_pbb): Remove.
15480 (find_lst_loop): Remove.
15481 (lst_find_first_pbb): Remove.
15482 (lst_empty_p): Remove.
15483 (lst_find_last_pbb): Remove.
15484 (lst_contains_p): Remove.
15485 (lst_contains_pbb): Remove.
15486 (lst_create_nest): Remove.
15487 (lst_remove_from_sequence): Remove.
15488 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
15489 (lst_niter_for_loop): Remove.
15490 (pbb_update_scattering): Remove.
15491 (lst_update_scattering_under): Remove.
15492 (lst_update_scattering): Remove.
15493 (lst_insert_in_sequence): Remove.
15494 (lst_replace): Remove.
15495 (lst_substitute_3): Remove.
15496 (lst_distribute_lst): Remove.
15497 (lst_remove_all_before_including_pbb): Remove.
15498 (lst_remove_all_before_excluding_pbb): Remove.
15499 (struct scop): Remove original_schedule, transformed_schedule, and
15500 saved_schedule.
15501 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
15502 (SCOP_SAVED_SCHEDULE): Remove.
15503 (poly_scattering_new): Remove.
15504 (poly_scattering_free): Remove.
15505 (poly_scattering_copy): Remove.
15506 (store_scattering_pbb): Remove.
15507 (store_lst_schedule): Remove.
15508 (restore_lst_schedule): Remove.
15509 (store_scattering): Remove.
15510 (restore_scattering_pbb): Remove.
15511 (restore_scattering): Remove.
15512 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
15513 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
15514 compute the scattering polyhedron dimension from the dimension of
15515 pbb->domain.
15516 (build_scop_scattering): Update call to
15517 build_pbb_scattering_polyhedrons.
15518 (build_poly_scop): Remove call to scop_to_lst.
15519 * graphite.c (graphite_transform_loops): Add call to print_scop.
15520 (gate_graphite_transforms): Remove use of flag_loop_block,
15521 flag_loop_interchange, and flag_loop_strip_mine.
15522
15523 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15524
15525 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
15526 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
15527 -floop-nest-optimize.
15528 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
15529 (generate_luj_sepclass): Remove.
15530 (generate_luj_options): Remove.
15531 (set_options): Remove opt_luj.
15532 (scop_to_isl_ast): Remove opt_luj.
15533 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
15534 flag_loop_unroll_jam.
15535 (getPrevectorMap_full): Remove.
15536 (getScheduleForBandList): Remove map_sepcl.
15537 (getScheduleMap): Same.
15538 (apply_schedule_map_to_scop): Remove sepcl.
15539 (optimize_isl): Same.
15540 * graphite-poly.c (apply_poly_transforms): Remove check for
15541 flag_loop_unroll_jam.
15542 (new_poly_bb): Remove map_sepclass.
15543 * graphite-poly.h (struct poly_bb): Same.
15544 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
15545 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
15546 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
15547 * toplev.c (process_options): Remove flag_loop_unroll_jam.
15548
15549 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
15550
15551 PR target/67317
15552 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
15553 (addqi3_cc): Ditto.
15554 (UNSPEC_ADD_CARRY): Remove.
15555 (addqi3_cconly_overflow): New expander.
15556 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
15557 Adjust for changed add<mode>3_carry.
15558 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
15559 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
15560 (<plusminus_insn><mode>3_carry): Remove expander.
15561 (*<plusminus_insn><mode>3_carry): Split insn pattern to
15562 add<mode>3_carry and sub<mode>3_carry.
15563 (plusminus_carry_mnemonic): Remove code attribute.
15564 (add<mode>3_carry): Canonicalize insn pattern.
15565 (*addsi3_carry_zext): Ditto.
15566 (sub<mode>3_carry): Ditto.
15567 (*subsi3_carry_zext): Ditto.
15568 (adcx<mode>3): Remove insn pattern.
15569 (addcarry<mode>): New insn pattern.
15570 (subborrow<mode>): Ditto.
15571 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
15572 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
15573 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
15574 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
15575 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
15576 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
15577 Rewrite expander to not clobber carry flag chains.
15578
15579 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
15580
15581 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
15582 instead of a rotate.
15583
15584 2015-08-27 Marek Polacek <polacek@redhat.com>
15585
15586 PR middle-end/67005
15587 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
15588 an entry into an irreducible region.
15589
15590 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15591
15592 * configure: Regenerate.
15593
15594 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15595
15596 PR tree-optimization/67283
15597 * tree-sra.c (type_consists_of_records_p): Rename to...
15598 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15599
15600 (completely_scalarize_record): Rename to...
15601 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15602 (scalarize_elem): New.
15603
15604 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15605
15606 * tree-sra.c (completely_scalarize_var): Rename to...
15607 (create_total_scalarization_access): ... Here. Drop call to
15608 completely_scalarize_record.
15609
15610 (analyze_all_variable_accesses): Replace completely_scalarize_var
15611 with create_total_scalarization_access and completely_scalarize_record.
15612
15613 2015-08-27 Alan Modra <amodra@gmail.com>
15614
15615 PR target/67356
15616 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
15617 for operand 1.
15618
15619 2015-08-27 Richard Biener <rguenther@suse.de>
15620
15621 * passes.c (rest_of_decl_compilation): Guard early_global_decl
15622 call with !seen_error ().
15623 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
15624 early debug generation and finish...
15625 (symbol_table::compile): ... here to put it after a !seen_error ()
15626 guard.
15627
15628 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15629
15630 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
15631 Solaris 12+.
15632
15633 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15634 Andre Vieira <andre.simoesdiasvieira@arm.com>
15635
15636 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
15637 (*cb<optab><mode>1): Likewise.
15638 (*tb<optab><mode>1): Likewise.
15639 (*cb<optab><mode>1): Likewise.
15640 * config/aarch64/iterators.md (inv_cb): New code attribute.
15641 (inv_tb): Likewise.
15642 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
15643 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
15644
15645 2015-08-27 Richard Biener <rguenther@suse.de>
15646
15647 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
15648
15649 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15650
15651 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
15652 trap to fix ICE.
15653
15654 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15655
15656 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
15657 Add declaration.
15658
15659 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
15660 comment.
15661 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
15662 floating point in VSX registers.
15663 (rs6000_output_move_128bit): Always print out the set insn if we
15664 can't generate an appropriate 128-bit move.
15665 (rs6000_generate_compare): Add support for IEEE 128-bit floating
15666 point in VSX registers comparisons.
15667 (rs6000_expand_float128_convert): Likewise.
15668
15669 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
15670 predicate for only GPR hard registers.
15671
15672 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
15673 modes to iterators. Add new iterators for moving 128-bit values in
15674 scalar FPR registers and VSX registers.
15675 (FMOVE128): Likewise.
15676 (FMOVE128_FPR): Likewise.
15677 (FMOVE128_GPR): Likewise.
15678 (FMOVE128_VSX): Likewise.
15679 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
15680 in VSX registers.
15681 (IFKF): Likewise.
15682 (IBM128): Likewise.
15683 (TFIFKF): Likewise.
15684 (RELOAD): Add IEEE 128-bit floating point modes.
15685 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
15686 floating point in VSX registers modes.
15687 (signbit<mode>2, IBM128 iterator): Likewise.
15688 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
15689 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15690 (negtf2): Likewise.
15691 (neg<mode>2, TFIFKF iterator): Likewise.
15692 (negtf2_internal): Likewise.
15693 (abstf2): Likewise.
15694 (abs<mode>2, TFIFKF iterator): Likewise.
15695 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
15696 VSX insn support for negate, absolute value, and negative absolute
15697 value.
15698 (ieee_128bit_vsx_neg<mode>2): Likewise.
15699 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
15700 (ieee_128bit_vsx_abs<mode>2): Likewise.
15701 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
15702 (ieee_128bit_vsx_nabs<mode>2): Likewise.
15703 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15704 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
15705 floating point in VSX registers.
15706 (unpack<mode>_dm): Likewise.
15707 (unpack<mode>_nodm): Likewise.
15708 (pack<mode>): Likewise.
15709 (unpackv1ti): Likewise.
15710 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
15711 (packv1ti): Likewise.
15712 (pack<mode>, FMOVE128_VSX iterator): Likewise.
15713 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
15714 registers.
15715 (extenddftf2_internal): Likewise.
15716 (trunctfdf2): Likewise.
15717 (trunctfdf2_internal2): Likewise.
15718 (fix_trunc_helper): Likewise.
15719 (fix_trunctfdi2"): Likewise.
15720 (floatditf2): Likewise.
15721 (floatuns<mode>tf2): Likewise.
15722 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
15723 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
15724 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
15725 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
15726 (float<SDI:mode><IFKF:mode>2): Likewise.
15727 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
15728
15729 2015-08-26 Renlin Li <renlin.li@arm.com>
15730
15731 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
15732
15733 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15734 Jiong Wang <jiong.wang@arm.com>
15735
15736 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
15737 (tlsie_tiny_<mode>): New define_insn.
15738 (tlsie_tiny_sidi): Likewise.
15739 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15740 SYMBOL_TINY_TLSIE.
15741 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
15742 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15743 SYMBOL_TINY_TLSIE.
15744 (aarch64_expand_mov_immediate): Likewise.
15745 (aarch64_print_operand): Likewise.
15746 (arch64_classify_tls_symbol): Likewise.
15747
15748 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15749
15750 * config/arm/arm-arches.def: Replace single value flags with
15751 an initializer built from ARM_FSET_MAKE_CPU1.
15752 * config/arm/arm-cores.def: Likewise.
15753 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
15754 derivation from the ARM_CORE macro definition, use the given value
15755 instead.
15756 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
15757 ARM_ARCH macro definition, use the given value instead.
15758
15759 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15760
15761 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
15762 feature set.
15763 (struct builtin_description): Replace field mask with field
15764 features.
15765 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
15766 (IWMMXT2_BUILTIN): Likewise.
15767 (IWMMXT2_BUILTIN2): Likewise.
15768 (FP_BUILTIN): Likewise.
15769 (CRC32_BUILTIN): Likewise.
15770 (CRYPTO_BUILTIN): Likewise.
15771 (iwmmx_mbuiltin): Likewise.
15772 (iwmmx2_mbuiltin): Likewise.
15773 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
15774 struct builtin_description.
15775
15776 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15777
15778 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
15779 (struct builtin_description): Change type of mask to unsigned
15780 long.
15781 * config/arm/arm-protos.h (insn_flags): Declare as type
15782 arm_feature_set.
15783 (tune_flags): Likewise.
15784 * config/arm/arm.c (feature_count): New.
15785 (insn_flags): Define as type arm_feature_set.
15786 (tune_flags): Likewise.
15787 (struct processors): Define field flags as type arm_feature_set.
15788 (all_cores): Update for change to struct processors.
15789 (all_architectures): Likewise.
15790 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
15791 macros.
15792 (arm_option_override_internal): Likewise.
15793 (arm_option_override): Likewise.
15794
15795 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15796 Jiong Wang <jiong.wang@arm.com>
15797
15798 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
15799 tls size for tiny, small, large memory model.
15800 (aarch64_load_symref_appropriately): Support new symbol types.
15801 (aarch64_expand_mov_immediate): Likewise.
15802 (aarch64_print_operand): Likewise.
15803 (aarch64_classify_tls_symbol): Likewise.
15804 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
15805 (aarch64_symbol_type): Likewise.
15806 * config/aarch64/aarch64.md (tlsle): Deleted.
15807 (tlsle12_<mode>): New define_insn.
15808 (tlsle24_<mode>): Likewise.
15809 (tlsle32_<mode>): Likewise.
15810 (tlsle48_<mode>): Likewise.
15811 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15812 "aarch64_tlsle32".
15813
15814 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15815
15816 * config/arm/arm-protos.h (FL_NONE): New.
15817 (FL_ANY): New.
15818 (arm_feature_set): New.
15819 (ARM_FSET_MAKE): New.
15820 (ARM_FSET_MAKE_CPU1): New.
15821 (ARM_FSET_MAKE_CPU2): New.
15822 (ARM_FSET_CPU1): New.
15823 (ARM_FSET_CPU2): New.
15824 (ARM_FSET_EMPTY): New.
15825 (ARM_FSET_ANY): New.
15826 (ARM_FSET_HAS_CPU1): New.
15827 (ARM_FSET_HAS_CPU2): New.
15828 (ARM_FSET_HAS_CPU): New.
15829 (ARM_FSET_ADD_CPU1): New.
15830 (ARM_FSET_ADD_CPU2): New.
15831 (ARM_FSET_DEL_CPU1): New.
15832 (ARM_FSET_DEL_CPU2): New.
15833 (ARM_FSET_UNION): New.
15834 (ARM_FSET_INTER): New.
15835 (ARM_FSET_XOR): New.
15836 (ARM_FSET_EXCLUDE): New.
15837 (AFM_FSET_IS_EMPTY): New.
15838 (ARM_FSET_CPU_SUBSET): New.
15839
15840 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15841
15842 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15843 SYMBOL_TLSLE to SYMBOL_TLSLE24.
15844 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15845 Likewise.
15846 (aarch64_expand_mov_immediate): Likewise.
15847 (aarch64_print_operand): Likewise.
15848 (aarch64_classify_symbol): Likewise.
15849
15850 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15851
15852 * config/aarch64/aarch64.opt (mtls-size): New entry.
15853 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
15854 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
15855 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
15856
15857 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15858
15859 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
15860 ARM_CORE entry. Fix some white-space.
15861 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
15862 ARM_CORE definition.
15863
15864 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15865
15866 * fold-const.c (fold_binary_loc) : Move Optimize
15867 root(x)*root(y) as root(x*y) to match.pd.
15868 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
15869 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
15870 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
15871 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
15872 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
15873 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
15874 (mult (exps:s @0) (exps:s @1)) : New simplifier.
15875 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
15876 (rdiv @0 (exps:s @1)) : New simplifier.
15877
15878 2015-08-25 Joseph Myers <joseph@codesourcery.com>
15879
15880 * gcc.c (driver::finalize): Only assign to extra_specs if
15881 [EXTRA_SPECS].
15882
15883 2015-08-25 Marek Polacek <polacek@redhat.com>
15884
15885 PR middle-end/67330
15886 * varasm.c (declare_weak): Return after giving an error.
15887
15888 2015-08-25 David Malcolm <dmalcolm@redhat.com>
15889
15890 * gcc-main.c (main): Add params to driver ctor.
15891 * gcc.c (class env_manager): New.
15892 (env): New global.
15893 (env_manager::init): New.
15894 (env_manager::get): New.
15895 (env_manager::xput): New.
15896 (env_manager::restore): New.
15897 Poison getenv and putenv.
15898 (DEFAULT_TARGET_SYSTEM_ROOT): New.
15899 (target_system_root): Update initialization to use
15900 DEFAULT_TARGET_SYSTEM_ROOT.
15901 (struct spec_list): Add field "default_ptr".
15902 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
15903 (init_spec): Likewise.
15904 (set_spec): Clear field "default_ptr".
15905 (read_specs): Free "spec" and "buffer".
15906 (xputenv): Reimplement in terms of env_manager.
15907 (process_command): Replace ::getenv calls with calls to the
15908 env_manager singleton.
15909 (process_brace_body): Free string in three places.
15910 (driver::driver): New.
15911 (driver::~driver): New.
15912 (used_arg): Convert from a function to...
15913 (class used_arg_t): ...this class, and...
15914 (used_arg): ...this new global instance.
15915 (used_arg_t::finalize): New function.
15916 (getenv_spec_function): Add "const" to local "value". Replace
15917 ::getenv call with call to the env_manager singleton.
15918 (path_prefix_reset): New function.
15919 (driver::finalize): New function.
15920 * gcc.h (driver::driver): New.
15921 (driver::~driver): New.
15922 (driver::finalize): New.
15923
15924 2015-08-25 Nathan Sidwell <nathan@acm.org>
15925
15926 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
15927 target doesn't have one.
15928
15929 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15930
15931 PR target/67346
15932 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
15933
15934 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15935
15936 PR target/67344
15937 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
15938 a define_insn, remove second alternative.
15939
15940 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
15941 Joseph Myers <joseph@codesourcery.com>
15942
15943 * gcc.c (struct switchstr): Expand comment.
15944
15945 2015-08-25 Nathan Sidwell <nathan@acm.org>
15946
15947 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
15948 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
15949
15950 2015-08-25 Richard Biener <rguenther@suse.de>
15951
15952 PR middle-end/67306
15953 * genmatch.c (expr::gen_transform): Verify the result of
15954 builtin_decl_implicit.
15955 (dt_simplify::gen_1): Likewise.
15956
15957 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
15958
15959 * config/arm/constraints.md: Also list Cs and US ARM-specific
15960 constraints as used.
15961
15962 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
15963
15964 PR target/66609
15965 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
15966 UNSPEC_PCREL.
15967 (nonpic_symbol_mentioned_p): Likewise.
15968 (sh_delegitimize_address): Likewise.
15969 (sh_function_ok_for_sibcall): Take into account weak symbols.
15970 (sh_expand_sym_label2reg): New.
15971 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
15972 * config/sh/sh.md (UNSPEC_PCREL): New enum.
15973 (call_pcrel): Use sh_expand_sym_label2reg.
15974 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
15975 (symPCREL_label2reg) New expand.
15976
15977 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15978
15979 * graphite-poly.c: Change type of region from void* to sese.
15980 * graphite-poly.h (struct scop): Changing the type of scop::region
15981 from void* to sese. Change accessor macro accordingly.
15982 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
15983
15984 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
15985
15986 * graphite-scop-detection.c (stmt_simple_for_scop_p):
15987 Constrain only on INTEGER_TYPE.
15988
15989 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15990
15991 PR target/67211
15992 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
15993 -mefficient-unaligned-vsx on ISA 2.7.
15994
15995 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
15996 option to a masked option.
15997
15998 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
15999 logic for -mefficient-unaligned-vsx so that it is set via an arch
16000 ISA option, instead of being set if -mtune=power8 is set. Move
16001 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16002 near other default option handling.
16003
16004 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16005
16006 * genflags.c (gen_macro): Delete.
16007 (gen_proto): Don't create GEN.*CALL.* macros.
16008 * gensupport.h (get_file_location): Declare.
16009 * gensupport.c (rtx_locs): New variable.
16010 (read_md_rtx): Record rtx locations.
16011 (get_file_location): New function.
16012 * target-insns.def (call, call_pop, call_value, call_value_pop)
16013 (sibcall, sibcall_value): New patterns.
16014 * gentarget-def.c (parse_argument): New function.
16015 (def_target_insn): Use it. Handle optional operands. Raise an
16016 error if an .md pattern has the wrong number of operands for the
16017 pattern name. Remove the names of unused operands from the prototype.
16018 * builtins.c (expand_builtin_apply): Use targetm functions
16019 instead of HAVE_call_value and GEN_CALL_VALUE.
16020 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
16021 and sibcall_value_pop.
16022 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16023 of GEN_CALL.
16024 * config/alpha/alpha.md (untyped_call): Likewise.
16025 * config/iq2000/iq2000.md (untyped_call): Likewise.
16026 * config/m68k/m68k.md (untyped_call): Likewise.
16027 * config/mips/mips.md (untyped_call): Likewise.
16028 * config/pa/pa.md (untyped_call): Likewise.
16029 * config/rs6000/rs6000.md (untyped_call): Likewise.
16030 * config/sparc/sparc.md (untyped_call): Likewise.
16031 * config/tilegx/tilegx.md (untyped_call): Likewise.
16032 * config/tilepro/tilepro.md (untyped_call): Likewise.
16033 * config/visium/visium.md (untyped_call): Likewise.
16034 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16035 gen_call_value instead of GEN_CALL_VALUE.
16036 * config/arm/arm.md (untyped_call): Likewise.
16037 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16038 GEN_CALL.
16039
16040 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16041
16042 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16043 (have_cbranchcc4): New variable.
16044 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16045 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16046 (if_convert): Initialize have_cbranchcc4.
16047
16048 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16049
16050 * builtins.c (expand_cmpstrn): Rename to...
16051 (expand_cmpstrn_or_cmpmem): ...this.
16052 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16053 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16054 Remove mode argument.
16055 (expand_builtin): Update accordingly.
16056
16057 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16058
16059 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16060 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
16061 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16062 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16063 Add predicates for operands 0 and 3.
16064 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16065 operand.
16066 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16067 immediate_operand to nonmemory_operand.
16068
16069 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16070
16071 * df-scan.c (df_insn_info_init_fields): New function, split out
16072 from...
16073 (df_insn_create_insn_record): ...here.
16074 (df_insn_info_free_fields): New function, split out from...
16075 (df_insn_info_delete): ...here.
16076 (df_insn_rescan): Use the new functions instead of freeing and
16077 reallocating the df_insn_info.
16078
16079 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16080
16081 * doc/install.texi (Binaries): Remove links no longer valid.
16082
16083 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
16084
16085 * config/nvptx/mkoffload.c (process): Replace
16086 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16087
16088 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
16089
16090 PR target/67329
16091 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16092
16093 2015-08-24 Renlin Li <renlin.li@arm.com>
16094
16095 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16096 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16097 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16098 * config/arm/constraints.md ("j"): Add check for high code.
16099
16100 2015-08-24 Tom de Vries <tom@codesourcery.com>
16101
16102 PR tree-optimization/65468
16103 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16104 chunk_size is one.
16105
16106 2015-08-24 Nathan Sidwell <nathan@acm.org>
16107
16108 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16109 change to nvptx_type_from_mode call. Use arg_promotion for both
16110 split and non-split args.
16111
16112 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16113
16114 * target-insns.def (movstr): New pattern.
16115 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16116 (expand_movstr): Use targetm rather than HAVE_movstr/
16117 CODE_FOR_movstr.
16118
16119 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16120
16121 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16122 cast syntax.
16123
16124 2015-08-24 Andrew Pinski <apinski@cavium.com>
16125
16126 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16127 AARCH64_EXTRA_TUNING_OPTION.
16128 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16129 New enum.
16130 (aarch64_extra_tuning_flags): Base the shifted value on the index
16131 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16132 * config/aarch64/aarch64.c: Remove the last argument to
16133 AARCH64_EXTRA_TUNING_OPTION.
16134
16135 2015-08-23 Nathan Sidwell <nathan@acm.org>
16136
16137 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16138 decls.
16139 (nvptx_declare_function_name): Insert formatting tabs for
16140 consistency.
16141
16142 2015-08-23 Tom de Vries <tom@codesourcery.com>
16143
16144 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16145 parm_decl, rather than generating a dummy default def in cfun.
16146 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
16147 ssa_name from cfun and child_fn do not share a stmt as def stmt.
16148 (move_stmt_op): Handle PARM_DECl.
16149 (gather_ssa_name_hash_map_from): New function.
16150 (move_sese_region_to_fn): Add default defs for function params, and add
16151 them to vars_map. Release copied ssa names.
16152 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16153
16154 2015-08-23 Tom de Vries <tom@codesourcery.com>
16155
16156 * doc/sourcebuild.texi: Rename vect_no_int_max with
16157 vect_no_int_min_max. Update description.
16158
16159 2015-08-22 Andrew Pinski <apinski@cavium.com>
16160
16161 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16162 * config/aarch64/aarch64-protos.h
16163 (aarch64_fusion_pairs_index): New enum.
16164 (aarch64_fusion_pairs): Base the shifted value on the index instead
16165 Rewrite AARCH64_FUSE_ALL to be based on the end index.
16166 of the argument to AARCH64_FUSION_PAIR.
16167 * config/aarch64/aarch64.c: Remove the last argument to
16168 AARCH64_FUSION_PAIR.
16169
16170 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
16171
16172 * dominance.c (new_zero_array): Define.
16173 (dom_info): Redefine as class with proper encapsulation.
16174 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16175 Add new members.
16176 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
16177 allocations/deallocations. Pass function as parameter (instead of
16178 using cfun).
16179 (dom_info::get_idom): Define accessor method.
16180 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16181 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
16182 (calculate_dominance_info): Adjust to use dom_info class.
16183 (verify_dominators): Likewise.
16184
16185 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
16186
16187 * print-rtl.c (print_rtx): Check the correct range for
16188 flag_dump_unnumbered_links to behave as documented.
16189
16190 PR rtl-optimization/67227
16191 PR rtl-optimization/64164
16192 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16193 (nonoverlapping_memrefs_p): Test offsets and sizes when given
16194 identical gimple_reg exprs.
16195
16196 2015-08-21 Nathan Sidwell <nathan@acm.org>
16197
16198 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16199 expansion.
16200 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16201 crtl->stack_alignment_needed to determine alignment.
16202 (nvptx_get_drap_rtx): New.
16203 (TARGET_GET_DRAP_RTX): Override.
16204 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16205
16206 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16207
16208 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16209
16210 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16211
16212 * configure.ac: Remove uwin* cases.
16213 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16214 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16215 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16216 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16217 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16218 i[34567]86-*-uwin*, powerpc-*-beos*.
16219
16220 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
16221
16222 * gencodes.c (gencodes): Print the comma for the preceding
16223 enum value rather than the current one. Use aliased enum values
16224 rather than #defines for compiled-out patterns.
16225 (main): Update accordingly. Replace LAST_INSN_CODE with
16226 NUM_INSN_CODES.
16227 * lra.c (insn_code_data): Update accordingly.
16228 (finish_insn_code_data_once, get_static_insn_data): Likewise.
16229 * recog.h (target_recog): Likewise.
16230 (preprocess_insn_constraints): Change parameter to unsigned int.
16231 * recog.c (preprocess_insn_constraints): Likewise.
16232 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16233 * tree-vect-stmts.c (vectorizable_operation): Simplify.
16234
16235 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
16236
16237 PR rtl-optimization/61657
16238 * loop-iv.c (iv_number_of_iterations): Declare up and down as
16239 unsigned. Remove superflous uint64_t cast.
16240
16241 2014-08-21 Felix Yang <felix.yang@huawei.com>
16242 Jiji Jiang <jiangjiji@huawei.com>
16243
16244 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16245 argument and get builtin function code directly from CALL.
16246 (gimple_stringop_fixed_value): Modified accordingly.
16247 (gimple_stringops_transform, gimple_stringops_values_to_profile):
16248 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16249
16250 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
16251
16252 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16253
16254 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16255
16256 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16257 to match.pd.
16258 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16259 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16260 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16261 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16262 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16263 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16264 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16265 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16266 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16267 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16268
16269 * match.pd (SIN ) : New Operator.
16270 (TAN) : New Operator.
16271 (mult (SQRT@1 @0) @1) : New simplifier.
16272 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16273 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16274 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16275 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16276 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16277 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16278 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16279 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16280 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16281 (rdiv @0 (POW:s @1 @2)) : New simplifier.
16282
16283 2015-08-21 Bin Cheng <bin.cheng@arm.com>
16284
16285 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16286 loop if EXPR is simplified to const value.
16287
16288 2015-08-21 Yury Gribov <y.gribov@samsung.com>
16289
16290 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16291 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16292
16293 2015-08-21 Richard Biener <rguenther@suse.de>
16294
16295 PR middle-end/67285
16296 * gimple-fold.c (replace_stmt_with_simplification): Assert
16297 seq is empty when replacing a call with itself but different
16298 arguments.
16299 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16300 a call require that it is const.
16301
16302 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16303
16304 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16305 * builtins.c (get_object_alignment_2): Adjust.
16306 * varasm.c (align_variable): Likewise.
16307 (get_variable_align): Likewise.
16308 (build_constant_desc): Likewise.
16309 (force_const_mem): Likewise.
16310 * doc/tm.texi.in: Likewise.
16311 * doc/tm.texi: Regenerate.
16312
16313 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16314
16315 * genconfig.c (main): Always define HAVE_cc0.
16316 * recog.c (rest_of_handle_peephole2): Adjust.
16317
16318 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16319
16320 * reorg.c (relax_delay_slots): Don't use #if to check value of
16321 HAVE_cc0.
16322
16323 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16324
16325 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16326 * targhooks.c (default_have_conditional_execution): Adjust.
16327
16328 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16329
16330 * rtl.h (rtvec_all_equal_p): Declare.
16331 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16332 * rtl.c (rtvec_all_equal_p): New function.
16333 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16334 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16335 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16336 * config/arm/arm.c (neon_vdup_constant): Likewise.
16337 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16338 * config/tilegx/constraints.md (W, Y): Likewise.
16339 * config/tilepro/constraints.md (W, Y): Likewise.
16340 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16341 (classify_immediate): Use unwrap_const_vec_duplicate.
16342 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16343 (reg_or_v2s8bit_operand): Likewise.
16344 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16345 (reg_or_v4s8bit_operand): Likewise.
16346
16347 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16348
16349 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16350 (vec_shasigma_be): New #define.
16351 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16352 (VPMSUMH): Likewise.
16353 (VPMSUMW): Likewise.
16354 (VPMSUMD): Likewise.
16355 (VPMSUM): New BU_P8V_OVERLOAD_2.
16356 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16357 entries for VEC_MADD and VEC_VPMSUM.
16358
16359 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
16360
16361 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16362 Multiply argument avr_n_flash by 64 to match unit of "KiB".
16363 (avr_pgm_check_var_decl): Same.
16364
16365 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
16366
16367 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16368 initialization of HFmode scalar type (float16_t) to...
16369 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16370 code.
16371
16372 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16373
16374 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16375 having an -mfp16-format.
16376
16377 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16378
16379 * config/i386/predicates.md (vector_all_ones_operand): Use
16380 CONSTM1_RTX to simplify definition.
16381
16382 2015-08-20 Richard Biener <rguenther@suse.de>
16383
16384 * toplev.c (compile_file): Remove loop calling late_global_decl
16385 on all symbols.
16386 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16387 on decls we assembled.
16388
16389 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
16390
16391 * common/config/aarch64/aarch64-common.c
16392 (AARCH64_CPU_NAME_LENGTH): Delete.
16393 (aarch64_option_extension): New.
16394 (all_extensions): Likewise.
16395 (processor_name_to_arch): Likewise.
16396 (arch_to_arch_name): Likewise.
16397 (all_cores): New.
16398 (all_architectures): Likewise.
16399 (aarch64_get_extension_string_for_isa_flags): Likewise.
16400 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
16401 architecture names.
16402 * config/aarch64/aarch64-protos.h
16403 (aarch64_get_extension_string_for_isa_flags): New.
16404 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
16405 (aarch64_option_print): Get the string to print from
16406 aarch64_get_extension_string_for_isa_flags.
16407 (aarch64_declare_function_name): Likewise.
16408 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
16409 (MCPU_TO_MARCH_SPEC): This.
16410 (ASM_CPU_SPEC): Use it.
16411 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
16412 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
16413 (EXTRA_SPEC_FUNCTIONS): Use it.
16414
16415 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
16416
16417 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
16418 expansion when !ISA_HAS_LWL_LWR.
16419 (mips_block_move_straight): Update the size of elements copied to
16420 account for alignment when !ISA_HAS_LWL_LWR.
16421 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
16422
16423 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16424
16425 * expr.c (expand_expr_real_2): Check gimple statement during
16426 LSHIFT_EXPR expand.
16427
16428 2015-08-19 Magnus Granberg <zorry@gentoo.org>
16429
16430 * common.opt (fstack-protector): Initialize to -1.
16431 (fstack-protector-all): Likewise.
16432 (fstack-protector-strong): Likewise.
16433 (fstack-protector-explicit): Likewise.
16434 * configure.ac: Add --enable-default-ssp.
16435 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
16436 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
16437 -1.
16438 * doc/install.texi: Document --enable-default-ssp.
16439 * config.in: Regenerated.
16440 * configure: Likewise.
16441
16442 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
16443
16444 PR rtl-optimization/64164
16445 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
16446 (parm_in_stack_slot_p): ... this. Disregard mode, what
16447 matters is whether the parm will live in a pseudo or a stack
16448 slot.
16449 (expand_one_ssa_partition): Deal with params without a default
16450 def. Disregard mode.
16451 * cfgexpand.h: Renamed function declaration.
16452 * tree-ssa-coalesce.c: Adjust.
16453 * function.c (split_complex_args): Allocate stack slot for
16454 unassigned parms before splitting.
16455 (parm_in_unassigned_mem_p): New. Use it instead of
16456 parm_maybe_byref_p throughout this file.
16457 (assign_parm_setup_block): Use it. Accept pseudos in the
16458 expand-assigned rtl.
16459 (assign_parm_setup_reg): Drop BLKmode requirement.
16460 (assign_parm_setup_stack): Allocate and fill in the address of
16461 unassigned MEM parms.
16462
16463 2015-08-19 David Sherwood <david.sherwood@arm.com>
16464
16465 * genmodes.c (emit_mode_unit_size_inline): New function.
16466 (emit_mode_unit_precision_inline): New function.
16467 (emit_insn_modes_h): Emit new #define. Emit new functions.
16468 (emit_mode_unit_size): New function.
16469 (emit_mode_unit_precision): New function.
16470 (emit_mode_adjustments): Add mode_unit_size adjustments.
16471 (emit_insn_modes_c): Emit new arrays.
16472 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
16473 use new inline methods.
16474
16475 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16476
16477 * config/aarch64/aarch64.c (bit_count): Delete prototype
16478 and definition.
16479 (aarch64_print_operand): Use popcount_hwi instead of the above.
16480
16481 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16482
16483 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
16484 comment.
16485
16486 2015-08-19 Marek Polacek <polacek@redhat.com>
16487
16488 PR middle-end/67133
16489 * gimple-ssa-isolate-paths.c
16490 (insert_trap_and_remove_trailing_statements): Rename to ...
16491 (insert_trap): ... this. Don't remove trailing statements; split
16492 block instead.
16493 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
16494
16495 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
16496
16497 PR other/67042
16498 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
16499 conditionalize the whole on __GNUC__. Add fallback code
16500 depending neither on undefined nor implementation-defined behaviour.
16501
16502 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16503
16504 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
16505 whitespaces with tab.
16506
16507 2015-08-19 Florian Weimer <fweimer@redhat.com>
16508
16509 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
16510 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
16511 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
16512 Move Name_Ids instantiation to the Prj.Proc package, to avoid
16513 trampolines.
16514
16515 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16516
16517 * config/arm/arm.c (bounds_check): Use %wd print format
16518 for HOST_WIDE_INT arguments.
16519
16520 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
16521
16522 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
16523 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
16524 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
16525 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
16526 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
16527 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
16528 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
16529 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
16530 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
16531 typedefs.
16532
16533 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
16534
16535 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
16536 function.c, graphite-scop-detection.c, haifa-sched.c,
16537 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
16538 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
16539 varasm.c: Remove typedefs of structs.
16540
16541 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16542
16543 * config/rs6000/altivec.h (vec_adde): New define.
16544 (vec_addec): Likewise.
16545 (vec_double): Likewise.
16546 (vec_bperm): Likewise.
16547 (vec_gb): Likewise.
16548 * config/rs6000/rs6000-builtin.def (ADDE): New
16549 BU_ALTIVEC_OVERLOAD_3.
16550 (ADDEC): Likewise.
16551 (DOUBLE): New BU_VSX_OVERLOAD_1.
16552 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
16553 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
16554 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
16555 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
16556 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
16557 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
16558 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
16559 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
16560 and P8V_BUILTIN_VEC_VBPERMQ.
16561
16562 2015-08-18 Jason Merrill <jason@redhat.com>
16563
16564 * print-tree.c (print_node): Handle TREE_BINFO.
16565
16566 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16567
16568 PR middle-end/36757
16569 * builtins.c (expand_builtin_signbit): Add asserts to make sure
16570 we can expand BUILT_IN_SIGNBIT inline.
16571 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
16572 * doc/extend.texi: Document the type-generic __builtin_signbit.
16573
16574 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
16575
16576 PR rtl-optimization/67218
16577 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
16578 (simplify_unary_operation_1): Use it.
16579
16580 2015-08-18 Marek Polacek <polacek@redhat.com>
16581
16582 PR middle-end/67222
16583 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
16584 if the call isn't valid.
16585 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
16586 gimple_call_builtin_p.
16587 (call_may_clobber_ref_p_1): Likewise.
16588 (stmt_kills_ref_p): Likewise.
16589
16590 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
16591
16592 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
16593 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
16594 (mips_hard_regno_scratch_ok): Likewise.
16595 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
16596 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
16597
16598 2015-08-18 Bin Cheng <bin.cheng@arm.com>
16599
16600 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
16601 (determine_value_range): Call refine_value_range_using_guard for
16602 each loop initial condition to improve value range.
16603
16604 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
16605
16606 * config/i386/i386.c: Remove include of fibheap.h.
16607
16608 2015-08-17 Richard Biener <rguenther@suse.de>
16609
16610 PR tree-optimization/67221
16611 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
16612 (sccvn_dom_walker::before_dom_children): Mark backedges of
16613 non-executable blocks as not executable.
16614
16615 2015-08-17 David Sherwood <david.sherwood@arm.com>
16616
16617 * config/arm/arm.c (neon_element_bits): Replace call to
16618 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
16619 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
16620 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
16621 (neon_vdup_lane<mode>): Likewise.
16622 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
16623 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
16624 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
16625 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
16626 * config/spu/spu.c (arith_immediate_p): Likewise.
16627 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16628 * expr.c (expand_expr_real_2): Likewise.
16629 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
16630 * simplify-rtx.c (simplify_immed_subreg): Likewise.
16631 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
16632 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
16633 New variable.
16634 * fold-const.c (fold_binary_loc): Replace call to
16635 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
16636 GET_MODE_UNIT_PRECISION (m).
16637
16638 2015-08-17 Mike Stump <mikestump@comcast.net>
16639
16640 * config/arm/arm.c (arm_block_move_unaligned_straight):
16641 Emit normal move instead of unaligned load when source or destination
16642 are appropriately aligned.
16643
16644 2015-08-17 Richard Biener <rguenther@suse.de>
16645 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16646
16647 PR middle-end/16107
16648 * match.pd (div (coss (op @0) : New simplifier.
16649
16650 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
16651
16652 PR rtl-optimization/64164
16653 PR bootstrap/66978
16654 PR middle-end/66983
16655 PR rtl-optimization/67000
16656 PR middle-end/67034
16657 PR middle-end/67035
16658 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16659 * tree-ssa-copyrename.c: Removed.
16660 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16661 -ftree-coalesce-vars.
16662 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16663 * common.opt (ftree-copyrename): Ignore.
16664 (ftree-coalesce-inlined-vars): Likewise.
16665 * doc/invoke.texi: Remove the ignored options above.
16666 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16667 * tree-ssa-coalesce.h: ... here.
16668 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16669 headers required by it.
16670 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16671 across variables when flag_tree_coalesce_vars. Check register
16672 use and promoted modes to allow coalescing. Do not coalesce
16673 maybe-byref parms with SSA_NAMEs of other variables, or
16674 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
16675 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16676 with its member functions to tree-ssa-coalesce.c.
16677 (var_map_base_init): Likewise. Renamed to
16678 compute_samebase_partition_bases.
16679 (partition_view_normal): Drop want_bases parameter.
16680 (partition_view_bitmap): Likewise.
16681 * tree-ssa-live.h: Adjust declarations.
16682 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
16683 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16684 default defs at the entry point.
16685 (dump_part_var_map): New.
16686 (compute_optimized_partition_bases): New, called by...
16687 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16688 of compute_samebase_partition_bases. Adjust.
16689 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16690 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
16691 (ssa_default_def_partition): New.
16692 (get_rtl_for_parm_ssa_default_def): New.
16693 (align_local_variable, add_stack_var): Support anonymous SSA
16694 names.
16695 (defer_stack_allocation): Likewise. Declare earlier.
16696 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16697 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16698 Do no record deferred-allocation marker in
16699 SA.partition_to_pseudo.
16700 (expand_stack_vars): Adjust check for the marker in it.
16701 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16702 redundant MEM attr setting.
16703 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16704 from...
16705 (expand_one_stack_var): ... this. New wrapper to check and
16706 skip already expanded SSA partitions.
16707 (record_alignment_for_reg_var): New, factored out of...
16708 (expand_one_var): ... this.
16709 (expand_one_ssa_partition): New.
16710 (adjust_one_expanded_partition_var): New.
16711 (expand_one_register_var): Check and skip already expanded SSA
16712 partitions.
16713 (expand_used_vars): Don't create DECLs for anonymous SSA
16714 names. Expand all SSA partitions, then adjust all SSA names.
16715 (pass::execute): Replace the loops that set
16716 SA.partition_to_pseudo from partition leaders and cleared
16717 DECL_RTL for multi-location variables, and that which used to
16718 rename vars and set attrs, with one that clears DECL_RTL and
16719 checks that PARMs and RESULTs default_defs match DECL_RTL.
16720 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16721 * emit-rtl.c: Include stor-layout.h.
16722 (set_reg_attrs_for_parm): Handle NULL decl.
16723 (set_reg_attrs_for_decl_rtl): Take mode from expression if
16724 it's not a DECL.
16725 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
16726 rather than its possibly-NULL DECL.
16727 * explow.c (promote_ssa_mode): New.
16728 * explow.h (promote_ssa_mode): Declare.
16729 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16730 (read_complex_part): Export.
16731 * expr.h (read_complex_part): Declare.
16732 * cfgexpand.h (parm_maybe_byref_p): Declare.
16733 * function.c: Include cfgexpand.h.
16734 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16735 (use_register_for_parm_decl): Wrapper for the above to
16736 special-case the result_ptr.
16737 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16738 (split_complex_args): Take assign_parm_data_all argument.
16739 Pass it to rtl_for_parm. Set up rtl and context for split
16740 args. Reset complex parm before fetching its default decl
16741 rtl.
16742 (assign_parms_unsplit_complex): Use the default-def complex
16743 parm rtl if it matches the components.
16744 (assign_parms_augmented_arg_list): Adjust.
16745 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16746 multiple locations. Recognize split complex args.
16747 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16748 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16749 (assign_parm_setup_block): Prefer SSA-assigned location, and
16750 fill in its address if the memory location of a maybe-byref
16751 parm was not assigned by cfgexpand.
16752 (assign_parm_setup_reg): Likewise. Adjust its mode as
16753 needed. Use entry_parm for equiv if stack_parm is NULL. Make
16754 sure passed_pointer parms don't need conversion. Copy address
16755 or value as needed.
16756 (assign_parm_setup_stack): Prefer SSA-assigned location.
16757 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16758 rtl before testing for pointer bounds. Special-case result_ptr.
16759 (expand_function_start): Maybe reset DECL_RTL of result.
16760 Prefer SSA-assigned location for result and static chain.
16761 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
16762 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
16763 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16764 anonymous SSA names. Use promote_ssa_mode.
16765 (get_temp_reg): Likewise.
16766 (remove_ssa_form): Adjust.
16767 * stor-layout.c (layout_decl): Don't set mem attributes of
16768 non-MEMs.
16769 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16770 and get its reg_usage for reg invalidation.
16771 (compute_bb_dataflow): Pass it insn.
16772 (emit_notes_in_bb): Likewise.
16773
16774 2015-08-14 Marek Polacek <polacek@redhat.com>
16775
16776 * tree-core.h (tree_base): Fix typo.
16777
16778 2015-08-14 Marek Polacek <polacek@redhat.com>
16779
16780 PR middle-end/67133
16781 * gimple.c (infer_nonnull_range_by_attribute): Check that the
16782 nonnull argument position is not outside function arguments.
16783
16784 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
16785
16786 PR target/67143
16787 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
16788 'lconst_atomic' with 'const_atomic'.
16789 (atomic_fetch_<optab><mode>): Likewise.
16790 (atomic_<optab>_fetch<mode>): Likewise.
16791 * config/aarch64/iterators.md (lconst-atomic): Move below
16792 'const_atomic'.
16793 (const_atomic): New.
16794
16795 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
16796 Bernd Schmidt <bernds@codesourcery.com>
16797
16798 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
16799 debug options.
16800 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
16801 (DWARF2_DEBUGGING_INFO): Don't define.
16802 * debug.h (dwarf2_lineno_debug_hooks): Declare.
16803 * toplev.c (process_options): Add a case for it.
16804 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
16805 (dwarf2out_init): Skip most initializations if
16806 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
16807 case.
16808 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
16809 DWARF2_LINENO_DEBUGGING_INFO.
16810 * opts.c (set_debug_level): Likewise.
16811
16812 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
16813
16814 * config/arm/types.md (is_neon_type): Add missing types.
16815
16816 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16817
16818 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
16819 for skylake.
16820 * config/i386/i386.c (PTA_SKYLAKE): New macros.
16821 (processor_alias_table): Add skylake description.
16822 (enum processor_model): Add skylake processor.
16823 (arch_names_table): Add skylake record.
16824 * doc/invoke.texi: Add skylake item.
16825
16826 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
16827
16828 * ira-int.h: Include recog.h.
16829 * ira-build.c: Don't include recog.h.
16830 * ira-color.c: Likewise.
16831 * ira-conflicts.c: Likewise.
16832 * ira-costs.c: Likewise.
16833 * ira-emit.c: Likewise.
16834 * ira-lives.c: Likewise.
16835 * ira.c: Likewise.
16836 * sched-deps.c: Likewise.
16837 * sel-sched.c: Likewise.
16838 * target-globals.c: Likewise.
16839
16840 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
16841
16842 PR bootstrap/55035
16843 * reload1.c (elimination_costs_in_insn): Make it obvious to the
16844 compiler that the n_dups and n_operands loop bounds are invariant.
16845
16846 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16847
16848 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
16849 expressions in A and B.
16850
16851 2015-08-13 Richard Biener <rguenther@suse.de>
16852
16853 * tree.c (nonnull_arg_p): Move from ...
16854 * tree-vrp.c (nonnull_arg_p): ... here.
16855 * tree.h (nonnull_arg_p): Declare.
16856 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
16857 here, register ptr != 0 for nonnull_arg_p pointer arguments.
16858 Properly initialize static chain and by-reference result pointer.
16859 (run_scc_vn): Adjust.
16860
16861 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16862
16863 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
16864 TUNE_I6400.
16865
16866 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16867
16868 * config/aarch64/aarch64-protos.h
16869 (aarch64_gen_atomic_cas): Declare.
16870 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
16871 Choose appropriate instruction pattern for the target.
16872 (aarch64_gen_atomic_cas): New.
16873 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
16874 (atomic_compare_and_swap<mode>_1): Rename to
16875 aarch64_compare_and_swap<mode>. Fix some indentation.
16876 (aarch64_compare_and_swap<mode>_lse): New.
16877 (aarch64_atomic_cas<mode>): New.
16878
16879 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16880
16881 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
16882 (TARGET_LSE): New.
16883
16884 2015-08-13 Richard Biener <rguenther@suse.de>
16885
16886 PR tree-optimization/67191
16887 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
16888 assert we value-numbered last stmts operand because it can validly
16889 trigger for unreachable code.
16890
16891 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16892
16893 PR rtl-optimization/67103
16894 * ifcvt.c (noce_try_store_flag_constants): Move
16895 x = (-(test != 0) & (b - a)) + a transformation to...
16896 (noce_try_cmove): ... Here. Try it if normal conditional
16897 move fails.
16898
16899 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16900
16901 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
16902 pseudo-processors.
16903 * config/mips/mips.md (processor): Remove w32 and w64.
16904
16905 2015-08-13 Richard Biener <rguenther@suse.de>
16906
16907 PR tree-optimization/66502
16908 PR tree-optimization/67167
16909 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
16910 backedge arguments.
16911 (vn_phi_lookup): Adjust.
16912 (vn_phi_insert): Likewise.
16913 (visit_phi): Prefer to value-number to another PHI node
16914 over value-numbering to a PHI argument.
16915 (init_scc_vn): Mark DFS back edges.
16916
16917 2015-08-13 Richard Biener <rguenther@suse.de>
16918
16919 * gimple.h (gcall::code_): New constant static member.
16920 (gcond::code_): Likewise.
16921 * gimple.c (gcall::code_): Define.
16922 (gcond::code_): Likewise.
16923 (is_a_helper <const gcond *>): Add.
16924 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
16925 and forward to a new gcall overload with less checking and a
16926 cheaper way to access the operand.
16927 (gimple_call_lhs_ptr): Likewise.
16928 (gimple_call_set_lhs): Likewise.
16929 (gimple_call_internal_p): Likewise.
16930 (gimple_call_with_bounds_p): Likewise.
16931 (gimple_call_set_with_bounds): Likewise.
16932 (gimple_call_internal_fn): Likewise.
16933 (gimple_call_set_ctrl_altering): Likewise.
16934 (gimple_call_ctrl_altering_p): Likewise.
16935 (gimple_call_fntype): Likewise.
16936 (gimple_call_fn): Likewise.
16937 (gimple_call_fn_ptr): Likewise.
16938 (gimple_call_set_fndecl): Likewise.
16939 (gimple_call_fndecl): Likewise.
16940 (gimple_call_chain): Likewise.
16941 (gimple_call_num_args): Likewise.
16942 (gimple_call_arg): Likewise.
16943 (gimple_call_arg_ptr): Likewise.
16944 (gimple_call_set_arg): Likewise.
16945 (gimple_call_noreturn_p): Likewise.
16946 (gimple_cond_code): Likewise.
16947 (gimple_cond_lhs): Likewise.
16948 (gimple_cond_rhs): Likewise.
16949 (gimple_has_lhs): Reduce checking.
16950
16951 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16952
16953 PR middle-end/25529
16954 * match.pd (div (mult @0 @1) @1) : New simplifier.
16955
16956 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16957
16958 PR target/67071
16959 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
16960 predicate to allow construction of vector constants using the
16961 VSLDOI vector shift instruction.
16962
16963 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
16964 declaration.
16965
16966 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
16967 the number of bytes to be shifted left and filled in with either
16968 all zero or all one bits.
16969 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16970 methods exist.
16971 (output_vec_const_move): On power8, generate XXLORC to generate
16972 a vector constant with all 1's. Do a split if we need to use a
16973 VSLDOI instruction.
16974
16975 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
16976 properly test for the MSB.
16977
16978 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
16979 vector constants that can be created with VSLDOI.
16980
16981 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
16982
16983 revert:
16984 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
16985 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
16986 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
16987 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
16988 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
16989 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
16990 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
16991 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
16992 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
16993
16994 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
16995
16996 * config/xtensa/constraints.md (define_constraint "Y"): New
16997 constraint.
16998 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
16999 * config/xtensa/linux.h (ASM_SPEC): Likewise.
17000 * config/xtensa/predicates.md (move_operand): Match constants
17001 and symbols in the presence of TARGET_AUTO_LITPOOLS.
17002 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17003 immediate references to TLS data.
17004 (xtensa_emit_move_sequence): Don't force constants to memory in
17005 the presence of TARGET_AUTO_LITPOOLS.
17006 (print_operand): Add 'y' format, same as default, but capable of
17007 printing SF mode constants as well.
17008 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17009 (movsf_internal): Add movi pattern that loads literal.
17010 (movsf, movdf): Don't force constants to memory in the presence
17011 of TARGET_AUTO_LITPOOLS.
17012 (movdf_internal): Add 'Y' constraint.
17013 * config/xtensa/xtensa.opt (mauto-litpools): New option.
17014 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17015
17016 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17017
17018 * config/arm/arm-fpus.def: Replace booleans with feature flags.
17019 Update comment.
17020 * config/arm/arm.c (ARM_FPU): Update macro.
17021 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17022 (TARGET_FP16): Likewise.
17023 (TARGET_CRYPTO): Likewise.
17024 (TARGET_NEON): Likewise.
17025 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
17026 field features.
17027
17028 2015-08-12 Tom de Vries <tom@codesourcery.com>
17029
17030 PR other/67092
17031 PR other/67098
17032 * doc/install.texi: Remove --with_host_libstdcxx item. Update
17033 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17034 accordingly. Mention default for --with-stage1-ldflags.
17035
17036 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17037
17038 * config/arm/arm.h (arm_fpu_feature_set): New.
17039 (ARM_FPU_FSET_HAS): New.
17040 (FPU_FL_NONE): New.
17041 (FPU_FL_NEON): New.
17042 (FPU_FL_FP16): New.
17043 (FPU_FL_CRYPTO): New.
17044
17045 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17046
17047 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17048 after -mcmodel=large -fPIC sorry.
17049
17050 2015-08-12 Richard Biener <rguenther@suse.de>
17051
17052 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17053 comparison operand order and commutative ternary op operand order.
17054 (sccvn_dom_walker::cond_stack): New state to track temporary
17055 expressions.
17056 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17057 no longer valid.
17058 (sccvn_dom_walker::record_cond): Add a single temporary conditional
17059 expression.
17060 (sccvn_dom_walker::record_conds): Add a temporary conditional
17061 expressions and all related expressions also true/false.
17062 (sccvn_dom_walker::before_dom_children): Record temporary
17063 expressions based on the controlling condition of a single
17064 predecessor. When trying to simplify a conditional statement
17065 lookup expressions we might have inserted earlier.
17066
17067 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
17068
17069 PR target/67127
17070 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17071 to ARM core registers.
17072
17073 2015-08-12 Nathan Sidwell <nathan@acm.org>
17074
17075 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17076 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17077
17078 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
17079
17080 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17081 line with comments.
17082 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17083
17084 2015-08-12 Richard Biener <rguenther@suse.de>
17085
17086 * gimple.h (remove_pointer): New trait.
17087 (GIMPLE_CHECK2): New inline template function.
17088 (gassign::code_): New constant static member.
17089 (is_a_helper<const gassign *>): Add.
17090 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17091 and forward to a new gassign overload with less checking and a
17092 cheaper way to access the operand.
17093 (gimple_assign_lhs_ptr): Likewise.
17094 (gimple_assign_set_lhs): Likewise.
17095 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17096 Likewise.
17097 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17098 Likewise.
17099 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17100 Likewise.
17101 (gimple_assign_rhs_code): Likewise.
17102 * gimple.c (gassign::code_): Define.
17103
17104 2015-08-12 Richard Biener <rguenther@suse.de>
17105
17106 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17107 Eliminate edges marked as not executable by SCCVN.
17108 * tree-ssa-sccvn.c: Include gimple-iterator.h.
17109 (cond_dom_walker): Rename to sccvn_dom_walker.
17110 (sccvn_dom_walker::before_dom_children): Value-number defs
17111 of all stmts.
17112 (run_scc_vn): Remove loop value-numbering all SSA names.
17113 Drop not visited SSA names to varying.
17114
17115 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17116
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
17126
17127 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
17128
17129 PR target/66954
17130 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17131 to enum feature_priority and feature_list.
17132 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17133 and isa_names_table.
17134
17135 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
17136
17137 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17138 vect_induction_def.
17139
17140 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17141
17142 PR c/66098
17143 PR c/66711
17144 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17145 account when deciding what was the command-line status.
17146
17147 2015-08-11 Nathan Sidwell <nathan@acm.org>
17148
17149 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17150
17151 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17152 we're not the only contributor to target phi.
17153
17154 2015-08-11 Jiong Wang <jiong.wang@arm.com>
17155
17156 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17157 FIXED_REG0.
17158
17159 2015-08-11 Tom de Vries <tom@codesourcery.com>
17160
17161 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17162
17163 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
17164
17165 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17166 with CPU_SLM.
17167 * config/i386/i386.md (cpu): Remove knl.
17168
17169 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17170
17171 PR libgomp/65742
17172 PR middle-end/66332
17173 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17174 open-coded sequence.
17175 * omp-low.c (oacc_process_reduction_data): Remove handline of
17176 GOMP_DEVICE_HOST_NONSHM.
17177
17178 * lto-streamer-in.c (lto_input_mode_table): Adjust to
17179 GET_MODE_INNER changes.
17180
17181 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17182 Ilya Verbin <ilya.verbin@intel.com>
17183
17184 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17185
17186 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17187
17188 * doc/options.texi (EnabledBy): Document that the argument must be
17189 a Common option.
17190 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17191 Not enabled by -Wall.
17192 * optc-gen.awk: Give nicer error messages. Detect if the argument
17193 of EnabledBy is not a Common option.
17194 * common.opt (Wnull-dereference): Not enabled by -Wall.
17195 * opt-functions.awk (lang_enabled_by): Nicer error messages.
17196
17197 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
17198
17199 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17200 model == 0x4f as Broadwell.
17201
17202 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17203
17204 PR rtl-optimization/67028
17205 * combine.c (simplify_comparison): Fix comment. Rearrange code.
17206 Add test to see if a const_int fits in the new mode.
17207
17208 2015-08-07 DJ Delorie <dj@redhat.com>
17209
17210 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17211
17212 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
17213
17214 PR rtl-optimization/67029
17215 * ira-color.c: Include "recog.h" before including "ira-int.h".
17216 * target-globals.c: Likewise.
17217 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17218 adds an alternative_mask argument and use it instead of
17219 preferred_alternatives.
17220 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17221 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17222 * sched-deps.c: Include "ira-int.h" after including "ira.h".
17223 (sched_analyze_insn): Update call to
17224 ira_implicitly_set_insn_hard_regs.
17225 * sel-sched.c: Include "ira-int.h" after including "ira.h".
17226 (implicit_clobber_conflict_p): Update call to
17227 ira_implicitly_set_insn_hard_regs.
17228
17229 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17230
17231 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17232
17233 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
17234
17235 PR target/67002
17236 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17237 currently_expanding_to_rtl is set.
17238
17239 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
17240
17241 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17242 * configure: Regenerate.
17243
17244 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17245 Jiong Wang <jiong.wang@arm.com>
17246
17247 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17248 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17249 (REG_CLASS_NAMES): Likewise.
17250 (REG_CLASS_CONTENTS): Likewise.
17251 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17252 (aarch64_register_move_cost): Likewise.
17253 (aarch64_load_symref_appropriately): Invoke the new added pattern if
17254 possible.
17255 * config/aarch64/constraints.md (Uc0): New constraint.
17256
17257 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17258
17259 * config/aarch64/constraints.md (Usf): Add the test of
17260 aarch64_is_noplt_call_p.
17261
17262 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17263
17264 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17265 declaration.
17266 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17267 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17268 (call_symbol): Likewise.
17269
17270 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
17271
17272 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17273 for vectorizing multiplication patterns.
17274 * tree-vectorizer.h: Adjust the number of patterns.
17275
17276 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17277
17278 * config/i386/sse.md (*vec_concatv2df): Declare added
17279 alternatives as sselog type.
17280
17281 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17282
17283 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17284 all GPRs.
17285
17286 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17287
17288 * config/s390/s390.c (s390_expand_tbegin): Expand either
17289 tbegin_1_z13 or tbegin_1 depending on VX flag.
17290 * config/s390/s390.md ("tbegin_1_z13"): New expander.
17291
17292 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17293
17294 * config/s390/s390.opt: Clarify description for -mzvector
17295 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17296 -mzvector.
17297
17298 2015-08-06 Richard Biener <rguenther@suse.de>
17299
17300 * gimple.h (gimple_call_set_fn): Access op member directly.
17301 (gimple_call_chain_ptr): Likewise.
17302 (gimple_call_set_chain): Likewise.
17303 (gimple_cond_lhs_ptr): Likewise.
17304 (gimple_cond_set_lhs): Likewise.
17305 (gimple_cond_rhs_ptr): Likewise.
17306 (gimple_cond_set_rhs): Likewise.
17307 (gimple_cond_true_label): Likewise.
17308 (gimple_cond_set_true_label): Likewise.
17309 (gimple_cond_set_false_label): Likewise.
17310 (gimple_cond_false_label): Likewise.
17311 (gimple_label_label): Likewise.
17312 (gimple_label_set_label): Likewise.
17313 (gimple_goto_set_dest): Likewise.
17314 (gimple_asm_input_op): Likewise.
17315 (gimple_asm_input_op_ptr): Likewise.
17316 (gimple_asm_set_input_op): Likewise.
17317 (gimple_asm_output_op): Likewise.
17318 (gimple_asm_output_op_ptr): Likewise.
17319 (gimple_asm_set_output_op): Likewise.
17320 (gimple_asm_clobber_op): Likewise.
17321 (gimple_asm_set_clobber_op): Likewise.
17322 (gimple_asm_label_op): Likewise.
17323 (gimple_asm_set_label_op): Likewise.
17324 (gimple_switch_index): Likewise.
17325 (gimple_switch_index_ptr): Likewise.
17326 (gimple_return_retval_ptr): Likewise.
17327 (gimple_return_retval): Likewise.
17328 (gimple_return_set_retval): Likewise.
17329 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
17330 (gimple_switch_label): Likewise.
17331 (gimple_switch_set_label): Likewise.
17332
17333 2015-08-06 Richard Biener <rguenther@suse.de>
17334
17335 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17336 bool comparison canonicalization and restrict to integers.
17337
17338 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
17339
17340 * coretypes.h (enum symbol_visibility): Relocate here.
17341 * flag-types.h (enum symbol_visibility): Remove.
17342 * tree-core.h (enum symbol_visibility): Remove.
17343
17344 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
17345
17346 PR target/66870
17347 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17348 for no_split_stack function attribute along with
17349 flag_split_stack.
17350 (rs6000_expand_split_stack_prologue): Likewise.
17351
17352 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
17353 Jeff Law <law@redhat.com>
17354
17355 PR c/16351
17356 * doc/invoke.texi (Wnull-dereference): New.
17357 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17358 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17359 Warn for potential NULL dereferences.
17360 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17361 * ubsan.c (instrument_nonnull_arg): Call
17362 infer_nonnull_range_by_attribute.
17363 (instrument_nonnull_return): Likewise.
17364 * common.opt (Wnull-dereference); New.
17365 * gimple.c (infer_nonnull_range): Remove bool arguments.
17366 (infer_nonnull_range_by_dereference): New.
17367 (infer_nonnull_range_by_attribute): New.
17368 * gimple.h: Update declarations.
17369
17370 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17371
17372 * gensupport.c (sequence_num): Replace with...
17373 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17374 ...these new variables.
17375 (init_rtx_reader_args_cb): Update accordingly.
17376 (get_num_code_insns): Likewise.
17377 (read_md_rtx): Rework to use a while loop and get_c_test.
17378 Use the new counters. Remove redundant DEFINE_SUBST case.
17379 * genoutput.c (gen_split): Delete.
17380 (main): Don't call it.
17381
17382 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17383
17384 * gensupport.h (get_c_test): Declare.
17385 * gensupport.c (get_c_test): New function.
17386 * genconditions.c (main): Use it.
17387 * genrecog.c (validate_pattern): Likewise.
17388 (match_pattern_1): Likewise. Remove c_test argument.
17389 (match_pattern): Update accordingly and remove c_test argument.
17390 (main): Update accordingly.
17391
17392 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17393
17394 * gensupport.h (get_num_insn_codes): Declare.
17395 * gensupport.c (get_num_insn_codes): New function.
17396 * genattrtab.c (optimize_attrs): Rename max_insn_code to
17397 num_insn_codes.
17398 (main): Likewise. Use get_num_insn_codes.
17399 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
17400
17401 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17402
17403 PR middle-end/66311
17404 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
17405 is zero- rather than sign-extended.
17406
17407 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17408
17409 * target-insns.def (can_extend): Delete.
17410
17411 2015-08-05 Richard Biener <rguenther@suse.de>
17412
17413 PR tree-optimization/67121
17414 * tree-if-conv.c (combine_blocks): Clear range-info produced
17415 by stmts no longer executed conditionally.
17416
17417 2015-08-05 Nick Clifton <nickc@redhat.com>
17418
17419 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
17420 to allow identical far pointers to remain.
17421
17422 2015-08-05 Richard Biener <rguenther@suse.de>
17423
17424 PR middle-end/67120
17425 * match.pd: Compare address bases with == if they are decls
17426 or SSA names, not operand_equal_p. Otherwise fail.
17427
17428 2015-08-05 Richard Biener <rguenther@suse.de>
17429
17430 PR tree-optimization/67055
17431 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
17432 NULL gimple_block.
17433
17434 * g++.dg/torture/pr67055.C: New testcase.
17435
17436 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17437
17438 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
17439 noavx512vl.
17440 (define_attr "enabled"): Handle avx521vl and noavx512vl.
17441 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
17442 AVX-512 alternative out of SSE.
17443 (define_insn "*vec_concatv2df"): Ditto.
17444
17445 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17446
17447 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
17448 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
17449 CODE_FOR_avx_ptestv4di.
17450 * config/i386/sse.md (define_mode_iterator V_AVX): New.
17451 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
17452 (define_insn "avx_ptest256"): Merge this ...
17453 (define_insn "sse4_1_ptest"): And this ...
17454 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
17455
17456 2015-08-05 Richard Biener <rguenther@suse.de>
17457
17458 PR tree-optimization/67109
17459 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
17460 against too big groups. Print whether this is a load or store
17461 group. Rename from ...
17462 (vect_analyze_group_access): ... this which is now a wrapper
17463 dissolving an invalid group.
17464 (vect_analyze_data_ref_accesses): Print whether this is a load
17465 or store group.
17466
17467 2015-08-05 Richard Biener <rguenther@suse.de>
17468
17469 PR middle-end/67107
17470 * match.pd: Guard const_binop result checking against NULL_TREE
17471 result.
17472
17473 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
17474
17475 * cse.c (cse_insn): Restoring old behaviour for src_eqv
17476 when dest and value in the REG_EQUAL are same and dest
17477 is STRICT_LOW_PART.
17478
17479 2015-08-04 Anatoly Sokolov <aesok@post.ru>
17480
17481 * config/moxie/moxie.h (PRINT_OPERAND,
17482 PRINT_OPERAND_ADDRESS): Remove macros.
17483 * config/moxie/moxie-protos.h (moxie_print_operand,
17484 moxie_print_operand_address): Remove declaration.
17485 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
17486 TARGET_PRINT_OPERAND_ADDRESS): Define.
17487 (moxie_print_operand, moxie_print_operand_address): Make static.
17488
17489 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
17490
17491 PR target/66731
17492 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
17493 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
17494
17495 2015-08-04 Richard Biener <rguenther@suse.de>
17496
17497 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
17498 generated code.
17499 (dt_operand::gen_gimple_expr): Adjust.
17500
17501 2015-08-04 Richard Biener <rguenther@suse.de>
17502
17503 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
17504 bool compares on RHS.
17505 * match.pd: Add X ==/!= !X is false/true pattern.
17506
17507 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
17508
17509 * config/aarch64/aarch64.c: Change inner loop statement cost
17510 to be consistent with other targets.
17511
17512 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
17513
17514 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
17515 targets.
17516
17517 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
17518
17519 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
17520 (machine_function): Remove pseudos field.
17521
17522 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17523
17524 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17525 Exit early and use target_option_current_node if processing current
17526 pragma.
17527
17528 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17529
17530 * doc/extend.texi (AArch64 Function Attributes): New node.
17531 (AArch64 Pragmas): Likewise.
17532
17533 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17534
17535 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17536 Initialize simd builtins if TARGET_SIMD.
17537 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17538 Make sure that the builtins are initialized only once no matter how
17539 many times the function is called.
17540 (aarch64_init_builtins): Unconditionally initialize crc builtins.
17541 (aarch64_relayout_simd_param): New function.
17542 (aarch64_simd_expand_args): Use above during argument expansion.
17543 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
17544 simd builtins if TARGET_SIMD.
17545 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
17546 prototype.
17547 (aarch64_relayout_simd_types): Likewise.
17548
17549 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17550
17551 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
17552 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
17553 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
17554 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17555 static keyword.
17556 (aarch64_reset_previous_fndecl): New function.
17557 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
17558 the string.
17559 * config/aarch64/aarch64-c.c: New file.
17560 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
17561 Push and pop options at beginning and end. Remove ifdef
17562 __ARM_FEATURE_CRC32.
17563 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
17564 Add pragma +nothing+simd and +nothing+crypto where appropriate.
17565 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
17566 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
17567 Define prototype.
17568 (aarch64_register_pragmas): Likewise.
17569 (aarch64_reset_previous_fndecl): Likewise.
17570 (aarch64_process_target_attr): Likewise.
17571 (aarch64_override_options_internal): Likewise.
17572
17573 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17574
17575 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
17576 New function.
17577 (aarch64_can_inline_p): Likewise.
17578 (TARGET_CAN_INLINE_P): Define.
17579
17580 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17581
17582 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
17583 Remove static. Handle OPT_mgeneral_regs_only,
17584 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
17585 OPT_momit_leaf_frame_pointer.
17586 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
17587 (aarch64_attr_opt_type): New enum.
17588 (aarch64_attribute_info): New struct.
17589 (aarch64_handle_attr_arch): New function.
17590 (aarch64_handle_attr_cpu): Likewise.
17591 (aarch64_handle_attr_tune): Likewise.
17592 (aarch64_handle_attr_isa_flags): Likewise.
17593 (aarch64_attributes): New table.
17594 (aarch64_process_one_target_attr): New function.
17595 (num_occurences_in_str): Likewise.
17596 (aarch64_process_target_attr): Likewise.
17597 (aarch64_option_valid_attribute_p): Likewise.
17598 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17599 * config/aarch64/aarch64-protos.h: Include input.h
17600 (aarch64_handle_option): Declare prototype.
17601
17602 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17603
17604 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
17605 * config/aarch64/aarch64.c: Include target-globals.h
17606 (aarch64_previous_fndecl): New variable.
17607 (aarch64_set_current_function): New function.
17608 (TARGET_SET_CURRENT_FUNCTION): Define.
17609
17610 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17611
17612 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
17613 (explicit_arch): Likewise.
17614 (x_aarch64_isa_flags): Likewise.
17615 (mgeneral-regs-only): Mark as Save.
17616 (mfix-cortex-a53-835769): Likewise.
17617 (mcmodel=): Likewise.
17618 (mstrict-align): Likewise.
17619 (momit-leaf-frame-pointer): Likewise.
17620 (mtls-dialect): Likewise.
17621 (master=): Likewise.
17622 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
17623 (aarch64_isa_flags): Remove extern declaration.
17624 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
17625 to indicate success or failure.
17626 (aarch64_validate_march): Likewise.
17627 (aarch64_validate_mtune): Likewise.
17628 (aarch64_isa_flags): Delete.
17629 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
17630 instead of aarch64_isa_flags.
17631 (aarch64_get_tune_cpu): New function.
17632 (aarch64_get_arch): Likewise.
17633 (aarch64_override_options): Use above and set up explicit_tune_core
17634 and explicit_arch.
17635 (aarch64_print_extension): Move earlier in file. Add isa_flags
17636 argument and use that instead of the global aarch64_isa_flags.
17637 (aarch64_option_save): New function.
17638 (aarch64_option_restore): Likewise.
17639 (aarch64_option_print): Likewise.
17640 (aarch64_declare_function_name): Likewise.
17641 (aarch64_start_file): Delete.
17642 (TARGET_ASM_FILE_START): Do not define.
17643 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
17644 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
17645 Declare prototype.
17646
17647 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17648
17649 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
17650 flag_omit_leaf_frame_pointer to 2.
17651
17652 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17653
17654 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
17655 define to 0 or 1.
17656 (TARGET_FIX_ERR_A53_835769): New macro.
17657 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17658 handling of opts->x_aarch64_fix_a53_err835769.
17659 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
17660 than aarch64_fix_a53_err835769.
17661 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
17662 * config/aarch64/aarch64-linux.h: Likewise.
17663
17664 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
17665
17666 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
17667 ix86_expand_int_movcc as boolean.
17668
17669 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17670
17671 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
17672 (aarch64_cpu_string): Likewise.
17673 (aarch64_tune_string): Likewise.
17674 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
17675 (aarch64_parse_extension): Return aarch64_parse_opt_result.
17676 Add extra argument to put result into.
17677 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
17678 (aarch64_parse_cpu): Add arguments to put results into. Return
17679 aarch64_parse_opt_result.
17680 (aarch64_parse_tune): Likewise.
17681 (aarch64_override_options_after_change_1): New function.
17682 (aarch64_override_options_internal): New function.
17683 (aarch64_validate_mcpu): Likewise.
17684 (aarch64_validate_march): Likewise.
17685 (aarch64_validate_mtune): Likewise.
17686 (aarch64_override_options): Update to reflect above changes.
17687 Move some logic into aarch64_override_options_internal.
17688 Initialize target_option_default_node and target_option_current_node.
17689 (aarch64_override_options_after_change): Move logic into
17690 aarch64_override_options_after_change_1 and call it with global_options.
17691 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
17692 flag values from that.
17693
17694 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17695
17696 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17697 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
17698 * config/aarch64/aarch64.c (struct processor): Add arch field.
17699 (all_architectures): Handle above, move above all_cores.
17700 (all_cores): Handle above.
17701 (aarch64_parse_arch): Handle above changes.
17702 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
17703 above. Update comments.
17704 (armv8.1-a): Likewise.
17705 * config/aarch64/aarch64-cores.def: Update according to above.
17706 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
17707 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
17708 aarch64_arch_driver_info.
17709
17710 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17711
17712 * config/aarch64/aarch64.c (struct processor): Add ident field.
17713 Rename core sched_core.
17714 (all_cores): Handle above changes.
17715 (all_architectures): Likewise.
17716 (aarch64_parse_arch): Likewise.
17717 (aarch64_override_options): Likewise.
17718
17719 2015-08-04 Richard Biener <rguenther@suse.de>
17720
17721 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17722 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
17723 comparisons embedded in [VEC_]COND_EXPRs.
17724
17725 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
17726
17727 * tree-if-conv.c: Fix various typos in comments.
17728 * tree-vect-stmts.c: Likewise.
17729
17730 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17731
17732 PR tree-optimization/67043
17733 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
17734 preheader after hoisting invariant in it.
17735 (find_defs): Force recomputation of all luids.
17736
17737 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
17738
17739 * config/rs6000/htm.md (tabort.): Restrict the source operand to
17740 using a base register.
17741
17742 2015-08-03 David Malcolm <dmalcolm@redhat.com>
17743
17744 * main.c (main): Pass in NULL for toplev's external_timer.
17745 * timevar.c: Include coretypes.h.
17746 (class timer::named_items): New.
17747 (timer::named_items::named_items): New.
17748 (timer::named_items::~named_items): New.
17749 (timer::named_items::push): New.
17750 (timer::named_items::pop): New.
17751 (timer::named_items::print): New.
17752 (timer::timer): Initialize field "m_jit_client_items".
17753 (timer::~timer): New.
17754 (timer::push): Move bulk of implementation to...
17755 (timer::push_internal): ...here. New function.
17756 (timer::pop): Move bulk of implementation to...
17757 (timer::pop_internal): ...here. New function.
17758 (timer::push_client_item): New.
17759 (timer::pop_client_item): New.
17760 (timer::print_row): New function, taken from timer::print.
17761 (timer::print): Print "GCC items" header if we also have client
17762 items. Move row-printing to timer::print_row. Print any client
17763 items.
17764 (timer::get_topmost_item_name): New method.
17765 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
17766 (TV_JIT_CLIENT_CODE): New.
17767 * timevar.h (timer::push_client_item): New declaration.
17768 (timer::pop_client_item): New declaration.
17769 (timer::get_topmost_item_name): New method.
17770 (timer::push_internal): New declaration.
17771 (timer::pop_internal): New declaration.
17772 (timer::print_row): New declaration.
17773 (timer::named_items): New declaration.
17774 (timer::m_jit_client_items): New field.
17775 (timer): Add friend class named_items.
17776 (auto_timevar::auto_timevar): Add timer param.
17777 (auto_timevar::~auto_timevar): Use field "m_timer".
17778 (auto_timevar::m_timer): New field.
17779 * toplev.c (initialize_rtl): Add g_timer as param when
17780 constructing auto_timevar instance.
17781 (toplev::toplev): Add "external_timer" param, and use it to
17782 initialize the "g_timer" global if non-NULL.
17783 (toplev::~toplev): If this created "g_timer", delete it.
17784 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
17785 with "external_timer" timer *.
17786
17787 2015-08-03 Alexander Basov <coohpt@gmail.com>
17788
17789 PR middle-end/64744
17790 PR middle-end/48470
17791 PR middle-end/43404
17792 * cfgexpand.c (expand_one_var): Add check if stack is going to
17793 be used in naked function.
17794 * expr.c (expand_expr_addr_expr_1): Remove excess checking
17795 whether expression should not reside in MEM.
17796 * function.c (use_register_for_decl): Do not use registers for
17797 non-register things (volatile, float, BLKMode) in naked functions.
17798
17799 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
17800
17801 PR target/67060
17802 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
17803 Adjust splits to match new pattern.
17804
17805 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17806
17807 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
17808 (VEC_M): Likewise.
17809 (VEC_N): Likewise.
17810 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
17811 point in VSX registers.
17812
17813 * config/rs6000/constraints.md (wb constraint): Document unused
17814 w<x> constraint.
17815 (we constraint): Likewise.
17816 (wo constraint): Likewise.
17817 (wp constraint): New constraint for IEEE 128-bit floating point in
17818 VSX registers.
17819 (wq constraint): Likewise.
17820
17821 * config/rs6000/predicates.md (easy_fp_constant): Add support for
17822 IEEE 128-bit floating point in VSX registers.
17823 (easy_scalar_constant): Likewise.
17824
17825 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
17826 constraints (wp, wq) for IEEE 128-bit floating point in VSX
17827 registers.
17828 (rs6000_init_hard_regno_mode_ok): Likewise.
17829
17830 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
17831 floating point in VSX registers.
17832 (VSX_L): Likewise.
17833 (VSX_M): Likewise.
17834 (VSX_M2): Likewise.
17835 (VSm): Likewise.
17836 (VSs): Likewise.
17837 (VSr): Likewise.
17838 (VSa): Likewise.
17839 (VSv): Likewise.
17840 (vsx_le_permute_<mode>): Add support to properly swap bytes for
17841 IEEE 128-bit floating point in VSX registers on little endian.
17842 (vsx_le_undo_permute_<mode>): Likewise.
17843 (vsx_le_perm_load_<mode>): Likewise.
17844 (vsx_le_perm_store_<mode>): Likewise.
17845 (splitters for IEEE 128-bit fp moves): Likewise.
17846
17847 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
17848 wq constraints.
17849
17850 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
17851 floating point in VSX registers.
17852 (VM2): Likewise.
17853
17854 * doc/md.text (Machine Constraints): Document wp and wq
17855 constraints on PowerPC.
17856
17857 2015-08-03 Jeff Law <law@redhat.com>
17858
17859 PR middle-end/66314
17860 PR gcov-profile/66899
17861 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
17862 iterate over the jump threading paths when an element in the
17863 jump threading paths array is eliminated.
17864
17865 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
17866
17867 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
17868
17869 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
17870
17871 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
17872 is_use_properly_guarded the variable def_preds. Free its
17873 contents before returning.
17874 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
17875 (is_use_properly_guarded): Replace local variable def_preds with
17876 a parameter. Adjust accordingly. Only update *def_preds if it's
17877 the empty vector.
17878
17879 2015-08-03 Richard Biener <rguenther@suse.de>
17880
17881 * genmatch.c (simplify::for_subst_vec): New member.
17882 (binary_ok): New helper for for lowering.
17883 (lower_for): Delay substituting operators into result expressions
17884 if we can merge the results eventually again.
17885 (capture_info::walk_result): Adjust for user_id appearing as
17886 result expression operator.
17887 (expr::gen_transform): Likewise.
17888 (dt_simplify::gen_1): Likewise.
17889 (dt_simplify::gen): Pass not substituted operators to tail
17890 functions or initialize local variable with it.
17891 (decision_tree::gen): Adjust function signature.
17892 * match.pd: Fix tests against global code and add default
17893 cases to switch stmts.
17894
17895 2015-08-03 Richard Biener <rguenther@suse.de>
17896
17897 * genmatch.c (dt_simplify::gen): Create captures array
17898 with an initializer.
17899
17900 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17901
17902 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
17903 the host compiler is affected by placement new aliasing bug.
17904 * configure: Regenerate.
17905 * Makefile.in (ALIASING_FLAGS): New variable.
17906 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
17907
17908 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17909
17910 PR target/66731
17911 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
17912 (negmulsf3_vfp): Likewise.
17913 (muldf3negdf_vfp): Disable for -frounding-math.
17914 (mulsf3negsf_vfp): Likewise.
17915 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17916 fix MULT cost with -frounding-math.
17917
17918 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17919
17920 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
17921 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
17922 explicit. Prefer to add the flag whenever possible.
17923 (noce_process_if_block): Try noce_try_store_flag_constants before
17924 noce_try_cmove.
17925
17926 2015-08-03 Richard Biener <rguenther@suse.de>
17927
17928 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
17929 New hash-map to record equivalent transforms.
17930 (dt_node::analyze): Populate the equivalent transforms hash-map.
17931 (dt_simplify::info): Add reference to hash-map entry.
17932 (dt_simplify::gen): If we have split out a function for the
17933 transform, generate a call to it.
17934 (sinfo_hashmap_traits::hash): New function.
17935 (compare_op): New helper function for ...
17936 (sinfo_hashmap_traits::equal_keys): ... this new function.
17937 (decision_tree::gen): Split out common equivalent transforms
17938 into functions.
17939
17940 2015-08-03 Richard Biener <rguenther@suse.de>
17941
17942 * gimple-fold.c (fold_gimple_assign): Remove folding of
17943 the comparison in COND_EXPRs.
17944
17945 2015-08-03 Richard Biener <rguenther@suse.de>
17946
17947 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
17948 on the rhs of assignments first simplify the embedded
17949 GENERIC condition.
17950
17951 2015-08-03 Richard Biener <rguenther@suse.de>
17952
17953 PR tree-optimization/66917
17954 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
17955 field.
17956 (DR_VECT_AUX): New macro.
17957 (set_dr_misalignment): Adjust.
17958 (dr_misalignment): Likewise.
17959 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17960 Compute whether the base is at least element aligned.
17961 * tree-vect-stmts.c (ensure_base_align): Adjust.
17962 (vectorizable_store): If the base is not element aligned
17963 preserve alignment of the original access if misalignment is unknown.
17964 (vectorizable_load): Likewise.
17965
17966 2015-08-02 Martin Sebor <msebor@redhat.com>
17967
17968 * c-family/c.opt (-Wframe-address): New warning option.
17969 * doc/invoke.texi (Wframe-address): Document it.
17970 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
17971 Clarify possible effects of calling the functions with non-zero
17972 arguments and mention -Wframe-address.
17973 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
17974
17975 2015-08-01 Michael Collison <michael.collison@linaro.org
17976 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17977
17978 * config/arm/arm.md (*arm_smin_cmp): New pattern.
17979 (*arm_umin_cmp): Likewise.
17980
17981 2015-08-01 Caroline Tice <cmtice@google.com>
17982
17983 PR 66521
17984 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
17985 global variables.
17986 (vtbl_find_mangled_name): New function.
17987 (vtbl_register_mangled_name): New function.
17988 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
17989 mangled name in mangled name vectors.
17990 (find_or_create_vtbl_map_node): Ditto.
17991 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
17992 update recursion_depth on function entry; pass it to every recursive
17993 call; automatically exit if depth > 25 (give up looking at that point).
17994 (verify_bb_vtables): Initialize recursion_depth and pass it to
17995 var_is_used_for_virtual_call_p.
17996 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
17997 global variable decls.
17998 (vtbl_register_mangled_name): New extern function decl.
17999
18000 2015-08-01 Tom de Vries <tom@codesourcery.com>
18001
18002 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18003 function.
18004 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18005 Declare.
18006 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18007 operation_no_trapping_overflow. Allow non-overflow operations.
18008 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18009 operations.
18010
18011 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
18012
18013 PR target/67049
18014 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18015
18016 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18017
18018 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18019 Enable for TARGET_32BIT.
18020 (*if_move_neg): Likewise.
18021
18022 2015-07-31 Nick Clifton <nickc@redhat.com>
18023
18024 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18025 Returns true for __model__.
18026 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18027
18028 2015-07-31 Alan Modra <amodra@gmail.com>
18029
18030 PR target/66870
18031 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18032 (rs6000_emit_prologue): Set it.
18033 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18034
18035 2015-07-31 Richard Biener <rguenther@suse.de>
18036
18037 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18038 -> X == (C1 ^ C2) which is already implemented in match.pd.
18039 Remove redundant dispatching to fold_relational_const.
18040 Move unordered self and NaN compares ...
18041 * match.pd: ... as patterns here. Remove some stray captures
18042 and add a comment.
18043
18044 2015-07-31 Petr Murzin <petr.murzin@intel.com>
18045
18046 * config/i386/i386.c
18047 (bdesc_special_args): Convert mask type from signed to unsigned for
18048 masked builtins.
18049 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18050 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18051 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18052 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18053 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18054 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18055 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18056 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18057 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18058 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18059 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18060 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18061 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18062 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18063 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18064 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18065 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18066 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18067 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18068 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18069 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18070 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18071 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18072 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18073 * config/i386/i386-builtin-types.def
18074 (V16QI_FTYPE_V16SI): Remove.
18075 (V8DF_FTYPE_V8SI): Ditto.
18076 (V8HI_FTYPE_V8DI): Ditto.
18077 (V8SI_FTYPE_V8DI): Ditto.
18078 (V8SF_FTYPE_V8DF): Ditto.
18079 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18080 (V16HI_FTYPE_V16SI): Ditto.
18081 (V16SF_FTYPE_V16HI): Ditto.
18082 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18083 (V16SF_FTYPE_V16SI): Ditto.
18084 (V4DI_FTYPE_V4DI): Ditto.
18085 (V16SI_FTYPE_V16SF): Ditto.
18086 (V16SF_FTYPE_FLOAT): Ditto.
18087 (V8DF_FTYPE_DOUBLE): Ditto.
18088 (V8DI_FTYPE_INT64): Ditto.
18089 (V8DI_FTYPE_V4DI): Ditto.
18090 (V16QI_FTYPE_V8DI): Ditto.
18091 (UINT_FTYPE_V4SF): Ditto.
18092 (UINT64_FTYPE_V4SF): Ditto.
18093 (UINT_FTYPE_V2DF): Ditto.
18094 (UINT64_FTYPE_V2DF): Ditto.
18095 (V16SI_FTYPE_V16SI): Ditto.
18096 (V8DI_FTYPE_V8DI): Ditto.
18097 (V16SI_FTYPE_PV4SI): Ditto.
18098 (V16SF_FTYPE_PV4SF): Ditto.
18099 (V8DI_FTYPE_PV2DI): Ditto.
18100 (V8DF_FTYPE_PV2DF): Ditto.
18101 (V4DI_FTYPE_PV2DI): Ditto.
18102 (V4DF_FTYPE_PV2DF): Ditto.
18103 (V16SI_FTYPE_PV2SI): Ditto.
18104 (V16SF_FTYPE_PV2SF): Ditto.
18105 (V8DI_FTYPE_PV4DI): Ditto.
18106 (V8DF_FTYPE_PV4DF): Ditto.
18107 (V8SF_FTYPE_FLOAT): Ditto.
18108 (V4SF_FTYPE_FLOAT): Ditto.
18109 (V4DF_FTYPE_DOUBLE): Ditto.
18110 (V8SF_FTYPE_PV4SF): Ditto.
18111 (V8SI_FTYPE_PV4SI): Ditto.
18112 (V4SI_FTYPE_PV2SI): Ditto.
18113 (V8SF_FTYPE_PV2SF): Ditto.
18114 (V8SI_FTYPE_PV2SI): Ditto.
18115 (V16SF_FTYPE_PV8SF): Ditto.
18116 (V16SI_FTYPE_PV8SI): Ditto.
18117 (V8DI_FTYPE_V8SF): Ditto.
18118 (V4DI_FTYPE_V4SF): Ditto.
18119 (V2DI_FTYPE_V4SF): Ditto.
18120 (V64QI_FTYPE_QI): Ditto.
18121 (V32HI_FTYPE_HI): Ditto.
18122 (V8UHI_FTYPE_V8UHI): Ditto.
18123 (V16UHI_FTYPE_V16UHI): Ditto.
18124 (V32UHI_FTYPE_V32UHI): Ditto.
18125 (V2UDI_FTYPE_V2UDI): Ditto.
18126 (V4UDI_FTYPE_V4UDI): Ditto.
18127 (V8UDI_FTYPE_V8UDI): Ditto.
18128 (V4USI_FTYPE_V4USI): Ditto.
18129 (V8USI_FTYPE_V8USI): Ditto.
18130 (V16USI_FTYPE_V16USI): Ditto.
18131 (V2DF_FTYPE_V2DF_UINT64): Ditto.
18132 (V2DI_FTYPE_V2DF_V2DF): Ditto.
18133 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18134 (V8DF_FTYPE_V8DF_V8DI): Ditto.
18135 (V4SF_FTYPE_V4SF_UINT64): Ditto.
18136 (V4SI_FTYPE_V4SF_V4SF): Ditto.
18137 (V16SF_FTYPE_V16SF_V16SI): Ditto.
18138 (V64QI_FTYPE_V32HI_V32HI): Ditto.
18139 (V32HI_FTYPE_V16SI_V16SI): Ditto.
18140 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18141 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18142 (V32HI_FTYPE_V64QI_V64QI): Ditto.
18143 (V32HI_FTYPE_V32HI_V32HI): Ditto.
18144 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18145 (V16SI_FTYPE_V16SI_V4SI): Ditto.
18146 (V16SI_FTYPE_V16SI_V16SI): Ditto.
18147 (V16SI_FTYPE_V32HI_V32HI): Ditto.
18148 (V16SI_FTYPE_V16SI_SI): Ditto.
18149 (V8DI_FTYPE_V8DI_V8DI): Ditto.
18150 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18151 (V8DI_FTYPE_V16SI_V16SI): Ditto.
18152 (V8DI_FTYPE_V8DI_V2DI): Ditto.
18153 (QI_FTYPE_QI): Ditto.
18154 (SI_FTYPE_SI): Ditto.
18155 (DI_FTYPE_DI): Ditto.
18156 (QI_FTYPE_QI_QI): Ditto.
18157 (QI_FTYPE_QI_INT): Ditto.
18158 (HI_FTYPE_HI_INT): Ditto.
18159 (SI_FTYPE_SI_INT): Ditto.
18160 (DI_FTYPE_DI_INT): Ditto.
18161 (HI_FTYPE_V16QI_V16QI): Ditto.
18162 (SI_FTYPE_V32QI_V32QI): Ditto.
18163 (DI_FTYPE_V64QI_V64QI): Ditto.
18164 (QI_FTYPE_V8HI_V8HI): Ditto.
18165 (HI_FTYPE_V16HI_V16HI): Ditto.
18166 (SI_FTYPE_V32HI_V32HI): Ditto.
18167 (QI_FTYPE_V4SI_V4SI): Ditto.
18168 (QI_FTYPE_V8SI_V8SI): Ditto.
18169 (QI_FTYPE_V2DI_V2DI): Ditto.
18170 (QI_FTYPE_V4DI_V4DI): Ditto.
18171 (QI_FTYPE_V8DI_V8DI): Ditto.
18172 (HI_FTYPE_V16SI_V16SI): Ditto.
18173 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18174 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18175 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18176 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18177 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18178 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18179 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18180 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18181 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18182 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18183 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18184 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18185 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18186 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18187 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18188 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18189 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18190 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18191 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18192 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18193 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18194 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18195 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18196 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18197 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18198 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18199 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18200 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18201 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18202 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18203 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18204 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18205 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18206 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18207 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18208 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18209 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18210 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18211 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18212 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18213 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18214 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18215 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18216 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18217 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18218 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18219 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18220 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18221 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18222 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18223 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18224 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18225 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18226 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18227 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18228 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18229 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18230 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18231 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18232 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18233 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18234 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18235 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18236 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18237 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18238 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18239 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18240 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18241 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18242 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18243 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18244 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18245 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18246 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18247 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18248 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18249 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18250 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18251 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18252 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18253 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18254 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18255 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18256 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18257 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18258 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18259 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18260 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18261 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18262 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18263 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18264 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18265 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18266 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18267 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18268 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18269 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18270 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18271 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18272 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18273 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18274 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18275 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18276 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18277 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18278 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18279 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18280 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18281 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18282 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18283 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18284 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18285 (HI_FTYPE_HI): Ditto.
18286 (HI_FTYPE_V16QI): Ditto.
18287 (SI_FTYPE_V32QI): Ditto.
18288 (DI_FTYPE_V64QI): Ditto.
18289 (QI_FTYPE_V8HI): Ditto.
18290 (HI_FTYPE_V16HI): Ditto.
18291 (SI_FTYPE_V32HI): Ditto.
18292 (QI_FTYPE_V4SI): Ditto.
18293 (QI_FTYPE_V8SI): Ditto.
18294 (HI_FTYPE_V16SI): Ditto.
18295 (QI_FTYPE_V2DI): Ditto.
18296 (QI_FTYPE_V4DI): Ditto.
18297 (QI_FTYPE_V8DI): Ditto.
18298 (V16QI_FTYPE_HI): Ditto.
18299 (V32QI_FTYPE_SI): Ditto.
18300 (V64QI_FTYPE_DI): Ditto.
18301 (V8HI_FTYPE_QI): Ditto.
18302 (V16HI_FTYPE_HI): Ditto.
18303 (V32HI_FTYPE_SI): Ditto.
18304 (V4SI_FTYPE_QI): Ditto.
18305 (V4SI_FTYPE_HI): Ditto.
18306 (V8SI_FTYPE_QI): Ditto.
18307 (V8SI_FTYPE_HI): Ditto.
18308 (V2DI_FTYPE_QI): Ditto.
18309 (V4DI_FTYPE_QI): Ditto.
18310 (HI_FTYPE_HI_HI): Ditto.
18311 (SI_FTYPE_SI_SI): Ditto.
18312 (DI_FTYPE_DI_DI): Ditto.
18313 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18314 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18315 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18316 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18317 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18318 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18319 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18320 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18321 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18322 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18323 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18324 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18325 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18326 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18327 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18328 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18329 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18330 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18331 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18332 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18333 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18334 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18335 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18336 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18337 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18338 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18339 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18340 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18341 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18342 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18343 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18344 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18345 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18346 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18347 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18348 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18349 (V16SI_FTYPE_HI): Ditto.
18350 (V8DI_FTYPE_QI): Ditto.
18351 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18352 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18353 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18354 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18355 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18356 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18357 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18358 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18359 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18360 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18361 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18362 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18363 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18364 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18365 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18366 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18367 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18368 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18369 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18370 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18371 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18372 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18373 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18374 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18375 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18376 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18377 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18378 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18379 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18380 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18381 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18382 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18383 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18384 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18385 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18386 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18387 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18388 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18389 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18390 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18391 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18392 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18393 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18394 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18395 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18396 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18397 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
18398 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
18399 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
18400 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
18401 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
18402 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
18403 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
18404 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
18405 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
18406 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
18407 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
18408 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
18409 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
18410 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
18411 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
18412 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
18413 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
18414 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
18415 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
18416 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
18417 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
18418 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
18419 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
18420 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
18421 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
18422 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
18423 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
18424 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
18425 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
18426 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
18427 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
18428 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
18429 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
18430 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
18431 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
18432 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
18433 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
18434 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
18435 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
18436 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
18437 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
18438 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
18439 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
18440 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
18441 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
18442 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
18443 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
18444 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
18445 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
18446 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
18447 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
18448 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
18449 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
18450 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
18451 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
18452 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
18453 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
18454 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
18455 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
18456 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
18457 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
18458 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
18459 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
18460 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
18461 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
18462 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
18463 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
18464 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
18465 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
18466 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
18467 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
18468 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
18469 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
18470 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
18471 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
18472 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
18473 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
18474 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
18475 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
18476 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
18477 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
18478 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
18479 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
18480 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
18481 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
18482 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
18483 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
18484 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
18485 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
18486 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
18487 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
18488 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
18489 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
18490 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
18491 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
18492 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
18493 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
18494 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
18495 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
18496 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
18497 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
18498 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
18499 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
18500 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
18501 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
18502 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
18503 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
18504 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
18505 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
18506 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
18507 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
18508 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
18509 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
18510 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
18511 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
18512 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
18513 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
18514 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
18515 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
18516 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
18517 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
18518 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
18519 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
18520 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
18521 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
18522 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
18523 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
18524 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
18525 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
18526 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
18527 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
18528 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
18529 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
18530 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
18531 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
18532 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
18533 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
18534 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
18535 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
18536 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
18537 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
18538 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
18539 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
18540 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
18541 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
18542 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
18543 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
18544 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
18545 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
18546 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
18547 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
18548 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
18549 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
18550 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
18551 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
18552 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
18553 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
18554 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
18555 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
18556 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
18557 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
18558 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
18559 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
18560 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
18561 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
18562 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
18563 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
18564 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
18565 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
18566 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
18567 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
18568 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
18569 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
18570 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
18571 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
18572 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
18573 (QI_FTYPE_V8DF_INT_QI): Ditto.
18574 (QI_FTYPE_V4DF_INT_QI): Ditto.
18575 (QI_FTYPE_V2DF_INT_QI): Ditto.
18576 (HI_FTYPE_V16SF_INT_HI): Ditto.
18577 (QI_FTYPE_V8SF_INT_QI): Ditto.
18578 (QI_FTYPE_V4SF_INT_QI): Ditto.
18579 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
18580
18581 2015-07-31 Richard Biener <rguenther@suse.de>
18582
18583 * gimple-fold.c (fold_gimple_assign): Remove folding of
18584 GIMPLE_BINARY_RHS.
18585
18586 2015-07-31 Tom de Vries <tom@codesourcery.com>
18587
18588 PR tree-optimization/66846
18589 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
18590 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
18591 (expand_omp_target) [ENABLE_CHECKING]: Same.
18592 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
18593 cfun if !LOOPS_NEED_FIXUP.
18594 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
18595 that omp_for already has its own loop struct.
18596 * tree-parloops.c (create_phi_for_local_result)
18597 (create_call_for_reduction): Handle simple latch bb.
18598 (create_parallel_loop): Add simple latch bb to preserve
18599 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
18600 (gen_parallel_loop): Remove call to cancel_loop_tree.
18601 (parallelize_loops): Skip loops that are inner loops of parallelized
18602 loops.
18603 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
18604 verify_loop_structure.
18605
18606 2015-07-30 Anatoly Sokolov <aesok@post.ru>
18607
18608 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
18609 * config/v850/v850.md (RV_REGNUM): New constants.
18610 * config/v850/v850.c (v850_libcall_value): New functions.
18611 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
18612 (TARGET_LIBCALL_VALUE): Define.
18613
18614 2015-07-30 Anatoly Sokolov <aesok@post.ru>
18615
18616 * rtl.h (lowpart_subreg): Move in file.
18617 * loop-iv.c (lowpart_subreg): Move to...
18618 * simplify-rtx.c (lowpart_subreg): ...here.
18619 (simplify_binary_operation_1): Use lowpart_subreg instead of
18620 simplify_gen_subreg.
18621 * expr.c (expand_expr_real_2): Ditto.
18622 * emit-rtl.c (gen_lowpart_common): Ditto.
18623 * combine.c (gen_lowpart_for_combine): Ditto.
18624 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
18625 expand_debug_source_expr): Ditto.
18626
18627 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
18628
18629 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
18630 (expand_builtin_atomic_clear): Remove support for atomic_clear
18631 pattern.
18632
18633 2015-07-30 Richard Biener <rguenther@suse.de>
18634
18635 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
18636 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
18637 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
18638 redundant operand canonicalization.
18639
18640 2015-07-30 David Sherwood <david.sherwood@arm.com>
18641
18642 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
18643 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
18644 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
18645 * config/arm/arm.c (neon_valid_immediate): Likewise.
18646 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
18647 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
18648 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
18649 (expand_vec_perm_vpshufb2_vpermq): Likewise.
18650 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
18651 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18652 * config/i386/sse.md
18653 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
18654 (*ssse3_palignr<mode>_perm): Likewise.
18655 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
18656 * config/spu/spu.c (arith_immediate_p): Likewise.
18657 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18658 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
18659
18660 2015-07-30 Richard Biener <rguenther@suse.de>
18661
18662 * genmatch.c (decision_tree::gen_gimple): Merge with ...
18663 (decision_tree::gen_generic): ... this into ...
18664 (decision_tree::gen): ... this.
18665 (main): Adjust callers.
18666
18667 2015-07-30 Richard Biener <rguenther@suse.de>
18668
18669 * genmatch.c (verbose): New global.
18670 (warning_at): Add overload with source_location.
18671 (capture_info::capture_info): Add bool whether generating gimple
18672 or generic. Add gimple member.
18673 (capture_info::cinfo): Add capture member.
18674 (capture_info::walk_match): Record capture. Warn on
18675 non-captured leafs.
18676 (capture_info::walk_c_expr): Add more fragments captures cannot
18677 escape through. Warn on escaped captures.
18678 (dt_simplify::gen_1): Warn on operands we force to have no
18679 side-effects.
18680 (main): Initialize verbose.
18681 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
18682
18683 2015-07-30 Richard Biener <rguenther@suse.de>
18684
18685 PR middle-end/67053
18686 * match.pd: Allow both operands to independently have conversion
18687 when simplifying compares of addresses.
18688
18689 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
18690
18691 PR target/66217
18692 PR target/67045
18693 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
18694 around those cases that need one.
18695
18696 2015-07-29 Aditya Kumar <hiraditya@msn.com>
18697
18698 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
18699
18700 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
18701
18702 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18703 New. Copied from config/i386/gnu-user.h.
18704 (ASM_COMMENT_START): Likewise.
18705 (DBX_REGISTER_NUMBER): Likewise.
18706
18707 2015-07-29 Richard Biener <rguenther@suse.de>
18708
18709 * gimple-fold.c (fold_gimple_cond): Remove.
18710 (fold_stmt_1): Do not call it.
18711
18712 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
18713
18714 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
18715 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
18716
18717 * config/aarch64/aarch64-modes.def: Add HFmode.
18718
18719 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18720 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
18721
18722 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
18723 aarch64_promoted_type): New.
18724
18725 (aarch64_float_const_representable_p): Disable HFmode.
18726 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
18727 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
18728 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
18729
18730 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
18731 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
18732
18733 * config/aarch64/iterators.md (GPF_F16): New.
18734
18735 2015-07-29 Richard Biener <rguenther@suse.de>
18736
18737 * match.pd: Merge address comparison patterns and make them
18738 handle some more cases.
18739
18740 2015-07-29 Richard Biener <rguenther@suse.de>
18741
18742 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
18743 (parser::parse_capture): Add bool argument on whether to reject
18744 unknown captures.
18745 (parser::parse_expr): Adjust.
18746 (parser::parse_op): Likewise.
18747 (parser::parse_pattern): Likewise.
18748
18749 2015-07-29 Richard Biener <rguenther@suse.de>
18750
18751 * gimple-fold.c (has_use_on_stmt): New function.
18752 (replace_stmt_with_simplification): Use it to allow
18753 abnormals originally referenced in the stmt.
18754 (fold_stmt_1): Canonicalize operand order.
18755
18756 2015-07-28 David Sherwood <david.sherwood@arm.com>
18757
18758 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
18759 GET_MODE_INNER unconditionally.
18760 * config/spu/spu.c (arith_immediate_p): Likewise.
18761 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
18762 * expmed.c (synth_mult): Remove check for VOIDmode result from
18763 GET_MODE_INNER.
18764 (expand_mult_const): Likewise.
18765 * fold-const.c (fold_binary_loc): Replace call to element_precision
18766 with call to GET_MODE_PRECISION.
18767 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
18768 m->name.
18769 (emit_mode_inner): Likewise.
18770 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
18771 result check.
18772 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
18773 (GET_MODE_UNIT_PRECISION): Likewise.
18774 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
18775 * simplify-rtx.c (simplify_immed_subreg): Likewise.
18776 * stor-layout.c (bitwise_type_for_mode): Update assert.
18777 (element_precision): Remove.
18778
18779 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18780
18781 * target-insns.def (reload_load_address): New targetm instruction
18782 pattern.
18783 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
18784
18785 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18786
18787 * target-insns.def (atomic_test_and_set): New targetm instruction
18788 pattern.
18789 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
18790 HAVE_*/gen_* interface.
18791
18792 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18793
18794 * target-insns.def (can_extend, ptr_extend): New targetm instruction
18795 patterns.
18796 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
18797 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18798 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18799 * rtlanal.c (nonzero_bits1): Likewise.
18800 (num_sign_bit_copies1): Likewise.
18801
18802 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18803
18804 * target-insns.def (eh_return): New targetm instruction pattern.
18805 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
18806 interface.
18807 * function.c (thread_prologue_and_epilogue_insns): Remove
18808 preprocessor condition.
18809
18810 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18811
18812 * target-insns.def (indirect_jump): New targetm instruction pattern.
18813 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
18814 interface.
18815
18816 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18817
18818 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
18819 instead of nonimmediate_operand. Remove C condiition.
18820
18821 2015-07-28 Richard Biener <rguenther@suse.de>
18822
18823 * match.pd: Add more simplification of address comparisons.
18824
18825 2015-07-28 Richard Biener <rguenther@suse.de>
18826
18827 * match.pd: Re-order two cases in comparison with max/min
18828 value simplification to make it apply for bools.
18829
18830 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18831
18832 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
18833 Handle simple SIGN_EXTEND or ZERO_EXTEND.
18834 (aarch64_rtx_costs): Properly strip extend or extract before
18835 passing down to rtx costs again.
18836
18837 2015-07-28 Nick Clifton <nickc@redhat.com>
18838
18839 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
18840 Optimizes the case where -mes0 is active and a constant symbolic
18841 address is used.
18842 * config/rl78/rl78-protos.h: Prototype the new function.
18843 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
18844
18845 2015-07-28 Tom de Vries <tom@codesourcery.com>
18846
18847 * tree-parloops.c (reduc_stmt_res): New function.
18848 (initialize_reductions, add_field_for_reduction)
18849 (create_phi_for_local_result, create_loads_for_reductions)
18850 (create_stores_for_reduction, build_new_reduction): Handle case that
18851 reduc_stmt is a phi.
18852 (gather_scalar_reductions): Allow double_reduc reductions.
18853
18854 2015-07-28 Richard Biener <rguenther@suse.de>
18855
18856 * fold-const.c (fold_comparison): Remove equality folding
18857 of decl addresses ...
18858 * match.pd: ... here and merge with existing pattern.
18859
18860 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18861
18862 PR tree-optimization/66828
18863 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
18864 from int64_t to uint64_t.
18865
18866 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
18867
18868 * opts-common.c (read_cmdline_option): List DriverOnly enum values
18869 as valid only in the error message of the driver, not in the
18870 messages of the language compilers.
18871
18872 2015-07-27 Tom de Vries <tom@codesourcery.com>
18873
18874 * tree-parloops.c (gather_scalar_reductions): Simplify function
18875 structure.
18876
18877 2015-07-27 Marek Polacek <polacek@redhat.com>
18878
18879 * ipa-devirt.c (types_same_for_odr): Fix typo.
18880
18881 2015-07-27 Jason Merrill <jason@redhat.com>
18882
18883 PR debug/66468
18884 * dwarf2out.c (gen_inlined_subroutine_die): Check
18885 cgraph_function_possibly_inlined_p.
18886
18887 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18888
18889 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
18890 Place integer variant first.
18891 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18892
18893 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18894
18895 PR/63870
18896 * config/arm/arm-builtins.c (enum arm_builtins):
18897 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
18898 (ARM_BUILTIN_NEON_BASE): Rename macro to....
18899 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
18900 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
18901 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
18902
18903 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18904
18905 PR/63870
18906 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
18907 Add qualifier_lane_index.
18908 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
18909 (arm_getlane_qualifiers): Use qualifier_lane_index.
18910 (arm_lanemac_qualifiers): Rename to...
18911 (arm_mac_n_qualifiers): ...this.
18912 (LANEMAC_QUALIFIERS): Rename to...
18913 (MAC_N_QUALIFIERS): ...this.
18914 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
18915 (arm_setlane_qualifiers): Use qualifier_lane_index.
18916 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
18917 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
18918 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
18919 (arm_expand_neon_builtin): Handle qualifier_lane_index.
18920
18921 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
18922 * config/arm/arm.c (bounds_check): Likewise, improve error message.
18923 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
18924 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
18925 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
18926 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
18927 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
18928 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
18929 qualifiers to TERNOP_IMM.
18930 (vdup_lane): Change qualifiers to GETLANE.
18931 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
18932 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
18933 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
18934 vqdmlsl_n): Change qualifiers to MAC_N.
18935
18936 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
18937 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
18938 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
18939 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
18940 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
18941 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
18942 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
18943 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18944 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18945 Remove call to neon_lane_bounds.
18946
18947 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18948
18949 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18950 Place integer variant first.
18951
18952 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
18953
18954 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
18955 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
18956 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
18957 for armv6kz targets.
18958 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
18959 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
18960 (FL_FOR_ARCH6ZK): Remove.
18961 (FL_FOR_ARCH6KZ): New.
18962 (arm_arch6zk): New declaration.
18963 * config/arm/arm-tables.opt: Regenerate.
18964 * config/arm/arm.c (arm_arch6kz): New.
18965 (arm_option_override): Set arm_arch6kz.
18966 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
18967 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
18968 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
18969
18970 2015-07-27 Marek Polacek <polacek@redhat.com>
18971
18972 PR c++/66555
18973 PR c/54979
18974 * doc/invoke.texi: Document -Wtautological-compare.
18975
18976 2015-07-27 Richard Biener <rguenther@suse.de>
18977
18978 * genmatch.c (decision_tree::gen_gimple): Split out large
18979 subtrees into separate functions.
18980 (decision_tree::gen_generic): Likewise.
18981
18982 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
18983
18984 * config/alpha/alpha.c: Use SUBREG_P predicate.
18985 * config/alpha/predicates.md: Ditto.
18986
18987 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
18988
18989 * config.host (s390*-*-*): Include driver-native.c only when
18990 building with s390* as host *and* target.
18991
18992 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
18993
18994 PR target/66930
18995 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
18996 T bit register modified_between_p check.
18997
18998 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
18999
19000 * config/i386/i386.c: Use SUBREG_P predicate.
19001 * config/i386/i386.md: Ditto.
19002 * config/i386/sse.md: Ditto.
19003 * config/i386/predicates.md: Ditto.
19004
19005 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19006
19007 PR target/67004
19008 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19009 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19010
19011 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19012
19013 * Makefile.in: Remove use of TREEBROWSER.
19014 * config.in: Regenerated.
19015 * configure: Regenerated.
19016 * configure.ac: Remove definition of TREEBROWSER.
19017 * tree-browser.c: Removed.
19018 * tree-browser.def: Removed.
19019
19020 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19021
19022 * graphite-scop-detection.c: Include gimple-pretty-print.h.
19023 (stmt_simple_for_scop_p): Print when a stmt is not handled in
19024 Graphite.
19025 (scopdet_basic_block_info): Print when a loop or bb cannot be
19026 represented in Graphite.
19027
19028 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19029
19030 PR target/66648
19031 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19032 execution guard when min_size is less than size_needed.
19033
19034 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19035
19036 * doc/install.texi: Document supported versions of ISL.
19037
19038 2015-07-25 Jeff Law <law@redhat.com>
19039
19040 Revert:
19041 PR lto/66752
19042 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19043 unable to find X NE 0 in the tables, return X as the simplified
19044 condition.
19045 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19046 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19047 to VISISTED_BBS. */
19048 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19049 after removing the control flow statement and unnecessary edges.
19050
19051 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
19052
19053 Revert:
19054 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19055
19056 PR rtl-optimization/64164
19057 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19058 * tree-ssa-copyrename.c: Removed.
19059 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19060 -ftree-coalesce-vars.
19061 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19062 * common.opt (ftree-copyrename): Ignore.
19063 (ftree-coalesce-inlined-vars): Likewise.
19064 * doc/invoke.texi: Remove the ignored options above.
19065 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19066 * tree-ssa-coalesce.h: ... here.
19067 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19068 headers required by it.
19069 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19070 across variables when flag_tree_coalesce_vars. Check register
19071 use and promoted modes to allow coalescing. Moved to
19072 tree-ssa-coalesce.c.
19073 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19074 with its member functions to tree-ssa-coalesce.c.
19075 (var_map_base_init): Likewise. Renamed to
19076 compute_samebase_partition_bases.
19077 (partition_view_normal): Drop want_bases parameter.
19078 (partition_view_bitmap): Likewise.
19079 * tree-ssa-live.h: Adjust declarations.
19080 * tree-ssa-coalesce.c: Include explow.h.
19081 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19082 default defs at the entry point.
19083 (dump_part_var_map): New.
19084 (compute_optimized_partition_bases): New, called by...
19085 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19086 of compute_samebase_partition_bases. Adjust.
19087 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19088 * cfgexpand.c (leader_merge): New.
19089 (get_rtl_for_parm_ssa_default_def): New.
19090 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19091 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19092 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19093 redundant MEM attr setting.
19094 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19095 from...
19096 (expand_one_stack_var): ... this. New wrapper to check and
19097 skip already expanded SSA partitions.
19098 (record_alignment_for_reg_var): New, factored out of...
19099 (expand_one_var): ... this.
19100 (expand_one_ssa_partition): New.
19101 (adjust_one_expanded_partition_var): New.
19102 (expand_one_register_var): Check and skip already expanded SSA
19103 partitions.
19104 (expand_used_vars): Don't create DECLs for anonymous SSA
19105 names. Expand all SSA partitions, then adjust all SSA names.
19106 (pass::execute): Replace the loops that set
19107 SA.partition_to_pseudo from partition leaders and cleared
19108 DECL_RTL for multi-location variables, and that which used to
19109 rename vars and set attrs, with one that clears DECL_RTL and
19110 checks that PARMs and RESULTs default_defs match DECL_RTL.
19111 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19112 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19113 * explow.c (promote_ssa_mode): New.
19114 * explow.h (promote_ssa_mode): Declare.
19115 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19116 * function.c: Include cfgexpand.h.
19117 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19118 (use_register_for_parm_decl): Wrapper for the above to
19119 special-case the result_ptr.
19120 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19121 (split_complex_args): Take assign_parm_data_all argument.
19122 Pass it to rtl_for_parm. Set up rtl and context for split
19123 args.
19124 (assign_parms_augmented_arg_list): Adjust.
19125 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19126 multiple locations. Recognize split complex args.
19127 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19128 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19129 (assign_parm_setup_block): Prefer SSA-assigned location.
19130 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19131 if stack_parm is NULL.
19132 (assign_parm_setup_stack): Prefer SSA-assigned location.
19133 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19134 rtl before testing for pointer bounds. Special-case result_ptr.
19135 (expand_function_start): Maybe reset DECL_RTL of result.
19136 Prefer SSA-assigned location for result and static chain.
19137 Factor out DECL_RESULT and SET_DECL_RTL.
19138 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19139 anonymous SSA names. Use promote_ssa_mode.
19140 (get_temp_reg): Likewise.
19141 (remove_ssa_form): Adjust.
19142 * stor-layout.c (layout_decl): Don't set mem attributes of
19143 non-MEMs.
19144 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19145 and get its reg_usage for reg invalidation.
19146 (compute_bb_dataflow): Pass it insn.
19147 (emit_notes_in_bb): Likewise.
19148
19149 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19150
19151 * config/i386/i386.c (ix86_va_start): Remove
19152 unneeded !TARGET_64BIT check.
19153 (ix86_gimplify_va_arg): Ditto.
19154
19155 2015-07-24 Tom de Vries <tom@codesourcery.com>
19156
19157 * graphite-sese-to-poly.c (build_poly_scop): Always call
19158 rewrite_commutative_reductions_out_of_ssa.
19159
19160 2015-07-24 Tom de Vries <tom@codesourcery.com>
19161
19162 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19163 flag_associative_math to FLOAT_TYPE_P. Honour
19164 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19165
19166 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19167
19168 PR c++/64079
19169 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19170 and "%qD" in warning_at instead of "%q+D" in warning.
19171
19172 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19173
19174 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19175 (ix86_function_abi): Cleanup.
19176
19177 2015-07-24 Michael Darling <darlingm@gmail.com>
19178
19179 PR other/66259
19180 * acinclude.m4: Reflects renaming of configure.in to configure.ac
19181 * configure: Likewise
19182 * configure.ac: Likewise
19183 * doc/install.texi: Likewise
19184 * doc/tm.texi: Likewise
19185 * doc/tm.texi.in: Likewise
19186
19187 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19188
19189 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19190 manually swapping values.
19191 * cse.c (fold_rtx): Likewise.
19192 * lra-eliminations.c (form_sum): Likewise.
19193
19194 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19195
19196 PR target/64003
19197 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19198 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19199 (*jcc_1, *jcc_2, jump, simple_return_internal)
19200 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19201 Set length_nobnd attribute instead of length attribute.
19202 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19203 (length_nobnd): Remove attribute.
19204 (length): Remove length_nobnd processing.
19205
19206 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
19207
19208 * gimplify.c (omp_default_clause): New function. Reorganize flow
19209 for clarity. Broken out of ...
19210 (omp_notice_variable): ... here.
19211
19212 2015-07-24 Gary Funck <gary@intrepid.com>
19213
19214 PR middle-end/66984
19215 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19216 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19217
19218 2015-07-24 Tom de Vries <tom@codesourcery.com>
19219
19220 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19221 exit-first loop transform.
19222
19223 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
19224
19225 PR 66714
19226 * tree-cfg.c (struct replace_decls_d): New struct.
19227 (replace_block_vars_by_duplicates_1): New function.
19228 (replace_block_vars_by_duplicates): Use it to replace the decls
19229 in the value exprs by duplicates.
19230
19231 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19232
19233 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19234 -shared, -symbolic, -rdynamic.
19235
19236 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19237
19238 PR target/65711
19239 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19240 -dynamic-linker within %{!static %{!shared, and -rdynamic within
19241 %{!static.
19242
19243 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19244
19245 PR ipa/66566
19246 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19247 edge summary is available.
19248
19249 2015-07-24 Richard Biener <rguenther@suse.de>
19250
19251 * genmatch.c (struct dt_node): Add statistic fields.
19252 (dt_node::analyze): New method.
19253 (decision_tree::gen_gimple): Call analyze on the root node
19254 and print statistics to stderr.
19255 (decision_tree::gen_generic): Likewise.
19256
19257 2015-07-24 Richard Biener <rguenther@suse.de>
19258
19259 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19260 against the highest or lowest possible integer ...
19261 * match.pd: ... as patterns here.
19262
19263 2015-07-24 Richard Biener <rguenther@suse.de>
19264
19265 * genmatch.c (struct capture_info): Add same_as field.
19266 (capture_info::capture_info): Initialize same_as.
19267 (capture_info::walk_match): Compute same_as.
19268 (capture_info::walk_result): Compute stuff for the leader.
19269 (capture_info::walk_c_expr): Likewise.
19270 (dt_simplify::gen_1): Only look at leaders when deciding
19271 to force no side-effects or emit side-effects of omitted operands.
19272
19273 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19274
19275 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19276 reg note to the GPR -> FPR save instructions.
19277
19278 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19279
19280 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19281 cheaper.
19282 (s390_expand_insv): Don't generate risbg pattern for constant zero
19283 sources.
19284 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19285 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
19286 splitters.
19287
19288 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19289
19290 * config/s390/s390.c (s390_reorg): Clean up handling of processors
19291 with
19292 -mtune=
19293 (s390_issue_rate): Likewise.
19294 (s390_sched_reorder): Likewise.
19295 (s390_sched_variable_issue): Likewise.
19296 (s390_loop_unroll_adjust): Likewise.
19297 (s390_option_override): Likewise.
19298
19299 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19300
19301 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19302 processor capabilities with -march=native.
19303 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19304 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
19305 (S390_TARGET_BITS_STRING): Macro to simplify specs.
19306
19307 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19308
19309 * config/s390/s390.c (s390_issue_rate): Handle
19310 PROCESSOR_2094_Z9_EC.
19311 (s390_option_override): Likewise.
19312 (s390_adjust_priority): Likewise.
19313
19314 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19315
19316 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19317 when cross compiling.
19318
19319 2015-07-24 Richard Biener <rguenther@suse.de>
19320
19321 * fold-const.c (maybe_canonicalize_comparison_1): Move
19322 A code CST canonicalization ...
19323 * match.pd: ... to a pattern here.
19324
19325 2015-07-24 Jiong Wang <jiong.wang@arm.com>
19326
19327 Revert:
19328 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19329 PR target/63521
19330 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19331 (HONOR_REG_ALLOC_ORDER): Define.
19332
19333 2015-07-24 Richard Biener <rguenther@suse.de>
19334
19335 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19336 * fold-const.c (fold_comparison): Move parameter does not
19337 alias &local simplification ...
19338 * match.pd: ... as a pattern here.
19339
19340 2015-07-24 Richard Biener <rguenther@suse.de>
19341
19342 * gimple-fold.c (replace_stmt_with_simplification): Special-case
19343 valueizing call operands.
19344 * gimple-match-head.c (maybe_push_res_to_seq): Take
19345 number of call arguments from ops array.
19346 (do_valueize): New function.
19347 (gimple_simplify): Return true if valueization changed
19348 any operand even if the result didn't simplify further.
19349
19350 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19351
19352 PR middle-end/25530
19353 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19354
19355 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19356
19357 PR middle-end/25529
19358 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19359
19360 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19361
19362 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19363 instruction.
19364
19365 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19366
19367 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19368 clean up.
19369
19370 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
19371
19372 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19373 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
19374 targets here.
19375 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19376 ms_va_list_type_node initialization.
19377
19378 2015-07-23 Jeff Law <law@redhat.com>
19379
19380 PR lto/66752
19381 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19382 unable to find X NE 0 in the tables, return X as the simplified
19383 condition.
19384 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19385 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19386 to VISISTED_BBS. */
19387 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19388 after removing the control flow statement and unnecessary edges.
19389
19390 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19391
19392 * tree-pass.h (get_current_pass_name): Removed.
19393
19394 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19395
19396 PR rtl-optimization/64164
19397 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19398 * tree-ssa-copyrename.c: Removed.
19399 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19400 -ftree-coalesce-vars.
19401 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19402 * common.opt (ftree-copyrename): Ignore.
19403 (ftree-coalesce-inlined-vars): Likewise.
19404 * doc/invoke.texi: Remove the ignored options above.
19405 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19406 * tree-ssa-coalesce.h: ... here.
19407 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19408 headers required by it.
19409 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19410 across variables when flag_tree_coalesce_vars. Check register
19411 use and promoted modes to allow coalescing. Moved to
19412 tree-ssa-coalesce.c.
19413 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19414 with its member functions to tree-ssa-coalesce.c.
19415 (var_map_base_init): Likewise. Renamed to
19416 compute_samebase_partition_bases.
19417 (partition_view_normal): Drop want_bases parameter.
19418 (partition_view_bitmap): Likewise.
19419 * tree-ssa-live.h: Adjust declarations.
19420 * tree-ssa-coalesce.c: Include explow.h.
19421 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19422 default defs at the entry point.
19423 (dump_part_var_map): New.
19424 (compute_optimized_partition_bases): New, called by...
19425 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19426 of compute_samebase_partition_bases. Adjust.
19427 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19428 * cfgexpand.c (leader_merge): New.
19429 (get_rtl_for_parm_ssa_default_def): New.
19430 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19431 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19432 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19433 redundant MEM attr setting.
19434 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19435 from...
19436 (expand_one_stack_var): ... this. New wrapper to check and
19437 skip already expanded SSA partitions.
19438 (record_alignment_for_reg_var): New, factored out of...
19439 (expand_one_var): ... this.
19440 (expand_one_ssa_partition): New.
19441 (adjust_one_expanded_partition_var): New.
19442 (expand_one_register_var): Check and skip already expanded SSA
19443 partitions.
19444 (expand_used_vars): Don't create DECLs for anonymous SSA
19445 names. Expand all SSA partitions, then adjust all SSA names.
19446 (pass::execute): Replace the loops that set
19447 SA.partition_to_pseudo from partition leaders and cleared
19448 DECL_RTL for multi-location variables, and that which used to
19449 rename vars and set attrs, with one that clears DECL_RTL and
19450 checks that PARMs and RESULTs default_defs match DECL_RTL.
19451 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19452 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19453 * explow.c (promote_ssa_mode): New.
19454 * explow.h (promote_ssa_mode): Declare.
19455 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19456 * function.c: Include cfgexpand.h.
19457 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19458 (use_register_for_parm_decl): Wrapper for the above to
19459 special-case the result_ptr.
19460 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19461 (split_complex_args): Take assign_parm_data_all argument.
19462 Pass it to rtl_for_parm. Set up rtl and context for split
19463 args.
19464 (assign_parms_augmented_arg_list): Adjust.
19465 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19466 multiple locations. Recognize split complex args.
19467 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19468 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19469 (assign_parm_setup_block): Prefer SSA-assigned location.
19470 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19471 if stack_parm is NULL.
19472 (assign_parm_setup_stack): Prefer SSA-assigned location.
19473 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19474 rtl before testing for pointer bounds. Special-case result_ptr.
19475 (expand_function_start): Maybe reset DECL_RTL of result.
19476 Prefer SSA-assigned location for result and static chain.
19477 Factor out DECL_RESULT and SET_DECL_RTL.
19478 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19479 anonymous SSA names. Use promote_ssa_mode.
19480 (get_temp_reg): Likewise.
19481 (remove_ssa_form): Adjust.
19482 * stor-layout.c (layout_decl): Don't set mem attributes of
19483 non-MEMs.
19484 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19485 and get its reg_usage for reg invalidation.
19486 (compute_bb_dataflow): Pass it insn.
19487 (emit_notes_in_bb): Likewise.
19488
19489 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
19490
19491 PR target/66217
19492 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
19493 prototype.
19494 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
19495 (rs6000_emit_2insn_and): Handle dot forms.
19496 * config/rs6000/rs6000.md (and<mode>3): Adjust.
19497 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
19498 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
19499
19500 2015-07-23 Richard Biener <rguenther@suse.de>
19501
19502 * generic-match-head.c: Include cgraph.h.
19503 * gimple-match-head.c: Likewise.
19504 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
19505 SSA names.
19506 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
19507 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
19508 pattern.
19509
19510 2015-07-23 Richard Biener <rguenther@suse.de>
19511
19512 * gimple-fold.c (fold_gimple_cond): Do not require folding
19513 results to pass valid_gimple_rhs_p.
19514 * tree-cfg.h (fold_cond_expr_cond): Remove.
19515 * tree-cfg.c (fold_cond_expr_cond): Likewise.
19516 (make_edges): Do not call it.
19517 * tree-inline.c (tree_function_versioning): Likewise.
19518
19519 2015-07-23 Tom de Vries <tom@codesourcery.com>
19520
19521 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
19522 vect_force_simple_reduction.
19523 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
19524 (vect_is_simple_reduction_1): Add and handle
19525 need_wrapping_integral_overflow parameter.
19526 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
19527 need_wrapping_integral_overflow parameter.
19528 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
19529 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
19530 decl.
19531
19532 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
19533
19534 PR tree-optimization/66926,66951
19535 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
19536 INNER_LOOP and fix up condition for renaming virtual operands.
19537
19538 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19539
19540 * combine.c (try_combine): Use std::swap instead of manually
19541 swapping.
19542
19543 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
19544
19545 * config/mips/i6400.md: New file.
19546 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
19547 (mips64r6): Likewise.
19548 (i6400): Define.
19549 * config/mips/mips-tables.opt: Regenerate.
19550 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
19551 (mips_issue_rate): Add support for i6400.
19552 (mips_multipass_dfa_lookahead): Likewise.
19553 * config/mips/mips.h (TUNE_I6400): Define.
19554 * config/mips/mips.md: Include i6400.md.
19555 (processor): Add i6400.
19556 * doc/invoke.texi (-march=@var{arch}): Add i6400.
19557
19558 2015-07-23 Richard Biener <rguenther@suse.de>
19559
19560 PR middle-end/66916
19561 * match.pd: Guard widen and sign-change comparison simplification
19562 with single_use.
19563
19564 2015-07-23 Richard Biener <rguenther@suse.de>
19565
19566 PR tree-optimization/66945
19567 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
19568 ::before_dom_children): Force the propagators idea of
19569 non-executable edges to materialize, not what the folder
19570 chooses.
19571
19572 2015-07-23 Richard Biener <rguenther@suse.de>
19573
19574 * gimple.h (gimple_cond_make_false): Use 0 != 0.
19575 (gimple_cond_make_true): Use 1 != 0.
19576
19577 2015-07-22 DJ Delorie <dj@redhat.com>
19578
19579 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
19580 slashes.
19581
19582 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
19583 (ashrhi3): Likewise.
19584 (lshrhi3): Likewise.
19585 (movhi): Take advantage of zero-extend to load small constants.
19586 (movpsi): Likewise.
19587 (and<mode>3): Likewise.
19588 (zero_extendqihi2): Likewise.
19589 (zero_extendqisi2): New.
19590 * config/msp430/constraints.md (N,O): New.
19591 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
19592
19593 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
19594
19595 PR target/66954
19596 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
19597 to enum feature_priority and feature_list.
19598 (fold_builtin_cpu): Add F_AES to enum processor_features
19599 and isa_names_table.
19600
19601 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
19602
19603 PR driver/66737
19604 * config/i386/linux-common.h (MPX_SPEC): Use linker option
19605 for 64bit target only.
19606
19607 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
19608
19609 * config/nvptx/nvptx.c: Expand some comments.
19610
19611 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
19612
19613 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
19614 (cortex_a53_advsimd): ...This.
19615
19616 2015-07-22 Richard Biener <rguenther@suse.de>
19617
19618 * genmatch.c (expr::gen_transform): Clarify error message
19619 and display location.
19620
19621 2015-07-22 Richard Biener <rguenther@suse.de>
19622
19623 * genmatch.c (struct operand): Add location member.
19624 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
19625 constructors.
19626 (struct simplify): Remove match_location and result_location
19627 members.
19628 (elsehwere): Adjust.
19629
19630 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
19631
19632 * config/mips/m5100.md: New file.
19633 * config/mips/mips-cpus.def (m5100, m5101): Define.
19634 * config/mips/mips-tables.opt: Regenerate.
19635 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
19636 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
19637 -march=m5101 to -mips32r5.
19638 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
19639 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
19640 !-msoft-float.
19641 * config/mips/mips.md: Include m5100.md.
19642 (processor): Add m5100.
19643 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
19644
19645 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
19646
19647 * config/mips/mips-cpus.def (interaptiv): Define.
19648 * config/mips/mips-tables.opt: Regenerate.
19649 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
19650 -mips32r2.
19651 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
19652 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
19653
19654 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19655
19656 PR target/63521
19657 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19658 (HONOR_REG_ALLOC_ORDER): Define.
19659
19660 2015-07-22 Richard Biener <rguenther@suse.de>
19661
19662 PR tree-optimization/66952
19663 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
19664 blocks we end up executing unconditionally reset all SSA
19665 info such as range and alignment.
19666 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
19667 * tree-ssanames.c (reset_flow_sensitive_info): New function.
19668
19669 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19670
19671 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
19672 typo in attribute.
19673
19674 2015-07-22 Richard Biener <rguenther@suse.de>
19675
19676 * genmatch.c (parser::parse_result): Properly handle
19677 match with result operands and conditions.
19678
19679 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19680
19681 PR target/63870
19682 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19683 Add qualifier_struct_load_store_lane_index.
19684 (aarch64_types_loadstruct_lane_qualifiers): Use
19685 qualifier_struct_load_store_lane_index for lane index argument for
19686 last argument.
19687 (aarch64_types_storestruct_lane_qualifiers): Ditto.
19688 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19689 (aarch64_simd_expand_args): Add new argument describing mode of
19690 builtin. Check lane bounds for arguments with
19691 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19692 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
19693 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19694 (aarch64_simd_expand_builtin): Handle arguments with
19695 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
19696 aarch64_simd_expand_args.
19697 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
19698 vst[234]_lane with BUILTIN_VALLDIF.
19699 * config/aarch64/aarch64-simd.md:
19700 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
19701 endianness reversal on lane index.
19702 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
19703 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
19704 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
19705 (vec_store_lanesci_lane<mode>): Ditto.
19706 (vec_store_lanesxi_lane<mode>): Ditto.
19707 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
19708 reversal of lane index.
19709 (aarch64_ld3_lane<mode>): Ditto.
19710 (aarch64_ld4_lane<mode>): Ditto.
19711 (aarch64_st2_lane<mode>): Ditto.
19712 (aarch64_st3_lane<mode>): Ditto.
19713 (aarch64_st4_lane<mode>): Ditto.
19714 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
19715 to qmode. Add new mode parameter. Update uses.
19716 (__LD3_LANE_FUNC): Ditto.
19717 (__LD4_LANE_FUNC): Ditto.
19718 (__ST2_LANE_FUNC): Ditto.
19719 (__ST3_LANE_FUNC): Ditto.
19720 (__ST4_LANE_FUNC): Ditto.
19721
19722 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
19723
19724 * doc/invoke.texi (Language Independent Options): Rename node to
19725 Diagnostic Message Formatting Options.
19726
19727 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
19728
19729 PR ipa/66424.
19730 * lra-remat.c (operand_to_remat): Prevent using insns with input
19731 subregs processed separately by IRA.
19732
19733 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
19734
19735 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
19736 straight loops.
19737 (single_imm_use): Check for iterator node.
19738 (num_imm_uses): Likewise.
19739 * tree-ssa-operands.c (has_zero_uses_1): Delete.
19740 (single_imm_use_1): Check for iterator node.
19741
19742 2015-07-21 Mike Frysinger <vapier@gentoo.org>
19743 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19744
19745 * configure.ac: Add check for new options in isl-0.15.
19746 * config.in, configure: Rebuilt.
19747 * graphite-blocking.c: Include <isl/constraint.h>
19748 * graphite-interchange.c, graphite-poly.c: Likewise.
19749 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
19750 * graphite.c: Likewise.
19751 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
19752 <isl/union_set.h>.
19753 * graphite-dependences.c: Include <isl/constraint.h>.
19754 (max_number_of_out_dimensions): Returns isl_stat.
19755 (extend_schedule_1): Likewise
19756 (extend_schedule): Corresponding changes.
19757 * graphite-optimize-isl.c: Include <isl/constraint.h> and
19758 <isl/union_set.h>.
19759 (getSingleMap): Change return type of isl_stat.
19760 (optimize_isl): Conditionally use
19761 isl_options_set_schedule_serialize_sccs.
19762 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
19763 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
19764
19765 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
19766
19767 PR target/66956
19768 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
19769 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
19770
19771 2015-07-21 Richard Biener <rguenther@suse.de>
19772
19773 PR tree-optimization/66948
19774 * genmatch.c (capture_info::walk_match): Also recurse to
19775 captures. Properly compute expr state from captures of
19776 captures.
19777 * match.pd: Add single-use guards to
19778 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
19779
19780 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
19781
19782 * config/nvptx/mkoffload.c (process): Add static destructor call.
19783
19784 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19785
19786 PR middle-end/66915
19787 * match.pd (A - B -> A + (-B)): Don't allow folding
19788 when type if a fixed-point type.
19789
19790 2015-07-20 DJ Delorie <dj@redhat.com>
19791
19792 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
19793 (iorqi3_real): Likewise for set1.
19794
19795 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
19796
19797 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
19798 for !TARGET_64BIT.
19799
19800 2015-07-20 Aditya Kumar <hiraditya@msn.com>
19801
19802 * graphite-isl-ast-to-gimple.c:
19803 Refactor so that each function can access 'region'. This will help
19804 maintain a parameter rename_map within a region.
19805
19806 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19807
19808 * config/rs6000/rs6000.md (*lt0_disi): New.
19809
19810 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19811
19812 PR target/66217
19813 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
19814 "available letters" comment.
19815 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
19816 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
19817 and_2rld_operand): Delete.
19818 (and_operand): Adjust.
19819 (rotate_mask_operator): New.
19820 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
19821 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
19822 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
19823 extract_ME): Delete.
19824 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19825 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
19826 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
19827 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19828 rs6000_emit_2insn_and): New.
19829 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
19830 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
19831 includes_rldic_lshift_p, includes_rldicr_lshift_p,
19832 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
19833 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19834 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
19835 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
19836 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19837 rs6000_emit_2insn_and): New.
19838 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
19839 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
19840 handling.
19841 <NOT>: Don't fall through to next case.
19842 <AND>: Handle the various rotate-and-mask cases directly.
19843 <IOR>: Always cost as one insn.
19844 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
19845 (and<mode>3): Adjust expander for the new patterns.
19846 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
19847 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
19848 (*and<mode>3_imm_dot_shifted): New.
19849 (*and<mode>3_mask): Delete, rewrite as ...
19850 (and<mode>3_mask): ... New.
19851 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
19852 (andsi3_internal0_nomc): Delete.
19853 (*andsi3_internal6): Delete.
19854 (*and<mode>3_2insn): New.
19855 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19856 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19857 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
19858 *insvdi_internal3): Delete.
19859 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
19860 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
19861 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
19862 *ior<mode>_mask): New.
19863 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
19864 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19865 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19866 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
19867 Delete.
19868 (ashr<mode>3): Delete expander.
19869 (*ashr<mode>3): Rename to ...
19870 (ashr<mode>3): ... This.
19871 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
19872 (*rotldi3_internal4, *rotldi3_internal5 and split,
19873 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
19874 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
19875 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
19876 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
19877 (splitter for loading a mask): Adjust.
19878 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
19879
19880 2015-07-20 Marek Polacek <polacek@redhat.com>
19881
19882 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
19883 output_add_clobbers, output_added_clobbers_hard_reg_p,
19884 gen_rtx_scratch): Remove declarations.
19885
19886 2015-07-20 Marek Polacek <polacek@redhat.com>
19887
19888 PR c++/55095
19889 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
19890
19891 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19892
19893 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
19894 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
19895
19896 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19897
19898 * combine.c (combine_simplify_rtx): Move simplification step
19899 before various transformations/substitutions.
19900
19901 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
19902
19903 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
19904 (struct int_traits): Likewise.
19905
19906 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19907
19908 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
19909 function to vmsdbgout_function_decl.
19910
19911 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19912
19913 PR target/66922
19914 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
19915 from misaligned positions.
19916 (ix86_expand_pinsr): Reject insertions to misaligned positions.
19917
19918 2015-07-18 Sebastian Pop <s.pop@samsung.com>
19919
19920 PR middle-end/46851
19921 PR middle-end/60340
19922 * Makefile.in: Removed omega.o.
19923 * common.opt: Document flag fcheck-data-deps as deprecated.
19924 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
19925 its associated params: omega-max-vars, omega-max-geqs,
19926 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
19927 omega-max-keys, omega-eliminate-redundant-constraints.
19928 * doc/loop.texi: Remove all the section on Omega.
19929 * graphite-blocking.c: Include missing params.h: it used to be
19930 included through tree-data-ref.h and omega.h.
19931 * graphite-isl-ast-to-gimple.c: Same.
19932 * graphite-optimize-isl.c: Same.
19933 * graphite-sese-to-poly.c: Same.
19934 * graphite.c: Same.
19935 * omega.c: Remove.
19936 * omega.h: Remove.
19937 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19938 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19939 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
19940 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
19941 * passes.def: Remove pass_check_data_deps.
19942 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
19943 (dump_conflict_function): Same.
19944 (dump_subscript): Same.
19945 (print_direction_vector): Same.
19946 (print_dir_vectors): Same.
19947 (print_lambda_vector): Same.
19948 (print_dist_vectors): Same.
19949 (dump_data_dependence_relation): Same.
19950 (dump_data_dependence_relations): Same.
19951 (dump_dist_dir_vectors): Same.
19952 (dump_ddrs): Same.
19953 (init_omega_eq_with_af): Removed.
19954 (omega_extract_distance_vectors): Removed.
19955 (omega_setup_subscript): Removed.
19956 (init_omega_for_ddr_1): Removed.
19957 (init_omega_for_ddr): Removed.
19958 (ddr_consistent_p): Removed.
19959 (compute_affine_dependence): Do not use omega to check data
19960 dependences.
19961 (compute_data_dependences_for_bb): Removed.
19962 (analyze_all_data_dependences): Removed.
19963 (tree_check_data_deps): Removed.
19964 * tree-data-ref.h: Do not include omega.h.
19965 (compute_data_dependences_for_bb): Removed.
19966 (tree_check_data_deps): Removed.
19967 * tree-ssa-loop.c (pass_check_data_deps): Removed.
19968 (make_pass_check_data_deps): Removed.
19969 * tree-ssa-phiopt.c: Include params.h.
19970 * tree-vect-data-refs.c: Same.
19971 * tree-vect-slp.c: Same.
19972
19973 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19974
19975 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
19976 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
19977 (mem->fpreg splitters): Ditto.
19978 (general_operand->nonimmediate_operand splitter): Use explicit modes.
19979 Disable DFmode for TARGET_64BIT.
19980
19981 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
19982
19983 PR target/66906
19984 * config/i386/i386.c (ix86_expand_prologue): Replicate static
19985 chain on the stack.
19986
19987 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
19988
19989 * config/nvptx/mkoffload.c (process): Constify host data.
19990 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
19991 Constify host data.
19992 (generate_host_descr_file): Likewise.
19993
19994 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
19995 Sebastian Pop <s.pop@samsung.com>
19996
19997 PR middle-end/61929
19998 * graphite-dependences.c (add_pdr_constraints): Renamed
19999 pdr->extent to pdr->subscript_sizes.
20000 * graphite-interchange.c (build_linearized_memory_access): Add
20001 back all gcc_assert's that the "isl_int to isl_val conversion"
20002 patch has removed. Refactored.
20003 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20004 * graphite-poly.c (new_poly_dr): Same.
20005 (free_poly_dr): Same.
20006 * graphite-poly.h (struct poly_dr): Same.
20007 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20008 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20009 * graphite-scop-detection.h: Fix space.
20010 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20011 back all gcc_assert's removed by a previous patch.
20012 (wrap): Remove the_isl_ctx global variable that the same patch has
20013 added.
20014 (build_loop_iteration_domains): Same.
20015 (add_param_constraints): Same.
20016 (pdr_add_data_dimensions): Same. Refactored.
20017 (build_poly_dr): Renamed extent to subscript_sizes.
20018
20019 2015-07-17 Marek Polacek <polacek@redhat.com>
20020
20021 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20022 * match.pd: ... here.
20023
20024 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20025
20026 * config/nvptx/mkoffload.c (process): Constify target data.
20027 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20028 Constify target data.
20029 (generate_target_offloadend_file): Likewise.
20030
20031 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
20032
20033 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20034 to allow renaming of PHI arguments on edges incoming from outer
20035 loop header, add corresponding check before start PHI iterator.
20036 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20037 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20038 with true force_vectorize. Set-up dominator for outer loop too.
20039 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20040 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20041 was marked with force_vectorize and has restricted cfg.
20042 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20043 inner loop.
20044 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20045 do peeling for outer loops.
20046
20047 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
20048 Matthias Klose <doko@ubuntu.com>
20049
20050 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20051 build-sysroot, sysroot from the `Miscenalleous configure options' to
20052 the `Directories' section and strip trailing `/' from with_sysroot.
20053 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20054 * configure: Regenerated.
20055
20056 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20057
20058 PR target/66824
20059 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20060 (TARGET_HARD_DF_REGS): Ditto.
20061 (TARGET_HARD_XF_REGS): Ditto.
20062 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20063 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20064 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20065 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20066 (*movsf_internal): Add alternatives 16 and 17. Enable
20067 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20068
20069 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20070
20071 PR rtl-optimization/66891
20072 * calls.c (expand_call): Wrap precompute_register_parameters with
20073 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20074
20075 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
20076
20077 * config/nvptx/mkoffload.c (process): Constify mapping variables.
20078 Define target data struct and initialize it.
20079
20080 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
20081
20082 PR rtl-optimization/66626
20083 * ira.h (emit-rtl.h): Include.
20084 (non_spilled_static_chain_regno_p): New.
20085 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20086 unless it is non spilled static chain pseudo.
20087 (assign_hard_rego): Spill memory profitable allocno unless it is
20088 non spilled static chain pseudo.
20089 (allocno_spill_priority_compare): Put non spilled static chain
20090 pseudo at the end of sorted array.
20091 (improve_allocation): Do nothing if we have static chain and
20092 non-local goto.
20093 (allocno__priority_compare_func): Put non spilled static chain
20094 pseudo at the beginning of sorted array.
20095 (move_spill_restore): Ignore non spilled static chain pseudo.
20096 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20097 to non spilled static chain pseudo.
20098 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20099 pseudo at the beginning of sorted array.
20100 (spill_for): Spill non spilled static chain pseudo last.
20101 * lra-constraints.c (lra_constraints): Remove static chain pseudo
20102 check for equivalence.
20103
20104 2015-07-16 Martin Liska <mliska@suse.cz>
20105
20106 PR ipa/66896.
20107 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20108 dst_ctx if it does not exist.
20109
20110 2015-07-16 Martin Liska <mliska@suse.cz>
20111
20112 * hash-set.h (remove): New function.
20113 (iterator): New iteration class for hash_set.
20114
20115 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20116
20117 * genattrtab.c (make_canonical): Add a file_location parameter.
20118 Use fatal_at rather than fatal.
20119 (get_attr_value): Likewise. Update call to make_canonical.
20120 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20121 (make_internal_attr): Update calls accordingly.
20122
20123 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20124
20125 * read-md.h (message_with_line, error_with_line): Delete.
20126 * read-md.c (message_with_line, error_with_line): Delete.
20127 * gensupport.h: Include read-md.h.
20128 (md_rtx_info): New structure.
20129 (read_md_rtx): Use it. Return a bool success value.
20130 * gensupport.c (read_md_rtx): Likewise.
20131 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20132 (main): Update after interface changes.
20133 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20134 (main): Update after interface changes.
20135 * genattrtab.c (insn_code_number): Delete.
20136 (optimize_attrs): Add a max_insn_code parameter and use it instead
20137 of insn_code_number.
20138 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20139 Use *_at rather than *_with_line functions.
20140 (gen_insn): Likewise.
20141 (gen_delay): Likewise.
20142 (gen_insn_reserv): Likewise.
20143 (gen_bypass): Take an md_rtx_info rather than an rtx.
20144 (main): Update after interface changes. Use a local max_insn_code
20145 variable instead of insn_code_number.
20146 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20147 an rtx. Use fatal_at rather than fatal.
20148 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20149 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20150 (gen_absence_set, gen_final_absence_set, gen_automaton)
20151 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20152 (main): Update after interface changes.
20153 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20154 and code number.
20155 (main): Update after interface changes.
20156 * genconditions.c (main): Use new read_md_rtx interface.
20157 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20158 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20159 (main): Update after interface changes.
20160 * genemit.c (insn_code_number, insn_index_number): Delete.
20161 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20162 Use fatal_at rather than fatal.
20163 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
20164 rather than fatal.
20165 (gen_split): Likewise.
20166 (main): Update after interface changes.
20167 * genextract.c (line_no): Delete.
20168 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20169 Update call to walk_rtx.
20170 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
20171 rather than message_with_line.
20172 (walk_rtx): Add an md_rtx_info argument. Update call to
20173 VEC_safe_set_locstr.
20174 (main): Update after interface changes.
20175 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20176 and lineno. Use error_at rather than separate message_with_line
20177 calls and have_error assignments.
20178 (main): Update after interface changes.
20179 * genmddump.c (main): Use new read_md_rtx interface.
20180 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20181 (main): Update after interface changes.
20182 * genoutput.c (next_code_number): Delete.
20183 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20184 (gen_peephole, gen_expand, gen_split): Likewise.
20185 (note_constraint): Likewise. Use *_at rather than *_with_line
20186 functions.
20187 (main): Update after interface changes.
20188 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20189 rtx and lineno.
20190 (main): Update after interface changes.
20191 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20192 than an rtx and lineno.
20193 (process_define_constraint): Likewise.
20194 (process_define_register_constraint): Likewise.
20195 (main): Update after interface changes.
20196 * genrecog.c (next_insn_code, pattern_lineno): Delete.
20197 (validate_pattern): Replace top-level rtx with an md_rtx_info.
20198 Use *_at rather than *_with_line functions.
20199 (match_pattern_2): Likewise.
20200 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20201 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20202 Use *_at rather than *_with_line functions.
20203 * gentarget-def.c (add_insn): New function.
20204 (main): Use it. Use new read_md_rtx interface.
20205
20206 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20207
20208 * gensupport.h (compute_test_codes): Take a file_location rather
20209 than a line number.
20210 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
20211 rather than *_with_line functions.
20212 (process_define_predicate): Update call to compute_test_codes.
20213 * genpreds.c (validate_exp): Take a file_location rather than a
20214 line number. Use *_at functions rather than *_with_line functions.
20215 (process_define_predicate): Update call to validate_exp.
20216 (constraint_data): Replace lineno field with a file_location.
20217 (add_constraint): Take a file_location rather than a line number.
20218 Use *_at functions rather than *_with_line functions. Fix error
20219 message for address constraints. Update after changes to
20220 validate_exp, constraint_data and compute_test_codes.
20221 (process_define_constraint): Update accordingly.
20222 (process_define_register_constraint): Likewise.
20223
20224 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20225
20226 * genoutput.c (data): Use a file_location to record the source
20227 position.
20228 (nothing): Delete.
20229 (idata, idata_end): Remove initialization.
20230 (constraint_data): Replace lineno with a file_location.
20231 (output_insn_data): Update after changes to data.
20232 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20233 (scan_operands): Likewise, using *_at rather than *_with_line
20234 functions.
20235 (process_template): Likewise.
20236 (validate_insn_alternatives): Likewise.
20237 (validate_insn_operands): Likewise.
20238 (validate_optab_operands): Likewise.
20239 (init_insn_for_nothing): Initialize idata and idata_end.
20240 (note_constraint): Update after changes to constraint_data,
20241 using at rather than with_line functions.
20242 (mdep_constraint_len): Take a file_location rather than a
20243 line number. Use at rather than with_line functions.
20244
20245 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20246
20247 * read-md.h (fatal_at): Declare.
20248 * read-md.c (fatal_at): New function.
20249 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20250 to record the source position.
20251 (check_attr_test): Take a file_location instead of a line number.
20252 Use fatal_at instead of fatal.
20253 (check_attr_value): Update after above changes, using "at"
20254 rather than "with_line" reporting functions.
20255 (convert_set_attr_alternative): Likewise.
20256 (gen_attr): Likewise.
20257 (check_defs): Likewise. Don't assign to read_md_filename.
20258 (gen_insn): Update initialization after above changes.
20259 (gen_delay): Likewise.
20260 (write_insn_cases): Print the filename for a define_peephole.
20261 (gen_insn_reserv): Take a line number as argument and update
20262 the call to check_attr_test.
20263 (main): Pass a line number to gen_insn_reserv.
20264
20265 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20266
20267 * read-md.h (file_location): New structure.
20268 (directive_handler_t): Take a file_location rather than a line number.
20269 (message_at, error_at): Declare.
20270 (read_skip_construct): Delete.
20271 * read-md.c (message_with_line_1): Replace with...
20272 (message_at_1): ...this new function.
20273 (message_at, error_at): New functions.
20274 (message_with_line, error_with_line): Update to use message_at_1.
20275 (handle_enum): Take a file_location rather than a line number
20276 and use error_at for error reporting.
20277 (handle_include): Likewise.
20278 (read_skip_construct): Likewise. Make static.
20279 (handle_file): Update after above changes. Pass a file_location
20280 rather than a line number to handle_directive.
20281 * gensupport.c (queue_elem): Replace separate filename and lineno
20282 with a file_location.
20283 (queue_pattern): Replace filename and lineno arguments with a
20284 file_location. Update after change to queue_elem.
20285 (process_define_predicate): Replace lineno argument with a
20286 file_location and use error_at for error reporting. Update
20287 after above changes.
20288 (process_rtx): Likewise.
20289 (subst_pattern_match): Likewise.
20290 (get_alternatives_number): Likewise.
20291 (alter_predicate_for_insn): Likewise.
20292 (rtx_handle_directive): Likewise.
20293 (is_predicable): Update after above changes, using error_at rather
20294 than error_with_line.
20295 (has_subst_attribute): Likewise.
20296 (identify_predicable_attribute): Likewise.
20297 (alter_attrs_for_subst_insn): Likewise.
20298 (process_one_cond_exec): Likewise.
20299 (process_substs_on_one_elem): Likewise.
20300 (process_define_subst): Likewise.
20301 (check_define_attr_duplicates): Likewise.
20302 (read_md_rtx): Update after change to queue_elem.
20303
20304 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20305
20306 * genoutput.c (next_index_number): Delete.
20307 (data): Remove index_number.
20308 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20309 (main): Remove manipulation of next_index_number.
20310
20311 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20312
20313 * genattrtab.c (check_attr_value): Remove handling of null attrs.
20314 (make_canonical): Likewise.
20315
20316 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
20317
20318 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20319 instead of adjust_address_nv.
20320 (restore_stack_nonlocal): Likewise.
20321 (nonlocal_goto): Likewise.
20322
20323 2015-07-16 Tom de Vries <tom@codesourcery.com>
20324
20325 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20326 not have a corresponding loop header phi.
20327
20328 2015-07-16 Tom de Vries <tom@codesourcery.com>
20329
20330 * tree-parloops.c (create_loads_for_reductions): Handle case that
20331 reduction is unused.
20332
20333 2015-07-16 Richard Biener <rguenther@suse.de>
20334
20335 PR tree-optimization/66894
20336 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20337 about deriving NE_EXPR from truncated values.
20338
20339 2015-07-16 Martin Liska <mliska@suse.cz>
20340
20341 * alloc-pool.h
20342 (object_allocator): Add new class.
20343 (pool_allocator::initialize): Use the underlying class.
20344 (pool_allocator::allocate): Likewise.
20345 (pool_allocator::remove): Likewise.
20346 (operator new): A new generic allocator.
20347 * asan.c (struct asan_mem_ref): Remove unused members.
20348 (asan_mem_ref_new): Replace new operator with
20349 object_allocator::allocate.
20350 (free_mem_ref_resources): Change deallocation.
20351 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20352 with object_allocator.
20353 * config/sh/sh.c (add_constant): Replace new operator with
20354 object_allocator::allocate.
20355 (sh_reorg): Change call to a release method.
20356 * cselib.c (struct elt_list): Remove unused members.
20357 (new_elt_list): Replace new operator with
20358 object_allocator::allocate.
20359 (new_elt_loc_list): Likewise.
20360 (new_cselib_val): Likewise.
20361 (unchain_one_elt_list): Change delete operator with remove method.
20362 (unchain_one_elt_loc_list): Likewise.
20363 (unchain_one_value): Likewise.
20364 (cselib_finish): Release newly added static allocators.
20365 * cselib.h (struct cselib_val): Remove unused members.
20366 (struct elt_loc_list): Likewise.
20367 * df-problems.c (df_chain_alloc): Replace pool_allocator with
20368 object_allocator.
20369 * df-scan.c (struct df_scan_problem_data): Likewise.
20370 (df_scan_alloc): Likewise.
20371 * df.h (struct dataflow): Likewise.
20372 * dse.c (struct read_info_type): Likewise.
20373 (struct insn_info_type): Likewise.
20374 (struct dse_bb_info_type): Likewise.
20375 (struct group_info): Likewise.
20376 (struct deferred_change): Likewise.
20377 (get_group_info): Likewise.
20378 (delete_dead_store_insn): Likewise.
20379 (free_read_records): Likewise.
20380 (replace_read): Likewise.
20381 (check_mem_read_rtx): Likewise.
20382 (scan_insn): Likewise.
20383 (dse_step1): Likewise.
20384 (dse_step7): Likewise.
20385 * et-forest.c (struct et_occ): Remove unused members.
20386 (et_new_occ): Use allocate instead of new operator.
20387 (et_new_tree): Likewise.
20388 (et_free_tree): Call release method explicitly.
20389 (et_free_tree_force): Likewise.
20390 (et_free_pools): Likewise.
20391 (et_split): Use remove instead of delete operator.
20392 * et-forest.h (struct et_node): Remove unused members.
20393 * ipa-cp.c: Change pool_allocator to object_allocator.
20394 * ipa-inline-analysis.c: Likewise.
20395 * ipa-profile.c: Likewise.
20396 * ipa-prop.c: Likewise.
20397 * ipa-prop.h: Likewise.
20398 * ira-build.c (initiate_cost_vectors): Cast return value.
20399 (ira_allocate_cost_vector): Likewise.
20400 * ira-color.c (struct update_cost_record): Remove unused members.
20401 * lra-int.h (struct lra_live_range): Likewise.
20402 (struct lra_copy): Likewise.
20403 (struct lra_insn_reg): Likewise.
20404 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
20405 * lra.c (new_insn_reg): Replace new operator with allocate method.
20406 (free_insn_regs): Same for operator delete.
20407 (finish_insn_regs): Release new static allocator.
20408 (finish_insn_recog_data): Likewise.
20409 (lra_free_copies): Replace delete operator with remove method.
20410 (lra_create_copy): Replace operator new with allocate method.
20411 (invalidate_insn_data_regno_info): Same for remove method.
20412 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
20413 (free_debug_insn_changes): Replace delete operator with remove method.
20414 (replace_oldest_value_reg): Replace operator new with allocate method.
20415 (pass_cprop_hardreg::execute): Release new static variable.
20416 * sched-deps.c (sched_deps_init): Change pool_allocator to
20417 object_allocator.
20418 * sel-sched-ir.c: Likewise.
20419 * sel-sched-ir.h: Likewise.
20420 * stmt.c (expand_case): Likewise.
20421 (expand_sjlj_dispatch_table): Likewise.
20422 * tree-sra.c (struct access): Remove unused members.
20423 (struct assign_link): Likewise.
20424 (sra_deinitialize): Release newly added static pools.
20425 (create_access_1):Replace operator new with allocate method.
20426 (build_accesses_from_assign): Likewise.
20427 (create_artificial_child_access): Likewise.
20428 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
20429 pool_allocator to object_allocator.
20430 * tree-ssa-pre.c: Likewise.
20431 * tree-ssa-reassoc.c: Likewise.
20432 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
20433 * tree-ssa-strlen.c: Likewise.
20434 * tree-ssa-structalias.c: Likewise.
20435 * var-tracking.c (onepart_pool_allocate): New function.
20436 (unshare_variable): Use the newly added function.
20437 (variable_merge_over_cur): Likewise.
20438 (variable_from_dropped): Likewise.
20439 (variable_was_changed): Likewise.
20440 (set_slot_part): Likewise.
20441 (emit_notes_for_differences_1): Likewise.
20442 (vt_finalize): Release newly added static pools.
20443
20444 2015-07-16 Martin Jambor <mjambor@suse.cz>
20445
20446 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
20447 all uses. Fix two typos in its general comment.
20448 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
20449
20450 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
20451
20452 * config/i386/linux-common.h (LINK_MPX): New.
20453 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
20454 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
20455 indicating '-z bndplt' support by linker.
20456 * configure: Regenerate.
20457 * config.in: Regenerate.
20458
20459 2015-07-16 Richard Biener <rguenther@suse.de>
20460
20461 * fold-const.c (fold_widened_comparison): Remove.
20462 (fold_sign_changed_comparison): Likewise.
20463 (fold_comparison): Move widened and sign-changed comparison
20464 simplification ...
20465 * match.pd: ... to patterns here.
20466 * generic-match-head.c: Include target.h.
20467 * gimple-match-head.c: Likewise.
20468
20469 2015-07-16 Richard Biener <rguenther@suse.de>
20470
20471 * tree-ssa-dom.c (dom_valueize): New function.
20472 (record_temporary_equivalences): Also record equivalences
20473 for dominating stmts that have uses of equivalences we are
20474 about to record.
20475
20476 2015-07-16 Bin Cheng <bin.cheng@arm.com>
20477
20478 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
20479 add_autoinc_candidates.
20480 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
20481 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
20482 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
20483 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
20484 Call new function.
20485 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
20486 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
20487 Remove parameter struct iv*. Call add_autoinc_candidates here.
20488 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
20489 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
20490 Call new function.
20491 (find_iv_candidates): Call new functions.
20492
20493 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
20494
20495 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
20496 uninitialized-variable warning.
20497
20498 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
20499
20500 PR target/65249
20501 * config/sh/sh.md (movdi): Split simple reg move to two movsi
20502 when the destination is R0.
20503
20504 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
20505
20506 PR target/66866
20507 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
20508 * config/i386/i386.c (ix86_expand_pextr): New function.
20509 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
20510 for non-lowpart subregs.
20511 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
20512 (insv<mode>): Use SWI248 mode iterator.
20513 (insv<mode>_1): Ditto.
20514
20515 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20516 Sebastian Pop <s.pop@samsung.com>
20517
20518 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
20519 iterator to use_stmt.
20520
20521 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20522 Sebastian Pop <s.pop@samsung.com>
20523
20524 * graphite-scop-detection.c (build_scops_1): Discard scops for
20525 which entry==exit.
20526
20527 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20528 Sebastian Pop <s.pop@samsung.com>
20529
20530 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
20531 case of a return statement in scop.
20532
20533 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20534 Sebastian Pop <s.pop@samsung.com>
20535
20536 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
20537 INTEGER_TYPE parameters.
20538 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
20539 VECTOR_CST in scan_tree_for_params.
20540 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
20541
20542 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20543
20544 * gimple-pretty-print.h: Don't include pretty-print.h.
20545 * tree-streamer.h: Don't include lto-streamer.h.
20546 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
20547 * gimple-streamer-in.c: Remove redundant includes.
20548 * gimple-streamer-out.c: Likewise.
20549 * ipa-devirt.c: Likewise.
20550 * ipa-icf.c: Likewise.
20551 * ipa-inline-analysis.c: Likewise.
20552 * ipa-polymorphic-call.c: Likewise.
20553 * ipa-profile.c: Likewise.
20554 * ipa-prop.c: Likewise.
20555 * ipa-pure-const.c: Likewise.
20556 * lto-cgraph.c: Likewise.
20557 * lto-streamer-in.c: Likewise.
20558 * lto-streamer-out.c: Likewise.
20559 * lto-streamer.c: Likewise.
20560 * tree-streamer-in.c: Likewise.
20561 * tree-streamer-out.c: Likewise.
20562 * tree-streamer.c: Likewise.
20563
20564 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20565
20566 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
20567 include input.h.
20568 * opts.c: Remove multiline #include comment.
20569
20570 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
20571
20572 * config/nvptx/mkoffload.c (process): Add C++ protection to
20573 emitted code.
20574
20575 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20576
20577 PR target/66854
20578 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
20579 null before IEEE 128-bit floating point support patch.
20580
20581 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20582
20583 * simplify-rtx.c (simplify_ternary_operation): Add simplification
20584 for (!c) != {0,...,0} ? a : b for vector modes.
20585
20586 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
20587 Martin Jambor <mjambor@suse.cz>
20588
20589 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
20590 struct func_body_info* instead of struct ipa_node_params*, expecting
20591 fbi->info to be filled in. Replace throughout. Adjust call to
20592 ipa_load_from_parm_agg.
20593 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
20594 instead of struct ipa_node_params*. Adjust calls to other functions
20595 so that they pass either fbi or fbi->info.
20596 (set_switch_stmt_execution_predicate): Likewise.
20597 (will_be_nonconstant_predicate): Likewise.
20598 (compute_bb_predicates): Likewise.
20599 (estimate_function_body_sizes): Move asserts earlier. Fill in
20600 struct func_body_info, replace parms_info with fbi.info. Adjust
20601 calls to functions that now accept struct func_body_info.
20602 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
20603 (struct func_body_info): Likewise.
20604 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
20605 remove static. Adjust callers.
20606 (ipa_load_from_parm_agg): Remove.
20607 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
20608 (func_body_info): Likewise.
20609 (ipa_load_from_parm_agg): Adjust prototype.
20610
20611 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20612
20613 * gensupport.c (rtx_handle_directive): Adjust.
20614 * read-rtl.c (apply_iterators): Take vector to add rtxs to
20615 instead of expr list rtx.
20616 (add_define_attr_for_define_subst): Likewise.
20617 (add_define_subst_attr): Likewise.
20618 (read_subst_mapping): Likewise.
20619 (read_rtx): Likewise.
20620 * rtl.h (read_rtx): Adjust.
20621
20622 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20623
20624 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
20625
20626 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20627
20628 PR target/58066
20629 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
20630 (*tls_local_dynamic_base_64_<mode>): Ditto.
20631 (*tls_local_dynamic_base_64_largepic): Ditto.
20632 (tls_global_dynamic_64_<mode>): Update expander pattern.
20633 (tls_local_dynamic_base_64_<mode>): Ditto.
20634
20635 2015-07-15 Richard Biener <rguenther@suse.de>
20636
20637 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
20638 and bool_var == 1 -> bool_var simplifications ...
20639 * match.pd: ... to patterns here. Factor out negate_expr_p
20640 cases from the A - B -> A + (-B) patterns as negate_expr_p
20641 predicate and add a -(A + B) -> (-B) - A pattern.
20642
20643 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20644
20645 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
20646
20647 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
20648 Robert Suchanek <robert.suchanek@imgtec.com>
20649
20650 * config/mips/mips.c (mips_int_mask): New enum.
20651 (mips_shadow_set): Likewise.
20652 (int_mask): New variable.
20653 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
20654 (machine_function): Add int_mask and use_shadow_register_set.
20655 (mips_attribute_table): Add attribute handlers for interrupt and
20656 use_shadow_register_set.
20657 (mips_interrupt_mask): New static function.
20658 (mips_handle_interrupt_attr): Likewise.
20659 (mips_handle_use_shadow_register_set_attr): Likewise.
20660 (mips_use_shadow_register_set): Change return type to enum
20661 mips_shadow_set. Add argument handling for use_shadow_register_set
20662 attribute.
20663 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
20664 compare with mips_shadow_set enum.
20665 (mips_compute_frame_info): Add interrupt mask and
20666 use_shadow_register_set to per-function information structure.
20667 Add a stack slot for EPC unconditionally.
20668 (mips_expand_prologue): Compare use_shadow_register_set value
20669 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
20670 masked interrupt register but in EIC mode use K0 and save Cause in K0.
20671 EPC saved and restored unconditionally. Use PMODE_INSN macro when
20672 copying the stack pointer from the shadow register set.
20673 * config/mips/mips.h (SR_IM0): New define.
20674 * config/mips/mips.md (mips_rdpgpr): Rename to...
20675 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
20676 * doc/extend.texi (Declaring Attributes of Functions): Document
20677 optional arguments for interrupt and use_shadow_register_set
20678 attributes.
20679
20680 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20681
20682 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
20683 interrupt attribute.
20684 (mips_expand_prologue): Disable the floating point unit in an ISR.
20685 * config/mips/mips.h (SR_COP1): New define.
20686
20687 2015-07-15 Richard Biener <rguenther@suse.de>
20688
20689 * genmatch.c (parser::peek, parser::peek_ident): Add argument
20690 to tell how many tokens to peek ahead (default 1).
20691 (parser::eat_token, parser::eat_ident): Return token consumed.
20692 (parser::parse_result): Parse new switch statement.
20693 * match.pd: Use case statements where appropriate.
20694
20695 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20696
20697 PR rtl-optimization/58066
20698 * calls.c (expand_call): Precompute register parameters before stack
20699 alignment is performed.
20700
20701 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20702
20703 PR rtl-optimization/66838
20704 * postreload.c (reload_cse_move2add): Also process
20705 CALL_INSN_FUNCTION_USAGE when resetting information of
20706 call-clobbered registers.
20707
20708 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20709 Cesar Philippidis <cesar@codesourcery.com>
20710 Chung-Lin Tang <cltang@codesourcery.com>
20711
20712 * config/nios2/constraints.md (U, v): New constraints.
20713 * config/nios2/predicates.md (rdprs_dcache_operand): New.
20714 (ldstex_memory_operand): New.
20715 * config/nios2/sync.md: New file.
20716 * config/nios2/nios2.md (unspecv): Add new builtin function
20717 UNSPECV codes.
20718 (rdprs, flushd, flushda, wrpie, eni): New patterns.
20719 (top-level): Include sync.md.
20720 * config/nios2/nios2.c (N2_FTYPES): Add function types for
20721 new builtins.
20722 (N2_BUILTINS): Add arch field setting, add new builtins.
20723 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
20724 for arch field.
20725 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
20726 Also handle ldex/stex/ldsex/stsex builtins.
20727 (nios2_expand_rdprs_builtin): New function.
20728 (nios2_expand_cache_builtin): New function.
20729 (nios2_expand_wrpie_builtin): New function.
20730 (nios2_expand_eni_builtin): New function.
20731 (nios2_expand_builtin): Add arch field handling and new builtin
20732 cases.
20733 * doc/extend.texi (Altera Nios II Built-in Functions): Document
20734 new builtins.
20735 * doc/md.texi (Machine Constraints): Document U and v constraints.
20736
20737 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20738 Cesar Philippidis <cesar@codesourcery.com>
20739 Chung-Lin Tang <cltang@codesourcery.com>
20740
20741 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
20742 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
20743 callee_save_reg_size and uses_anonymous_args fields.
20744 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
20745 (nios2_create_cfa_notes): New function.
20746 (nios2_adjust_stack): New function for adjusting stack.
20747 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
20748 Use nios2_adjust_stack.
20749 (nios2_expand_epilogue): Likewise.
20750 (nios2_expand_return): New function.
20751 (nios2_can_use_return_insn): Update for CDX pop.n usage.
20752 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
20753 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
20754 * config/nios2/nios2.md (return): Use nios2_expand_return.
20755
20756 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20757 Cesar Philippidis <cesar@codesourcery.com>
20758 Chung-Lin Tang <cltang@codesourcery.com>
20759
20760 * config/nios2/predicates.md (pop_operation): New.
20761 (ldwm_operation, stwm_operation): New.
20762 (nios2_hard_register_operand): New.
20763 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
20764 (ldstwm_operation_p): Declare.
20765 (gen_ldstwm_peep): Declare.
20766 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
20767 (base_reg_adjustment_p): New.
20768 (pop_operation_p): New.
20769 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
20770 (nios2_ldstwm_regset_p): New.
20771 (ldstwm_operation_p): New.
20772 (gen_ldst): New.
20773 (nios2_ldst_parallel): New.
20774 (struct ldswm_operand): Declare.
20775 (compare_ldstwm_operands): New.
20776 (can_use_cdx_ldstw): New.
20777 (gen_ldstwm_peep): New.
20778 * config/nios2/nios2-ldstwm.sml: New.
20779 * config/nios2/nios2.md: Include ldstwm.md.
20780 * config/nios2/ldstwm.md: Generated.
20781
20782 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20783 Cesar Philippidis <cesar@codesourcery.com>
20784 Chung-Lin Tang <cltang@codesourcery.com>
20785
20786 * config/nios2/nios2.h (LABEL_ALIGN): Define.
20787 (REG_ALLOC_ORDER): Define.
20788 (ADJUST_REG_ALLOC_ORDER): Define.
20789 (HONOR_REG_ALLOC_ORDER): Define.
20790 (CDX_REG_P): Define.
20791 (ANDCLEAR_INT): Define.
20792 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
20793 (nios2_label_align): Declare.
20794 (nios2_cdx_narrow_form_p): Declare.
20795 (nios2_adjust_reg_alloc_order): Declare.
20796 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
20797 operation.
20798 (nios2_large_unspec_reloc_p): New function, split from...
20799 (nios2_legitimate_pic_operand_p): ...here.
20800 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
20801 (nios2_print_operand_punct_valid_p): New.
20802 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
20803 (split_mem_address): New.
20804 (split_alu_insn): New.
20805 (cdxreg): New.
20806 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
20807 (enum nios2_add_insn_kind): New.
20808 (nios2_add_insn_names, nios2_add_insn_narrow): New.
20809 (nios2_add_insn_classify): New.
20810 (nios2_add_insn_asm): New.
20811 (nios2_cdx_narrow_form_p): New.
20812 (label_align, min_labelno, max_labelno): New.
20813 (nios2_reorg): New.
20814 (nios2_label_align): New.
20815 (nios2_adjust_reg_alloc_order): New.
20816 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20817 (TARGET_MACHINE_DEPENDENT_REORG): Define.
20818 * config/nios2/constraints.md (P): New constraint.
20819 * config/nios2/predicates.md (const_and_operand): New.
20820 (and_operand): New.
20821 (stack_memory_operand): New.
20822 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
20823 (length): Update to use nios2_cdx_narrow_form_p().
20824 (type): Add new insn type values.
20825 (control, alu, st, ld, shift): Update insn reservations with
20826 new insn type values.
20827 (*high, *lo_sum): Define new insn patterns for constant generation.
20828 (movqi_internal, movhi_internal, movsi_internal): Reduce
20829 alternatives, update asm template to handle CDX variants, update
20830 type attributes.
20831 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
20832 template, update type attributes.
20833 (extendhisi2, extendqi<mode>2): Likewise.
20834 (addsi3): Change to use function for asm string.
20835 (subsi3): Add CDX notation to asm template, update type attributes.
20836 (negsi3, one_cmplsi3): Likewise.
20837 (andsi3): New pattern, specialized from logical patterns.
20838 (<code>si3): Remove and case, combine alternatives, update asm
20839 template.
20840 (<shift_op>si3): Add CDX notation, update type attributes.
20841 (rotrsi3): Update type attribute.
20842 (*merge, extzv, insv): New insn patterns.
20843 (return): Change to define_expand.
20844 (simple_return): Add CDX notation, update type attributes.
20845 (indirect_jump): Add CDX notation.
20846 (jump): Update asm cases, update length attribute expression.
20847 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
20848 (nios2_cbranch): Update asm cases and length attribute expression
20849 to handle CDX variants.
20850 (nios2_cmp<code>): Update asm template.
20851 (nop): Add CDX notation, update type attributes.
20852 (trap): Add CDX notation.
20853 (ctrapsi4): Update asm cases and length attribute expression to
20854 handle CDX variant.
20855 * doc/md.texi (Machine Constraints): Document P constraint.
20856
20857 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20858 Cesar Philippidis <cesar@codesourcery.com>
20859 Chung-Lin Tang <cltang@codesourcery.com>
20860
20861 * config/nios2/nios2.h (SMALL_INT12): New macro.
20862 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
20863 (nios2_valid_addr_expr_p): Use it.
20864 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
20865 with implicit "io" instructions on R2.
20866 * config/nios2/constraints.md (w): New constraint.
20867 * config/nios2/predicates.md (ldstio_memory_operand): New.
20868 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
20869 operand predicate and constraint.
20870 (ld<bh>io_signed, st<bhw>io>): Likewise.
20871 * doc/md.texi (Machine Constraints): Document w constraint.
20872
20873 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20874 Cesar Philippidis <cesar@codesourcery.com>
20875 Chung-Lin Tang <cltang@codesourcery.com>
20876
20877 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
20878 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
20879 Nios II architecture level.
20880 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
20881 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
20882 (OPTION_DEFAULT_SPECS): Define.
20883 (ASM_SPEC): Add -march= spec strings.
20884 * config/nios2/nios2.c (nios2_option_override): Check for
20885 conflicts involving new options.
20886 * config.gcc (nios2*-*-*): Support --with-arch=.
20887 * doc/invoke.texi (Option Summary, Nios II Options): Document
20888 -march=, -mbmx, and -mcdx.
20889
20890 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
20891
20892 PR rtl-optimization/66626
20893 * lra-constraints.c (lra_constraints): Prevent equivalence
20894 substitution for static chain pseudo in functions with nonlocal
20895 goto.
20896
20897 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20898
20899 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
20900 (nios2_emit_stack_limit_check): Add size parameter. Handle
20901 -fstack-limit-symbol as well as -fstack-limit-register.
20902 (nios2_expand_prologue): Emit only a single stack limit check,
20903 even if multiple stack adjustments are required.
20904 (nios2_option_override): Diagnose unsupported combination of -fpic
20905 and -stack-limit-symbol.
20906
20907 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
20908
20909 * Makefile.in (top_srcdir): New.
20910 * configure.ac: Use AM_ZLIB.
20911 * configure: Regeneated.
20912
20913 2015-07-14 Matthias Klose <doko@ubuntu.com>
20914
20915 PR target/66840
20916 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
20917
20918 2015-07-14 Richard Biener <rguenther@suse.de>
20919
20920 PR tree-optimization/66863
20921 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
20922 what we record for conversion use stmt lhs inequalities.
20923
20924 2015-07-14 Richard Biener <rguenther@suse.de>
20925
20926 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
20927 (decision_tree::gen_gimple): Likewise.
20928
20929 2015-07-14 Tom de Vries <tom@codesourcery.com>
20930
20931 * gcc.c (greater_than_spec_func): Declare forward.
20932 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
20933 -ftree-parallelize-loops={0,1}.
20934 (static_spec_functions): Add greater_than_spec_func function with name
20935 "gt".
20936 (greater_than_spec_func): New function.
20937
20938 2015-07-14 Richard Biener <rguenther@suse.de>
20939
20940 * tree-ssa-dom.c (record_temporary_equivalences): Merge
20941 wideing type conversion case from record_equivalences_from_incoming_edge
20942 and use record_equality to record equivalences.
20943 (record_equivalences_from_incoming_edge): Call
20944 record_temporary_equivalences.
20945
20946 2015-07-14 Richard Biener <rguenther@suse.de>
20947
20948 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
20949 (struct if_expr): New.
20950 (struct with_expr): Likewise.
20951 (is_a_helper): Add helpers for if_expr and with_expr.
20952 (struct simplify): Add simplify_kind enum and member. Remove
20953 ifexpr_vec member.
20954 (simplify::simplify): Adjust.
20955 (lower_commutative): Adjust.
20956 (lower_opt_convert): Likewise.
20957 (lower_cond): Likewise.
20958 (replace_id): Handle with_expr and if_expr.
20959 (lower_for): Adjust.
20960 (dt_simplify::gen_1): New recursive worker, split out from ...
20961 (dt_simplify::gen): ... here. Deal with if and with expansion
20962 recursively.
20963 (capture_info::capture_info): Take context argument
20964 (capture_info::walk_result): Only analyze specific result.
20965 (parser::parse_result): New function.
20966 (parser::parse_simplify): Adjust to parse ifs with then end
20967 else case.
20968 (parser::parse_if): Simplify.
20969 (parser::parse_pattern): Pass down simplify kind.
20970 * match.pd: Convert if structure to new syntax.
20971
20972 2015-07-13 Marek Polacek <polacek@redhat.com>
20973
20974 * rtl.c (rtx_equal_p_cb): Fix typo.
20975
20976 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
20977
20978 * omega.h: Don't include config.h, don't include params.h again if
20979 omega.h has already been included.
20980 * graphite-poly.h: Include sese.h.
20981 * graphite.c: Don't include sese.h, remove needless includes and
20982 minimize includes outside #ifdef HAVE_isl block.
20983 * graphite-blocking.c: Don't include sese.h, remove needless includes,
20984 and wrap entire file in #ifdef HAVE_isl
20985 * graphite-dependences.c: Likewise.
20986 * graphite-interchange.c: Likewise.
20987 * graphite-isl-ast-to-gimple.c: Likewise.
20988 * graphite-optimize-isl.c: Likewise.
20989 * graphite-poly.c: Likewise.
20990 * graphite-scop-detection.c: Likewise.
20991 * graphite-sese-to-poly.c: Likewise.
20992
20993 2015-07-13 Tom de Vries <tom@codesourcery.com>
20994
20995 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
20996
20997 2015-07-13 Renlin Li <renlin.li@arm.com>
20998
20999 PR rtl/66556
21000 * simplify-rtx.c (simplify_const_relational_operation): Add
21001 side_effects_p checks.
21002
21003 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
21004
21005 * bitmap.h: Fix double word typos.
21006 * builtins.c: Same.
21007 * calls.c: Same.
21008 * cfgloopmanip.c: Same.
21009 * cgraph.c: Same.
21010 * cgraph.h: Same.
21011 * cgraphclones.c: Same.
21012 * combine.c: Same.
21013 * config/aarch64/aarch64-protos.h: Same.
21014 * config/aarch64/aarch64.c: Same.
21015 * config/aarch64/aarch64.md: Same.
21016 * config/arm/arm.md: Same.
21017 * config/arm/arm1020e.md: Same.
21018 * config/arm/arm1026ejs.md: Same.
21019 * config/arm/arm926ejs.md: Same.
21020 * config/arm/fa526.md: Same.
21021 * config/arm/fa606te.md: Same.
21022 * config/arm/fa626te.md: Same.
21023 * config/arm/fa726te.md: Same.
21024 * config/arm/fmp626.md: Same.
21025 * config/darwin.c: Same.
21026 * config/epiphany/epiphany.c: Same.
21027 * config/frv/frv.c: Same.
21028 * config/ft32/ft32.c: Same.
21029 * config/gnu-user.h: Same.
21030 * config/h8300/constraints.md: Same.
21031 * config/i386/i386.c: Same.
21032 * config/i386/i386.md: Same.
21033 * config/iq2000/iq2000.md: Same.
21034 * config/mips/mips.c: Same.
21035 * config/mmix/mmix.md: Same.
21036 * config/moxie/moxie.c: Same.
21037 * config/nds32/nds32.md: Same.
21038 * config/pa/pa.h: Same.
21039 * config/rs6000/aix.h: Same.
21040 * config/rs6000/rs6000.h: Same.
21041 * config/sh/sh.c: Same.
21042 * config/tilegx/tilegx.md: Same.
21043 * config/tilepro/gen-mul-tables.cc: Same.
21044 * cse.c: Same.
21045 * dbxout.c: Same.
21046 * doc/invoke.texi: Same.
21047 * dse.c: Same.
21048 * dwarf2out.c: Same.
21049 * final.c: Same.
21050 * gcc.c: Same.
21051 * genmatch.c: Same.
21052 * gimplify.c: Same.
21053 * hash-table.h: Same.
21054 * internal-fn.c: Same.
21055 * ipa-cp.c: Same.
21056 * ipa-devirt.c: Same.
21057 * ipa-icf.c: Same.
21058 * ipa-icf.h: Same.
21059 * ipa-profile.c: Same.
21060 * ipa-prop.c: Same.
21061 * ipa-prop.h: Same.
21062 * ira.c: Same.
21063 * omp-low.c: Same.
21064 * reg-stack.c: Same.
21065 * regcprop.c: Same.
21066 * reorg.c: Same.
21067 * rtl.h: Same.
21068 * sbitmap.h: Same.
21069 * tree-eh.c: Same.
21070 * tree-inline.c: Same.
21071 * tree-sra.c: Same.
21072 * tree-ssa-dom.c: Same.
21073 * tree-ssa-loop-ivopts.c: Same.
21074 * tree-ssa-structalias.c: Same.
21075 * tree-ssa-tail-merge.c: Same.
21076 * tree-ssa-ter.c: Same.
21077 * tree-ssa-threadupdate.c: Same.
21078 * tree-ssa-uninit.c: Same.
21079 * tree-ssanames.c: Same.
21080 * tree-vect-loop-manip.c: Same.
21081 * tree-vrp.c: Same.
21082 * tree.c: Same.
21083 * valtrack.c: Same.
21084 * vec.h: Same.
21085
21086 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21087
21088 PR middle-end/66726
21089 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21090 tree_ssa_phiopt_worker): Call it.
21091
21092 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21093
21094 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21095 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21096 REG_EQUAL note.
21097
21098 2015-07-11 Marek Polacek <polacek@redhat.com>
21099
21100 PR middle-end/66353
21101 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21102 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21103 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21104 rather than bb_has_abnormal_call_pred.
21105 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21106 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21107 rather than bb_has_abnormal_call_pred.
21108
21109 2015-07-10 Anatoly Sokolov <aesok@post.ru>
21110
21111 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21112 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21113 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21114 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21115 v850_legitimate_address_p): New functions.
21116 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21117
21118 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
21119
21120 PR target/66819
21121 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21122 indirect sibcall with register arguments if register available
21123 for argument passing.
21124 (init_cumulative_args): Set cfun->machine->arg_reg_available
21125 to (cum->nregs > 0) or to true if function has a variable
21126 argument list.
21127 (function_arg_advance_32): Set cfun->machine->arg_reg_available
21128 to false if cum->nregs <= 0.
21129 * config/i386/i386.h (machine_function): Add arg_reg_available.
21130
21131 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21132
21133 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21134 and gen_higpart instead of gen_rtx_SUBREG.
21135 * config/i386/i386.md
21136 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21137 (read-modify peephole2): Use gen_lowpart instead of
21138 gen_rtx_SUBREG for operand 5.
21139
21140 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21141
21142 * config/tilepro/gen-mul-tables.cc (main): Change include list for
21143 generated files.
21144 * config/tilepro/mul-tables.c: Regenerate.
21145 * config/tilegx/mul-tables.c: Regenerate.
21146
21147 2015-07-10 Richard Biener <rguenther@suse.de>
21148
21149 * fold-const.c (distribute_bit_expr): Remove.
21150 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21151 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21152 to A & (B | C) and simplifying A << C1 << C2 to ...
21153 * match.pd: ... patterns here.
21154
21155 2015-07-10 Jiong Wang <jiong.wang@arm.com>
21156
21157 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21158 Mark mem as READONLY and NOTRAP for PIC symbol.
21159
21160 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21161
21162 * gimple-predict.h: New file.
21163 (gimple_predict_predictor, gimple_predict_set_predictor,
21164 gimple_predict_outcome, gimple_predict_set_outcome,
21165 gimple_build_predict): Relocate here.
21166 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21167 gimple_predict_outcome, gimple_predict_set_outcome): Move to
21168 gimple-predict.h.
21169 * gimple.c (gimple_build_predict): Move to gimple-predict.h
21170 * basic-block.h: Don't include cfghooks.h.
21171 * backend.h: Don't include predict.h.
21172 * cfghooks.h: Include predict.h.
21173 * gimple-pretty-print.c: Include gimple-predict.h.
21174 * gimplify.c: Likwise.
21175 * predict.c: Adjust includes.
21176 * tree-inline.c: Likewise.
21177 * asan.c: Likewise.
21178 * auto-inc-dec.c: Likewise.
21179 * auto-profile.c: Likewise.
21180 * bb-reorder.c: Likewise.
21181 * builtins.c: Likewise.
21182 * caller-save.c: Likewise.
21183 * calls.c: Likewise.
21184 * cfganal.c: Likewise.
21185 * cfgbuild.c: Likewise.
21186 * cfg.c: Likewise.
21187 * cfgcleanup.c: Likewise.
21188 * cfgexpand.c: Likewise.
21189 * cfghooks.c: Likewise.
21190 * cfgloopanal.c: Likewise.
21191 * cfgloop.c: Likewise.
21192 * cfgloopmanip.c: Likewise.
21193 * cfgrtl.c: Likewise.
21194 * cgraph.c: Likewise.
21195 * cgraphunit.c: Likewise.
21196 * combine.c: Likewise.
21197 * cprop.c: Likewise.
21198 * cse.c: Likewise.
21199 * dce.c: Likewise.
21200 * dojump.c: Likewise.
21201 * dse.c: Likewise.
21202 * except.c: Likewise.
21203 * expmed.c: Likewise.
21204 * expr.c: Likewise.
21205 * final.c: Likewise.
21206 * fold-const.c: Likewise.
21207 * function.c: Likewise.
21208 * fwprop.c: Likewise.
21209 * gcc-plugin.h: Likewise.
21210 * gcse.c: Likewise.
21211 * genattrtab.c: Likewise.
21212 * genemit.c: Likewise.
21213 * gengtype.c: Likewise.
21214 * genopinit.c: Likewise.
21215 * genoutput.c: Likewise.
21216 * genpreds.c: Likewise.
21217 * genrecog.c: Likewise.
21218 * gimple-fold.c: Likewise.
21219 * gimple-iterator.c: Likewise.
21220 * gimple-ssa-isolate-paths.c: Likewise.
21221 * gimple-ssa-strength-reduction.c: Likewise.
21222 * graph.c: Likewise.
21223 * graphite-blocking.c: Likewise.
21224 * graphite.c: Likewise.
21225 * graphite-dependences.c: Likewise.
21226 * graphite-interchange.c: Likewise.
21227 * graphite-isl-ast-to-gimple.c: Likewise.
21228 * graphite-optimize-isl.c: Likewise.
21229 * graphite-poly.c: Likewise.
21230 * graphite-scop-detection.c: Likewise.
21231 * graphite-sese-to-poly.c: Likewise.
21232 * haifa-sched.c: Likewise.
21233 * ifcvt.c: Likewise.
21234 * internal-fn.c: Likewise.
21235 * ipa-cp.c: Likewise.
21236 * ipa-profile.c: Likewise.
21237 * ipa-split.c: Likewise.
21238 * ipa-utils.c: Likewise.
21239 * ira-build.c: Likewise.
21240 * ira-color.c: Likewise.
21241 * ira-conflicts.c: Likewise.
21242 * ira-costs.c: Likewise.
21243 * ira-emit.c: Likewise.
21244 * ira-lives.c: Likewise.
21245 * jump.c: Likewise.
21246 * loop-doloop.c: Likewise.
21247 * loop-init.c: Likewise.
21248 * loop-invariant.c: Likewise.
21249 * loop-unroll.c: Likewise.
21250 * lower-subreg.c: Likewise.
21251 * lra-assigns.c: Likewise.
21252 * lra.c: Likewise.
21253 * lra-coalesce.c: Likewise.
21254 * lra-constraints.c: Likewise.
21255 * lra-lives.c: Likewise.
21256 * lto-cgraph.c: Likewise.
21257 * lto-streamer-in.c: Likewise.
21258 * mode-switching.c: Likewise.
21259 * modulo-sched.c: Likewise.
21260 * omp-low.c: Likewise.
21261 * optabs.c: Likewise.
21262 * passes.c: Likewise.
21263 * postreload.c: Likewise.
21264 * postreload-gcse.c: Likewise.
21265 * profile.c: Likewise.
21266 * recog.c: Likewise.
21267 * regstat.c: Likewise.
21268 * reload1.c: Likewise.
21269 * reorg.c: Likewise.
21270 * rtlanal.c: Likewise.
21271 * sched-ebb.c: Likewise.
21272 * sel-sched-ir.c: Likewise.
21273 * sese.c: Likewise.
21274 * shrink-wrap.c: Likewise.
21275 * simplify-rtx.c: Likewise.
21276 * stmt.c: Likewise.
21277 * store-motion.c: Likewise.
21278 * tracer.c: Likewise.
21279 * trans-mem.c: Likewise.
21280 * tree-call-cdce.c: Likewise.
21281 * tree-cfg.c: Likewise.
21282 * tree-cfgcleanup.c: Likewise.
21283 * tree-chkp.c: Likewise.
21284 * tree-complex.c: Likewise.
21285 * tree-eh.c: Likewise.
21286 * tree-if-conv.c: Likewise.
21287 * tree-loop-distribution.c: Likewise.
21288 * tree-outof-ssa.c: Likewise.
21289 * tree-parloops.c: Likewise.
21290 * tree-predcom.c: Likewise.
21291 * tree-pretty-print.c: Likewise.
21292 * tree-profile.c: Likewise.
21293 * tree-sra.c: Likewise.
21294 * tree-ssa.c: Likewise.
21295 * tree-ssa-coalesce.c: Likewise.
21296 * tree-ssa-dce.c: Likewise.
21297 * tree-ssa-dom.c: Likewise.
21298 * tree-ssa-forwprop.c: Likewise.
21299 * tree-ssa-ifcombine.c: Likewise.
21300 * tree-ssa-loop-ch.c: Likewise.
21301 * tree-ssa-loop-im.c: Likewise.
21302 * tree-ssa-loop-ivcanon.c: Likewise.
21303 * tree-ssa-loop-ivopts.c: Likewise.
21304 * tree-ssa-loop-manip.c: Likewise.
21305 * tree-ssa-loop-prefetch.c: Likewise.
21306 * tree-ssa-loop-unswitch.c: Likewise.
21307 * tree-ssa-math-opts.c: Likewise.
21308 * tree-ssa-phiopt.c: Likewise.
21309 * tree-ssa-pre.c: Likewise.
21310 * tree-ssa-reassoc.c: Likewise.
21311 * tree-ssa-sink.c: Likewise.
21312 * tree-ssa-tail-merge.c: Likewise.
21313 * tree-ssa-threadedge.c: Likewise.
21314 * tree-ssa-threadupdate.c: Likewise.
21315 * tree-switch-conversion.c: Likewise.
21316 * tree-tailcall.c: Likewise.
21317 * tree-vect-data-refs.c: Likewise.
21318 * tree-vect-loop.c: Likewise.
21319 * tree-vect-loop-manip.c: Likewise.
21320 * tree-vectorizer.c: Likewise.
21321 * tree-vrp.c: Likewise.
21322 * ubsan.c: Likewise.
21323 * value-prof.c: Likewise.
21324 * varasm.c: Likewise.
21325 * var-tracking.c: Likewise.
21326 * config/aarch64/aarch64-builtins.c: Likewise.
21327 * config/aarch64/aarch64.c: Likewise.
21328 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21329 * config/alpha/alpha.c: Likewise.
21330 * config/arc/arc.c: Likewise.
21331 * config/arm/arm.c: Likewise.
21332 * config/avr/avr.c: Likewise.
21333 * config/bfin/bfin.c: Likewise.
21334 * config/c6x/c6x.c: Likewise.
21335 * config/cr16/cr16.c: Likewise.
21336 * config/cris/cris.c: Likewise.
21337 * config/darwin.c: Likewise.
21338 * config/darwin-c.c: Likewise.
21339 * config/epiphany/epiphany.c: Likewise.
21340 * config/epiphany/mode-switch-use.c: Likewise.
21341 * config/epiphany/resolve-sw-modes.c: Likewise.
21342 * config/fr30/fr30.c: Likewise.
21343 * config/frv/frv.c: Likewise.
21344 * config/ft32/ft32.c: Likewise.
21345 * config/h8300/h8300.c: Likewise.
21346 * config/i386/i386.c: Likewise.
21347 * config/i386/winnt.c: Likewise.
21348 * config/ia64/ia64.c: Likewise.
21349 * config/iq2000/iq2000.c: Likewise.
21350 * config/lm32/lm32.c: Likewise.
21351 * config/m32c/m32c.c: Likewise.
21352 * config/m32r/m32r.c: Likewise.
21353 * config/m68k/m68k.c: Likewise.
21354 * config/mcore/mcore.c: Likewise.
21355 * config/mep/mep.c: Likewise.
21356 * config/microblaze/microblaze.c: Likewise.
21357 * config/mips/mips.c: Likewise.
21358 * config/mmix/mmix.c: Likewise.
21359 * config/mn10300/mn10300.c: Likewise.
21360 * config/moxie/moxie.c: Likewise.
21361 * config/msp430/msp430.c: Likewise.
21362 * config/nds32/nds32.c: Likewise.
21363 * config/nds32/nds32-cost.c: Likewise.
21364 * config/nds32/nds32-fp-as-gp.c: Likewise.
21365 * config/nds32/nds32-intrinsic.c: Likewise.
21366 * config/nds32/nds32-isr.c: Likewise.
21367 * config/nds32/nds32-md-auxiliary.c: Likewise.
21368 * config/nds32/nds32-memory-manipulation.c: Likewise.
21369 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21370 * config/nds32/nds32-predicates.c: Likewise.
21371 * config/nios2/nios2.c: Likewise.
21372 * config/nvptx/nvptx.c: Likewise.
21373 * config/pa/pa.c: Likewise.
21374 * config/pdp11/pdp11.c: Likewise.
21375 * config/rl78/rl78.c: Likewise.
21376 * config/rs6000/rs6000.c: Likewise.
21377 * config/rx/rx.c: Likewise.
21378 * config/s390/s390.c: Likewise.
21379 * config/sh/sh.c: Likewise.
21380 * config/sh/sh-mem.cc: Likewise.
21381 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21382 * config/sh/sh_treg_combine.cc: Likewise.
21383 * config/sparc/sparc.c: Likewise.
21384 * config/spu/spu.c: Likewise.
21385 * config/stormy16/stormy16.c: Likewise.
21386 * config/tilegx/tilegx.c: Likewise.
21387 * config/tilepro/tilepro.c: Likewise.
21388 * config/v850/v850.c: Likewise.
21389 * config/vax/vax.c: Likewise.
21390 * config/visium/visium.c: Likewise.
21391 * config/xtensa/xtensa.c: Likewise.
21392
21393 2015-07-10 Richard Biener <rguenther@suse.de>
21394
21395 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21396 (decision_tree::gen_gimple): Likewise.
21397 (decision_tree::gen_generic): Likewise.
21398
21399 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21400
21401 PR target/66813
21402 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
21403 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
21404
21405 2015-07-10 Jakub Jelinek <jakub@redhat.com>
21406
21407 PR middle-end/66820
21408 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
21409 or ORT_TASK contexts.
21410 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
21411 is non-zero.
21412
21413 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21414
21415 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
21416 above function.
21417
21418 2015-07-10 Tom de Vries <tom@codesourcery.com>
21419
21420 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
21421 insert nit + 1 bound.
21422
21423 2015-07-10 Richard Biener <rguenther@suse.de>
21424
21425 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
21426 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
21427 (if_convertible_loop_p_1): For this always compute bb predicates.
21428 (if_convertible_loop_p): And free them.
21429
21430 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21431
21432 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
21433 in dump message.
21434
21435 2015-07-10 Richard Biener <rguenther@suse.de>
21436
21437 PR tree-optimization/66823
21438 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
21439 inverted predicate.
21440
21441 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
21442
21443 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
21444 to handle mips[32|64]r3 and mips[32|64]r5.
21445
21446 2015-07-09 Jakub Jelinek <jakub@redhat.com>
21447
21448 PR middle-end/66633
21449 * tree-nested.c (get_static_chain): Or in a flag into
21450 info->static_chain_added.
21451 (get_frame_field, get_nonlocal_debug_decl): Likewise.
21452 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
21453 2015-07-01 changes.
21454 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
21455 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
21456 add it to clauses.
21457
21458 PR tree-optimization/66718
21459 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
21460 field.
21461 (vect_simd_lane_linear): New function.
21462 (vectorizable_simd_clone_call): Support using linear arguments for
21463 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
21464
21465 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21466
21467 PR target/66821
21468 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
21469
21470 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
21471
21472 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
21473 Use machine mode, not enum machine_mode in the prototype.
21474
21475 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
21476 classify 128-bit floating point support.
21477 (FLOAT128_IBM_P): Likewise.
21478 (FLOAT128_VECTOR_P): Likewise.
21479 (FLOAT128_2REG_P): Likewise.
21480 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
21481 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
21482 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
21483 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
21484
21485 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
21486 tests against TFmode/TDmode, since those modes do not use VSX
21487 addresses.
21488 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
21489 support.
21490 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
21491 tests against TFmode, etc.
21492 (invalid_e500_subreg): Add tests against IFmode/KFmode.
21493 (reg_offset_addressing_ok_p): Likewise.
21494 (rs6000_legitimate_offset_address_p): Likewise.
21495 (rs6000_legitimize_address): Likewise.
21496 (rs6000_legitimize_reload_address): Likewise.
21497 (rs6000_legitimate_address_p): Clean up tests against TFmode and
21498 TDmode to use the new helper macros, which will include IFmode and
21499 KFmode.
21500 (rs6000_emit_move): Likewise.
21501 (rs6000_darwin64_record_arg_recurse): Likewise.
21502 (print_operand): Likewise.
21503 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
21504 that uses a single vector register as a vector and not as a
21505 floating point register in terms of the calling sequence.
21506 (rs6000_discover_homogeneous_aggregate): Likewise.
21507 (rs6000_return_in_memory): Likewise.
21508 (init_cumulative_args): Likewise.
21509 (rs6000_function_arg_boundary): Likewise.
21510 (rs6000_function_arg_advance_1): Likewise.
21511 (rs6000_function_arg): Likewise.
21512 (rs6000_pass_by_reference): Likewise.
21513 (rs6000_gimplify_va_arg): Likewise.
21514 (rs6000_secondary_reload_memory): Use machine_mode not enum
21515 machine mode.
21516 (rs6000_split_multireg_move): Use new helper macros.
21517 (spe_func_has_64bit_regs_p): Likewise.
21518 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
21519 (output_toc): Use new helper macros.
21520 (rs6000_register_move_cost): Likewise.
21521 (rs6000_function_value): Add IEEE 128-bit floating point calling
21522 sequence support.
21523 (rs6000_libcall_value): Likewise.
21524 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
21525 floating point support.
21526 (rs6000_vector_mode_supported_p): Likewise.
21527
21528 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
21529
21530 PR rtl-optimization/66782
21531 * lra-int.h (struct lra_insn_recog_data): Add comment about
21532 clobbered hard regs for arg_hard_regs.
21533 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
21534 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
21535 Add condition for processing used hard regs.
21536 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
21537 Process clobbered hard regs.
21538
21539 2015-07-09 Michael Matz <matz@suse.de>
21540
21541 * genmatch.c (fprintf_indent): New function.
21542 (operand::gen_transform): Add indent parameter.
21543 (expr::gen_transform, c_expr::gen_transform,
21544 capture::gen_transform): Ditto and use fprintf_indent.
21545 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
21546 (dt_operand::gen, dt_operand::gen_predicate,
21547 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
21548 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
21549 (decision_tree::gen_gimple): Adjust calls and indent generated
21550 code.
21551 (decision_tree::gen_generic): Ditto.
21552 (write_predicate): Ditto.
21553
21554 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21555
21556 PR target/66814
21557 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
21558 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
21559 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
21560 {GENERAL,SSE,MMX}_REG_P where appropriate.
21561
21562 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21563
21564 * lto-streamer.h: Don't include target.h and alloc-pool.h.
21565 * builtins.c: Adjust includes.
21566 * gimple.c: Likewise.
21567 * ipa-icf.c: Likewise.
21568 * lto-opts.c: Likewise.
21569 * ipa-reference.c: Likewise.
21570 * lto-section-out.c: Likewise.
21571 * lto-streamer-in.c: Likewise.
21572 * lto-streamer-out.c: Likewise.
21573 * opts-global.c: Likewise.
21574 * symtab.c: Likewise.
21575 * tree-chkp.c: Likewise.
21576 * tree-ssa-live.c: Likewise.
21577 * tree-streamer-in.c: Likewise.
21578 * tree-streamer-out.c: Likewise.
21579 * config/darwin.c: Likewise.
21580 * config/i386/winnt.c: Likewise.
21581
21582 2015-07-09 Richard Biener <rguenther@suse.de>
21583
21584 * genmatch.c (struct expr): Add force_single_use flag.
21585 (expr::expr): Add copy constructor.
21586 (capture_info::walk_match): Gather force_single_use captures.
21587 (expr::gen_transform): Use possibly NULLified sequence.
21588 (dt_simplify::gen): Apply single-use restrictions by NULLifying
21589 seq if any constrained expr is not single-use.
21590 (parser::parse_expr): Refactor to allow multiple flags. Handle
21591 's' flag to force an expression have a single-use if the pattern
21592 simplifies to more than one statement.
21593 * match.pd: Convert most single_use conditionals to :s flags.
21594
21595 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21596
21597 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
21598 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21599 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
21600
21601 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21602
21603 * flags.h: Don't include flag-types.h or options.h.
21604 * opts-common.c: Adjust includes.
21605 * opts-global.c: Likewise.
21606 * common/config/epiphany/epiphany-common.c: Likewise.
21607
21608 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21609
21610 PR target/66818
21611 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
21612 for IA MCU.
21613
21614 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21615
21616 PR target/66817
21617 * config/i386/i386.c (ix86_return_in_memory): Return true
21618 if int_size_in_bytes returns negative for IA MCU.
21619
21620 2015-07-09 Marek Polacek <polacek@redhat.com>
21621
21622 PR tree-optimization/66718
21623 * Makefile.in (OBJS): Add gimple-laddress.o.
21624 * passes.def: Schedule pass_laddress.
21625 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
21626 * tree-pass.h (make_pass_laddress): Declare.
21627 * gimple-laddress.c: New file.
21628
21629 2015-07-09 Richard Biener <rguenther@suse.de>
21630
21631 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
21632
21633 2015-07-09 Richard Biener <rguenther@suse.de>
21634
21635 PR tree-optimization/66807
21636 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
21637
21638 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
21639
21640 * function.c (stack_protect_epilogue): Use if rather than switch for
21641 check targetm.have_stack_protect_test.
21642
21643 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21644
21645 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
21646 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
21647 * config/arc/arc.h: Likewise.
21648 * config/arm/arm.h: Likewise.
21649 * config/bfin/bfin.h: Likewise.
21650 * config/epiphany/epiphany.h: Likewise.
21651 * config/frv/frv.h: Likewise.
21652 * config/ia64/ia64.h: Likewise.
21653 * config/iq2000/iq2000.h: Likewise.
21654 * config/lm32/lm32.h: Likewise.
21655 * config/m32r/m32r.h: Likewise.
21656 * config/mcore/mcore.h: Likewise.
21657 * config/mep/mep.h: Likewise.
21658 * config/microblaze/microblaze.h: Likewise.
21659 * config/mips/mips.h: Likewise.
21660 * config/mmix/mmix.h: Likewise.
21661 * config/mn10300/mn10300.h: Likewise.
21662 * config/nds32/nds32.h: Likewise.
21663 * config/nios2/nios2.h: Likewise.
21664 * config/pa/pa.h: Likewise.
21665 * config/rl78/rl78.h: Likewise.
21666 * config/sh/sh.h: Likewise.
21667 * config/sparc/sparc.h: Likewise.
21668 * config/stormy16/stormy16.h: Likewise.
21669 * config/tilegx/tilegx.h: Likewise.
21670 * config/tilepro/tilepro.h: Likewise.
21671 * config/v850/v850.h: Likewise.
21672 * config/xtensa/xtensa.h: Likewise.
21673 * doc/tm.texi: Regenerate.
21674 * doc/tm.texi.in: Adjust.
21675 * combine.c (simplify_set): Likewise.
21676 (simplify_comparison): Likewise.
21677 * expr.c (store_constructor): Likewise.
21678 * internal-fn.c (expand_arith_overflow): Likewise.
21679 * reload.c (push_reload): Likewise.
21680 (find_reloads): Likewise.
21681 (find_reloads_subreg_address): Likewise.
21682 * reload1.c (eliminate_regs_1): Likewise.
21683 * rtlanal.c (nonzero_bits1): Likewise.
21684 (num_sign_bit_copies1): Likewise.
21685 * simplify-rtx.c (simplify_truncation): Likewise.
21686
21687 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21688
21689 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
21690 of AUTO_INC_DEC with the preprocessor.
21691 * combine.c (combine_instructions): Likewise.
21692 (can_combine_p): Likewise.
21693 (try_combine): Likewise.
21694 * emit-rtl.c (try_split): Likewise.
21695 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21696 * lower-subreg.c (resolve_simple_move): Likewise.
21697 * lra.c (update_inc_notes): Likewise.
21698 * recog.c (asm_operand_ok): Likewise.
21699 (constrain_operands): Likewise.
21700 * regrename.c (scan_rtx_address): Likewise.
21701 * reload.c (update_auto_inc_notes): Likewise.
21702 (reg_inc_found_and_valid_p): Likewise.
21703 * reload1.c (reload): Likewise.
21704 (emit_input_reload_insns): Likewise.
21705 (delete_output_reload): Likewise.
21706 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21707 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21708
21709 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21710
21711 * rtl.h: Always define AUTO_INC_DEC.
21712 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
21713 * combine.c (combine_instructions): Likewise.
21714 (can_combine_p): Likewise.
21715 (try_combine): Likewise.
21716 * emit-rtl.c (try_split): Likewise.
21717 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21718 * lower-subreg.c (resolve_simple_move): Likewise.
21719 * lra.c (update_inc_notes): Likewise.
21720 * recog.c (asm_operand_ok): Likewise.
21721 (constrain_operands): Likewise.
21722 * regrename.c (scan_rtx_address): Likewise.
21723 * reload.c (update_auto_inc_notes): Likewise.
21724 (find_equiv_reg): Likewise.
21725 * reload1.c (reload): Likewise.
21726 (reload_as_needed): Likewise.
21727 (choose_reload_regs): Likewise.
21728 (emit_input_reload_insns): Likewise.
21729 (delete_output_reload): Likewise.
21730 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21731 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21732
21733 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21734
21735 * combine.c (can_combine_def_p): Don't check the value of
21736 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
21737 (combinable_i3pat): Likewise.
21738 (mark_used_regs_combine): Likewise.
21739 * regrename.c (rename_chains): Likewise.
21740 * reload.c (find_reloads_address): Likewise.
21741 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21742
21743 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21744
21745 * combine.c (update_rsp_from_reg_equal): Don't check if
21746 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
21747 (reg_nonzero_bits_for_combine): Likewise.
21748 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
21749 1.
21750 * config/frv/frv.h: Likewise.
21751 * config/lm32/lm32.h: Likewise.
21752 * config/mep/mep.h: Likewise.
21753 * config/mips/mips.h: Likewise.
21754 * config/rs6000/rs6000.h: Likewise.
21755 * config/sh/sh.h: Likewise.
21756 * config/tilegx/tilegx.h (enum reg_class): Likewise.
21757 * config/tilepro/tilepro.h: Likewise.
21758 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
21759 * doc/tm.texi: Regenerate.
21760 * doc/tm.texi.in: Adjust.
21761 * rtlanal.c (nonzero_bits1): Likewise.
21762
21763 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21764
21765 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
21766 with the preprocessor.
21767 (combine_instructions): Likewise.
21768 (try_combine): Likewise.
21769 (subst): Likewise.
21770 (distribute_notes): Likewise.
21771
21772 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21773
21774 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
21775 defined.
21776 (simplify_set): Likewise.
21777 * cse.c (cse_insn): Likewise.
21778 * fold-const.c (fold_single_bit_test): Likewise.
21779 (fold_unary_loc): Likewise.
21780 * postreload.c (reload_cse_simplify_set): Likewise.
21781 (reload_cse_simplify_operands): Likewise.
21782
21783 2015-07-08 Jiong Wang <jiong.wang@arm.com>
21784
21785 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
21786 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
21787
21788 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
21789
21790 PR target/66746
21791 * config/i386/x86intrin.h: Include <adxintrin.h> even if
21792 __iamcu__ is defined.
21793
21794 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21795
21796 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
21797
21798 2015-07-08 Iain Sandoe <iain@codesourcery.com>
21799
21800 PR target/66523
21801 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
21802 names from preservation.
21803
21804 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
21805
21806 PR target/66806
21807 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
21808 change for IAMCU.
21809 (function_arg_advance_32): Don't pass vectors in registers for
21810 IAMCU.
21811 (function_arg_32): Likewise.
21812 (ix86_return_in_memory): Don't return vectors in registers for
21813 IAMCU.
21814
21815 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
21816
21817 PR middle-end/66334
21818 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
21819 hard regno live at the start of BB with incoming abnormal edges.
21820 * lra-lives.c (process_bb_lives): Ditto.
21821
21822 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
21823
21824 PR libgomp/65099
21825 * config/nvptx/mkoffload.c (main): Create an offload image only in
21826 64-bit configurations.
21827
21828 2015-07-08 Martin Liska <mliska@suse.cz>
21829
21830 PR bootstrap/66744
21831 * tree-sra.c (create_access_1): Call ctor without brackets.
21832 (create_artificial_child_access): Likewise.
21833
21834 2015-07-08 Richard Biener <rguenther@suse.de>
21835
21836 PR tree-optimization/66793
21837 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
21838 Properly split the block after stmts ending it.
21839
21840 2015-07-08 Richard Biener <rguenther@suse.de>
21841
21842 PR tree-optimization/66794
21843 * passes.c (execute_function_todo): Assert that post-dominators
21844 are not computed.
21845 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
21846 Free post-dominators.
21847
21848 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21849
21850 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
21851 with early exit.
21852
21853 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21854
21855 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
21856 more than or equal 8 and less than 32 when optimizing for size.
21857
21858 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21859
21860 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
21861 COSTS_N_INSNS (1) and increment it appropriately throughout the
21862 function.
21863
21864 2015-07-08 Richard Biener <rguenther@suse.de>
21865
21866 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
21867
21868 2015-07-08 Alan Modra <amodra@gmail.com>
21869
21870 * target.def (rtx_costs): Remove "code" param, add "mode".
21871 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
21872 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
21873 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
21874 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
21875 call. Track mode when given in rtx.
21876 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
21877 (default_address_cost): Pass Pmode to rtx_cost.
21878 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
21879 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
21880 with NULL set.
21881 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
21882 (notreg_cost): Add mode param. Use it.
21883 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
21884 mode param and pass to set_src_cost. Update all calls.
21885 (hash_scan_set): Formatting.
21886 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
21887 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
21888 * hooks.h: Ditto.
21889 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
21890 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
21891 emit_store_flag): Update set_src_cost and rtx_cost calls.
21892 * auto-inc-dec.c (attempt_change): Likewise.
21893 * calls.c (precompute_register_parameters): Likewise.
21894 * combine.c (expand_compound_operation, make_extraction,
21895 force_to_mode, distribute_and_simplify_rtx): Likewise.
21896 * dojump.c (prefer_and_bit_test): Likewise.
21897 * dse.c (find_shift_sequence): Likewise.
21898 * expr.c (compress_float_constant): Likewise.
21899 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
21900 * ifcvt.c (noce_try_sign_mask): Likewise.
21901 * loop-doloop.c (doloop_optimize): Likewise.
21902 * loop-invariant.c (create_new_invariant): Likewise.
21903 * lower-subreg.c (shift_cost, compute_costs): Likewise.
21904 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
21905 lshift_cheap_p): Likewise.
21906 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21907 try_replace_in_use, reload_cse_move2add): Likewise.
21908 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
21909 Likewise.
21910 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21911 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21912 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
21913 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21914 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
21915 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
21916 to rtx_cost calls.
21917 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
21918 * config/arc/arc.c (arc_rtx_costs): Likewise.
21919 * config/arm/arm.c (arm_rtx_costs): Likewise.
21920 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
21921 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
21922 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
21923 * config/cris/cris.c (cris_rtx_costs): Likewise.
21924 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
21925 * config/frv/frv.c (frv_rtx_costs): Likewise.
21926 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
21927 * config/i386/i386.c (ix86_rtx_costs): Likewise.
21928 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
21929 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
21930 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
21931 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
21932 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
21933 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
21934 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
21935 * config/mep/mep.c (mep_rtx_cost): Likewise.
21936 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
21937 * config/mips/mips.c (mips_rtx_costs): Likewise.
21938 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
21939 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
21940 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
21941 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
21942 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
21943 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21944 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21945 * config/pa/pa.c (hppa_rtx_costs): Likewise.
21946 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
21947 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
21948 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
21949 * config/s390/s390.c (s390_rtx_costs): Likewise.
21950 * config/sh/sh.c (sh_rtx_costs): Likewise.
21951 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
21952 * config/spu/spu.c (spu_rtx_costs): Likewise.
21953 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
21954 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
21955 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
21956 * config/v850/v850.c (v850_rtx_costs): Likewise.
21957 * config/vax/vax.c (vax_rtx_costs): Likewise.
21958 * config/visium/visium.c (visium_rtx_costs): Likewise.
21959 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
21960 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
21961 "code" param, and pass as outer_code to first rtx_cost call. Pass
21962 mode to rtx_cost calls.
21963 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
21964 calls.
21965 (aarch64_rtx_costs_wrapper): Update.
21966 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
21967 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
21968 rtx_cost calls.
21969 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
21970 and rtx_cost calls.
21971 (avr_operand_rtx_cost): Similarly.
21972 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
21973 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
21974 * config/mips/mips.c (mips_stack_address_p): Comment typo.
21975 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
21976 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
21977 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
21978 rtx_cost.
21979 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
21980 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
21981 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
21982 * doc/tm.texi: Regenerate.
21983
21984 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
21985
21986 * tree-core.h: Include symtab.h.
21987 * rtl.h: Include hard-reg-set.h but not flags.h.
21988 (HARD_CONST): Remove condition compilation involving HARD_CONST since
21989 hard-reg-set.h is always included.
21990 * regs.h: Don't include hard-reg-set.h or rtl.h.
21991 * cfg.h: Include dominance.h.
21992 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
21993 * backend.h: New. Aggregate commonly used backend header files.
21994 * gimple-ssa.h: Don't include tree-hasher.h.
21995 * ssa.h: New. Aggregate commonly used SSA header files.
21996 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
21997 * sel-sched-ir.h: Flatten includes.
21998 * lra-int.h: Flatten completely.
21999 * sel-sched-dump.h: Flatten includes.
22000 * ira-int.h: Flatten includes.
22001 * gimple-streamer.h: Remove all includes.
22002 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22003 * resource.h: Flatten hard-reg-set.h and df.h.
22004 * sched-int.h: Flatten insn-arrt.h and df.h.
22005 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22006 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22007 * genattrtab.c (write_header): Adjust generated includes.
22008 * genautomata.c (main): Likewise.
22009 * genconditions.c (write-header): Likewise.
22010 * genemit.c (main): Likewise.
22011 * gengtype.c (open_base_files): Likewise.
22012 * genopinit.c (main): Likewise.
22013 * genoutput.c (output_prologue): Likewise.
22014 * genpeep.c (main): Likewise.
22015 * genpreds.c (write_insn_preds_c): Likewise.
22016 * genrecog.c (write_header): Likewise.
22017 * alias.c: Adjust includes.
22018 * asan.c: Likewise.
22019 * attribs.c: Likewise.
22020 * auto-inc-dec.c: Likewise.
22021 * auto-profile.c: Likewise.
22022 * bb-reorder.c: Likewise.
22023 * bt-load.c: Likewise.
22024 * builtins.c: Likewise.
22025 * caller-save.c: Likewise.
22026 * calls.c: Likewise.
22027 * ccmp.c: Likewise.
22028 * cfg.c: Likewise.
22029 * cfganal.c: Likewise.
22030 * cfgbuild.c: Likewise.
22031 * cfgcleanup.c: Likewise.
22032 * cfgexpand.c: Likewise.
22033 * cfghooks.c: Likewise.
22034 * cfgloop.c: Likewise.
22035 * cfgloopanal.c: Likewise.
22036 * cfgloopmanip.c: Likewise.
22037 * cfgrtl.c: Likewise.
22038 * cgraph.c: Likewise.
22039 * cgraphbuild.c: Likewise.
22040 * cgraphclones.c: Likewise.
22041 * cgraphunit.c: Likewise.
22042 * cilk-common.c: Likewise.
22043 * combine-stack-adj.c: Likewise.
22044 * combine.c: Likewise.
22045 * compare-elim.c: Likewise.
22046 * convert.c: Likewise.
22047 * coverage.c: Likewise.
22048 * cppbuiltin.c: Likewise.
22049 * cprop.c: Likewise.
22050 * cse.c: Likewise.
22051 * cselib.c: Likewise.
22052 * data-streamer-in.c: Likewise.
22053 * data-streamer-out.c: Likewise.
22054 * data-streamer.c: Likewise.
22055 * dbxout.c: Likewise.
22056 * dce.c: Likewise.
22057 * ddg.c: Likewise.
22058 * debug.c: Likewise.
22059 * df-core.c: Likewise.
22060 * df-problems.c: Likewise.
22061 * df-scan.c: Likewise.
22062 * dfp.c: Likewise.
22063 * dojump.c: Likewise.
22064 * dominance.c: Likewise.
22065 * domwalk.c: Likewise.
22066 * double-int.c: Likewise.
22067 * dse.c: Likewise.
22068 * dumpfile.c: Likewise.
22069 * dwarf2asm.c: Likewise.
22070 * dwarf2cfi.c: Likewise.
22071 * dwarf2out.c: Likewise.
22072 * emit-rtl.c: Likewise.
22073 * et-forest.c: Likewise.
22074 * except.c: Likewise.
22075 * explow.c: Likewise.
22076 * expmed.c: Likewise.
22077 * expr.c: Likewise.
22078 * final.c: Likewise.
22079 * fixed-value.c: Likewise.
22080 * fold-const.c: Likewise.
22081 * function.c: Likewise.
22082 * fwprop.c: Likewise.
22083 * gcc-plugin.h: Likewise.
22084 * gcse-common.c: Likewise.
22085 * gcse.c: Likewise.
22086 * generic-match-head.c: Likewise.
22087 * ggc-page.c: Likewise.
22088 * gimple-builder.c: Likewise.
22089 * gimple-expr.c: Likewise.
22090 * gimple-fold.c: Likewise.
22091 * gimple-iterator.c: Likewise.
22092 * gimple-low.c: Likewise.
22093 * gimple-match-head.c: Likewise.
22094 * gimple-pretty-print.c: Likewise.
22095 * gimple-ssa-isolate-paths.c: Likewise.
22096 * gimple-ssa-strength-reduction.c: Likewise.
22097 * gimple-streamer-in.c: Likewise.
22098 * gimple-streamer-out.c: Likewise.
22099 * gimple-walk.c: Likewise.
22100 * gimple.c: Likewise.
22101 * gimplify-me.c: Likewise.
22102 * gimplify.c: Likewise.
22103 * godump.c: Likewise.
22104 * graph.c: Likewise.
22105 * graphite-blocking.c: Likewise.
22106 * graphite-dependences.c: Likewise.
22107 * graphite-interchange.c: Likewise.
22108 * graphite-isl-ast-to-gimple.c: Likewise.
22109 * graphite-optimize-isl.c: Likewise.
22110 * graphite-poly.c: Likewise.
22111 * graphite-scop-detection.c: Likewise.
22112 * graphite-sese-to-poly.c: Likewise.
22113 * graphite.c: Likewise.
22114 * haifa-sched.c: Likewise.
22115 * hw-doloop.c: Likewise.
22116 * ifcvt.c: Likewise.
22117 * init-regs.c: Likewise.
22118 * internal-fn.c: Likewise.
22119 * ipa-chkp.c: Likewise.
22120 * ipa-comdats.c: Likewise.
22121 * ipa-cp.c: Likewise.
22122 * ipa-devirt.c: Likewise.
22123 * ipa-icf-gimple.c: Likewise.
22124 * ipa-icf.c: Likewise.
22125 * ipa-inline-analysis.c: Likewise.
22126 * ipa-inline-transform.c: Likewise.
22127 * ipa-inline.c: Likewise.
22128 * ipa-polymorphic-call.c: Likewise.
22129 * ipa-profile.c: Likewise.
22130 * ipa-prop.c: Likewise.
22131 * ipa-pure-const.c: Likewise.
22132 * ipa-ref.c: Likewise.
22133 * ipa-reference.c: Likewise.
22134 * ipa-split.c: Likewise.
22135 * ipa-utils.c: Likewise.
22136 * ipa-visibility.c: Likewise.
22137 * ipa.c: Likewise.
22138 * ira-build.c: Likewise.
22139 * ira-color.c: Likewise.
22140 * ira-conflicts.c: Likewise.
22141 * ira-costs.c: Likewise.
22142 * ira-emit.c: Likewise.
22143 * ira-lives.c: Likewise.
22144 * ira.c: Likewise.
22145 * jump.c: Likewise.
22146 * langhooks.c: Likewise.
22147 * lcm.c: Likewise.
22148 * loop-doloop.c: Likewise.
22149 * loop-init.c: Likewise.
22150 * loop-invariant.c: Likewise.
22151 * loop-iv.c: Likewise.
22152 * loop-unroll.c: Likewise.
22153 * lower-subreg.c: Likewise.
22154 * lra-assigns.c: Likewise.
22155 * lra-coalesce.c: Likewise.
22156 * lra-constraints.c: Likewise.
22157 * lra-eliminations.c: Likewise.
22158 * lra-lives.c: Likewise.
22159 * lra-remat.c: Likewise.
22160 * lra-spills.c: Likewise.
22161 * lra.c: Likewise.
22162 * lto-cgraph.c: Likewise.
22163 * lto-compress.c: Likewise.
22164 * lto-opts.c: Likewise.
22165 * lto-section-in.c: Likewise.
22166 * lto-section-out.c: Likewise.
22167 * lto-streamer-in.c: Likewise.
22168 * lto-streamer-out.c: Likewise.
22169 * lto-streamer.c: Likewise.
22170 * mcf.c: Likewise.
22171 * mode-switching.c: Likewise.
22172 * modulo-sched.c: Likewise.
22173 * omega.c: Likewise.
22174 * omp-low.c: Likewise.
22175 * optabs.c: Likewise.
22176 * opts-global.c: Likewise.
22177 * passes.c: Likewise.
22178 * plugin.c: Likewise.
22179 * postreload-gcse.c: Likewise.
22180 * postreload.c: Likewise.
22181 * predict.c: Likewise.
22182 * print-rtl.c: Likewise.
22183 * print-tree.c: Likewise.
22184 * profile.c: Likewise.
22185 * real.c: Likewise.
22186 * realmpfr.c: Likewise.
22187 * recog.c: Likewise.
22188 * ree.c: Likewise.
22189 * reg-stack.c: Likewise.
22190 * regcprop.c: Likewise.
22191 * reginfo.c: Likewise.
22192 * regrename.c: Likewise.
22193 * regstat.c: Likewise.
22194 * reload.c: Likewise.
22195 * reload1.c: Likewise.
22196 * reorg.c: Likewise.
22197 * resource.c: Likewise.
22198 * rtl-chkp.c: Likewise.
22199 * rtlanal.c: Likewise.
22200 * rtlhooks.c: Likewise.
22201 * sanopt.c: Likewise.
22202 * sched-deps.c: Likewise.
22203 * sched-ebb.c: Likewise.
22204 * sched-rgn.c: Likewise.
22205 * sched-vis.c: Likewise.
22206 * sdbout.c: Likewise.
22207 * sel-sched-dump.c: Likewise.
22208 * sel-sched-ir.c: Likewise.
22209 * sel-sched.c: Likewise.
22210 * sese.c: Likewise.
22211 * shrink-wrap.c: Likewise.
22212 * simplify-rtx.c: Likewise.
22213 * stack-ptr-mod.c: Likewise.
22214 * stmt.c: Likewise.
22215 * stor-layout.c: Likewise.
22216 * store-motion.c: Likewise.
22217 * stringpool.c: Likewise.
22218 * symtab.c: Likewise.
22219 * target-globals.c: Likewise.
22220 * targhooks.c: Likewise.
22221 * toplev.c: Likewise.
22222 * tracer.c: Likewise.
22223 * trans-mem.c: Likewise.
22224 * tree-affine.c: Likewise.
22225 * tree-browser.c: Likewise.
22226 * tree-call-cdce.c: Likewise.
22227 * tree-cfg.c: Likewise.
22228 * tree-cfgcleanup.c: Likewise.
22229 * tree-chkp-opt.c: Likewise.
22230 * tree-chkp.c: Likewise.
22231 * tree-chrec.c: Likewise.
22232 * tree-complex.c: Likewise.
22233 * tree-data-ref.c: Likewise.
22234 * tree-dfa.c: Likewise.
22235 * tree-diagnostic.c: Likewise.
22236 * tree-dump.c: Likewise.
22237 * tree-eh.c: Likewise.
22238 * tree-emutls.c: Likewise.
22239 * tree-if-conv.c: Likewise.
22240 * tree-inline.c: Likewise.
22241 * tree-into-ssa.c: Likewise.
22242 * tree-iterator.c: Likewise.
22243 * tree-loop-distribution.c: Likewise.
22244 * tree-nested.c: Likewise.
22245 * tree-nrv.c: Likewise.
22246 * tree-object-size.c: Likewise.
22247 * tree-outof-ssa.c: Likewise.
22248 * tree-parloops.c: Likewise.
22249 * tree-phinodes.c: Likewise.
22250 * tree-predcom.c: Likewise.
22251 * tree-pretty-print.c: Likewise.
22252 * tree-profile.c: Likewise.
22253 * tree-scalar-evolution.c: Likewise.
22254 * tree-sra.c: Likewise.
22255 * tree-ssa-address.c: Likewise.
22256 * tree-ssa-alias.c: Likewise.
22257 * tree-ssa-ccp.c: Likewise.
22258 * tree-ssa-coalesce.c: Likewise.
22259 * tree-ssa-copy.c: Likewise.
22260 * tree-ssa-copyrename.c: Likewise.
22261 * tree-ssa-dce.c: Likewise.
22262 * tree-ssa-dom.c: Likewise.
22263 * tree-ssa-dse.c: Likewise.
22264 * tree-ssa-forwprop.c: Likewise.
22265 * tree-ssa-ifcombine.c: Likewise.
22266 * tree-ssa-live.c: Likewise.
22267 * tree-ssa-loop-ch.c: Likewise.
22268 * tree-ssa-loop-im.c: Likewise.
22269 * tree-ssa-loop-ivcanon.c: Likewise.
22270 * tree-ssa-loop-ivopts.c: Likewise.
22271 * tree-ssa-loop-manip.c: Likewise.
22272 * tree-ssa-loop-niter.c: Likewise.
22273 * tree-ssa-loop-prefetch.c: Likewise.
22274 * tree-ssa-loop-unswitch.c: Likewise.
22275 * tree-ssa-loop.c: Likewise.
22276 * tree-ssa-math-opts.c: Likewise.
22277 * tree-ssa-operands.c: Likewise.
22278 * tree-ssa-phiopt.c: Likewise.
22279 * tree-ssa-phiprop.c: Likewise.
22280 * tree-ssa-pre.c: Likewise.
22281 * tree-ssa-propagate.c: Likewise.
22282 * tree-ssa-reassoc.c: Likewise.
22283 * tree-ssa-sccvn.c: Likewise.
22284 * tree-ssa-scopedtables.c: Likewise.
22285 * tree-ssa-sink.c: Likewise.
22286 * tree-ssa-strlen.c: Likewise.
22287 * tree-ssa-structalias.c: Likewise.
22288 * tree-ssa-tail-merge.c: Likewise.
22289 * tree-ssa-ter.c: Likewise.
22290 * tree-ssa-threadedge.c: Likewise.
22291 * tree-ssa-threadupdate.c: Likewise.
22292 * tree-ssa-uncprop.c: Likewise.
22293 * tree-ssa-uninit.c: Likewise.
22294 * tree-ssa.c: Likewise.
22295 * tree-ssanames.c: Likewise.
22296 * tree-stdarg.c: Likewise.
22297 * tree-streamer-in.c: Likewise.
22298 * tree-streamer-out.c: Likewise.
22299 * tree-streamer.c: Likewise.
22300 * tree-switch-conversion.c: Likewise.
22301 * tree-tailcall.c: Likewise.
22302 * tree-vect-data-refs.c: Likewise.
22303 * tree-vect-generic.c: Likewise.
22304 * tree-vect-loop-manip.c: Likewise.
22305 * tree-vect-loop.c: Likewise.
22306 * tree-vect-patterns.c: Likewise.
22307 * tree-vect-slp.c: Likewise.
22308 * tree-vect-stmts.c: Likewise.
22309 * tree-vectorizer.c: Likewise.
22310 * tree-vrp.c: Likewise.
22311 * tree.c: Likewise.
22312 * tsan.c: Likewise.
22313 * ubsan.c: Likewise.
22314 * valtrack.c: Likewise.
22315 * value-prof.c: Likewise.
22316 * var-tracking.c: Likewise.
22317 * varasm.c: Likewise.
22318 * varpool.c: Likewise.
22319 * vmsdbgout.c: Likewise.
22320 * vtable-verify.c: Likewise.
22321 * web.c: Likewise.
22322 * wide-int.cc: Likewise.
22323 * xcoffout.c: Likewise.
22324 * config/aarch64/aarch64-builtins.c: Likewise.
22325 * config/aarch64/aarch64.c: Likewise.
22326 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22327 * config/alpha/alpha.c: Likewise.
22328 * config/arc/arc.c: Likewise.
22329 * config/arm/aarch-common.c: Likewise.
22330 * config/arm/arm-builtins.c: Likewise.
22331 * config/arm/arm-c.c: Likewise.
22332 * config/arm/arm.c: Likewise.
22333 * config/avr/avr-c.c: Likewise.
22334 * config/avr/avr-log.c: Likewise.
22335 * config/avr/avr.c: Likewise.
22336 * config/bfin/bfin.c: Likewise.
22337 * config/c6x/c6x.c: Likewise.
22338 * config/cr16/cr16.c: Likewise.
22339 * config/cris/cris.c: Likewise.
22340 * config/darwin-c.c: Likewise.
22341 * config/darwin.c: Likewise.
22342 * config/epiphany/epiphany.c: Likewise.
22343 * config/epiphany/mode-switch-use.c: Likewise.
22344 * config/epiphany/resolve-sw-modes.c: Likewise.
22345 * config/fr30/fr30.c: Likewise.
22346 * config/frv/frv.c: Likewise.
22347 * config/ft32/ft32.c: Likewise.
22348 * config/h8300/h8300.c: Likewise.
22349 * config/i386/i386-c.c: Likewise.
22350 * config/i386/i386.c: Likewise.
22351 * config/i386/msformat-c.c: Likewise.
22352 * config/i386/winnt-cxx.c: Likewise.
22353 * config/i386/winnt-stubs.c: Likewise.
22354 * config/i386/winnt.c: Likewise.
22355 * config/ia64/ia64-c.c: Likewise.
22356 * config/ia64/ia64.c: Likewise.
22357 * config/iq2000/iq2000.c: Likewise.
22358 * config/lm32/lm32.c: Likewise.
22359 * config/m32c/m32c-pragma.c: Likewise.
22360 * config/m32c/m32c.c: Likewise.
22361 * config/m32r/m32r.c: Likewise.
22362 * config/m68k/m68k.c: Likewise.
22363 * config/mcore/mcore.c: Likewise.
22364 * config/mep/mep-pragma.c: Likewise.
22365 * config/mep/mep.c: Likewise.
22366 * config/microblaze/microblaze-c.c: Likewise.
22367 * config/microblaze/microblaze.c: Likewise.
22368 * config/mips/mips.c: Likewise.
22369 * config/mmix/mmix.c: Likewise.
22370 * config/mn10300/mn10300.c: Likewise.
22371 * config/moxie/moxie.c: Likewise.
22372 * config/msp430/msp430-c.c: Likewise.
22373 * config/msp430/msp430.c: Likewise.
22374 * config/nds32/nds32-cost.c: Likewise.
22375 * config/nds32/nds32-fp-as-gp.c: Likewise.
22376 * config/nds32/nds32-intrinsic.c: Likewise.
22377 * config/nds32/nds32-isr.c: Likewise.
22378 * config/nds32/nds32-md-auxiliary.c: Likewise.
22379 * config/nds32/nds32-memory-manipulation.c: Likewise.
22380 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22381 * config/nds32/nds32-predicates.c: Likewise.
22382 * config/nds32/nds32.c: Likewise.
22383 * config/nios2/nios2.c: Likewise.
22384 * config/nvptx/nvptx.c: Likewise.
22385 * config/pa/pa.c: Likewise.
22386 * config/pdp11/pdp11.c: Likewise.
22387 * config/rl78/rl78-c.c: Likewise.
22388 * config/rl78/rl78.c: Likewise.
22389 * config/rs6000/rs6000-c.c: Likewise.
22390 * config/rs6000/rs6000.c: Likewise.
22391 * config/rx/rx.c: Likewise.
22392 * config/s390/s390-c.c: Likewise.
22393 * config/s390/s390.c: Likewise.
22394 * config/sh/sh-c.c: Likewise.
22395 * config/sh/sh-mem.cc: Likewise.
22396 * config/sh/sh.c: Likewise.
22397 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22398 * config/sh/sh_treg_combine.cc: Likewise.
22399 * config/sol2-c.c: Likewise.
22400 * config/sol2-cxx.c: Likewise.
22401 * config/sol2-stubs.c: Likewise.
22402 * config/sol2.c: Likewise.
22403 * config/sparc/sparc-c.c: Likewise.
22404 * config/sparc/sparc.c: Likewise.
22405 * config/spu/spu-c.c: Likewise.
22406 * config/spu/spu.c: Likewise.
22407 * config/stormy16/stormy16.c: Likewise.
22408 * config/tilegx/mul-tables.c: Likewise.
22409 * config/tilegx/tilegx-c.c: Likewise.
22410 * config/tilegx/tilegx.c: Likewise.
22411 * config/tilepro/mul-tables.c: Likewise.
22412 * config/tilepro/tilepro-c.c: Likewise.
22413 * config/tilepro/tilepro.c: Likewise.
22414 * config/v850/v850-c.c: Likewise.
22415 * config/v850/v850.c: Likewise.
22416 * config/vax/vax.c: Likewise.
22417 * config/visium/visium.c: Likewise.
22418 * config/vms/vms-c.c: Likewise.
22419 * config/vms/vms.c: Likewise.
22420 * config/vxworks.c: Likewise.
22421 * config/xtensa/xtensa.c: Likewise.
22422
22423 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
22424
22425 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
22426 Remove operand constraints. Change operand 2 predicate to
22427 nonmemory operand. Limit const_int values to mode bitsize. Only
22428 allow const_int values less than 32 when optimizing for size.
22429 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
22430 Remove operand constraints.
22431 (*bt<mode>): Use SImode for const_int values less than 32.
22432 (regmode): Remove mode attribute.
22433
22434 2015-07-07 Anatoly Sokolov <aesok@post.ru>
22435
22436 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22437 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
22438 moxie_legitimate_address_p): New functions.
22439 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22440
22441 2015-07-07 Tom de Vries <tom@codesourcery.com>
22442
22443 PR tree-optimization/66642
22444 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
22445 header comment. Rename split_edge variable to edge_at_split. Split
22446 exit edge to create new loop exit bb. Insert loop exit phis in new
22447 loop exit bb.
22448
22449 2015-07-07 Tom de Vries <tom@codesourcery.com>
22450
22451 * tree-cfg.c (get_virtual_phi): New function.
22452 * tree-cfg.h (get_virtual_phi): Declare.
22453 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
22454 (rewrite_virtuals_into_loop_closed_ssa): New function.
22455 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
22456 Declare.
22457 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
22458 (transform_to_exit_first_loop_alt): Use
22459 rewrite_virtuals_into_loop_closed_ssa.
22460
22461 2015-07-07 Richard Biener <rguenther@suse.de>
22462
22463 * fold-const.c (fold_binary_loc): Move
22464 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
22465 * match.pd: ... here.
22466 Add (X * C1) % C2 -> 0 simplification pattern derived from
22467 extract_muldiv_1.
22468
22469 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
22470
22471 PR target/66780
22472 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
22473 change for target/65249.
22474
22475 2015-07-07 Paulo Matos <pmatos@broadcom.com>
22476
22477 * symtab.c (address_matters_1): Fix typo in comment above.
22478 (can_increase_alignment_p): Likewise.
22479
22480 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22481
22482 * function.c (free_after_compilation): Clear PROP_cfg in
22483 f->curr_properties.
22484
22485 2015-07-07 Richard Biener <rguenther@suse.de>
22486
22487 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
22488 add which use to.
22489 (add_control_edge): Remove excessive vertical space in dumping.
22490 (process_ssa_edge_worklist): Simulate at most one statement and
22491 return whether we did. Do not simulate PHIs if they are in a
22492 BB not yet simulated.
22493 (ssa_propagate): Adjust to always drain the BB worklist whenever
22494 a BB is available there, likewise the VARYING edges list before
22495 the interesting edge list.
22496
22497 2015-07-07 Christian Bruel <christian.bruel@st.com>
22498
22499 PR target/52144
22500 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
22501
22502 2015-07-07 Richard Biener <rguenther@suse.de>
22503
22504 PR middle-end/66739
22505 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
22506 A - B.
22507
22508 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22509
22510 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
22511 modes for operands 0 and 3. Use SImode for operands 2 and 3.
22512 Copy operand 0 to a temporary if !ext_register_operand. Remove
22513 ancient extract_bit_field workaround.
22514 (insv<mode>_1): Rename from mov<mode>_insv_1.
22515 (*insvqi): Rename from *movqi_insv_2.
22516 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
22517 for renamed insvsi_1.
22518 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
22519
22520 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
22521
22522 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
22523 call to nvptx_reorg_subreg.
22524
22525 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
22526
22527 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
22528 * graphite-dependencies.c, graphite-interchange.c,
22529 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
22530 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
22531 Likewise.
22532
22533 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
22534
22535 * match.pd: Remove element_mode inside HONOR_*.
22536 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
22537 (~X | X -> -1, ~X ^ X -> -1): Merge.
22538 * tree.c (build_each_one_cst): New function.
22539 * tree.h (build_each_one_cst): Likewise.
22540
22541 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22542
22543 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22544 PROCESSOR_IAMCU.
22545
22546 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
22547
22548 * config.gcc <mips*-*-*>: Add fused-madd.opt.
22549 * config/mips/mips.opt (mfused-madd): Remove.
22550 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
22551 * config/mips/mips.h (TARGET_MIPS8000): New.
22552 (ISA_HAS_FP_MADD4_MSUB4): Remove.
22553 (ISA_HAS_FP_MADDF_MSUBF): Remove.
22554 (ISA_HAS_FP_MADD3_MSUB3): Remove.
22555 (ISA_HAS_NMADD4_NMSUB4): Remove.
22556 (ISA_HAS_NMADD3_NMSUB3): Remove.
22557 (ISA_HAS_FUSED_MADD4): New.
22558 (ISA_HAS_UNFUSED_MADD4): New.
22559 (ISA_HAS_FUSED_MADDF): New.
22560 (ISA_HAS_FUSED_MADD3): New.
22561 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
22562 (*fma<mode>4_madd3) New.
22563 (*fma<mode>4_madd4) New.
22564 (*fma<mode>4_maddf) New.
22565 (fms<mode>4) New.
22566 (*fms<mode>4_msub3) New.
22567 (*fms<mode>4_msub4) New.
22568 (fnma<mode>4) New.
22569 (*fnma<mode>4_nmadd3) New.
22570 (*fnma<mode>4_nmadd4) New.
22571 (fnms<mode>4) New.
22572 (*fnms<mode>4_nmsub3) New.
22573 (*fnms<mode>4_nmsub4) New.
22574 (*madd4<mode>) Modify to be unfused only.
22575 (*msub4<mode>) Modify to be unfused only.
22576 (*nmadd4<mode>) Modify to be unfused only.
22577 (*nmsub4<mode>) Modify to be unfused only.
22578 (*madd3<mode>) Remove.
22579 (*msub3<mode>) Remove.
22580 (*nmadd3<mode>) Remove.
22581 (*nmsub3<mode>) Remove.
22582 (*nmadd3<mode>_fastmath) Remove.
22583 (*nmsub3<mode>_fastmath) Remove.
22584 (*nmadd4<mode>_fastmath) Update condition.
22585 (*nmsub4<mode>_fastmath) Update condition.
22586
22587 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22588
22589 PR target/65956
22590 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
22591 alignment attribute, exploring one level down for records and arrays.
22592
22593 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22594
22595 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
22596 modes for operands 0 and 1. Use SImode for operands 2 and 3.
22597 Copy operand 1 to a temporary if !ext_register_operand. Remove
22598 ancient extract_bit_field workaround.
22599 (*extv<mode>): Rename from *mov<mode>_extv_1.
22600 (*extvqi): Rename from *movqi_extv_1.
22601 (extzv<mode>): Rename from extzv. Use SWI248 modes for
22602 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
22603 to a temporary if !ext_register_operand. Remove ancient
22604 extract_bit_field workaround.
22605 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
22606 (*extzvqi): Rename from *movqi_extzv_2.
22607 (*testqi_ext_3): Remove modes from const_int_operand predicated
22608 operands. Add "n" constraint.
22609 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
22610 operand. Add "J" constraint.
22611 (*btsq, *btrq, *btcq peephole2s): Remove mode from
22612 const_0_to_63 predicated operand.
22613 (regmode): New insn attribute.
22614 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
22615 to nonmemory_operand. Use regmode insn attribute.
22616 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
22617 (*jcc_bt<mode>_mask): Remove mode from operand 3.
22618 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
22619 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
22620 operands. Use "N" constraint instead of "n".
22621
22622 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22623
22624 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
22625
22626 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22627
22628 PR target/66749
22629 * config/i386/i386.c (iamcu_cost): New.
22630 (m_IAMCU): Likewise.
22631 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
22632 (processor_target_table): Add an entry for "iamcu".
22633 (processor_alias_table): Likewise.
22634 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
22635 (ix86_adjust_cost): Likewise.
22636 (ia32_multipass_dfa_lookahead): Likewise.
22637 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
22638 * config/i386/x86-tune.def: Updated for m_IAMCU.
22639
22640 2015-07-06 Richard Biener <rguenther@suse.de>
22641
22642 PR tree-optimization/66772
22643 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
22644 values are available in the PHI node BB when there are
22645 still unexecutable edges.
22646
22647 2015-07-06 Richard Biener <rguenther@suse.de>
22648
22649 PR tree-optimization/66767
22650 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
22651 Make sure to build the alignment test on a SSA name without
22652 final alignment info valid only if the alignment test
22653 evaluates to true.
22654
22655 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
22656
22657 PR target/66620
22658 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
22659 loop start when inserting LSETUP.
22660
22661 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22662
22663 PR target/53383
22664 * config/i386/i386.c (ix86_option_override_internal): Allow
22665 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
22666
22667 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22668
22669 * read-md.c (decimal_string): Rename to ...
22670 (md_decimal_string): ... this.
22671 (handle_enum): Reflect this.
22672
22673 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
22674
22675 PR target/66731
22676 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
22677
22678 2015-07-06 Richard Biener <rguenther@suse.de>
22679
22680 PR middle-end/66759
22681 * match.pd: Add missing constraint of y to REAL_CST in
22682 REAL_CST - x CMP y to y - CST CMP x simplification.
22683
22684 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
22685
22686 PR tree-optimization/66757
22687 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
22688
22689 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
22690 Sandra Loosemore <sandra@codesourcery.com>
22691
22692 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
22693 Delete extern declaration.
22694 (gprel_constant_p): Add extern declaration.
22695 * config/nios2/constraints.md ("S"): Use gprel_constant_p
22696 instead of nios2_symbol_ref_in_small_data_p.
22697 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
22698 (nios2_symbol_ref_in_small_data_p): Make static.
22699 (gprel_constant_p): Make non-static.
22700
22701 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
22702
22703 * doc/fragments.texi (Target Fragment): Convert debian.org
22704 link to use https.
22705 * doc/install.texi (Configuration): Ditto.
22706
22707 2015-07-05 Jakub Jelinek <jakub@redhat.com>
22708
22709 PR tree-optimization/66718
22710 * tree-vect-stmts.c (vectorizable_call): Replace uses of
22711 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
22712
22713 PR tree-optimization/66718
22714 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
22715 vectorizable_load, vectorizable_condition): Move vectype,
22716 nunits, ncopies computation after checking what kind of statement
22717 stmt is.
22718
22719 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22720
22721 * target-insns.def (extv, extzv, insv): New targetm instruction
22722 patterns.
22723 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
22724 interface.
22725 * recog.c (simplify_while_replacing): Likewise.
22726
22727 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22728
22729 * target-insns.def (doloop_begin, doloop_end): New targetm
22730 instruction patterns.
22731 * loop-init.c: Include target.h.
22732 (pass_loop2::gate): Use the new targetm patterns instead of
22733 HAVE_*/gen_* interface.
22734 (pass_rtl_doloop::gate): Likewise.
22735 (pass_rtl_doloop::execute): Remove preprocessor condition.
22736 * hw-doloop.c: Build unconditionally.
22737 * loop-doloop.c: Likewise.
22738 (doloop_optimize): Use the new targetm patterns instead of
22739 HAVE_*/gen_* interface.
22740 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
22741 * modulo-sched.c (doloop_register_get): Likewise.
22742
22743 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22744
22745 * target-insns.def (clear_cache): New targetm instruction pattern.
22746 * builtins.c (expand_builtin___clear_cache): Use it instead of
22747 HAVE_*/gen_* interface.
22748
22749 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22750
22751 * target-insns.def (allocate_stack, check_stack, probe_stack)
22752 (probe_stack_address, split_stack_prologue, split_stack_space_check):
22753 New targetm instruction patterns.
22754 * explow.c (allocate_dynamic_stack_space): Use them instead of
22755 HAVE_*/gen_* interface.
22756 (emit_stack_probe): Likewise.
22757 (probe_stack_range): Likewise.
22758 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22759
22760 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22761
22762 * target-insns.def (stack_protect_set, stack_protect_test): New
22763 targetm instruction patterns.
22764 * cfgexpand.c (stack_protect_prologue): Use them instead of
22765 HAVE_*/gen_* interface.
22766 * function.c (stack_protect_epilogue): Likewise.
22767
22768 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22769
22770 * expr.h (gen_move_insn_uncast): Delete.
22771 * expr.c (gen_move_insn_uncast): Delete.
22772
22773 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22774
22775 * target-insns.def (restore_stack_block, restore_stack_function)
22776 (restore_stack_nonlocal, save_stack_block, save_stack_function)
22777 (save_stack_nonlocal): New targetm instruction patterns.
22778 * builtins.c (expand_builtin_apply): Use them instead of
22779 HAVE_*/gen_* interface.
22780 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
22781
22782 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22783
22784 * target-insns.def (trap): New targetm instruction pattern.
22785 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
22786 interface.
22787 * explow.c (allocate_dynamic_stack_space): Likewise.
22788 * ifcvt.c (find_if_header): Likewise.
22789
22790 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22791
22792 * target-insns.def (prefetch): New targetm instruction pattern.
22793 * tree-ssa-loop-prefetch.c: Include targeth.
22794 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
22795 of HAVE_*/gen_* interface.
22796 * builtins.c (expand_builtin_prefetch): Likewise.
22797 * toplev.c (process_options): Likewise.
22798
22799 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22800
22801 * target-insns.def (untyped_call, untyped_return): New targetm
22802 instruction patterns.
22803 * builtins.c (expand_builtin_apply): Use them instead of
22804 HAVE_*/gen_* interface.
22805 (result_vector): Define unconditionally.
22806
22807 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22808
22809 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
22810 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
22811 (nonlocal_goto_receiver): New targetm instruction patterns.
22812 * builtins.c (expand_builtin_setjmp_setup): Use them instead
22813 of HAVE_*/gen_* interface.
22814 (expand_builtin_setjmp_receiver): Likewise.
22815 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
22816 * except.c (expand_dw2_landing_pad_for_region): Likewise.
22817
22818 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22819
22820 * target.def: Add code_for_* hooks.
22821 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
22822 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
22823 * target-insns.def (casesi, tablejump): New targetm instruction
22824 patterns.
22825 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
22826 (do_tablejump): Likewise.
22827 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
22828 (expand_sjlj_dispatch_table): Likewise.
22829 * targhooks.c (default_case_values_threshold): Likewise.
22830
22831 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
22832
22833 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
22834 Use rtx_insn * instead of rtx.
22835 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
22836 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
22837 (nios2_call_tls_get_addr): Likewise.
22838 (nios2_emit_expensive_div): Likewise.
22839 (nios2_emit_move_sequence): Change return type to bool.
22840 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
22841 Change return type to bool.
22842
22843 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22844
22845 PR target/66747
22846 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
22847
22848 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
22849
22850 PR target/66114
22851 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
22852 of register_operand. Remove constraint.
22853
22854 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
22855
22856 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
22857 the first argument.
22858
22859 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
22860
22861 * attribs.c (decl_attributes): Guard inform with the return value
22862 of the preceding warning.
22863
22864 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22865
22866 * doc/invoke.texi (moverride): Move to correct section.
22867
22868 2015-07-03 Richard Biener <rguenther@suse.de>
22869
22870 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
22871 Copy from tree.c
22872 (dt_operand::gen_gimple_expr): After valueizing operands
22873 re-canonicalize operand order for commutative tree codes.
22874
22875 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
22876
22877 PR target/66746.
22878 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
22879 is defined.
22880 (__crc32w): Likewise.
22881 (__crc32d): Likewise.
22882 (__rdpmc): Likewise.
22883 (__rdtscp): Likewise.
22884 (_rdpmc): Likewise.
22885 (_rdtscp): Likewise.
22886 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
22887 is defined.
22888
22889 2015-07-03 Richard Biener <rguenther@suse.de>
22890
22891 * fold-const.c (fold_mathfn_compare): Remove.
22892 (fold_inf_compare): Likewise.
22893 (fold_comparison): Move floating point comparison simplifications...
22894 * match.pd: ... to patterns here. Introduce simple_comparisons
22895 operator list and use it for patterns formerly in fold_comparison.
22896
22897 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22898
22899 PR tree-optimization/66119
22900 * toplev.c (process_options): Don't set up default values for
22901 the sra_max_scalarization_size_{speed,size} parameters.
22902 * tree-sra (analyze_all_variable_accesses): If no values
22903 have been set for the sra_max_scalarization_size_{speed,size}
22904 parameters, call get_move_ratio to get target defaults.
22905
22906 2015-07-03 Richard Biener <rguenther@suse.de>
22907
22908 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
22909 * match.pd: ... here.
22910
22911 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
22912
22913 PR target/37072
22914 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
22915 is not actually the default on FreeBSD.
22916
22917 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22918
22919 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
22920 definition.
22921 (CMPGE_8HI): Likewise.
22922 (CMPGE_4SI): Likewise.
22923 (CMPGE_2DI): Likewise.
22924 (CMPGE_U16QI): Likewise.
22925 (CMPGE_U8HI): Likewise.
22926 (CMPGE_U4SI): Likewise.
22927 (CMPGE_U2DI): Likewise.
22928 (CMPLE_16QI): Likewise.
22929 (CMPLE_8HI): Likewise.
22930 (CMPLE_4SI): Likewise.
22931 (CMPLE_2DI): Likewise.
22932 (CMPLE_U16QI): Likewise.
22933 (CMPLE_U8HI): Likewise.
22934 (CMPLE_U4SI): Likewise.
22935 (CMPLE_U2DI): Likewise.
22936 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22937 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
22938 ALTIVEC_BUILTIN_VEC_CMPLE.
22939 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
22940 floating-point vector modes.
22941 (vector_nlt<mode>): New define_expand.
22942 (vector_nltu<mode>): Likewise.
22943 (vector_ngt<mode>): Likewise.
22944 (vector_ngtu<mode>): Likewise.
22945
22946 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
22947
22948 PR rtl-optimization/66706
22949 * combine.c (make_compound_operation): If an AND of SUBREG of
22950 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
22951
22952 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
22953
22954 * tree-pass.h (make_pass_ch_vect): New.
22955 * passes.def: Add pass_ch_vect just before pass_if_conversion.
22956
22957 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
22958 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
22959 make_pass_ch_vect): New.
22960 (pass_ch): Extend ch_base.
22961
22962 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
22963 (ch_base::copy_headers): ...here.
22964
22965 2015-07-02 Richard Biener <rguenther@suse.de>
22966
22967 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
22968 * fold-const.c (get_pointer_modulus_and_residue): Remove.
22969 (fold_binary_loc): Implement (T)ptr & CST in terms of
22970 get_pointer_alignment_1.
22971 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
22972 Make sure to build the alignment test on a SSA name without
22973 final alignment info valid only after the prologue.
22974
22975 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
22976
22977 * config/cris/cris.md ("epilogue"): Remove condition.
22978 ("prologue"): Ditto.
22979
22980 2015-07-02 Richard Biener <rguenther@suse.de>
22981
22982 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
22983 parameter to record a condition that is false.
22984 (record_conditions): When recording an extra NE_EXPR that is
22985 true also record a EQ_EXPR that is false.
22986
22987 2015-07-02 Bin Cheng <bin.cheng@arm.com>
22988
22989 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
22990 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
22991 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
22992 (set_iv, find_interesting_uses_address, add_candidate_1): New
22993 argument to alloc_iv.
22994 (find_interesting_uses_op, find_interesting_uses_cond): Don't
22995 duplicate struct iv.
22996 (free_loop_data): Don't free struct iv explicitly.
22997 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
22998
22999 2015-07-01 DJ Delorie <dj@redhat.com>
23000
23001 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23002 (LIB_SPEC): Add.
23003 (SUPPORTS_DISCRIMINATOR): Define.
23004
23005 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23006
23007 PR bootstrap/66685
23008 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23009 there are no CALLs in the same pattern.
23010
23011 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
23012
23013 PR rtl-optimization/61047
23014 * rtlanal.c (get_initial_register_offset): New function.
23015 (rtx_addr_can_trap_p_1): Check offsets of stack references.
23016
23017 2015-07-01 Richard Biener <rguenther@suse.de>
23018
23019 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23020 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23021 ~X CMP C -> X CMP' ~C to ...
23022 * match.pd: ... patterns here.
23023
23024 2015-07-01 Nick Clifton <nickc@redhat.com>
23025
23026 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23027 a 16-bit value into a 20-bit memory slot.
23028
23029 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23030
23031 * doc/sourcebuild.texi (AArch64-specific attributes): Document
23032 "aarch64_tiny", "aarch64_small", "aarch64_large",
23033 "aarch64_little_endian", "aarch64_big_endian".
23034
23035 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23036
23037 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23038 Document "aarch64_small_fpic".
23039
23040 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23041
23042 * configure.ac: Add check for aarch64 assembler -fpic relocation
23043 modifier support.
23044 * configure: Regenerate.
23045 * config.in: Regenerate.
23046 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23047 to -fPIC if not support of -fpic relocation modifier in assembler.
23048
23049 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23050
23051 PR bootstrap/66685
23052 * rtl.c (classify_insn): Handle returns in PARALLELs.
23053
23054 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
23055
23056 PR middle-end/66633
23057 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23058 to true if the function is nested and if not optimizing.
23059 (convert_local_omp_clauses): Initialize need_frame to true if the
23060 function contains nested functions and if not optimizing.
23061
23062 2015-07-01 Richard Biener <rguenther@suse.de>
23063
23064 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23065 (X & Y) ^ Y -> ~X & Y transforms to ...
23066 * match.pd: ... here.
23067
23068 2015-07-01 Richard Biener <rguenther@suse.de>
23069
23070 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23071 of converts to avoid uninteresting noise from the conversion
23072 simplifying patterns.
23073
23074 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
23075
23076 * config/c6x/c6x.c (try_rename_operands): Do not depend on
23077 gcc_assert evaluating its argument for side-effect.
23078
23079 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
23080
23081 PR target/64833
23082 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23083 flag_pic is set.
23084
23085 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23086
23087 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23088 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23089 (hash_scc): Add this_ref_p and ref_p parameters and pass them
23090 to the inner DFS walk.
23091
23092 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23093
23094 * target-insns.def (jump): New targetm instruction pattern.
23095 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23096 instead of gen_jump.
23097 (fix_up_crossing_landing_pad): Likewise.
23098 (add_labels_and_missing_jumps): Likewise.
23099 (fix_crossing_conditional_branches): Likewise.
23100 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23101 (force_nonfallthru_and_redirect): Likewise.
23102 * cse.c (cse_insn): Likewise.
23103 * expmed.c (expand_divmod): Likewise.
23104 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23105 * haifa-sched.c (init_before_recovery): Likewise.
23106 (sched_create_recovery_edges): Likewise.
23107 * ifcvt.c (find_cond_trap): Likewise.
23108 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23109 (expand_float, expand_fix): Likewise.
23110 * stmt.c (emit_jump): Likewise.
23111
23112 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23113
23114 * defaults.h (HAVE_load_multiple, gen_load_multiple)
23115 (HAVE_store_multiple, gen_store_multiple): Delete.
23116 * target-insns.def (load_multiple, store_multiple): New targetm
23117 instruction patterns.
23118 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23119 of HAVE_*/gen_* interface.
23120
23121 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23122
23123 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23124 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23125 (gen_mem_signal_fence): Delete.
23126 * target-insns.def (mem_signal_fence, mem_thread_fence)
23127 (memory_barrier): New targetm instruction patterns.
23128 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23129 interface.
23130 (expand_mem_signal_fence): Likewise.
23131
23132 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23133
23134 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23135 * target-insns.def (epilogue, prologue, sibcall_prologue): New
23136 targetm instruction patterns.
23137 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23138 interface.
23139 * calls.c (expand_call): Likewise.
23140 * cfgrtl.c (cfg_layout_finalize): Likewise.
23141 * df-scan.c (df_get_entry_block_def_set): Likewise.
23142 (df_get_exit_block_use_set): Likewise.
23143 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23144 * final.c (final_start_function): Likewise.
23145 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23146 (reposition_prologue_and_epilogue_notes): Likewise.
23147 * reorg.c (find_end_label): Likewise.
23148 * toplev.c (process_options): Likewise.
23149
23150 2015-06-30 David Malcolm <dmalcolm@redhat.com>
23151
23152 * typed-splay-tree.h: New file.
23153
23154 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
23155
23156 PR debug/66691
23157 * lra-int.h (lra_substitute_pseudo): Add a parameter.
23158 (lra_substitute_pseudo_within_insn): Ditto.
23159 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
23160 of constant.
23161 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
23162 to lra_substitute_pseudo.
23163 * lra-lives.c (process_bb_lives): Add an argument to
23164 lra_substitute_pseudo_within_insn call.
23165 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23166 argument to lra_substitute_pseudo and
23167 lra_substitute_pseudo_within_insn calls.
23168 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23169
23170 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23171
23172 * configure: Regenerated.
23173
23174 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23175
23176 * config.gcc: Support i[34567]86-*-elfiamcu target.
23177 * config/i386/iamcu.h: New.
23178 * config/i386/i386.opt: Add -miamcu.
23179 * doc/invoke.texi: Document -miamcu.
23180 * common/config/i386/i386-common.c (ix86_handle_option): Turn
23181 off x87/MMX/SSE/AVX codegen for -miamcu.
23182 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23183 __iamcu/__iamcu__ for -miamcu.
23184 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23185 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23186 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23187 * config/i386/i386.c (ix86_option_override_internal): Ignore and
23188 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
23189 MCU by default. Default long double to 64-bit for Intel MCU.
23190 Turn on -freg-struct-return for Intel MCU. Issue an error when
23191 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23192 AVX is turned on.
23193 (function_arg_advance_32): Pass value whose size is no larger
23194 than 8 bytes in registers for Intel MCU.
23195 (function_arg_32): Likewise.
23196 (ix86_return_in_memory): Return value whose size is no larger
23197 than 8 bytes in registers for Intel MCU.
23198 (iamcu_alignment): New function.
23199 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23200 true.
23201 (ix86_local_alignment): Don't increase alignment for Intel MCU.
23202 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23203 true.
23204
23205 2015-06-30 Marek Polacek <polacek@redhat.com>
23206
23207 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
23208 both operands of the resulting expression.
23209
23210 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
23211 the final expression with the operand's type and then convert
23212 it to the type of the expression.
23213
23214 2015-06-30 Richard Biener <rguenther@suse.de>
23215
23216 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23217 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23218 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23219 * match.pd: ... to patterns here.
23220
23221 2015-06-30 Richard Biener <rguenther@suse.de>
23222
23223 PR tree-optimization/66704
23224 * tree-vect-data-refs.c (vect_setup_realignment): Use
23225 make_ssa_name for non-SSA name source.
23226
23227 2015-06-30 Jakub Jelinek <jakub@redhat.com>
23228
23229 PR middle-end/66702
23230 * omp-low.c (simd_clone_adjust): Handle addressable linear
23231 or uniform parameters or non-gimple type uniform parameters.
23232
23233 2015-06-30 Richard Biener <rguenther@suse.de>
23234
23235 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23236 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23237 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23238 * match.pd: ... here.
23239 Add a few cases of A - B -> A + (-B) when B "easily" negates.
23240 Move (x & y) | x -> x and friends before
23241 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23242
23243 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23244
23245 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23246 -mfix-ut699 is not specified.
23247 (leon3_load): Rename into...
23248 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
23249 is specified.
23250
23251 2015-06-30 Marek Polacek <polacek@redhat.com>
23252
23253 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23254 * match.pd: ... here.
23255
23256 2015-06-30 Richard Biener <rguenther@suse.de>
23257
23258 * target-insns.def (canonicalize_funcptr_for_compare): Add.
23259 * fold-const.c (build_range_check): Replace uses of
23260 HAVE_canonicalize_funcptr_for_compare.
23261 (fold_widened_comparison): Likewise.
23262 (fold_sign_changed_comparison): Likewise.
23263 * dojump.c: Include "target.h".
23264 (do_compare_and_jump): Replace uses of
23265 HAVE_canonicalize_funcptr_for_compare and
23266 gen_canonicalize_funcptr_for_compare.
23267 * expr.c (do_store_flag): Likewise.
23268
23269 2015-06-30 Tom de Vries <tom@codesourcery.com>
23270
23271 PR tree-optimization/66652
23272 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23273 max_loop_iterations to determine if nit + 1 overflows.
23274
23275 2015-06-30 Richard Biener <rguenther@suse.de>
23276
23277 * tree-vrp.c (register_edge_assert_for_2): Also register
23278 asserts for dominating conversion results.
23279
23280 2015-06-30 Bin Cheng <bin.cheng@arm.com>
23281
23282 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23283 field in struct iv.
23284
23285 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
23286
23287 PR target/66509
23288 * configure.ac: Fix filds and fildq test for 64-bit.
23289 * configure: Regenerated.
23290
23291 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
23292
23293 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23294 (nvptx_reorg): Here. Keep the non-subreg pieces.
23295
23296 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
23297
23298 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23299 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23300
23301 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
23302
23303 * config/i386/i386.md (*jcc_1): Use %! in asm template.
23304 Set attribute "length_nobnd" instead of "length".
23305 (*jcc_2): Ditto.
23306 (jump): Ditto.
23307 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23308
23309 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
23310
23311 * config/nios2/nios2.c (nios2_delegitimize_address): Make
23312 assert less restrictive.
23313
23314 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
23315
23316 PR fortran/66605
23317 * cgraphunit.c (cgraph_node::finalize_function): Do not call
23318 do_warn_unused_parameter.
23319 * function.c (do_warn_unused_parameter): Move from here.
23320 * function.h (do_warn_unused_parameter): Do not declare.
23321
23322 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23323
23324 PR target/65697
23325 * gcc.target/arm/armv-sync-comp-swap.c: New.
23326 * gcc.target/arm/armv-sync-op-acquire.c: New.
23327 * gcc.target/arm/armv-sync-op-full.c: New.
23328 * gcc.target/arm/armv-sync-op-release.c: New.
23329
23330 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23331
23332 PR target/65697
23333 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23334 initial acquire barrier with final barrier.
23335
23336 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23337
23338 PR target/65697
23339 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23340 initial acquire barrier with final barrier.
23341
23342 2015-06-29 Richard Henderson <rth@redhat.com>
23343
23344 * config/i386/constraints.md (Bf): New constraint.
23345 * config/i386/i386-c.c (ix86_target_macros): Define
23346 __GCC_ASM_FLAG_OUTPUTS__.
23347 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23348 as flags outputs.
23349 * doc/extend.texi (FlagOutputOperands): Document them.
23350
23351 2015-06-29 Jiong Wang <jiong.wang@arm.com>
23352
23353 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23354 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23355 unspec name.
23356 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23357 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23358 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23359 (aarch64_symbol_context): Ditto.
23360 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23361 and use new pattern name.
23362 (aarch64_expand_mov_immediate): Ditto.
23363 (aarch64_print_operand): Ditto.
23364 (aarch64_classify_tls_symbol): Ditto.
23365
23366 2015-06-29 Marek Polacek <polacek@redhat.com>
23367 Marc Glisse <marc.glisse@inria.fr>
23368
23369 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23370 * match.pd: ... pattern here.
23371
23372 2015-06-29 Tom de Vries <tom@codesourcery.com>
23373
23374 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23375 function structure.
23376
23377 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23378
23379 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23380 feature description, split out the native option, add a link to
23381 the feature documentation, rearrange and slightly rewrite text.
23382 (Aarch64 options, -mcpu): Likewise.
23383 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
23384 +rdma implies Adv. SIMD.
23385
23386 2015-06-29 Marek Polacek <polacek@redhat.com>
23387
23388 PR c/66322
23389 * function.c (stack_protect_epilogue): Remove a cast to int.
23390 * doc/invoke.texi: Update -Wswitch-bool description.
23391
23392 2015-06-29 Richard Biener <rguenther@suse.de>
23393
23394 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23395 * fold-const.c (fold_binary_loc): Move &A - &B simplification
23396 via ptr_difference_const ...
23397 * match.pd: ... here.
23398 When matching (X ^ Y) == Y also match with swapped operands.
23399
23400 2015-06-29 Richard Biener <rguenther@suse.de>
23401
23402 * lto-streamer.h (LTO_major_version): Bump to 5.
23403
23404 2015-06-29 Richard Biener <rguenther@suse.de>
23405
23406 PR tree-optimization/66677
23407 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
23408 STMT_VINFO_VEC_STMT clobbering less strict.
23409
23410 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
23411
23412 PR middle-end/64130
23413 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
23414 division, compute max and min when value ranges for dividend and
23415 divisor are available.
23416
23417 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
23418 Sandra Loosemore <sandra@codesourcery.com>
23419
23420 * regrename.h (regrename_do_replace): Change to return bool.
23421 * regrename.c (rename_chains): Check return value of
23422 regname_do_replace.
23423 (regrename_do_replace): Re-validate the modified insns and
23424 return bool status.
23425 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
23426 Update to match rename_chains changes.
23427 * config/c6x/c6x.c (try_rename_operands): Assert that
23428 regrename_do_replace returns true.
23429
23430 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
23431
23432 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
23433 operand 2 here. Use copy_addr_to_reg to copy non-index
23434 register operand 2 to a temporary.
23435 (<mode>_stx): Ditto for operand 1.
23436 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
23437 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
23438 (ix86_store_bounds): Ditto.
23439
23440 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
23441
23442 * print-tree.c (print_node) [TREE_VEC]: Print its length.
23443
23444 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
23445
23446 * gimple.c (gimple_call_set_fndecl): Remove.
23447 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
23448 build1_loc directly instead of build_fold_addr_expr_loc.
23449
23450 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23451
23452 * hash-map.h (hash_map::traverse): Use the definition of the
23453 Key typedef rather than the typedef itself.
23454
23455 2015-06-26 Martin Jambor <mjambor@suse.cz>
23456
23457 PR debug/66301
23458 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
23459 NULL instead of calling dump_enabled_p.
23460
23461 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23462
23463 * config/aarch64/aarch64.opt: (override): New.
23464 * doc/invoke.texi (override): Document.
23465 * config/aarch64/aarch64.c (aarch64_flag_desc): New
23466 (aarch64_fusible_pairs): Likewise.
23467 (aarch64_tuning_flags): Likewise.
23468 (aarch64_tuning_override_function): Likewise.
23469 (aarch64_tuning_override_functions): Likewise.
23470 (aarch64_parse_one_option_token): Likewise.
23471 (aarch64_parse_boolean_options): Likewise.
23472 (aarch64_parse_fuse_string): Likewise.
23473 (aarch64_parse_tune_string): Likewise.
23474 (aarch64_parse_one_override_token): Likewise.
23475 (aarch64_parse_override_string): Likewise.
23476 (aarch64_override_options): Parse the -override string if it
23477 is present.
23478
23479 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23480
23481 * config/aarch64/aarch64-protos.h (tune_params): Remove
23482 const from members.
23483 (aarch64_tune_params): Remove const, change to no longer be
23484 a pointer.
23485 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
23486 change to no longer be a pointer, initialize to generic_tunings.
23487 (aarch64_min_divisions_for_recip_mul): Change dereference of
23488 aarch64_tune_params to member access.
23489 (aarch64_reassociation_width): Likewise.
23490 (aarch64_rtx_mult_cost): Likewise.
23491 (aarch64_address_cost): Likewise.
23492 (aarch64_branch_cost): Likewise.
23493 (aarch64_rtx_costs): Likewise.
23494 (aarch64_register_move_cost): Likewise.
23495 (aarch64_memory_move_cost): Likewise.
23496 (aarch64_sched_issue_rate): Likewise.
23497 (aarch64_builtin_vectorization_cost): Likewise.
23498 (aarch64_override_options): Take a copy of the selected tuning
23499 struct in to aarch64_tune_params, rather than just setting
23500 a pointer, change dereferences of aarch64_tune_params to member
23501 accesses.
23502 (aarch64_override_options_after_change): Change dereferences of
23503 aarch64_tune_params to member access.
23504 (aarch64_macro_fusion_p): Likewise.
23505 (aarch_macro_fusion_pair_p): Likewise.
23506 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
23507
23508 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23509
23510 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
23511 (aarch64_tune_flags): Likewise.
23512 (AARCH64_TUNE_FMA_STEERING): Likewise.
23513 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
23514 to AARCH64_FL_USE_FMA_STEERING_PASS.
23515 (cortex-a57.cortex-a53): Likewise.
23516 (cortex-a72): Use cortexa72_tunings.
23517 (cortex-a72.cortex-a53): Likewise.
23518 (exynos-m1): Likewise.
23519 * config/aarch64/aarch64-protos.h (tune_params): Add
23520 a field: extra_tuning_flags.
23521 * config/aarch64/aarch64-tuning-flags.def: New.
23522 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
23523 (aarch64_extra_tuning_flags): Likewise.
23524 (aarch64_tune_params): Declare here.
23525 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
23526 (cortexa53_tunings): Likewise.
23527 (cortexa57_tunings): Likewise.
23528 (thunderx_tunings): Likewise.
23529 (xgene1_tunings): Likewise.
23530 (cortexa72_tunings): New.
23531 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
23532 (gate): Check against aarch64_tune_params.
23533 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
23534 aarch64-protos.h.
23535
23536 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23537
23538 * config/aarch64/aarch64-fusion-pairs.def: New.
23539 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
23540 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
23541 aarch64_fusion_pairs.
23542 (AARCH64_FUSE_MOV_MOVK): Likewise.
23543 (AARCH64_FUSE_ADRP_ADD): Likewise.
23544 (AARCH64_FUSE_MOVK_MOVK): Likewise.
23545 (AARCH64_FUSE_ADRP_LDR): Likewise.
23546 (AARCH64_FUSE_CMP_BRANCH): Likewise.
23547
23548 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23549
23550 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
23551 SYMBOL_SMALL_GOT_28K.
23552 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
23553 relocation modifiers.
23554 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
23555 (ldr_got_small_28k_<mode>): New.
23556 (ldr_got_small_28k_sidi): New.
23557 * config/aarch64/iterators.md (got_modifier): New mode iterator.
23558 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
23559 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
23560 SYMBOL_SMALL_GOT_28K.
23561 (aarch64_rtx_costs): Add costs for new instruction sequences.
23562 (initialize_aarch64_code_model): Initialize new model.
23563 (aarch64_classify_symbol): Recognize new model and new symbol classification.
23564 (aarch64_asm_preferred_eh_data_format): Support new model.
23565 (aarch64_load_symref_appropriately): Generate new instruction
23566 sequences for -fpic.
23567 (TARGET_USE_PSEUDO_PIC_REG): New definition.
23568 (aarch64_use_pseudo_pic_reg): New function.
23569
23570 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23571
23572 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
23573 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
23574 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
23575 (aarch64_expand_mov_immediate): Ditto.
23576 (aarch64_print_operand): Ditto.
23577 (aarch64_classify_symbol): Ditto.
23578
23579 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
23580
23581 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
23582
23583 2015-06-26 Bin Cheng <bin.cheng@arm.com>
23584
23585 PR bootstrap/66638
23586 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
23587 assertion failed. Remove assertion itself.
23588
23589 2015-06-26 Richard Biener <rguenther@suse.de>
23590
23591 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
23592 and -A CMP CST -> A CMP -CST which is redundant with a pattern
23593 in match.pd.
23594 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
23595 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
23596 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
23597 * match.pd: ... patterns here.
23598
23599 2015-06-26 Marek Polacek <polacek@redhat.com>
23600
23601 * match.pd ((x | y) & ~(x & y) -> x ^ y,
23602 (x | y) & (~x ^ y) -> x & y): New patterns.
23603
23604 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23605
23606 * rtl.h (emit): Add an optional boolean parameter to control
23607 whether barriers are emitted.
23608 * emit-rtl.c (emit): Likewise.
23609 * gensupport.c (get_emit_function): Return null rather than "emit".
23610 * genemit.c (gen_emit_seq): Handle the null return value.
23611 Don't emit barriers after the final instruction in the sequence.
23612 * gentarget-def.c (main): Don't emit barriers after the instruction.
23613
23614 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23615
23616 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
23617 TARGET_UNIFIED_ASM.
23618
23619 2015-06-26 Richard Biener <rguenther@suse.de>
23620
23621 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
23622
23623 2015-06-26 Richard Biener <rguenther@suse.de>
23624
23625 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
23626 irrespective on whether the inner operation has a single use
23627 of both off are constant.
23628
23629 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
23630 Segher Boessenkool <segher@kernel.crashing.org>
23631
23632 PR target/66412
23633 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
23634 before doing PUT_MODE or PUT_CODE on operands to avoid
23635 in-place RTX modification.
23636
23637 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23638
23639 * gentarget-def.c (def_target_insn): Cast return of strtol to
23640 unsigned int.
23641
23642 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23643
23644 * gimple.h (gimple_call_set_fn): Move inline function.
23645 * gimple.c (gimple_call_set_fn): Relocate here.
23646
23647 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
23648
23649 PR target/65979
23650 PR target/66611
23651 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
23652 the replacement insn will work.
23653
23654 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23655
23656 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
23657 by default.
23658
23659 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23660
23661 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
23662 * cgraph.h: Include ipa-ref.h and plugin-api.h.
23663 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
23664 (symtab_node::address_can_be_compared_p): Move function.
23665 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
23666 definition here.
23667 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
23668 * auto-profile.c: Likewise.
23669 * bb-reorder.c: Likewise.
23670 * builtins.c: Likewise.
23671 * calls.c: Likewise.
23672 * cfgexpand.c: Likewise.
23673 * cgraphbuild.c: Likewise.
23674 * cgraphclones.c: Likewise.
23675 * cgraphunit.c: Likewise.
23676 * combine.c: Likewise.
23677 * coverage.c: Likewise.
23678 * data-streamer-in.c: Likewise.
23679 * data-streamer-out.c: Likewise.
23680 * data-streamer.c: Likewise.
23681 * dbxout.c: Likewise.
23682 * dwarf2out.c: Likewise.
23683 * except.c: Likewise.
23684 * expr.c: Likewise.
23685 * final.c: Likewise.
23686 * fold-const.c: Likewise.
23687 * ggc-page.c: Likewise.
23688 * gimple-fold.c: Likewise.
23689 * gimple-iterator.c: Likewise.
23690 * gimple-pretty-print.c: Likewise.
23691 * gimple-streamer-in.c: Likewise.
23692 * gimple-streamer-out.c: Likewise.
23693 * gimple.c: Likewise.
23694 * gimplify.c: Likewise.
23695 * ipa-chkp.c: Likewise.
23696 * ipa-comdats.c: Likewise.
23697 * ipa-cp.c: Likewise.
23698 * ipa-devirt.c: Likewise.
23699 * ipa-icf-gimple.c: Likewise.
23700 * ipa-icf.c: Likewise.
23701 * ipa-inline-analysis.c: Likewise.
23702 * ipa-inline-transform.c: Likewise.
23703 * ipa-inline.c: Likewise.
23704 * ipa-polymorphic-call.c: Likewise.
23705 * ipa-profile.c: Likewise.
23706 * ipa-prop.c: Likewise.
23707 * ipa-pure-const.c: Likewise.
23708 * ipa-ref.c: Likewise.
23709 * ipa-reference.c: Likewise.
23710 * ipa-split.c: Likewise.
23711 * ipa-utils.c: Likewise.
23712 * ipa-visibility.c: Likewise.
23713 * ipa.c: Likewise.
23714 * langhooks.c: Likewise.
23715 * lto-cgraph.c: Likewise.
23716 * lto-compress.c: Likewise.
23717 * lto-opts.c: Likewise.
23718 * lto-section-in.c: Likewise.
23719 * lto-section-out.c: Likewise.
23720 * lto-streamer-in.c: Likewise.
23721 * lto-streamer-out.c: Likewise.
23722 * lto-streamer.c: Likewise.
23723 * omp-low.c: Likewise.
23724 * opts-global.c: Likewise.
23725 * passes.c: Likewise.
23726 * predict.c: Likewise.
23727 * print-tree.c: Likewise.
23728 * profile.c: Likewise.
23729 * ree.c: Likewise.
23730 * sanopt.c: Likewise.
23731 * stor-layout.c: Likewise.
23732 * symtab.c: Likewise.
23733 * toplev.c: Likewise.
23734 * trans-mem.c: Likewise.
23735 * tree-cfg.c: Likewise.
23736 * tree-chkp.c: Likewise.
23737 * tree-eh.c: Likewise.
23738 * tree-emutls.c: Likewise.
23739 * tree-inline.c: Likewise.
23740 * tree-nested.c: Likewise.
23741 * tree-parloops.c: Likewise.
23742 * tree-pretty-print.c: Likewise.
23743 * tree-profile.c: Likewise.
23744 * tree-sra.c: Likewise.
23745 * tree-ssa-alias.c: Likewise.
23746 * tree-ssa-live.c: Likewise.
23747 * tree-ssa-loop-ivcanon.c: Likewise.
23748 * tree-ssa-loop-ivopts.c: Likewise.
23749 * tree-ssa-pre.c: Likewise.
23750 * tree-ssa-sccvn.c: Likewise.
23751 * tree-ssa-strlen.c: Likewise.
23752 * tree-ssa-structalias.c: Likewise.
23753 * tree-streamer-in.c: Likewise.
23754 * tree-streamer-out.c: Likewise.
23755 * tree-streamer.c: Likewise.
23756 * tree-switch-conversion.c: Likewise.
23757 * tree-tailcall.c: Likewise.
23758 * tree-vect-data-refs.c: Likewise.
23759 * tree-vect-stmts.c: Likewise.
23760 * tree-vectorizer.c: Likewise.
23761 * tree.c: Likewise.
23762 * tsan.c: Likewise.
23763 * ubsan.c: Likewise.
23764 * value-prof.c: Likewise.
23765 * varasm.c: Likewise.
23766 * varpool.c: Likewise.
23767 * config/arm/arm.c: Likewise.
23768 * config/bfin/bfin.c: Likewise.
23769 * config/c6x/c6x.c: Likewise.
23770 * config/cris/cris.c: Likewise.
23771 * config/darwin-c.c: Likewise.
23772 * config/darwin.c: Likewise.
23773 * config/i386/i386.c: Likewise.
23774 * config/i386/winnt.c: Likewise.
23775 * config/microblaze/microblaze.c: Likewise.
23776 * config/mips/mips.c: Likewise.
23777 * config/rs6000/rs6000.c: Likewise.
23778 * config/rx/rx.c: Likewise.
23779 * config/s390/s390.c: Likewise.
23780 * config/tilegx/mul-tables.c: Likewise.
23781
23782 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23783
23784 * config/aarch64/aarch64.c, config/alpha/alpha.c,
23785 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
23786 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
23787 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
23788 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23789 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23790 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23791 config/microblaze/microblaze.c, config/mips/mips.c,
23792 config/mmix/mmix.c, config/mn10300/mn10300.c,
23793 config/moxie/moxie.c, config/msp430/msp430.c,
23794 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23795 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23796 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23797 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23798 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23799 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23800 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
23801 target-def.h include.
23802 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
23803
23804 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23805
23806 * Makefile.in (TARGET_DEF): Add target-insns.def.
23807 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
23808 (build/gentarget-def.o): New rule.
23809 (genprogrtl): Add target-def.
23810 * target-insns.def, gentarget-def.c: New files.
23811 * target.def: Add targetm.have_* and targetm.gen_* hooks,
23812 based on the contents of target-insns.def.
23813 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
23814 (HAVE_return, gen_return): Delete.
23815 * target-def.h: Include insn-target-def.h.
23816 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
23817 instead of direct calls. Rely on them to do the appropriate assertions.
23818 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
23819 (convert_jumps_to_returns): Use targetm interface instead of
23820 direct calls.
23821 (thread_prologue_and_epilogue_insns): Likewise.
23822 * reorg.c (find_end_label, dbr_schedule): Likewise.
23823 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
23824 * shrink-wrap.c (convert_to_simple_return): Likewise.
23825 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
23826
23827 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23828
23829 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
23830 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23831 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
23832 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
23833 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23834 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23835 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23836 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
23837 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
23838 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23839 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23840 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23841 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23842 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23843 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23844 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
23845 includes to end.
23846
23847 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23848
23849 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
23850 (unbounded_int_hashmap_traits::key_type): Likewise.
23851 * hash-map.h (hash_map): Get the key type from the traits.
23852 * hash-traits.h (default_hash_traits): By default, inherit from the
23853 template parameter.
23854 * alias.c (alias_set_traits): Delete.
23855 (alias_set_entry_d::children): Use alias_set_hash as the first
23856 template parameter.
23857 (record_alias_subset): Update accordingly.
23858 * except.c (tree_hash_traits): Delete.
23859 (type_to_runtime_map): Use tree_hash as the first template parameter.
23860 (init_eh): Update accordingly.
23861 * genmatch.c (capture_id_map_hasher): Delete.
23862 (cid_map_t): Use nofree_string_hash as first template parameter.
23863 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
23864 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23865 Use symbol_compare_hash as the first template parameter in
23866 subdivide_hash_map.
23867 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
23868 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
23869 template parameter.
23870 * passes.c (pass_registry_hasher): Delete.
23871 (name_to_pass_map): Use nofree_string_hash as the first template
23872 parameter.
23873 (register_pass_name): Update accordingly.
23874 * sanopt.c (sanopt_tree_map_traits): Delete.
23875 (sanopt_tree_triplet_map_traits): Delete.
23876 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
23877 template parameter.
23878 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
23879 the first template parameter.
23880 * sese.c (rename_map_hasher): Delete.
23881 (rename_map_type): Use tree_ssa_name_hash as the first template
23882 parameter.
23883 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
23884 (function_summary::m_map): Use map_hash as the first template
23885 parameter.
23886 (function_summary::release): Update accordingly.
23887 * tree-if-conv.c (phi_args_hash_traits): Delete.
23888 (predicate_scalar_phi): Use tree_operand_hash as the first template
23889 parameter to phi_arg_map.
23890 * tree-inline.h (dependence_hasher): Delete.
23891 (copy_body_data::dependence_map): Use dependence_hash as the first
23892 template parameter.
23893 * tree-inline.c (remap_dependence_clique): Update accordingly.
23894 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
23895 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
23896 parameter.
23897 (addr_stridxptr): Update accordingly.
23898 * value-prof.c (profile_id_traits): Delete.
23899 (cgraph_node_map): Use profile_id_hash as the first template
23900 parameter.
23901 (init_node_map): Update accordingly.
23902 * config/alpha/alpha.c (string_traits): Delete.
23903 (machine_function::links): Use nofree_string_hash as the first
23904 template parameter.
23905 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
23906 * config/m32c/m32c.c (pragma_traits): Delete.
23907 (pragma_htab): Use nofree_string_hash as the first template parameter.
23908 (m32c_note_pragma_address): Update accordingly.
23909 * config/mep/mep.c (pragma_traits): Delete.
23910 (pragma_htab): Use nofree_string_hash as the first template parameter.
23911 (mep_note_pragma_flag): Update accordingly.
23912 * config/mips/mips.c (mips16_flip_traits): Delete.
23913 (mflip_mips16_htab): Use nofree_string_hash as the first template
23914 parameter.
23915 (mflip_mips16_use_mips16_p): Update accordingly.
23916 (local_alias_traits): Delete.
23917 (mips16_local_aliases): Use nofree_string_hash as the first template
23918 parameter.
23919 (mips16_local_alias): Update accordingly.
23920
23921 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23922
23923 * hash-map-traits.h (default_hashmap_traits): Delete.
23924
23925 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23926
23927 * hash-map-traits.h (unbounded_hashmap_traits): New class.
23928 (unbounded_int_hashmap_traits): Likewise.
23929 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
23930
23931 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23932
23933 * ipa-icf.h (symbol_compare_hash): New class.
23934 (symbol_compare_hashmap_traits): Use it.
23935 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
23936 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
23937 (mem_alloc_description::reverse_mem_map_t): Remove redundant
23938 default_hashmap_traits.
23939 * sanopt.c (sanopt_tree_triplet_hash): New class.
23940 (sanopt_tree_triplet_map_traits): Use it.
23941
23942 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23943
23944 * gengtype-parse.c (require_template_declaration): Allow '+' in
23945 template parameters. Consolidate cases.
23946 * hash-traits.h (int_hash): New class.
23947 * alias.c (alias_set_hash): New structure.
23948 (alias_set_traits): Use it.
23949 * symbol-summary.h (function_summary::map_hash): New class.
23950 (function_summary::summary_hashmap_traits): Use it.
23951 * tree-inline.h (dependence_hash): New class.
23952 (dependence_hasher): Use it.
23953 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
23954 * value-prof.c (profile_id_hash): New class.
23955 (profile_id_traits): Use it.
23956
23957 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23958
23959 * config/mips/mips.c (mips16_flip_traits): Use it.
23960 (local_alias_traits, mips16_local_aliases): Convert from a map of
23961 rtxes to a map of symbol names.
23962 (mips16_local_alias): Update accordingly.
23963
23964 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23965
23966 * hash-traits.h (string_hash, nofree_string_hash): New classes.
23967 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
23968 * passes.c (pass_registry_hasher): Likewise.
23969 * config/alpha/alpha.c (string_traits): Likewise.
23970 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
23971 * config/m32c/m32c.c (pragma_traits): Likewise.
23972 * config/mep/mep.c (pragma_traits): Likewise.
23973
23974 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23975
23976 * tree-hash-traits.h (tree_hash): New class.
23977 * except.c: Include tree-hash-traits.h.
23978 (tree_hash_traits): Use tree_hash.
23979
23980 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23981
23982 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
23983 * sese.c: Include tree-hash-traits.h.
23984 (rename_map_hasher): Use tree_ssa_name_hasher.
23985
23986 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23987
23988 * tree-hash-traits.h (tree_decl_hash): New class.
23989 * tree-ssa-strlen.c: Include tree-hash-traits.h.
23990 (stridxlist_hash_traits): Use tree_decl_hash.
23991
23992 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23993
23994 * tree-hash-traits.h: New file.
23995 (tree_operand_hash): New class.
23996 * sanopt.c: Include tree-hash-traits.h.
23997 (sanopt_tree_map_traits): Use tree_operand_hash.
23998 * tree-if-conv.c: Include tree-hash-traits.h.
23999 (phi_args_hash_traits): Use tree_operand_hash.
24000 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24001 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24002
24003 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24004
24005 * hash-map-traits.h: Include hash-traits.h.
24006 (simple_hashmap_traits): New class.
24007 * mem-stats.h (hash_map): Change the default traits to
24008 simple_hashmap_traits<default_hash_traits<Key> >.
24009
24010 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24011
24012 * hash-table.h: Update comments.
24013
24014 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24015
24016 * hash-traits.h (default_hash_traits): New structure.
24017 * hash-set.h (default_hashset_traits): Delete.
24018 (hash_set): Use default_hash_traits<Key> instead of
24019 default_hashset_traits. Delete hash_entry type and use Key directly.
24020 * ipa-devirt.c (pair_traits): Delete.
24021 (default_hash_traits <type_pair>): Override.
24022 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24023 (odr_types_equivalent_p, add_type_duplicate): Likewise.
24024
24025 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24026
24027 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24028
24029 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24030
24031 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24032 (has_is_empty, is_empty_helper): Delete.
24033 (has_mark_deleted, mark_deleted_helper): Delete.
24034 (has_mark_empty, mark_empty_helper): Delete.
24035 (hash_table::is_deleted): Call the Descriptor unconditionally.
24036 (hash_table::is_empty): Likewise.
24037 (hash_table::mark_deleted): Likewise.
24038 (hash_table::mark_empty): Likewise.
24039
24040 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24041
24042 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
24043 redundant typedefs and members.
24044 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
24045 redundant typedefs.
24046 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24047 * ipa-devirt.c (odr_name_hasher): Likewise.
24048 (polymorphic_call_target_hasher): Likewise.
24049 * ira-costs.c (cost_classes_hasher): Likewise.
24050 * statistics.c (stats_counter_hasher): Likewise.
24051 * trans-mem.c (log_entry_hasher): Likewise.
24052 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24053 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24054 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24055 * var-tracking.c (variable_hasher): Likewise.
24056 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24057 Remove redundant typedefs and members.
24058
24059 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24060
24061 * hash-traits.h (ggc_cache_hasher): Rename to...
24062 (ggc_cache_remove): ...this and remove typedefs.
24063 (ggc_cache_ptr_hash): New class.
24064 * hash-table.h: Update commentary.
24065 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24066 rather than ggc_cache_hasher.
24067 (const_wide_int_hasher, reg_attr_hasher): Likewise.
24068 (const_double_hasher, const_fixed_hasher): Likewise.
24069 * function.c (insn_cache_hasher): Likewise.
24070 * trans-mem.c (tm_wrapper_hasher): Likewise.
24071 * tree.h (tree_decl_map_cache_hasher): Likewise.
24072 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24073 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24074 * ubsan.c (tree_type_map_cache_hasher): Likewise.
24075 * varasm.c (tm_clone_hasher): Likewise.
24076 * config/i386/i386.c (dllimport_hasher): Likewise.
24077 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24078 (tree_hasher): Likewise.
24079
24080 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24081
24082 * hash-traits.h (ggc_hasher): Rename to...
24083 (ggc_remover): ...this and remove typedefs.
24084 (ggc_cache_hasher): Update accordingly. Add typedefs.
24085 (ggc_ptr_hash): New class.
24086 * hash-table.h: Update comment.
24087 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24088 ggc_hasher.
24089 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24090 (tree_descriptor_hasher): Likewise.
24091 * cgraph.c (function_version_hasher): Likewise.
24092 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24093 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24094 (dw_loc_list_hasher, addr_hasher): Likewise.
24095 * function.h (used_type_hasher): Likewise.
24096 * function.c (temp_address_hasher): Likewise.
24097 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24098 * libfuncs.h (libfunc_hasher): Likewise.
24099 * lto-streamer.h (decl_state_hasher): Likewise.
24100 * optabs.c (libfunc_decl_hasher): Likewise.
24101 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24102 * varasm.c (section_hasher, object_block_hasher): Likewise.
24103 (const_rtx_desc_hasher): Likewise.
24104 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24105 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24106
24107 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24108
24109 * hash-traits.h (free_ptr_hash): New class.
24110 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24111 rather than typed_free_remove. Remove redudant typedefs.
24112 (external_ref_hasher): Likewise.
24113 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24114 (ehspec_hasher): Likewise.
24115 * ggc-common.c (saving_hasher): Likewise.
24116 * gimplify.c (gimplify_hasher): Likewise.
24117 * haifa-sched.c (delay_i2_hasher): Likewise.
24118 * loop-invariant.c (invariant_expr_hasher): Likewise.
24119 * loop-iv.c (biv_entry_hasher): Likewise.
24120 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24121 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24122 * tree-cfg.c (locus_discrim_hasher): Likewise.
24123 * tree-eh.c (finally_tree_hasher): Likewise.
24124 * tree-into-ssa.c (var_info_hasher): Likewise.
24125 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24126 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24127 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24128 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24129 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24130 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24131 (shared_bitmap_hasher): Likewise.
24132 * tree-ssa-threadupdate.c (redirection_data): Likewise.
24133 * tree-vectorizer.h (peel_info_hasher): Likewise.
24134 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24135 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24136
24137 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24138
24139 * hash-table.h: Update comments.
24140 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24141 (nofree_ptr_hash): New class.
24142 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24143 than typed_noop_remove. Remove redudant typedefs.
24144 * attribs.c (attribute_hasher): Likewise.
24145 * cfg.c (bb_copy_hasher): Likewise.
24146 * cselib.c (cselib_hasher): Likewise.
24147 * dse.c (invariant_group_base_hasher): Likewise.
24148 * dwarf2cfi.c (trace_info_hasher): Likewise.
24149 * dwarf2out.c (macinfo_entry_hasher): Likewise.
24150 (comdat_type_hasher, loc_list_hasher): Likewise.
24151 * gcse.c (pre_ldst_expr_hasher): Likewise.
24152 * genmatch.c (id_base): Likewise.
24153 * genrecog.c (test_pattern_hasher): Likewise.
24154 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24155 * haifa-sched.c (delay_i1_hasher): Likewise.
24156 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24157 * ipa-icf.h (congruence_class_group_hash): Likewise.
24158 * ipa-profile.c (histogram_hash): Likewise.
24159 * ira-color.c (allocno_hard_regs_hasher): Likewise.
24160 * lto-streamer.h (string_slot_hasher): Likewise.
24161 * lto-streamer.c (tree_entry_hasher): Likewise.
24162 * plugin.c (event_hasher): Likewise.
24163 * postreload-gcse.c (expr_hasher): Likewise.
24164 * store-motion.c (st_expr_hasher): Likewise.
24165 * tree-sra.c (uid_decl_hasher): Likewise.
24166 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24167 (ssa_name_var_hash): Likewise.
24168 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24169 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24170 * tree-ssa-pre.c (pre_expr_d): Likewise.
24171 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24172 * vtable-verify.h (registration_hasher): Likewise.
24173 * vtable-verify.c (vtbl_map_hasher): Likewise.
24174 * config/arm/arm.c (libcall_hasher): Likewise.
24175 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24176 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24177 * config/sol2.c (comdat_entry_hasher): Likewise.
24178 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24179 (print_fold_checksum, fold_checksum_tree): Likewise.
24180 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24181 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24182 (fold_build_call_array_loc): Likewise.
24183 * tree-ssa-ccp.c (gimple_htab): Likewise.
24184 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24185 rather than pointer_type.
24186
24187 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24188
24189 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24190 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24191
24192 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24193
24194 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24195 (ggc_hasher::ggc_mx): Likewise.
24196 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
24197 that duplicate ggc_hasher ones.
24198
24199 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24200
24201 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24202 (gt_cleare_cache): Check here for deleted and empty entries.
24203 Replace handle_cache_entry with a call to keep_cache_entry.
24204 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24205 (ggc_cache_hasher::keep_cache_entry): New function.
24206 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24207 (tm_wrapper_hasher::keep_cache_entry): New function.
24208 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24209 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24210 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24211 (type_cache_hasher::keep_cache_entry): New function.
24212 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24213 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24214 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24215 (tree_type_map_cache_hasher::keep_cache_entry): New function.
24216 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24217 (tm_clone_hasher::keep_cache_entry): New function.
24218 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24219 (dllimport_hasher::keep_cache_entry): New function.
24220
24221 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24222
24223 * hash-table.h: Include hash-traits.h.
24224 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24225 (ggc_cache_hasher): Move to...
24226 * hash-traits.h: ...this new file.
24227
24228 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24229
24230 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24231 struct cl_optimization.
24232 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24233 * tree.c (make_node_stat): Allocate cl_optimization struct.
24234 (copy_node_stat): Allocate and copy cl_optimization struct.
24235
24236 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24237
24238 * function.h (struct incoming_args): Move struct.
24239 (pass_by_reference, reference_callee_copied): Remove prototypes.
24240 * emit-rtl.h (struct incoming_args): Relocate struct here.
24241 * calls.h (pass_by_reference, reference_callee_copied): Relocate
24242 prototypes here.
24243 * function.c (pass_by_reference, reference_callee_copied): Move.
24244 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24245 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24246 * ipa-chkp.c: Include calls.h.
24247
24248 2015-06-25 Andrew Macleod <amacleod@redhat.com>
24249
24250 * alias.h (alias_set_type): Move typedef.
24251 * coretypes.h (alias_set_type): Relocate typedef here.
24252 * rtl.h: Don't include alias.h.
24253
24254 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24255
24256 * cgraph.h (cgraph_rtl_info): Move to rtl.h
24257 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24258 and instance.
24259 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24260 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24261 doesn't exist.
24262 * calls.c: Include hard-reg-set.h before rtl.h.
24263 * ira.c: Likewise.
24264
24265 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24266 Vladimir Makarov <vmakarov@redhat.com>
24267
24268 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24269 Add assert.
24270
24271 2015-06-25 Richard Biener <rguenther@suse.de>
24272
24273 * fold-const.c (fold_binary_loc): Move simplification of
24274 (X <<>> C1) & C2 ...
24275 * match.pd: ... here.
24276
24277 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
24278
24279 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24280
24281 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24282
24283 * match.pd: Add patterns for vec_conds between 1 and 0.
24284
24285 2015-06-25 Richard Biener <rguenther@suse.de>
24286
24287 * tree-vect-stmts.c (vectorizable_conversion): Do not set
24288 STMT_VINFO_VEC_STMT for SLP.
24289 (vectorizable_store): Likewise.
24290 (vectorizable_load): Likewise.
24291 (vect_transform_stmt): Catch SLP vectorization clobbering
24292 STMT_VINFO_VEC_STMT.
24293
24294 2015-06-25 Richard Biener <rguenther@suse.de>
24295
24296 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24297 dumping.
24298 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24299 cleanup resulting dead code and parameters.
24300 (vect_transform_slp_perm_load): Adjust.
24301
24302 2015-06-25 Nick Clifton <nickc@redhat.com>
24303
24304 * config/bfin/bfin.c (bfin_expand_prologue): Set
24305 current_function_static_stack_size if flag_stack_usage_info is set.
24306 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24307 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24308 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24309 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24310
24311 2015-06-25 Tom de Vries <tom@codesourcery.com>
24312
24313 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24314 comment that the generated IV is unsigned.
24315
24316 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24317
24318 PR target/29693
24319 * config/arm/arm.c (arm_dbx_register_number): Return
24320 DWARF_FRAME_REGISTERS by default.
24321
24322 2015-06-25 Tom de Vries <tom@codesourcery.com>
24323
24324 * dominance.c (calculate_dominance_info): Fix verify_dominators call
24325 argument. Call verify_dominator when reusing dominator info.
24326
24327 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
24328
24329 PR target/66563
24330 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24331 an additional element of the unspec vector. Modify indices
24332 of operands.
24333 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24334 * config/sh/sh.c (prepare_move_operands): Pass incremented
24335 const_int to gen_GOTaddr2picreg.
24336 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24337
24338 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24339
24340 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24341 Condition on TARGET_FLOAT.
24342
24343 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24344
24345 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24346 and (no)crypto.
24347
24348 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24349
24350 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24351
24352 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24353 aarch64_err_no_fpadvsimd.
24354
24355 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24356 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24357 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24358 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24359 Turn error into assert, test TARGET_FLOAT.
24360 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24361 TARGET_FLOAT.
24362
24363 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
24364
24365 PR debug/66482
24366 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24367
24368 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
24369
24370 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24371
24372 2015-06-24 Renlin Li <renlin.li@arm.com>
24373
24374 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24375 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24376
24377 2015-06-24 Richard Biener <rguenther@suse.de>
24378
24379 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24380 (main): Likewise.
24381 (lower_opt_convert): Support lowering of conditional view_convert.
24382 (parser::parse_operation): Likewise.
24383 (parser::parse_for): Likewise.
24384
24385 2015-06-24 Renlin Li <renlin.li@arm.com>
24386
24387 * varasm.c (emit_local): Use unsigned int for align variable.
24388
24389 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24390
24391 PR target/63408
24392 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24393 for negative numbers.
24394
24395 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24396
24397 PR rtl-optimization/66306
24398 * reload.c (find_reloads): Swap the match_dup info for
24399 commutative operands.
24400
24401 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24402
24403 * config/s390/vx-builtins.md
24404 ("vec_scatter_element<mode>_<non_vec_int>")
24405 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
24406 attribute with bhfgq.
24407
24408 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24409
24410 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
24411
24412 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24413
24414 * config/s390/s390-builtin-types.def: Add flag to indicate the
24415 options under which the function type is needed.
24416 * config/s390/s390-builtins.def: Add flag to indicate the options
24417 under which the builtin is enabled.
24418 * config/s390/s390-builtins.h: Add flags parameter to macro
24419 definitions.
24420 (bflags_for_builtin): New function.
24421 (flags_for_builtin): Renamed to ...
24422 (opflags_for_builtin): ... this.
24423 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
24424 flags_for_builtin to bflags_for_builtin and
24425 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
24426 * config/s390/s390.c: Add initialization of bflags_builtin and
24427 opflags_builtin arrays.
24428 Remove code for flags_builtin.
24429 (s390_init_builtins): Only create builtin function types if one of
24430 their flags is active.
24431 Only create builtins if all of their flags are active.
24432 (s390_expand_builtin): Rename flags_for_builtin to
24433 opflags_for_builtin.
24434
24435 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24436
24437 * config/s390/vecintrin.h: Remove internal builtins.
24438
24439 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24440
24441 * config/s390/s390.c (s390_secondary_reload): Fix check for
24442 GENERAL_REGS register class.
24443
24444 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24445
24446 * config/s390/s390.c (s390_support_vector_misalignment): Call
24447 default implementation for !TARGET_VX.
24448
24449 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24450
24451 * config/s390/s390.c (s390_legitimate_constant_p): Add
24452 TARGET_VX check.
24453
24454 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24455
24456 * config/s390/s390.c (s390_vector_abi): New variable definition.
24457 (s390_check_type_for_vector_abi): New function.
24458 (TARGET_ASM_FILE_END): New macro definition.
24459 (s390_asm_file_end): New function.
24460 (s390_function_arg): Call s390_check_type_for_vector_abi.
24461 (s390_gimplify_va_arg): Likewise.
24462 * configure: Regenerate.
24463 * configure.ac: Check for .gnu_attribute Binutils feature.
24464
24465 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
24466
24467 PR target/65803
24468 * config/bfin/bfin.c (hwloop_optimize): Initialize
24469 JUMP_LABEL for newly created jump.
24470
24471 2015-06-23 Tristan Gingold <gingold@adacore.com>
24472
24473 * collect-utils.c (collect_wait): Unlink the response file here
24474 instead of...
24475 (do_wait): ...here.
24476 (utils_cleanup): ...and here.
24477
24478 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
24479
24480 * df-scan.c: Don't include target-def.h.
24481 * targhooks.c: Likewise.
24482 * config/arm/arm-c.c: Likewise.
24483 * config/i386/i386-c.c: Likewise.
24484 * config/nds32/nds32-cost.c: Likewise.
24485 * config/nds32/nds32-fp-as-gp.c: Likewise.
24486 * config/nds32/nds32-intrinsic.c: Likewise.
24487 * config/nds32/nds32-isr.c: Likewise.
24488 * config/nds32/nds32-md-auxiliary.c: Likewise.
24489 * config/nds32/nds32-memory-manipulation.c: Likewise.
24490 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24491 * config/nds32/nds32-predicates.c: Likewise.
24492
24493 2015-06-23 Richard Biener <rguenther@suse.de>
24494
24495 PR tree-optimization/66636
24496 * tree-vect-stmts.c (vectorizable_store): Properly compute the
24497 def type for further defs for strided stores.
24498
24499 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
24500
24501 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
24502 conditional selects.
24503 (setcc_int<mode>, setcc_float<mode>): Reformat.
24504
24505 2015-06-23 Marek Polacek <polacek@redhat.com>
24506
24507 * match.pd ((x + y) - (x | y) -> x & y,
24508 (x + y) - (x & y) -> x | y): New patterns.
24509
24510 2015-06-23 Ludovic Courtès <ludo@gnu.org>
24511
24512 PR 65711
24513 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
24514 '-dynamic-linker' within %{!shared: ...}.
24515
24516 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
24517
24518 PR target/66560
24519 * config/i386/predicates.md (addsub_vm_operator): New predicate.
24520 (addsub_vs_operator): Ditto.
24521 (addsub_vs_parallel): Ditto.
24522 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
24523 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
24524 Put minus RTX before plus and adjust vec_merge selector.
24525 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
24526 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
24527 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
24528 (addsub vec_merge splitters): New combiner splitters.
24529 (addsub vec_select/vec_concat splitters): Ditto.
24530
24531 2015-06-23 Bin Cheng <bin.cheng@arm.com>
24532
24533 PR tree-optimization/66449
24534 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
24535 POINTER_PLUS_EXPR for pointers.
24536
24537 2015-06-23 Alan Modra <amodra@gmail.com>
24538
24539 * rtlanal.c (commutative_operand_precedence): Correct comments.
24540 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
24541 declaration. Return an int. Distinguish REG,REG return from
24542 others.
24543 (struct simplify_plus_minus_op_data): Make local to function.
24544 (simplify_plus_minus): Don't set canonicalized if merely sorting
24545 registers. Avoid packing ops if nothing changes. White space fixes.
24546
24547 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
24548
24549 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
24550 -fdump-ada-spec is passed but not if -fsyntax-only is.
24551
24552 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
24553
24554 PR bootstrap/63740
24555 * lra-lives.c (process_bb_lives): Check insn copying the same
24556 reload pseudo and don't create a copy for it.
24557
24558 2015-06-22 Tom de Vries <tom@codesourcery.com>
24559
24560 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
24561 for cond_stmt.
24562
24563 2015-06-22 Tom de Vries <tom@codesourcery.com>
24564
24565 * builtins.def (DEF_GOMP_BUILTIN): Test
24566 'flag_tree_parallelize_loops > 1' instead of
24567 'flag_tree_parallelize_loops'. Test flag_cilkplus.
24568
24569 2015-06-22 Tom de Vries <tom@codesourcery.com>
24570
24571 * dominance.c (calculate_dominance_info): Verify dominators if
24572 early-out.
24573
24574 2015-06-22 Marek Polacek <polacek@redhat.com>
24575
24576 * match.pd ((x ^ y) ^ (x | y) -> x & y,
24577 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
24578 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
24579 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
24580
24581 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
24582
24583 PR target/65871
24584 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
24585 cost of embedded comparison.
24586
24587 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24588
24589 PR target/65914
24590 * config/rs6000/predicates.md (altivec_register_operand): Permit
24591 virtual stack registers.
24592 (vsx_register_operand): Likewise.
24593 (vfloat_operand): Likewise.
24594 (vint_operand): Likewise.
24595 (vlogical_operand): Likewise.
24596
24597 2015-06-22 Richard Biener <rguenther@suse.de>
24598
24599 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
24600 and single_scalar_iteration_cost members.
24601 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
24602 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
24603 (vect_get_single_scalar_iteration_cost): Remove.
24604 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24605 Use LOOP_VINFO_SCALAR_ITERATION_COST.
24606 * tree-vect-loop.c (destroy_loop_vec_info): Free
24607 scalar_cost_vec.
24608 (vect_get_single_scalar_iteration_cost): Compute result into
24609 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
24610 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
24611 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
24612 (vect_estimate_min_profitable_iters): Use them.
24613
24614 2015-06-22 Christian Bruel <christian.bruel@st.com>
24615
24616 PR target/52144
24617 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
24618 (TARGET_INSERT_ATTRIBUTES): Define.
24619 (thumb_flipper): New var.
24620 * config/arm/arm.opt (-mflip-thumb): New switch.
24621
24622 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24623 Martin Liska <mliska@suse.cz>
24624
24625 PR ipa/65908
24626 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
24627 construction of arg_types.
24628 (sem_function::sem_function): Likewise.
24629 (sem_function::~sem_function): Remove destruction of arg_types.
24630 (sem_function::compatible_parm_types_p): New function.
24631 (sem_function::equals_wpa): Reorg matching of return values
24632 and parameter types.
24633 (sem_function::equals_private): Reorg mathcing of argument types.
24634 (sem_function::parse_tree_args): Remove.
24635 * ipa-icf.h (init_wpa): Do not call it.
24636 (parse_tree_args): Remove.
24637 (compatible_parm_types_p): Declare.
24638 (result_type): Remove.
24639 (arg_types): Remove.
24640
24641 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24642
24643 PR ipa/66351
24644 * ipa-polymorphic-call.c
24645 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
24646 initializing alias oracle; fix formating; set base_alias_set if it
24647 is known.
24648
24649 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
24650
24651 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
24652 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
24653 (find_inc): Likewise.
24654 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
24655 swapping.
24656 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
24657 * df-scan.c (df_swap_refs): Remove.
24658 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
24659 * dominance.c (link_roots): Use std::swap instead of manually swapping.
24660 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
24661 * fold-const.c (fold_relational_const): Likewise.
24662 * genattrtab.c (simplify_test_exp): Likewise.
24663 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
24664 gimple_simplify): Likewise.
24665 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
24666 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
24667 * ipa-devirt.c (add_type_duplicate): Likewise.
24668 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
24669 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
24670 * lra.c (lra_create_copy): Likewise.
24671 * lto-streamer-out.c (DFS::DFS): Likewise.
24672 * modulo-sched.c (get_sched_window): Likewise.
24673 * omega.c (omega_pretty_print_problem): Likewise.
24674 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
24675 * reload1.c (reloads_unique_chain_p): Likewise.
24676 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
24677 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
24678 use std::swap.
24679 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
24680 manually swapping.
24681 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
24682 predicate_mem_writes): Likewise.
24683 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
24684 * tree-predcom.c (combine_chains): Likewise.
24685 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
24686 refs_may_alias_p_1): Likewise.
24687 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
24688 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24689 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
24690 number_of_iterations_cond): Likewise.
24691 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24692 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
24693 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
24694 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
24695 * tree-vrp.c (extract_range_from_binary_expr_1,
24696 extract_range_from_unary_expr_1): Likewise.
24697
24698 2015-06-20 Marek Polacek <polacek@redhat.com>
24699
24700 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
24701
24702 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
24703
24704 PR target/66591
24705 * config/sh/sh.c (prepare_move_operands): Replace subreg
24706 index term with R0 for base and index addressing.
24707
24708 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
24709
24710 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
24711 op1 is an fp zero.
24712 (movsf_aarch64): Change condition from register_operand to
24713 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
24714 load1. Change type for alternative 7 to store1.
24715 (movdf_aarch64): Likewise.
24716
24717 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
24718
24719 * config/vax/vax.md: Adjust sign/zero extend patterns to
24720 handle SUBREGs in operands[1].
24721
24722 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24723
24724 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
24725 of manually swapping.
24726 (expand_vec_perm_interleave2): Likewise.
24727
24728 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
24729
24730 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
24731 reuse bounds created for abnormal ssa names.
24732
24733 2015-06-19 Jakub Jelinek <jakub@redhat.com>
24734
24735 * config/nvptx/nvptx.md (allocate_stack): Rename to...
24736 (allocate_stack_<mode>): ... this, and add :P on both
24737 match_operand and unspec.
24738 (allocate_stack): New expander.
24739
24740 2015-06-19 Christian Bruel <christian.bruel@st.com>
24741
24742 PR target/66541
24743 PR target/52144
24744 * config/arm/arm.c (arm_set_current_function): Handle
24745 explicit default options.
24746
24747 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24748
24749 * config/i386/i386.md (*movsicc_noc_zext): New insn.
24750 (zero-extended cmove with mem peephole2): New pattern.
24751 (cmove with mem peephole2): Merge patterns.
24752
24753 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
24754
24755 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
24756
24757 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
24758
24759 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
24760 * config/mips/mips.md (*madd4<mode>): Ditto.
24761 (*nmadd3<mode>) Ditto.
24762 (*nmadd4<mode>_fastmath): Ditto.
24763 (*nmadd3<mode>_fastmath): Ditto.
24764 (*nmsub4<mode>): Ditto.
24765 (*nmsub3<mode>): Ditto.
24766 (*nmsub4<mode>_fastmath): Ditto.
24767 (*nmsub3<mode>_fastmath): Ditto.
24768
24769 2015-06-18 Michael Matz <matz@suse.de>
24770
24771 PR middle-end/66253
24772 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
24773 grouped strided stores.
24774 (vectorizable_load): Don't use the DR from first_stmt in
24775 the non-SLP grouped strided case.
24776
24777 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24778
24779 PR target/66569
24780 * function.c (assign_bounds): Add arguments assign_regs,
24781 assign_special, assign_bt.
24782 (assign_parms): For vararg functions handle bounds in BT
24783 and special slots after incoming vararg bounds.
24784
24785 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24786
24787 PR middle-end/66568
24788 * cfgexpand.c (expand_return): Handle missing bounds.
24789 (expand_gimple_stmt_1): Likewise.
24790 * tree-chkp.c (chkp_expand_zero_bounds): New.
24791 * tree-chkp.h (chkp_expand_zero_bounds): New.
24792
24793 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24794
24795 PR middle-end/66567
24796 * ipa-chkp.c (chkp_maybe_create_clone): Require
24797 functions to be instrumentable.
24798 * tree-chkp.c (chkp_replace_function_pointer): Use
24799 chkp_instrumentable_p instead of attribute check.
24800
24801 2015-06-18 Richard Biener <rguenther@suse.de>
24802
24803 PR tree-optimization/66510
24804 * tree-vect-stmts.c (vectorizable_load): Properly compute the
24805 number of vector loads for SLP permuted loads.
24806 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
24807 check the stride for loop vectorization.
24808 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
24809 vectorization factor.
24810 (vect_analyze_group_access): If the group size is not a power
24811 of two require a epilogue loop.
24812 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
24813 compute and optimizing and alias test pruning after final
24814 vectorization factor computation.
24815 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
24816 vector alignment.
24817 (vect_transform_slp_perm_load): Properly compute the original
24818 number of vector load stmts.
24819
24820 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24821
24822 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
24823 "unlikely character , in @var" warning.
24824
24825 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
24826
24827 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
24828 (ix86_function_arg_advance): Ditto.
24829 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
24830
24831 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24832
24833 * function.h (struct rtl_data): Remove struct and accessor macros.
24834 * emit-rtl.h (struct rtl_data): Relocate to here.
24835 * Makefile.in (GTFILES): Add emit-rtl.h.
24836 * df-core.c: Include emit-rtl.h.
24837 * genattrtab.c: Likewise.
24838 * genconditions.c: Likewise.
24839 * genpreds.c: Likewise.
24840 * genrecog.c: Likewise.
24841 * regcprop.c: Likewise.
24842 * resource.c: Likewise.
24843 * sched-rgn.c: Likewise.
24844 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24845 * config/i386/winnt.c: Likewise.
24846
24847 2015-06-17 Jakub Jelinek <jakub@redhat.com>
24848
24849 PR middle-end/66429
24850 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
24851 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
24852 and has_force_vectorize_loops flags from cfun into
24853 child_cfun.
24854 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
24855 if simduid is non-NULL.
24856 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
24857 * passes.def (pass_simduid_cleanup): Add new pass after loop
24858 passes.
24859 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
24860 indirection from htab argument's type.
24861 (shrink_simd_arrays): New function.
24862 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
24863 Don't call adjust_simduid_builtins if there are no loops.
24864 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
24865 (pass_simduid_cleanup::execute): New method.
24866 (make_pass_simduid_cleanup): New function.
24867
24868 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
24869
24870 * tree-core.h (tree_target_option): Make opts field a pointer to a
24871 cl_target_option instead of an instance of the struct.
24872 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
24873 the structure.
24874 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
24875 TARGET_OPTION_NODE.
24876 (copy_node_stat): Allocate and copy struct cl_target_option.
24877
24878 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24879
24880 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
24881 Remove conditional exposure of prototypes.
24882 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
24883 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
24884 definitions in tree.h with functions.
24885 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
24886 anon_aggrname_p.
24887 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
24888
24889 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
24890
24891 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
24892 (*cmp<mode>_signed): ... this.
24893 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
24894 (*cmp<mode>_unsigned): ... this. Remove %b.
24895
24896 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24897
24898 * coretypes.h: Include input.h and as-a.h.
24899 * rtl.h: Include input.h and as-a.h for generator files.
24900 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
24901 * vec.c: Don't include diagnostic-core.h.
24902 * alias.c: Do not include input.h, line-map.h or is-a.h.
24903 * asan.c: Likewise.
24904 * attribs.c: Likewise.
24905 * auto-inc-dec.c: Likewise.
24906 * auto-profile.c: Likewise.
24907 * bb-reorder.c: Likewise.
24908 * bt-load.c: Likewise.
24909 * builtins.c: Likewise.
24910 * caller-save.c: Likewise.
24911 * calls.c: Likewise.
24912 * ccmp.c: Likewise.
24913 * cfg.c: Likewise.
24914 * cfganal.c: Likewise.
24915 * cfgbuild.c: Likewise.
24916 * cfgcleanup.c: Likewise.
24917 * cfgexpand.c: Likewise.
24918 * cfghooks.c: Likewise.
24919 * cfgloop.c: Likewise.
24920 * cfgloop.h: Likewise.
24921 * cfgloopanal.c: Likewise.
24922 * cfgloopmanip.c: Likewise.
24923 * cfgrtl.c: Likewise.
24924 * cgraph.c: Likewise.
24925 * cgraphbuild.c: Likewise.
24926 * cgraphclones.c: Likewise.
24927 * cgraphunit.c: Likewise.
24928 * cilk-common.c: Likewise.
24929 * combine-stack-adj.c: Likewise.
24930 * combine.c: Likewise.
24931 * compare-elim.c: Likewise.
24932 * convert.c: Likewise.
24933 * coverage.c: Likewise.
24934 * cppbuiltin.c: Likewise.
24935 * cprop.c: Likewise.
24936 * cse.c: Likewise.
24937 * cselib.c: Likewise.
24938 * data-streamer-in.c: Likewise.
24939 * data-streamer-out.c: Likewise.
24940 * data-streamer.c: Likewise.
24941 * dbxout.c: Likewise.
24942 * dce.c: Likewise.
24943 * ddg.c: Likewise.
24944 * debug.c: Likewise.
24945 * df-core.c: Likewise.
24946 * df-problems.c: Likewise.
24947 * df-scan.c: Likewise.
24948 * df.h: Likewise.
24949 * dfp.c: Likewise.
24950 * diagnostic-core.h: Likewise.
24951 * diagnostic.c: Likewise.
24952 * dojump.c: Likewise.
24953 * dominance.c: Likewise.
24954 * domwalk.c: Likewise.
24955 * double-int.c: Likewise.
24956 * dse.c: Likewise.
24957 * dumpfile.c: Likewise.
24958 * dumpfile.h: Likewise.
24959 * dwarf2asm.c: Likewise.
24960 * dwarf2cfi.c: Likewise.
24961 * dwarf2out.c: Likewise.
24962 * emit-rtl.c: Likewise.
24963 * et-forest.c: Likewise.
24964 * except.c: Likewise.
24965 * explow.c: Likewise.
24966 * expmed.c: Likewise.
24967 * expr.c: Likewise.
24968 * final.c: Likewise.
24969 * fixed-value.c: Likewise.
24970 * fold-const.c: Likewise.
24971 * function.c: Likewise.
24972 * fwprop.c: Likewise.
24973 * gcc-plugin.h: Likewise.
24974 * gcse.c: Likewise.
24975 * generic-match-head.c: Likewise.
24976 * ggc-page.c: Likewise.
24977 * gimple-builder.c: Likewise.
24978 * gimple-expr.c: Likewise.
24979 * gimple-fold.c: Likewise.
24980 * gimple-iterator.c: Likewise.
24981 * gimple-low.c: Likewise.
24982 * gimple-match-head.c: Likewise.
24983 * gimple-pretty-print.c: Likewise.
24984 * gimple-ssa-isolate-paths.c: Likewise.
24985 * gimple-ssa-strength-reduction.c: Likewise.
24986 * gimple-streamer-in.c: Likewise.
24987 * gimple-streamer-out.c: Likewise.
24988 * gimple-streamer.h: Likewise.
24989 * gimple-walk.c: Likewise.
24990 * gimple.c: Likewise.
24991 * gimplify-me.c: Likewise.
24992 * gimplify.c: Likewise.
24993 * godump.c: Likewise.
24994 * graph.c: Likewise.
24995 * graphite-blocking.c: Likewise.
24996 * graphite-dependences.c: Likewise.
24997 * graphite-interchange.c: Likewise.
24998 * graphite-isl-ast-to-gimple.c: Likewise.
24999 * graphite-optimize-isl.c: Likewise.
25000 * graphite-poly.c: Likewise.
25001 * graphite-scop-detection.c: Likewise.
25002 * graphite-sese-to-poly.c: Likewise.
25003 * graphite.c: Likewise.
25004 * haifa-sched.c: Likewise.
25005 * hw-doloop.c: Likewise.
25006 * ifcvt.c: Likewise.
25007 * init-regs.c: Likewise.
25008 * input.c: Likewise.
25009 * internal-fn.c: Likewise.
25010 * ipa-chkp.c: Likewise.
25011 * ipa-comdats.c: Likewise.
25012 * ipa-cp.c: Likewise.
25013 * ipa-devirt.c: Likewise.
25014 * ipa-icf-gimple.c: Likewise.
25015 * ipa-icf.c: Likewise.
25016 * ipa-inline-analysis.c: Likewise.
25017 * ipa-inline-transform.c: Likewise.
25018 * ipa-inline.c: Likewise.
25019 * ipa-polymorphic-call.c: Likewise.
25020 * ipa-profile.c: Likewise.
25021 * ipa-prop.c: Likewise.
25022 * ipa-pure-const.c: Likewise.
25023 * ipa-ref.c: Likewise.
25024 * ipa-reference.c: Likewise.
25025 * ipa-split.c: Likewise.
25026 * ipa-utils.c: Likewise.
25027 * ipa-visibility.c: Likewise.
25028 * ipa.c: Likewise.
25029 * ira-build.c: Likewise.
25030 * ira-color.c: Likewise.
25031 * ira-conflicts.c: Likewise.
25032 * ira-costs.c: Likewise.
25033 * ira-emit.c: Likewise.
25034 * ira-lives.c: Likewise.
25035 * ira.c: Likewise.
25036 * jump.c: Likewise.
25037 * langhooks.c: Likewise.
25038 * lcm.c: Likewise.
25039 * loop-doloop.c: Likewise.
25040 * loop-init.c: Likewise.
25041 * loop-invariant.c: Likewise.
25042 * loop-iv.c: Likewise.
25043 * loop-unroll.c: Likewise.
25044 * lower-subreg.c: Likewise.
25045 * lra-assigns.c: Likewise.
25046 * lra-coalesce.c: Likewise.
25047 * lra-constraints.c: Likewise.
25048 * lra-eliminations.c: Likewise.
25049 * lra-lives.c: Likewise.
25050 * lra-remat.c: Likewise.
25051 * lra-spills.c: Likewise.
25052 * lra.c: Likewise.
25053 * lto-cgraph.c: Likewise.
25054 * lto-compress.c: Likewise.
25055 * lto-opts.c: Likewise.
25056 * lto-section-in.c: Likewise.
25057 * lto-section-out.c: Likewise.
25058 * lto-streamer-in.c: Likewise.
25059 * lto-streamer-out.c: Likewise.
25060 * lto-streamer.c: Likewise.
25061 * mcf.c: Likewise.
25062 * mode-switching.c: Likewise.
25063 * modulo-sched.c: Likewise.
25064 * omega.c: Likewise.
25065 * omp-low.c: Likewise.
25066 * optabs.c: Likewise.
25067 * opts-global.c: Likewise.
25068 * opts.h: Likewise.
25069 * passes.c: Likewise.
25070 * plugin.c: Likewise.
25071 * postreload-gcse.c: Likewise.
25072 * postreload.c: Likewise.
25073 * predict.c: Likewise.
25074 * pretty-print.h: Likewise.
25075 * print-rtl.c: Likewise.
25076 * print-tree.c: Likewise.
25077 * profile.c: Likewise.
25078 * real.c: Likewise.
25079 * realmpfr.c: Likewise.
25080 * recog.c: Likewise.
25081 * ree.c: Likewise.
25082 * reg-stack.c: Likewise.
25083 * regcprop.c: Likewise.
25084 * reginfo.c: Likewise.
25085 * regrename.c: Likewise.
25086 * regstat.c: Likewise.
25087 * reload.c: Likewise.
25088 * reload1.c: Likewise.
25089 * reorg.c: Likewise.
25090 * resource.c: Likewise.
25091 * rtl-chkp.c: Likewise.
25092 * rtl-error.c: Likewise.
25093 * rtlanal.c: Likewise.
25094 * rtlhooks.c: Likewise.
25095 * sanopt.c: Likewise.
25096 * sched-deps.c: Likewise.
25097 * sched-ebb.c: Likewise.
25098 * sched-rgn.c: Likewise.
25099 * sched-vis.c: Likewise.
25100 * sdbout.c: Likewise.
25101 * sel-sched-dump.c: Likewise.
25102 * sel-sched-ir.c: Likewise.
25103 * sel-sched.c: Likewise.
25104 * sese.c: Likewise.
25105 * shrink-wrap.c: Likewise.
25106 * simplify-rtx.c: Likewise.
25107 * stack-ptr-mod.c: Likewise.
25108 * statistics.c: Likewise.
25109 * stmt.c: Likewise.
25110 * stor-layout.c: Likewise.
25111 * store-motion.c: Likewise.
25112 * streamer-hooks.c: Likewise.
25113 * stringpool.c: Likewise.
25114 * symtab.c: Likewise.
25115 * target-globals.c: Likewise.
25116 * targhooks.c: Likewise.
25117 * toplev.c: Likewise.
25118 * tracer.c: Likewise.
25119 * trans-mem.c: Likewise.
25120 * tree-affine.c: Likewise.
25121 * tree-browser.c: Likewise.
25122 * tree-call-cdce.c: Likewise.
25123 * tree-cfg.c: Likewise.
25124 * tree-cfgcleanup.c: Likewise.
25125 * tree-chkp-opt.c: Likewise.
25126 * tree-chkp.c: Likewise.
25127 * tree-chrec.c: Likewise.
25128 * tree-complex.c: Likewise.
25129 * tree-data-ref.c: Likewise.
25130 * tree-dfa.c: Likewise.
25131 * tree-diagnostic.c: Likewise.
25132 * tree-dump.c: Likewise.
25133 * tree-eh.c: Likewise.
25134 * tree-emutls.c: Likewise.
25135 * tree-if-conv.c: Likewise.
25136 * tree-inline.c: Likewise.
25137 * tree-into-ssa.c: Likewise.
25138 * tree-iterator.c: Likewise.
25139 * tree-loop-distribution.c: Likewise.
25140 * tree-nested.c: Likewise.
25141 * tree-nrv.c: Likewise.
25142 * tree-object-size.c: Likewise.
25143 * tree-outof-ssa.c: Likewise.
25144 * tree-parloops.c: Likewise.
25145 * tree-phinodes.c: Likewise.
25146 * tree-predcom.c: Likewise.
25147 * tree-pretty-print.c: Likewise.
25148 * tree-profile.c: Likewise.
25149 * tree-scalar-evolution.c: Likewise.
25150 * tree-sra.c: Likewise.
25151 * tree-ssa-address.c: Likewise.
25152 * tree-ssa-alias.c: Likewise.
25153 * tree-ssa-ccp.c: Likewise.
25154 * tree-ssa-coalesce.c: Likewise.
25155 * tree-ssa-copy.c: Likewise.
25156 * tree-ssa-copyrename.c: Likewise.
25157 * tree-ssa-dce.c: Likewise.
25158 * tree-ssa-dom.c: Likewise.
25159 * tree-ssa-dse.c: Likewise.
25160 * tree-ssa-forwprop.c: Likewise.
25161 * tree-ssa-ifcombine.c: Likewise.
25162 * tree-ssa-live.c: Likewise.
25163 * tree-ssa-loop-ch.c: Likewise.
25164 * tree-ssa-loop-im.c: Likewise.
25165 * tree-ssa-loop-ivcanon.c: Likewise.
25166 * tree-ssa-loop-ivopts.c: Likewise.
25167 * tree-ssa-loop-manip.c: Likewise.
25168 * tree-ssa-loop-niter.c: Likewise.
25169 * tree-ssa-loop-prefetch.c: Likewise.
25170 * tree-ssa-loop-unswitch.c: Likewise.
25171 * tree-ssa-loop.c: Likewise.
25172 * tree-ssa-math-opts.c: Likewise.
25173 * tree-ssa-operands.c: Likewise.
25174 * tree-ssa-phiopt.c: Likewise.
25175 * tree-ssa-phiprop.c: Likewise.
25176 * tree-ssa-pre.c: Likewise.
25177 * tree-ssa-propagate.c: Likewise.
25178 * tree-ssa-reassoc.c: Likewise.
25179 * tree-ssa-sccvn.c: Likewise.
25180 * tree-ssa-scopedtables.c: Likewise.
25181 * tree-ssa-sink.c: Likewise.
25182 * tree-ssa-strlen.c: Likewise.
25183 * tree-ssa-structalias.c: Likewise.
25184 * tree-ssa-tail-merge.c: Likewise.
25185 * tree-ssa-ter.c: Likewise.
25186 * tree-ssa-threadedge.c: Likewise.
25187 * tree-ssa-threadupdate.c: Likewise.
25188 * tree-ssa-uncprop.c: Likewise.
25189 * tree-ssa-uninit.c: Likewise.
25190 * tree-ssa.c: Likewise.
25191 * tree-ssanames.c: Likewise.
25192 * tree-stdarg.c: Likewise.
25193 * tree-streamer-in.c: Likewise.
25194 * tree-streamer-out.c: Likewise.
25195 * tree-streamer.c: Likewise.
25196 * tree-switch-conversion.c: Likewise.
25197 * tree-tailcall.c: Likewise.
25198 * tree-vect-data-refs.c: Likewise.
25199 * tree-vect-generic.c: Likewise.
25200 * tree-vect-loop-manip.c: Likewise.
25201 * tree-vect-loop.c: Likewise.
25202 * tree-vect-patterns.c: Likewise.
25203 * tree-vect-slp.c: Likewise.
25204 * tree-vect-stmts.c: Likewise.
25205 * tree-vectorizer.c: Likewise.
25206 * tree-vrp.c: Likewise.
25207 * tree.c: Likewise.
25208 * tsan.c: Likewise.
25209 * ubsan.c: Likewise.
25210 * valtrack.c: Likewise.
25211 * value-prof.c: Likewise.
25212 * var-tracking.c: Likewise.
25213 * varasm.c: Likewise.
25214 * varpool.c: Likewise.
25215 * vmsdbgout.c: Likewise.
25216 * vtable-verify.c: Likewise.
25217 * web.c: Likewise.
25218 * wide-int.cc: Likewise.
25219 * xcoffout.c: Likewise.
25220 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25221 * common/common-targhooks.c: Likewise.
25222 * config/aarch64/aarch64-builtins.c: Likewise.
25223 * config/aarch64/aarch64.c: Likewise.
25224 * config/alpha/alpha.c: Likewise.
25225 * config/arc/arc.c: Likewise.
25226 * config/arm/aarch-common.c: Likewise.
25227 * config/arm/arm-builtins.c: Likewise.
25228 * config/arm/arm-c.c: Likewise.
25229 * config/arm/arm.c: Likewise.
25230 * config/avr/avr-c.c: Likewise.
25231 * config/avr/avr-log.c: Likewise.
25232 * config/avr/avr.c: Likewise.
25233 * config/bfin/bfin.c: Likewise.
25234 * config/c6x/c6x.c: Likewise.
25235 * config/cr16/cr16.c: Likewise.
25236 * config/cris/cris.c: Likewise.
25237 * config/darwin-c.c: Likewise.
25238 * config/darwin.c: Likewise.
25239 * config/default-c.c: Likewise.
25240 * config/epiphany/epiphany.c: Likewise.
25241 * config/epiphany/mode-switch-use.c: Likewise.
25242 * config/epiphany/resolve-sw-modes.c: Likewise.
25243 * config/fr30/fr30.c: Likewise.
25244 * config/frv/frv.c: Likewise.
25245 * config/ft32/ft32.c: Likewise.
25246 * config/glibc-c.c: Likewise.
25247 * config/h8300/h8300.c: Likewise.
25248 * config/i386/i386-c.c: Likewise.
25249 * config/i386/i386.c: Likewise.
25250 * config/i386/msformat-c.c: Likewise.
25251 * config/i386/winnt-cxx.c: Likewise.
25252 * config/i386/winnt-stubs.c: Likewise.
25253 * config/i386/winnt.c: Likewise.
25254 * config/ia64/ia64-c.c: Likewise.
25255 * config/ia64/ia64.c: Likewise.
25256 * config/iq2000/iq2000.c: Likewise.
25257 * config/lm32/lm32.c: Likewise.
25258 * config/m32c/m32c-pragma.c: Likewise.
25259 * config/m32c/m32c.c: Likewise.
25260 * config/m32r/m32r.c: Likewise.
25261 * config/m68k/m68k.c: Likewise.
25262 * config/mcore/mcore.c: Likewise.
25263 * config/mep/mep-pragma.c: Likewise.
25264 * config/mep/mep.c: Likewise.
25265 * config/microblaze/microblaze-c.c: Likewise.
25266 * config/microblaze/microblaze.c: Likewise.
25267 * config/mips/mips.c: Likewise.
25268 * config/mmix/mmix.c: Likewise.
25269 * config/mn10300/mn10300.c: Likewise.
25270 * config/moxie/moxie.c: Likewise.
25271 * config/msp430/msp430-c.c: Likewise.
25272 * config/msp430/msp430.c: Likewise.
25273 * config/nds32/nds32-cost.c: Likewise.
25274 * config/nds32/nds32-fp-as-gp.c: Likewise.
25275 * config/nds32/nds32-intrinsic.c: Likewise.
25276 * config/nds32/nds32-isr.c: Likewise.
25277 * config/nds32/nds32-md-auxiliary.c: Likewise.
25278 * config/nds32/nds32-memory-manipulation.c: Likewise.
25279 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25280 * config/nds32/nds32-predicates.c: Likewise.
25281 * config/nds32/nds32.c: Likewise.
25282 * config/nios2/nios2.c: Likewise.
25283 * config/nvptx/nvptx.c: Likewise.
25284 * config/pa/pa.c: Likewise.
25285 * config/pdp11/pdp11.c: Likewise.
25286 * config/rl78/rl78-c.c: Likewise.
25287 * config/rl78/rl78.c: Likewise.
25288 * config/rs6000/rs6000-c.c: Likewise.
25289 * config/rs6000/rs6000.c: Likewise.
25290 * config/rx/rx.c: Likewise.
25291 * config/s390/s390-c.c: Likewise.
25292 * config/s390/s390.c: Likewise.
25293 * config/sh/sh-c.c: Likewise.
25294 * config/sh/sh-mem.cc: Likewise.
25295 * config/sh/sh.c: Likewise.
25296 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25297 * config/sh/sh_treg_combine.cc: Likewise.
25298 * config/sol2-c.c: Likewise.
25299 * config/sol2-cxx.c: Likewise.
25300 * config/sol2-stubs.c: Likewise.
25301 * config/sol2.c: Likewise.
25302 * config/sparc/sparc-c.c: Likewise.
25303 * config/sparc/sparc.c: Likewise.
25304 * config/spu/spu-c.c: Likewise.
25305 * config/spu/spu.c: Likewise.
25306 * config/stormy16/stormy16.c: Likewise.
25307 * config/tilegx/mul-tables.c: Likewise.
25308 * config/tilegx/tilegx-c.c: Likewise.
25309 * config/tilegx/tilegx.c: Likewise.
25310 * config/tilepro/mul-tables.c: Likewise.
25311 * config/tilepro/tilepro-c.c: Likewise.
25312 * config/tilepro/tilepro.c: Likewise.
25313 * config/v850/v850-c.c: Likewise.
25314 * config/v850/v850.c: Likewise.
25315 * config/vax/vax.c: Likewise.
25316 * config/visium/visium.c: Likewise.
25317 * config/vms/vms-c.c: Likewise.
25318 * config/vms/vms.c: Likewise.
25319 * config/vxworks.c: Likewise.
25320 * config/winnt-c.c: Likewise.
25321 * config/xtensa/xtensa.c: Likewise.
25322
25323 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
25324
25325 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25326 function.
25327 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25328
25329 2015-06-17 Richard Biener <rguenther@suse.de>
25330
25331 PR tree-optimization/66251
25332 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25333 stmts for SLP strided stores.
25334
25335 Revert
25336 2015-05-22 Richard Biener <rguenther@suse.de>
25337
25338 PR tree-optimization/66251
25339 * tree-vect-stmts.c (vectorizable_conversion): Properly
25340 set STMT_VINFO_VEC_STMT even for the SLP case.
25341
25342 2015-05-26 Michael Matz <matz@suse.de>
25343
25344 PR middle-end/66251
25345 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25346 STMT_VINFO_VEC_STMT, also with SLP.
25347
25348 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
25349
25350 PR target/56766
25351 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25352 (*avx_addsubv4df3_1s): Ditto.
25353 (*sse3_addsubv2df3_1): Ditto.
25354 (*sse3_addsubv2df3_1s): Ditto.
25355 (*avx_addsubv8sf3_1): Ditto.
25356 (*avx_addsubv8sf3_1s): Ditto.
25357 (*sse3_addsubv4sf3_1): Ditto.
25358 (*sse3_addsubv4sf3_1s): Ditto.
25359
25360 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
25361
25362 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25363 (SYSROOT_SUFFIX_SPEC): Update.
25364 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25365 (STARTFILE_PREFIX_SPEC): Update.
25366 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25367 (MULTILIB_REQUIRED): New.
25368 (MULTILIB_OSDIRNAMES): New.
25369 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25370 (MULTILIB_REQUIRED): New.
25371 (MULTILIB_OSDIRNAMES): New.
25372
25373 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
25374
25375 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25376 * config/aarch64/aarch64-options-extensions.def: Update "fP",
25377 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
25378 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25379 (AARCH64_FL_PAN): New.
25380 (AARCH64_FL_LOR): New.
25381 (AARCH64_FL_RDMA): New.
25382 (AARCH64_FL_FOR_ARCH8_1): New.
25383 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25384 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25385
25386 2015-06-16 Martin Liska <mliska@suse.cz>
25387
25388 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25389 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25390 guard.
25391
25392 2015-06-16 Richard Biener <rguenther@suse.de>
25393
25394 * tree-vect-stmts.c (vectorizable_store): Adjust.
25395 (vectorizable_load): Likewise.
25396 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25397 Simplify.
25398 (vect_create_data_ref_ptr): Likewise.
25399 (bump_vector_ptr): Adjust.
25400
25401 2015-06-16 Richard Biener <rguenther@suse.de>
25402
25403 * tree-vect-stmts.c (vectorizable_load): Properly start loads
25404 with the first element if this is grouped loads.
25405
25406 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
25407
25408 * config/arm/arm-protos.h (struct tune_params): Rename
25409 log_op_non_sc to log_op_non_short_circuit, and rename enum
25410 values to expand SC to SHORT_CIRCUIT.
25411 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
25412 to LOG_OP_NON_SHORT_CIRCUIT.
25413 (arm_fastmul_tune):Likewise
25414 (arm_strongarm_tune): Likewise.
25415 (arm_xscale_tune): Likewise.
25416 (arm_9e_tune): Likewise.
25417 (arm_marvell_pj4_tune): Likewise.
25418 (arm_v6t2_tune): Likewise.
25419 (arm_cortex_tune): Likewise.
25420 (arm_cortex_a8_tune): Likewise.
25421 (arm_cortex_a7_tune): Likewise.
25422 (arm_cortex_a15_tune): Likewise.
25423 (arm_cortex_a53_tune): Likewise.
25424 (arm_cortex_a57_tune): Likewise.
25425 (arm_xgene1_tune): Likewise.
25426 (arm_cortex_a5_tune): Likewise.
25427 (arm_cortex_a9_tune): Likewise.
25428 (arm_cortex_a12_tune): Likewise.
25429 (arm_v7m_tune): Likewise.
25430 (arm_cortex_m7_tune): Likewise.
25431 (arm_v6m_tune): Likewise.
25432 (arm_fa726te_tune): Likewise.
25433
25434 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
25435
25436 * altivec.md: Delete UNSPEC_VMLADDUHM.
25437 (mulv4si3_p8): New pattern.
25438 (mulv4si3): Use it for POWER8.
25439 (mulv8hi3): Use vmladduhm with zero addend.
25440 (altivec_vmladduhm): Descriptive RTL.
25441
25442 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
25443
25444 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
25445 to use neon_move instead of mov_imm.
25446 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
25447 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
25448
25449 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
25450 aarch64_float_const_zero_rtx_p check before TFmode check.
25451 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
25452 an fp zero.
25453 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
25454 code and attributes to match. Change condition from register_operand
25455 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
25456 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
25457 to store2.
25458
25459 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
25460
25461 PR debug/66535
25462 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
25463 there is no parent.
25464
25465 2015-06-14 Shiva Chen <shiva0217@gmail.com>
25466
25467 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
25468 HOST_WIDE_INT parameter.
25469
25470 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
25471
25472 PR ipa/66181
25473 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
25474 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
25475 TYPE_NO_FORCE_BLK.
25476 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
25477
25478 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
25479
25480 * rtl.h (classify_insn): Declare.
25481 * emit-rtl.c (classify_insn): Move to...
25482 * rtl.c: ...here and add generator support.
25483 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
25484 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
25485 * genemit.c (gen_emit_seq): New function.
25486 (gen_expand, gen_split): Use it.
25487
25488 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
25489
25490 * tree.c (make_vector_stat): Fix comment to state that the
25491 function returns a VECTOR_CST.
25492
25493 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
25494
25495 * gensupport.h (add_implicit_parallel): Declare.
25496 * genrecog.c (add_implicit_parallel): Move to...
25497 * gensupport.c (add_implicit_parallel): ...here.
25498 (process_one_cond_exec): Use it.
25499 * genemit.c (gen_insn): Likewise.
25500
25501 2015-06-13 Iain Sandoe <iain@codesourcery.com>
25502
25503 PR bootstrap/66448
25504 * passes.c (rest_of_decl_compilation): Do not register globals for
25505 early debug if they are declared in built-ins.
25506
25507 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
25508
25509 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
25510
25511 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25512
25513 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
25514 manually swapping.
25515 (noce_try_cmove_arith): Likewise.
25516 (noce_get_alt_condition): Likewise.
25517
25518 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25519
25520 * common/config/i386/i386-common.c
25521 (OPTION_MASK_ISA_MWAITX_SET): New.
25522 (ix86_handle_option): Handle mwaitx.
25523 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
25524 (x86_64-*-*): Likewise.
25525 * config/i386/mwaitxintrin.h: New header.
25526 * config/i386/cpuid.h (bit_MWAITX): Define.
25527 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25528 MWAITX support.
25529 * config/i386/i386.opt (mwaitx): New.
25530 * config/i386/i386-builtin-types.def
25531 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
25532 * config/i386/i386-c.c: Define __MWAITX__ if needed.
25533 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
25534 (PTA_MWAITX): New.
25535 (ix86_option_override_internal): Handle new option.
25536 (processor_alias_table): Added PTA_MWAITX.
25537 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
25538 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
25539 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
25540 IX86_BUILTIN_MONITORX built-ins.
25541 * config/i386/i386.h (TARGET_MWAITX): New.
25542 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
25543 UNSPEC_MONITORX.
25544 (mwaitx): New pattern.
25545 (monitorx_<mode>): New pattern.
25546 * config/i386/x86intrin.h: Include mwaitxintrin.h.
25547 * doc/extend.texi: Document monitorx and mwaitx builtins.
25548 * doc/invoke.texi: Document -mmwaitx option.
25549
25550 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
25551
25552 * emit-rtl.c (need_atomic_barrier_p): Mask model with
25553 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
25554
25555 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25556
25557 * dbxout.c (xcoff_debug_hooks): Provide a function for
25558 register_main_translation_unit hook.
25559
25560 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25561
25562 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
25563 variants cases from switch.
25564 (rs6000_post_atomic_barrier): Same.
25565 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
25566 (rs6000_expand_atomic_exchange): Same.
25567 (rs6000_expand_atomic_op): Same.
25568 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
25569 SYNC variants cases from switch.
25570 (atomic_load): Same.
25571 (atomic_store): Same.
25572
25573 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
25574
25575 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
25576 CONST_INT for goto.
25577
25578 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
25579
25580 PR bootstrap/66448
25581 * dwarf2out.c (check_die): Check for common duplicate attributes.
25582 (add_location_or_const_value_attribute): Do not add duplicate
25583 attributes.
25584 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
25585 time around.
25586 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
25587 (gen_type_die_with_usage): Call check_die.
25588 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
25589
25590 2015-06-11 Jason Merrill <jason@redhat.com>
25591
25592 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
25593 dies.
25594
25595 2015-06-11 Marek Polacek <polacek@redhat.com>
25596
25597 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
25598
25599 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
25600
25601 PR bootstrap/66252
25602 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
25603 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
25604 (*addx_extend_sp32): Fix pasto.
25605 (*subx_extend): Rename into...
25606 (*subx_extend_sp32): ...this.
25607 (*adddi3_extend_sp32): Add earlyclobber.
25608 (*subdi3_insn_sp32): Likewise.
25609 (*subdi3_extend_sp32): Likewise.
25610 (*and_not_di_sp32): Likewise.
25611 (*or_not_di_sp32): Likewise.
25612 (*xor_not_di_sp32): Likewise.
25613 (*negdi2_sp32): Likewise.
25614 (*one_cmpldi2_sp32): Likewise.
25615
25616 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
25617
25618 * debug.h (struct gcc_debug_hooks): Add a
25619 register_main_translation_unit hook.
25620 * debug.c (do_nothing_debug_hooks): Provide a function for this
25621 new hook.
25622 * dbxout.c (dbx_debug_hooks): Likewise.
25623 * sdbout.c (sdb_debug_hooks): Likewise.
25624 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25625 * dwarf2out.c (main_translation_unit): New global variable.
25626 (dwarf2out_register_main_translation_unit): New function
25627 implementing the new hook.
25628 (dwarf2_debug_hooks): Assign
25629 dwarf2out_register_main_translation_unit to this new hook.
25630 (dwarf2out_init): Associate any main translation unit to
25631 comp_unit_die ().
25632
25633 2015-06-11 Marek Polacek <polacek@redhat.com>
25634
25635 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
25636
25637 2015-06-11 Marek Polacek <polacek@redhat.com>
25638
25639 * match.pd: Use single_use throughout.
25640
25641 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25642
25643 * config/arm/arm.c (arm_option_params_internal): When optimising
25644 for speed set max_insns_skipped when arm_restrict_it.
25645
25646 2015-06-11 Christian Bruel <christian.bruel@st.com>
25647
25648 PR target/52144
25649 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
25650 macros in ...
25651 (arm_cpu_builtins): New function.
25652 (arm_pragma_target_parse): Call arm_cpu_builtins.
25653 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
25654 (arm_register_target_pragmas): Likewise.
25655 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
25656 Call arm_register_target_pragmas.
25657 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
25658 (arm_pragma_target_parse): Likewise.
25659
25660 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
25661
25662 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
25663 of the second operand.
25664
25665 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
25666
25667 PR target/66473
25668 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
25669 to prepare mask operand for AVX512 modes.
25670
25671 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25672
25673 PR target/66474
25674 * doc/md.texi (Machine Constraints): Document that on the PowerPC
25675 if you use a constraint that targets a VSX register, you must use
25676 %x<n> in the template.
25677
25678 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
25679
25680 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
25681 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
25682 (define_insn "trap"): New definition.
25683
25684 2015-06-10 Richard Biener <rguenther@suse.de>
25685
25686 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
25687 out from ...
25688 (vect_supported_load_permutation_p): ... here. Handle
25689 supportable permutations in reductions.
25690 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
25691 for vectorizing strided group loads.
25692
25693 2015-06-10 Jakub Jelinek <jakub@redhat.com>
25694
25695 PR target/66470
25696 * config/i386/i386.c (ix86_split_long_move): For collisions
25697 involving direct tls segment refs, move the UNSPEC_TP possibly
25698 wrapped in ZERO_EXTEND out of the address for lea, to each of
25699 the memory loads.
25700
25701 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25702
25703 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
25704 dmb sy. Adjust tabs.
25705
25706 2015-06-10 Tom de Vries <tom@codesourcery.com>
25707
25708 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
25709
25710 2015-06-10 Martin Liska <mliska@suse.cz>
25711
25712 PR bootstrap/66471
25713 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
25714 all enum values in mem_alloc_origin.
25715 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
25716 name.
25717 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
25718 * bitmap.c (bitmap_register): Likewise.
25719 (dump_bitmap_statistics): Likewise.
25720 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
25721 (ggc_record_overhead): Likewise.
25722 * hash-map.h: Likewise.
25723 * hash-set.h: Likewise.
25724 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
25725 * hash-table.h: Likewise.
25726 * vec.c (vec_prefix::register_overhead): Likewise.
25727 (vec_prefix::release_overhead): Likewise.
25728 (dump_vec_loc_statistics): Likewise.
25729
25730 2015-06-09 Christian Bruel <christian.bruel@st.com>
25731
25732 PR target/52144
25733 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
25734 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
25735 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
25736 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
25737 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
25738 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
25739 (arm_valid_target_attribute_p): Likewise.
25740 (arm_set_current_function, arm_can_inline_p): Likewise.
25741 (arm_valid_target_attribute_rec): Likewise.
25742 (arm_previous_fndecl): New variable.
25743 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
25744 (TARGET_CAN_INLINE_P): Define.
25745 (arm_asm_trampoline_template): Emit mode.
25746 (arm_file_start): Don't set unified syntax.
25747 (arm_declare_function_name): Set unified syntax and mode.
25748 (arm_option_override): Init target_option_default_node.
25749 and target_option_current_node.
25750 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
25751 (*call_symbol): Likewise.
25752 * doc/extend.texi: Document ARM/Thumb target attribute.
25753 * doc/invoke.texi: Likewise.
25754
25755 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25756
25757 Revert:
25758 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25759 PR rtl-optimization/64164
25760 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25761 * tree-ssa-copyrename.c: Removed.
25762 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25763 -ftree-coalesce-vars.
25764 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25765 * common.opt (ftree-copyrename): Ignore.
25766 (ftree-coalesce-inlined-vars): Likewise.
25767 * doc/invoke.texi: Remove the ignored options above.
25768 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25769 * tree-ssa-coalesce.h: ... here.
25770 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25771 headers required by it.
25772 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25773 across variables when flag_tree_coalesce_vars. Check register
25774 use and promoted modes to allow coalescing. Moved to
25775 tree-ssa-coalesce.c.
25776 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25777 with its member functions to tree-ssa-coalesce.c.
25778 (var_map_base_init): Likewise. Renamed to
25779 compute_samebase_partition_bases.
25780 (partition_view_normal): Drop want_bases parameter.
25781 (partition_view_bitmap): Likewise.
25782 * tree-ssa-live.h: Adjust declarations.
25783 * tree-ssa-coalesce.c: Include explow.h.
25784 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25785 default defs at the entry point.
25786 (dump_part_var_map): New.
25787 (compute_optimized_partition_bases): New, called by...
25788 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25789 of compute_samebase_partition_bases. Adjust.
25790 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25791 * cfgexpand.c (leader_merge): New.
25792 (get_rtl_for_parm_ssa_default_def): New.
25793 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25794 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25795 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25796 redundant MEM attr setting.
25797 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25798 from...
25799 (expand_one_stack_var): ... this. New wrapper to check and
25800 skip already expanded SSA partitions.
25801 (record_alignment_for_reg_var): New, factored out of...
25802 (expand_one_var): ... this.
25803 (expand_one_ssa_partition): New.
25804 (adjust_one_expanded_partition_var): New.
25805 (expand_one_register_var): Check and skip already expanded SSA
25806 partitions.
25807 (expand_used_vars): Don't create DECLs for anonymous SSA
25808 names. Expand all SSA partitions, then adjust all SSA names.
25809 (pass::execute): Replace the loops that set
25810 SA.partition_to_pseudo from partition leaders and cleared
25811 DECL_RTL for multi-location variables, and that which used to
25812 rename vars and set attrs, with one that clears DECL_RTL and
25813 checks that PARMs and RESULTs default_defs match DECL_RTL.
25814 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25815 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25816 * explow.c (promote_ssa_mode): New.
25817 * explow.h (promote_ssa_mode): Declare.
25818 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25819 * function.c: Include cfgexpand.h.
25820 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25821 (use_register_for_parm_decl): Wrapper for the above to
25822 special-case the result_ptr.
25823 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25824 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25825 multiple locations.
25826 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25827 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25828 (assign_parm_setup_block): Prefer SSA-assigned location.
25829 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25830 if stack_parm is NULL.
25831 (assign_parm_setup_stack): Prefer SSA-assigned location.
25832 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25833 rtl before testing for pointer bounds. Special-case result_ptr.
25834 (expand_function_start): Maybe reset DECL_RTL of result.
25835 Prefer SSA-assigned location for result and static chain.
25836 Factor out DECL_RESULT and SET_DECL_RTL.
25837 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25838 anonymous SSA names. Use promote_ssa_mode.
25839 (get_temp_reg): Likewise.
25840 (remove_ssa_form): Adjust.
25841 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25842 and get its reg_usage for reg invalidation.
25843 (compute_bb_dataflow): Pass it insn.
25844 (emit_notes_in_bb): Likewise.
25845 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25846 fail assert on conversion between unsigned types.
25847
25848 2015-06-09 Tom de Vries <tom@codesourcery.com>
25849
25850 PR tree-optimization/65460
25851 * omp-low.c (expand_omp_target): Set parallelized_function on
25852 cgraph_node for child_fn.
25853
25854 2015-06-09 Tom de Vries <tom@codesourcery.com>
25855
25856 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
25857 parallelized_function before add_new_function.
25858
25859 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
25860
25861 * gcc-plugin.h: Move decls to plugin.h and include it.
25862 * plugin.h: Relocate decls from gcc-plugin.h
25863 * ggc-page.c: Include required header files.
25864 * passes.c: Likewise.
25865 * cgraphunit.c: Likewise.
25866
25867 2015-06-09 Tom de Vries <tom@codesourcery.com>
25868
25869 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
25870
25871 2015-06-09 Jason Merrill <jason@redhat.com>
25872
25873 PR bootstrap/66448
25874 * toplev.c (check_global_declaration): Don't warn about a clone.
25875
25876 2015-06-09 Marek Polacek <polacek@redhat.com>
25877
25878 PR tree-optimization/66299
25879 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
25880 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
25881 patterns.
25882
25883 2015-06-09 Richard Biener <rguenther@suse.de>
25884
25885 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
25886 (vect_analyze_slp_instance): Instead do not falsely drop
25887 load permutations.
25888
25889 2015-06-09 Richard Biener <rguenther@suse.de>
25890
25891 PR middle-end/66423
25892 * match.pd: Handle A % (unsigned)(1 << B).
25893
25894 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
25895
25896 * varasm.c (output_object_block_htab): Remove.
25897 (output_object_block_compare): New.
25898 (output_object_blocks): Sort named object_blocks before outputting
25899 them.
25900
25901 2015-06-09 Richard Biener <rguenther@suse.de>
25902
25903 PR tree-optimization/66419
25904 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
25905 consider GROUP_GAP when detecting a perfect subchain.
25906
25907 2015-06-09 Nick Clifton <nickc@redhat.com>
25908
25909 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
25910 place read only data in the .frodata section.
25911
25912 2015-06-09 Shiva Chen <shiva0217@gmail.com>
25913
25914 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
25915 (atomic_store<mode>): Likewise.
25916
25917 2015-06-09 Richard Biener <rguenther@suse.de>
25918
25919 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
25920
25921 2015-06-09 Richard Biener <rguenther@suse.de>
25922
25923 PR middle-end/66413
25924 * tree-inline.c (insert_init_debug_bind): Unshare value.
25925
25926 2015-06-09 Richard Biener <rguenther@suse.de>
25927
25928 PR tree-optimization/66396
25929 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
25930 Rename virtual operands.
25931
25932 2015-06-09 Tom de Vries <tom@codesourcery.com>
25933
25934 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
25935 always return false.
25936
25937 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25938
25939 PR rtl-optimization/64164
25940 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25941 * tree-ssa-copyrename.c: Removed.
25942 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25943 -ftree-coalesce-vars.
25944 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25945 * common.opt (ftree-copyrename): Ignore.
25946 (ftree-coalesce-inlined-vars): Likewise.
25947 * doc/invoke.texi: Remove the ignored options above.
25948 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25949 * tree-ssa-coalesce.h: ... here.
25950 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25951 headers required by it.
25952 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25953 across variables when flag_tree_coalesce_vars. Check register
25954 use and promoted modes to allow coalescing. Moved to
25955 tree-ssa-coalesce.c.
25956 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25957 with its member functions to tree-ssa-coalesce.c.
25958 (var_map_base_init): Likewise. Renamed to
25959 compute_samebase_partition_bases.
25960 (partition_view_normal): Drop want_bases parameter.
25961 (partition_view_bitmap): Likewise.
25962 * tree-ssa-live.h: Adjust declarations.
25963 * tree-ssa-coalesce.c: Include explow.h.
25964 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25965 default defs at the entry point.
25966 (dump_part_var_map): New.
25967 (compute_optimized_partition_bases): New, called by...
25968 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25969 of compute_samebase_partition_bases. Adjust.
25970 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25971 * cfgexpand.c (leader_merge): New.
25972 (get_rtl_for_parm_ssa_default_def): New.
25973 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25974 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25975 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25976 redundant MEM attr setting.
25977 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25978 from...
25979 (expand_one_stack_var): ... this. New wrapper to check and
25980 skip already expanded SSA partitions.
25981 (record_alignment_for_reg_var): New, factored out of...
25982 (expand_one_var): ... this.
25983 (expand_one_ssa_partition): New.
25984 (adjust_one_expanded_partition_var): New.
25985 (expand_one_register_var): Check and skip already expanded SSA
25986 partitions.
25987 (expand_used_vars): Don't create DECLs for anonymous SSA
25988 names. Expand all SSA partitions, then adjust all SSA names.
25989 (pass::execute): Replace the loops that set
25990 SA.partition_to_pseudo from partition leaders and cleared
25991 DECL_RTL for multi-location variables, and that which used to
25992 rename vars and set attrs, with one that clears DECL_RTL and
25993 checks that PARMs and RESULTs default_defs match DECL_RTL.
25994 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25995 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25996 * explow.c (promote_ssa_mode): New.
25997 * explow.h (promote_ssa_mode): Declare.
25998 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25999 * function.c: Include cfgexpand.h.
26000 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26001 (use_register_for_parm_decl): Wrapper for the above to
26002 special-case the result_ptr.
26003 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26004 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26005 multiple locations.
26006 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26007 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26008 (assign_parm_setup_block): Prefer SSA-assigned location.
26009 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26010 if stack_parm is NULL.
26011 (assign_parm_setup_stack): Prefer SSA-assigned location.
26012 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26013 rtl before testing for pointer bounds. Special-case result_ptr.
26014 (expand_function_start): Maybe reset DECL_RTL of result.
26015 Prefer SSA-assigned location for result and static chain.
26016 Factor out DECL_RESULT and SET_DECL_RTL.
26017 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26018 anonymous SSA names. Use promote_ssa_mode.
26019 (get_temp_reg): Likewise.
26020 (remove_ssa_form): Adjust.
26021 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26022 and get its reg_usage for reg invalidation.
26023 (compute_bb_dataflow): Pass it insn.
26024 (emit_notes_in_bb): Likewise.
26025 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26026 fail assert on conversion between unsigned types.
26027
26028 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26029
26030 PR debug/58315
26031 * tree-inline.c (reset_debug_binding): New.
26032 (reset_debug_bindings): Likewise.
26033 (expand_call_inline): Call it.
26034
26035 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26036
26037 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26038 TYPE_STRING_FLAG.
26039
26040 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26041
26042 * lto-streamer-out.c (lto_output_location): Stream
26043 reserved locations correctly.
26044 * lto-streamer-in.c (lto_output_location): Likewise.
26045
26046 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
26047
26048 * coretypes.h: Include hash-table.h and hash-set.h for host files.
26049 * ggc.h: Don't include statistics.h>
26050 * hash-map.h: Remove all includes.
26051 * hash-set.h: Likewise.
26052 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26053 the include list. Remove <new>.
26054 * inchash.h: Remove all includes.
26055 * mem-stats.h: Likewise.
26056 * vec.h: No special processing for generators or ggc.
26057 * alias.c : Adjust include files.
26058 * alloc-pool.c : Likewise.
26059 * alloc-pool.h : Likewise.
26060 * asan.c : Likewise.
26061 * attribs.c : Likewise.
26062 * auto-inc-dec.c : Likewise.
26063 * auto-profile.c : Likewise.
26064 * bb-reorder.c : Likewise.
26065 * bitmap.c : Likewise.
26066 * bitmap.h : Likewise.
26067 * bt-load.c : Likewise.
26068 * builtins.c : Likewise.
26069 * caller-save.c : Likewise.
26070 * calls.c : Likewise.
26071 * ccmp.c : Likewise.
26072 * cfg.c : Likewise.
26073 * cfganal.c : Likewise.
26074 * cfgbuild.c : Likewise.
26075 * cfgcleanup.c : Likewise.
26076 * cfgexpand.c : Likewise.
26077 * cfghooks.c : Likewise.
26078 * cfgloop.c : Likewise.
26079 * cfgloop.h : Likewise.
26080 * cfgloopanal.c : Likewise.
26081 * cfgloopmanip.c : Likewise.
26082 * cfgrtl.c : Likewise.
26083 * cgraph.c : Likewise.
26084 * cgraphbuild.c : Likewise.
26085 * cgraphclones.c : Likewise.
26086 * cgraphunit.c : Likewise.
26087 * cilk-common.c : Likewise.
26088 * combine-stack-adj.c : Likewise.
26089 * combine.c : Likewise.
26090 * compare-elim.c : Likewise.
26091 * context.c : Likewise.
26092 * convert.c : Likewise.
26093 * coverage.c : Likewise.
26094 * cppbuiltin.c : Likewise.
26095 * cprop.c : Likewise.
26096 * cse.c : Likewise.
26097 * cselib.c : Likewise.
26098 * data-streamer-in.c : Likewise.
26099 * data-streamer-out.c : Likewise.
26100 * data-streamer.c : Likewise.
26101 * data-streamer.h : Likewise.
26102 * dbxout.c : Likewise.
26103 * dce.c : Likewise.
26104 * ddg.c : Likewise.
26105 * debug.c : Likewise.
26106 * df-core.c : Likewise.
26107 * df-problems.c : Likewise.
26108 * df-scan.c : Likewise.
26109 * df.h : Likewise.
26110 * dfp.c : Likewise.
26111 * dojump.c : Likewise.
26112 * dominance.c : Likewise.
26113 * domwalk.c : Likewise.
26114 * double-int.c : Likewise.
26115 * dse.c : Likewise.
26116 * dumpfile.c : Likewise.
26117 * dwarf2asm.c : Likewise.
26118 * dwarf2cfi.c : Likewise.
26119 * dwarf2out.c : Likewise.
26120 * emit-rtl.c : Likewise.
26121 * et-forest.c : Likewise.
26122 * except.c : Likewise.
26123 * except.h : Likewise.
26124 * explow.c : Likewise.
26125 * expmed.c : Likewise.
26126 * expr.c : Likewise.
26127 * final.c : Likewise.
26128 * fixed-value.c : Likewise.
26129 * fold-const.c : Likewise.
26130 * function.c : Likewise.
26131 * fwprop.c : Likewise.
26132 * gcc-plugin.h : Likewise.
26133 * gcc.c : Likewise.
26134 * gcse-common.c : Likewise.
26135 * gcse.c : Likewise.
26136 * genattrtab.c : Likewise.
26137 * genautomata.c : Likewise.
26138 * genconditions.c : Likewise.
26139 * genemit.c : Likewise.
26140 * generic-match-head.c : Likewise.
26141 * genextract.c : Likewise.
26142 * gengtype-state.c : Likewise.
26143 * gengtype.c : Likewise.
26144 * genhooks.c : Likewise.
26145 * genmatch.c : Likewise.
26146 * genmodes.c : Likewise.
26147 * genrecog.c : Likewise.
26148 * gensupport.c : Likewise.
26149 * ggc-common.c : Likewise.
26150 * ggc-internal.h : Likewise.
26151 * ggc-none.c : Likewise.
26152 * ggc-page.c : Likewise.
26153 * gimple-builder.c : Likewise.
26154 * gimple-expr.c : Likewise.
26155 * gimple-fold.c : Likewise.
26156 * gimple-iterator.c : Likewise.
26157 * gimple-low.c : Likewise.
26158 * gimple-match-head.c : Likewise.
26159 * gimple-pretty-print.c : Likewise.
26160 * gimple-ssa-isolate-paths.c : Likewise.
26161 * gimple-ssa-strength-reduction.c : Likewise.
26162 * gimple-ssa.h : Likewise.
26163 * gimple-streamer-in.c : Likewise.
26164 * gimple-streamer-out.c : Likewise.
26165 * gimple-streamer.h : Likewise.
26166 * gimple-walk.c : Likewise.
26167 * gimple.c : Likewise.
26168 * gimplify-me.c : Likewise.
26169 * gimplify.c : Likewise.
26170 * godump.c : Likewise.
26171 * graph.c : Likewise.
26172 * graphds.c : Likewise.
26173 * graphite-blocking.c : Likewise.
26174 * graphite-dependences.c : Likewise.
26175 * graphite-interchange.c : Likewise.
26176 * graphite-isl-ast-to-gimple.c : Likewise.
26177 * graphite-optimize-isl.c : Likewise.
26178 * graphite-poly.c : Likewise.
26179 * graphite-scop-detection.c : Likewise.
26180 * graphite-sese-to-poly.c : Likewise.
26181 * graphite.c : Likewise.
26182 * haifa-sched.c : Likewise.
26183 * hard-reg-set.h : Likewise.
26184 * hw-doloop.c : Likewise.
26185 * ifcvt.c : Likewise.
26186 * inchash.c : Likewise.
26187 * incpath.c : Likewise.
26188 * init-regs.c : Likewise.
26189 * input.c : Likewise.
26190 * internal-fn.c : Likewise.
26191 * ipa-chkp.c : Likewise.
26192 * ipa-comdats.c : Likewise.
26193 * ipa-cp.c : Likewise.
26194 * ipa-devirt.c : Likewise.
26195 * ipa-icf-gimple.c : Likewise.
26196 * ipa-icf.c : Likewise.
26197 * ipa-inline-analysis.c : Likewise.
26198 * ipa-inline-transform.c : Likewise.
26199 * ipa-inline.c : Likewise.
26200 * ipa-polymorphic-call.c : Likewise.
26201 * ipa-profile.c : Likewise.
26202 * ipa-prop.c : Likewise.
26203 * ipa-pure-const.c : Likewise.
26204 * ipa-ref.c : Likewise.
26205 * ipa-reference.c : Likewise.
26206 * ipa-split.c : Likewise.
26207 * ipa-utils.c : Likewise.
26208 * ipa-visibility.c : Likewise.
26209 * ipa.c : Likewise.
26210 * ira-build.c : Likewise.
26211 * ira-color.c : Likewise.
26212 * ira-conflicts.c : Likewise.
26213 * ira-costs.c : Likewise.
26214 * ira-emit.c : Likewise.
26215 * ira-lives.c : Likewise.
26216 * ira.c : Likewise.
26217 * jump.c : Likewise.
26218 * langhooks.c : Likewise.
26219 * lcm.c : Likewise.
26220 * libfuncs.h : Likewise.
26221 * lists.c : Likewise.
26222 * loop-doloop.c : Likewise.
26223 * loop-init.c : Likewise.
26224 * loop-invariant.c : Likewise.
26225 * loop-iv.c : Likewise.
26226 * loop-unroll.c : Likewise.
26227 * lower-subreg.c : Likewise.
26228 * lra-assigns.c : Likewise.
26229 * lra-coalesce.c : Likewise.
26230 * lra-constraints.c : Likewise.
26231 * lra-eliminations.c : Likewise.
26232 * lra-lives.c : Likewise.
26233 * lra-remat.c : Likewise.
26234 * lra-spills.c : Likewise.
26235 * lra.c : Likewise.
26236 * lto-cgraph.c : Likewise.
26237 * lto-compress.c : Likewise.
26238 * lto-opts.c : Likewise.
26239 * lto-section-in.c : Likewise.
26240 * lto-section-out.c : Likewise.
26241 * lto-streamer-in.c : Likewise.
26242 * lto-streamer-out.c : Likewise.
26243 * lto-streamer.c : Likewise.
26244 * lto-streamer.h : Likewise.
26245 * mcf.c : Likewise.
26246 * mode-switching.c : Likewise.
26247 * modulo-sched.c : Likewise.
26248 * omega.c : Likewise.
26249 * omp-low.c : Likewise.
26250 * optabs.c : Likewise.
26251 * opts-global.c : Likewise.
26252 * opts.h : Likewise.
26253 * passes.c : Likewise.
26254 * plugin.c : Likewise.
26255 * postreload-gcse.c : Likewise.
26256 * postreload.c : Likewise.
26257 * predict.c : Likewise.
26258 * print-rtl.c : Likewise.
26259 * print-tree.c : Likewise.
26260 * profile.c : Likewise.
26261 * read-md.c : Likewise.
26262 * read-md.h : Likewise.
26263 * read-rtl.c : Likewise.
26264 * real.c : Likewise.
26265 * realmpfr.c : Likewise.
26266 * recog.c : Likewise.
26267 * ree.c : Likewise.
26268 * reg-stack.c : Likewise.
26269 * regcprop.c : Likewise.
26270 * reginfo.c : Likewise.
26271 * regrename.c : Likewise.
26272 * regstat.c : Likewise.
26273 * reload.c : Likewise.
26274 * reload1.c : Likewise.
26275 * reorg.c : Likewise.
26276 * resource.c : Likewise.
26277 * rtl-chkp.c : Likewise.
26278 * rtl.c : Likewise.
26279 * rtl.h : Likewise.
26280 * rtlanal.c : Likewise.
26281 * rtlhash.c : Likewise.
26282 * rtlhash.h : Likewise.
26283 * rtlhooks.c : Likewise.
26284 * sanopt.c : Likewise.
26285 * sched-deps.c : Likewise.
26286 * sched-ebb.c : Likewise.
26287 * sched-rgn.c : Likewise.
26288 * sched-vis.c : Likewise.
26289 * sdbout.c : Likewise.
26290 * sel-sched-dump.c : Likewise.
26291 * sel-sched-ir.c : Likewise.
26292 * sel-sched-ir.h : Likewise.
26293 * sel-sched.c : Likewise.
26294 * sese.c : Likewise.
26295 * shrink-wrap.c : Likewise.
26296 * shrink-wrap.h : Likewise.
26297 * simplify-rtx.c : Likewise.
26298 * stack-ptr-mod.c : Likewise.
26299 * statistics.c : Likewise.
26300 * stmt.c : Likewise.
26301 * stor-layout.c : Likewise.
26302 * store-motion.c : Likewise.
26303 * stringpool.c : Likewise.
26304 * symtab.c : Likewise.
26305 * target-globals.c : Likewise.
26306 * targhooks.c : Likewise.
26307 * tlink.c : Likewise.
26308 * toplev.c : Likewise.
26309 * tracer.c : Likewise.
26310 * trans-mem.c : Likewise.
26311 * tree-affine.c : Likewise.
26312 * tree-affine.h : Likewise.
26313 * tree-browser.c : Likewise.
26314 * tree-call-cdce.c : Likewise.
26315 * tree-cfg.c : Likewise.
26316 * tree-cfgcleanup.c : Likewise.
26317 * tree-chkp-opt.c : Likewise.
26318 * tree-chkp.c : Likewise.
26319 * tree-chrec.c : Likewise.
26320 * tree-complex.c : Likewise.
26321 * tree-data-ref.c : Likewise.
26322 * tree-dfa.c : Likewise.
26323 * tree-diagnostic.c : Likewise.
26324 * tree-dump.c : Likewise.
26325 * tree-eh.c : Likewise.
26326 * tree-eh.h : Likewise.
26327 * tree-emutls.c : Likewise.
26328 * tree-hasher.h : Likewise.
26329 * tree-if-conv.c : Likewise.
26330 * tree-inline.c : Likewise.
26331 * tree-inline.h : Likewise.
26332 * tree-into-ssa.c : Likewise.
26333 * tree-iterator.c : Likewise.
26334 * tree-loop-distribution.c : Likewise.
26335 * tree-nested.c : Likewise.
26336 * tree-nrv.c : Likewise.
26337 * tree-object-size.c : Likewise.
26338 * tree-outof-ssa.c : Likewise.
26339 * tree-parloops.c : Likewise.
26340 * tree-phinodes.c : Likewise.
26341 * tree-predcom.c : Likewise.
26342 * tree-pretty-print.c : Likewise.
26343 * tree-profile.c : Likewise.
26344 * tree-scalar-evolution.c : Likewise.
26345 * tree-sra.c : Likewise.
26346 * tree-ssa-address.c : Likewise.
26347 * tree-ssa-alias.c : Likewise.
26348 * tree-ssa-ccp.c : Likewise.
26349 * tree-ssa-coalesce.c : Likewise.
26350 * tree-ssa-copy.c : Likewise.
26351 * tree-ssa-copyrename.c : Likewise.
26352 * tree-ssa-dce.c : Likewise.
26353 * tree-ssa-dom.c : Likewise.
26354 * tree-ssa-dse.c : Likewise.
26355 * tree-ssa-forwprop.c : Likewise.
26356 * tree-ssa-ifcombine.c : Likewise.
26357 * tree-ssa-live.c : Likewise.
26358 * tree-ssa-loop-ch.c : Likewise.
26359 * tree-ssa-loop-im.c : Likewise.
26360 * tree-ssa-loop-ivcanon.c : Likewise.
26361 * tree-ssa-loop-ivopts.c : Likewise.
26362 * tree-ssa-loop-manip.c : Likewise.
26363 * tree-ssa-loop-niter.c : Likewise.
26364 * tree-ssa-loop-prefetch.c : Likewise.
26365 * tree-ssa-loop-unswitch.c : Likewise.
26366 * tree-ssa-loop.c : Likewise.
26367 * tree-ssa-math-opts.c : Likewise.
26368 * tree-ssa-operands.c : Likewise.
26369 * tree-ssa-phiopt.c : Likewise.
26370 * tree-ssa-phiprop.c : Likewise.
26371 * tree-ssa-pre.c : Likewise.
26372 * tree-ssa-propagate.c : Likewise.
26373 * tree-ssa-reassoc.c : Likewise.
26374 * tree-ssa-sccvn.c : Likewise.
26375 * tree-ssa-scopedtables.c : Likewise.
26376 * tree-ssa-sink.c : Likewise.
26377 * tree-ssa-strlen.c : Likewise.
26378 * tree-ssa-structalias.c : Likewise.
26379 * tree-ssa-tail-merge.c : Likewise.
26380 * tree-ssa-ter.c : Likewise.
26381 * tree-ssa-threadedge.c : Likewise.
26382 * tree-ssa-threadupdate.c : Likewise.
26383 * tree-ssa-uncprop.c : Likewise.
26384 * tree-ssa-uninit.c : Likewise.
26385 * tree-ssa.c : Likewise.
26386 * tree-ssanames.c : Likewise.
26387 * tree-stdarg.c : Likewise.
26388 * tree-streamer-in.c : Likewise.
26389 * tree-streamer-out.c : Likewise.
26390 * tree-streamer.c : Likewise.
26391 * tree-streamer.h : Likewise.
26392 * tree-switch-conversion.c : Likewise.
26393 * tree-tailcall.c : Likewise.
26394 * tree-vect-data-refs.c : Likewise.
26395 * tree-vect-generic.c : Likewise.
26396 * tree-vect-loop-manip.c : Likewise.
26397 * tree-vect-loop.c : Likewise.
26398 * tree-vect-patterns.c : Likewise.
26399 * tree-vect-slp.c : Likewise.
26400 * tree-vect-stmts.c : Likewise.
26401 * tree-vectorizer.c : Likewise.
26402 * tree-vectorizer.h : Likewise.
26403 * tree-vrp.c : Likewise.
26404 * tree.c : Likewise.
26405 * tsan.c : Likewise.
26406 * ubsan.c : Likewise.
26407 * valtrack.c : Likewise.
26408 * valtrack.h : Likewise.
26409 * value-prof.c : Likewise.
26410 * var-tracking.c : Likewise.
26411 * varasm.c : Likewise.
26412 * varpool.c : Likewise.
26413 * vec.c: Likewise.
26414 * vmsdbgout.c : Likewise.
26415 * vtable-verify.c : Likewise.
26416 * vtable-verify.h : Likewise.
26417 * web.c : Likewise.
26418 * wide-int.cc : Likewise.
26419 * xcoffout.c : Likewise.
26420 * config/aarch64/aarch64-builtins.c : Likewise.
26421 * config/aarch64/aarch64.c : Likewise.
26422 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
26423 * config/alpha/alpha.c : Likewise.
26424 * config/arc/arc.c : Likewise.
26425 * config/arm/aarch-common.c : Likewise.
26426 * config/arm/arm-builtins.c : Likewise.
26427 * config/arm/arm-c.c : Likewise.
26428 * config/arm/arm.c : Likewise.
26429 * config/avr/avr-c.c : Likewise.
26430 * config/avr/avr-log.c : Likewise.
26431 * config/avr/avr.c : Likewise.
26432 * config/bfin/bfin.c : Likewise.
26433 * config/c6x/c6x.c : Likewise.
26434 * config/cr16/cr16.c : Likewise.
26435 * config/cris/cris.c : Likewise.
26436 * config/darwin-c.c : Likewise.
26437 * config/darwin.c : Likewise.
26438 * config/default-c.c : Likewise.
26439 * config/epiphany/epiphany.c : Likewise.
26440 * config/epiphany/mode-switch-use.c : Likewise.
26441 * config/epiphany/resolve-sw-modes.c : Likewise.
26442 * config/fr30/fr30.c : Likewise.
26443 * config/frv/frv.c : Likewise.
26444 * config/ft32/ft32.c : Likewise.
26445 * config/glibc-c.c : Likewise.
26446 * config/h8300/h8300.c : Likewise.
26447 * config/i386/i386-c.c : Likewise.
26448 * config/i386/i386.c : Likewise.
26449 * config/i386/msformat-c.c : Likewise.
26450 * config/i386/winnt-cxx.c : Likewise.
26451 * config/i386/winnt-stubs.c : Likewise.
26452 * config/i386/winnt.c : Likewise.
26453 * config/ia64/ia64-c.c : Likewise.
26454 * config/ia64/ia64.c : Likewise.
26455 * config/iq2000/iq2000.c : Likewise.
26456 * config/lm32/lm32.c : Likewise.
26457 * config/m32c/m32c-pragma.c : Likewise.
26458 * config/m32c/m32c.c : Likewise.
26459 * config/m32r/m32r.c : Likewise.
26460 * config/m68k/m68k.c : Likewise.
26461 * config/mcore/mcore.c : Likewise.
26462 * config/mep/mep-pragma.c : Likewise.
26463 * config/mep/mep.c : Likewise.
26464 * config/microblaze/microblaze-c.c : Likewise.
26465 * config/microblaze/microblaze.c : Likewise.
26466 * config/mips/mips.c : Likewise.
26467 * config/mmix/mmix.c : Likewise.
26468 * config/mn10300/mn10300.c : Likewise.
26469 * config/moxie/moxie.c : Likewise.
26470 * config/msp430/msp430-c.c : Likewise.
26471 * config/msp430/msp430.c : Likewise.
26472 * config/nds32/nds32-cost.c : Likewise.
26473 * config/nds32/nds32-fp-as-gp.c : Likewise.
26474 * config/nds32/nds32-intrinsic.c : Likewise.
26475 * config/nds32/nds32-isr.c : Likewise.
26476 * config/nds32/nds32-md-auxiliary.c : Likewise.
26477 * config/nds32/nds32-memory-manipulation.c : Likewise.
26478 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
26479 * config/nds32/nds32-predicates.c : Likewise.
26480 * config/nds32/nds32.c : Likewise.
26481 * config/nios2/nios2.c : Likewise.
26482 * config/nvptx/nvptx.c : Likewise.
26483 * config/pa/pa.c : Likewise.
26484 * config/pdp11/pdp11.c : Likewise.
26485 * config/rl78/rl78-c.c : Likewise.
26486 * config/rl78/rl78.c : Likewise.
26487 * config/rs6000/rs6000-c.c : Likewise.
26488 * config/rs6000/rs6000.c : Likewise.
26489 * config/rx/rx.c : Likewise.
26490 * config/s390/s390-c.c : Likewise.
26491 * config/s390/s390.c : Likewise.
26492 * config/sh/sh-c.c : Likewise.
26493 * config/sh/sh-mem.cc : Likewise.
26494 * config/sh/sh.c : Likewise.
26495 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
26496 * config/sh/sh_treg_combine.cc : Likewise.
26497 * config/sol2-c.c : Likewise.
26498 * config/sol2-cxx.c : Likewise.
26499 * config/sol2-stubs.c : Likewise.
26500 * config/sol2.c : Likewise.
26501 * config/sparc/sparc-c.c : Likewise.
26502 * config/sparc/sparc.c : Likewise.
26503 * config/spu/spu-c.c : Likewise.
26504 * config/spu/spu.c : Likewise.
26505 * config/stormy16/stormy16.c : Likewise.
26506 * config/tilegx/mul-tables.c : Likewise.
26507 * config/tilegx/tilegx-c.c : Likewise.
26508 * config/tilegx/tilegx.c : Likewise.
26509 * config/tilepro/mul-tables.c : Likewise.
26510 * config/tilepro/tilepro-c.c : Likewise.
26511 * config/tilepro/tilepro.c : Likewise.
26512 * config/v850/v850-c.c : Likewise.
26513 * config/v850/v850.c : Likewise.
26514 * config/vax/vax.c : Likewise.
26515 * config/visium/visium.c : Likewise.
26516 * config/vms/vms-c.c : Likewise.
26517 * config/vms/vms.c : Likewise.
26518 * config/vxworks.c : Likewise.
26519 * config/winnt-c.c : Likewise.
26520 * config/xtensa/xtensa.c : Likewise.
26521
26522 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26523
26524 PR lto/65378
26525 * ipa-utils.h (warn_types_mismatch): Update prototype.
26526 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
26527 parameters.
26528 (type_mismatch_p): New function.
26529 (warn_types_mismatch): Reorg to work better on non-C++ types.
26530 (odr_types_equivalent_p): Add loc1/loc2 parameters.
26531 (add_type_duplicate): Update.
26532
26533 2015-06-08 Tom de Vries <tom@codesourcery.com>
26534
26535 PR rtl-optimization/66444
26536 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
26537 call_used_regs.
26538
26539 2015-06-08 Richard Biener <rguenther@suse.de>
26540
26541 PR tree-optimization/66422
26542 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
26543 block after inserted gcc_unreachable.
26544
26545 2015-06-08 Nick Clifton <nickc@redhat.com>
26546
26547 * config/rx/rx.c (rx_function_value): Do not promote vector types.
26548 (rx_promote_function_mode): Likewise.
26549 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
26550
26551 2015-06-08 Jakub Jelinek <jakub@redhat.com>
26552
26553 * genattrtab.c (insn_alternatives): Change type from int *
26554 to uint64_t *.
26555 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
26556 (get_attr_value): Change type of num_alt to uint64_t.
26557 (compute_alternative_mask): Change return type from
26558 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
26559 (make_alternative_compare, mk_attr_alt): Change argument type
26560 from int to uint64_t.
26561 (simplify_test_exp): Change type of i from int to uint64_t.
26562 Shift ((uint64_t) 1) instead of 1 up.
26563 (main): Adjust oballocvec first argument from int to uint64_t.
26564 Shift ((uint64_t) 1) instead of 1 up.
26565
26566 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
26567
26568 PR other/65366
26569 * gdbhooks.py: Import sys.
26570 (intptr): New function. Replace int(...) by intptr(...).
26571
26572 2015-06-08 Richard Biener <rguenther@suse.de>
26573
26574 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
26575 adjustment for gaps at the end of a SLP load group properly.
26576 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
26577 all permutations we can generate.
26578 (vect_transform_slp_perm_load): Use the correct group-size.
26579
26580 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
26581
26582 * genmatch.c (expr::gen_transform): For conditions, guess the type
26583 from the second operand.
26584
26585 2015-06-08 Tom de Vries <tom@codesourcery.com>
26586
26587 PR tree-optimization/66442
26588 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
26589 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
26590 if the loop latch is not a singleton. Use
26591 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
26592
26593 2015-06-08 Marek Polacek <polacek@redhat.com>
26594
26595 PR sanitizer/66452
26596 * toplev.c (check_global_declaration): Don't warn about artificial
26597 decls.
26598
26599 2015-06-08 Tom de Vries <tom@codesourcery.com>
26600
26601 PR tree-optimization/66436
26602 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
26603 dump file.
26604 * gimplify.c: Add tree-dump.h include.
26605 (gimplify_function_tree): Dump function to gimple dump file.
26606 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
26607 dump file.
26608
26609 2015-06-08 Tom de Vries <tom@codesourcery.com>
26610
26611 PR tree-optimization/66435
26612 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
26613 function.
26614
26615 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
26616
26617 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
26618 of ptr_type_node to not be ptr_to_node.
26619 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
26620 TREE_TYPE of pointers.
26621 * gimple-expr.c (useless_type_conversion): Reorder the check for
26622 function pointers and TYPE_CANONICAL.
26623
26624 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
26625
26626 PR bootstrap/66319
26627 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
26628 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
26629 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
26630 later.
26631 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
26632 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
26633 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
26634 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
26635 and non iso if unix2003.
26636
26637 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
26638
26639 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
26640
26641 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
26642
26643 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
26644 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
26645 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
26646 except.c, final.c, function.c, gcse-common.c, genemit.c,
26647 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
26648 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
26649 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
26650 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
26651 more derived ones.
26652
26653 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
26654
26655 * combine.c (combine_split_insns): Remove cast.
26656 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
26657 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
26658 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
26659 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
26660 * genemit.c (gen_split): Change return type of generated functions to
26661 rtx_insn.
26662 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
26663 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
26664 gen_peephole2_* functions.
26665 (print_subroutine, main): Likewise.
26666 * recog.c (peephole2_optimize): Remove cast.
26667 (peep2_next_insn): Promote return type to rtx_insn.
26668 * recog.h (peep2_next_insn): Fix prototype.
26669 * rtl.h (try_split, split_insns): Likewise.
26670
26671 2015-06-06 DJ Delorie <dj@redhat.com>
26672
26673 * config/msp430/msp430.c (msp430_asm_integer): Support addition
26674 and subtraction too.
26675
26676 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
26677
26678 PR target/66410
26679 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
26680 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
26681 instead of Snd. Disparage Sid/z alternative with '^'.
26682
26683 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
26684
26685 * dwarf2out.c: Remove deferred_locations*.
26686 (dwarf2_debug_hooks): Add early_finish hook.
26687 Remove global_decl hook.
26688 Add early_global_decl and late_global_decl hook.
26689 New global early_dwarf.
26690 New structure set_early_dwarf.
26691 (output_die): Indicate whether a DIE was generated early
26692 when generating assembly with -dA.
26693 (struct limbo_die_struct): Document created_for field.
26694 Remove file_table_last_lookup.
26695 (remove_AT): Return TRUE if successful.
26696 (remove_child_TAG): Clear die_parent.
26697 (reparent_child): New function abstracted from...
26698 (splice_child_die): ...here.
26699 (new_die): ICE if a DIE ends up in limbo too late.
26700 (check_die): New.
26701 (defer_location): Remove.
26702 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
26703 (fill_variable_array_bounds): New.
26704 (decl_start_label): Call fill_variable_array_bounds.
26705 (gen_formal_parameter_die): Rewrite to reuse previously generated
26706 DIEs.
26707 (gen_subprogram_die): Same.
26708 (gen_variable_die): Same.
26709 (gen_const_die): Same.
26710 (gen_label_die): Same.
26711 (gen_lexical_block_die): Same.
26712 (decl_will_get_specification_p): New.
26713 (local_function_static): New.
26714 (gen_struct_or_union_type_die): Fill in variable-length fields.
26715 (gen_typedef_die): Fill in variable-length typedefs.
26716 (gen_tagged_type_die): Gracefully return on error_mark_node.
26717 Handle re-entrancy.
26718 (gen_type_die_with_usage): Handle variable-length types.
26719 Remove duplicate code for ARRAY_TYPE case.
26720 (process_scope_var): Only process imported modules during early
26721 dwarf.
26722 (dwarf2out_early_global_decl): New.
26723 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
26724 (dwarf2out_type_decl): Set early_dwarf while calling
26725 dwarf2out_decl.
26726 (dwarf2out_decl): Verify that we did not recreate a previously
26727 generated DIE.
26728 Do not return on DECL_EXTERNALs in VAR_DECLs.
26729 Abstract some code to local_function_static.
26730 (lookup_filename): Remove use of file_table_last_lookup.
26731 Gracefully exit on missing file_name.
26732 (dwarf2out_finish): Verify limbo list.
26733 Remove deferred_locations_list use.
26734 Move deferred_asm_name and limbo flushing to...
26735 (dwarf2out_early_finish): ...here. New.
26736 (dwarf2out_c_finalize): Remove set of deferred_location_list,
26737 deferred_asm_name, and file_table_last_lookup.
26738 * cgraph.h (referred_to_p): Add default argument.
26739 * cgraphunit.c (referred_to_p): Add and handle include_self
26740 argument.
26741 (analyze_functions): Add first_time argument.
26742 Call check_global_declaration for all symbols.
26743 Call late_global_decl for nodes for moribund nodes.
26744 (finalize_compilation_unit): Add new argument to
26745 analyze_functions.
26746 Call early_global_decl for functions.
26747 Call early_finish debug hook.
26748 * dbxout.c (dbxout_early_global_decl): New.
26749 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
26750 (dbx_debug_hooks): Add new hooks.
26751 (xcoff_debug_hooks): Same.
26752 * debug.c (do_nothing_debug_hooks): Add early_finish field.
26753 Add early and late debug hooks.
26754 Remove global_decl hook.
26755 * debug.h (struct gcc_debug_hooks): Add early_finish,
26756 early_global_decl, and late_global_decl fields.
26757 Remove global_decl field.
26758 Document gcc_debug_hooks.
26759 * gengtype.c (output_typename): Remove.
26760 * godump.c (go_early_global_decl): New.
26761 (go_late_global_decl): New.
26762 (go_global_decl): Remove.
26763 (dump_go_spec_init): Remove global_decl. Add
26764 {early,late}_global_decl.
26765 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
26766 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
26767 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
26768 (write_global_declarations): Remove.
26769 (global_decl_processing): New.
26770 * langhooks.h (struct lang_hooks_for_decls): Remove
26771 final_write_globals field.
26772 Add post_compilation_parsing_cleanups field.
26773 * passes.c (rest_of_decl_compilation): Call early_global_decl.
26774 * sdbout.c: Add early and late_global_decl hooks. Remove
26775 sdbout_global_decl hook.
26776 Add early_finish field for sdb_debug_hooks.
26777 (sdbout_global_decl): Remove.
26778 (sdbout_early_global_decl): New.
26779 (sdbout_late_global_decl): New.
26780 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
26781 * toplev.c (check_global_declaration): Rename from
26782 check_global_declaration_1.
26783 Adapt to use symtab infrastructure.
26784 (check_global_declarations): Remove.
26785 (emit_debug_global_declarations): Remove.
26786 (compile_file): Remove call to final_write_globals langhook.
26787 Run the actual compilation process.
26788 Perform any post compilation parser cleanups.
26789 Generate late debug info.
26790 * toplev.h (check_global_declaration): New.
26791 (check_global_declaration_1): Remove.
26792 (check_global_declarations): Remove.
26793 (write_global_declarations): Remove.
26794 (emit_debug_global_declarations): Remove.
26795 (global_decl_processing): New.
26796 * tree-core.h (struct tree_block): Add DIE field.
26797 * tree.h (BLOCK_DIE): New.
26798 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
26799 throughout.
26800 (vmsdbgout_early_global_decl): New.
26801 (vmsdbgout_late_global_decl): New.
26802 Add early_finish debug hook field to vmsdbg_debug_hooks.
26803 Remove vmsdbgout_decl to vmsdbgout_function_decl.
26804 Add early and late_global_decl debug hooks.
26805
26806 2015-06-05 Julian Brown <julian@codesourcery.com>
26807 Sandra Loosemore <sandra@codesourcery.com>
26808
26809 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
26810 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
26811 to print-sysroot-suffix.sh script.
26812
26813 2015-06-05 Tom de Vries <tom@codesourcery.com>
26814
26815 merge from gomp4 branch:
26816 2015-05-28 Tom de Vries <tom@codesourcery.com>
26817
26818 PR tree-optimization/65443
26819 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
26820 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
26821 (try_transform_to_exit_first_loop_alt): New function.
26822 (transform_to_exit_first_loop): Use
26823 try_transform_to_exit_first_loop_alt.
26824
26825 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
26826
26827 * builtins.c (expand_builtin_atomic_compare_exchange): Call
26828 emit_cmp_and_jump_insns with the mode of target.
26829
26830 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26831
26832 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
26833
26834 2015-06-04 DJ Delorie <dj@redhat.com>
26835
26836 * config/msp430/msp430.md (movsi_s): New. Special case for
26837 storing a 20-bit symbol into a 32-bit register.
26838 * config/msp430/msp430.c (msp430_subreg): Add support for it.
26839 * config/msp430/predicates.md (msp430_symbol_operand): New.
26840
26841 2015-06-04 Sriraman Tallam <tmsriram@google.com>
26842
26843 * c-family/c-common.c (noplt): New attribute.
26844 (handle_noplt_attribute): New handler.
26845 * calls.c (prepare_call_address): Check for noplt
26846 attribute.
26847 * config/i386/i386.c (ix86_expand_call): Check
26848 for noplt attribute.
26849 (ix86_nopic_noplt_attribute_p): New function.
26850 (ix86_output_call_insn): Output indirect call for non-pic
26851 no plt calls.
26852 * doc/extend.texi (noplt): Document new attribute.
26853 * doc/invoke.texi: Document new attribute.
26854
26855 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
26856
26857 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
26858 real.h, and fixed-value.h when included in host source files.
26859 * double-int.h: Remove redundant #includes listed above.
26860 * fixed-value.h: Likewise.
26861 * real.h: Likewise.
26862 * wide-int.h: Likewise.
26863 * inchash.h: Likewise.
26864 * rtl.h: Add some include files When included from a generator file.
26865 * target.h: Remove wide-int.h and insn-modes.h from the include list.
26866 * internal-fn.h: Don't include coretypes.h.
26867 * alias.c: Adjust includes for restructured coretypes.h.
26868 * asan.c: Likewise.
26869 * attribs.c: Likewise.
26870 * auto-inc-dec.c: Likewise.
26871 * auto-profile.c: Likewise.
26872 * bb-reorder.c: Likewise.
26873 * bt-load.c: Likewise.
26874 * builtins.c: Likewise.
26875 * caller-save.c: Likewise.
26876 * calls.c: Likewise.
26877 * ccmp.c: Likewise.
26878 * cfg.c: Likewise.
26879 * cfganal.c: Likewise.
26880 * cfgbuild.c: Likewise.
26881 * cfgcleanup.c: Likewise.
26882 * cfgexpand.c: Likewise.
26883 * cfghooks.c: Likewise.
26884 * cfgloop.c: Likewise.
26885 * cfgloop.h: Likewise.
26886 * cfgloopanal.c: Likewise.
26887 * cfgloopmanip.c: Likewise.
26888 * cfgrtl.c: Likewise.
26889 * cgraph.c: Likewise.
26890 * cgraphbuild.c: Likewise.
26891 * cgraphclones.c: Likewise.
26892 * cgraphunit.c: Likewise.
26893 * cilk-common.c: Likewise.
26894 * combine-stack-adj.c: Likewise.
26895 * combine.c: Likewise.
26896 * compare-elim.c: Likewise.
26897 * convert.c: Likewise.
26898 * coverage.c: Likewise.
26899 * cppbuiltin.c: Likewise.
26900 * cprop.c: Likewise.
26901 * cse.c: Likewise.
26902 * cselib.c: Likewise.
26903 * data-streamer-in.c: Likewise.
26904 * data-streamer-out.c: Likewise.
26905 * data-streamer.c: Likewise.
26906 * dbxout.c: Likewise.
26907 * dce.c: Likewise.
26908 * ddg.c: Likewise.
26909 * debug.c: Likewise.
26910 * df-core.c: Likewise.
26911 * df-problems.c: Likewise.
26912 * df-scan.c: Likewise.
26913 * df.h: Likewise.
26914 * dfp.c: Likewise.
26915 * dojump.c: Likewise.
26916 * dominance.c: Likewise.
26917 * domwalk.c: Likewise.
26918 * double-int.c: Likewise.
26919 * dse.c: Likewise.
26920 * dumpfile.c: Likewise.
26921 * dwarf2asm.c: Likewise.
26922 * dwarf2cfi.c: Likewise.
26923 * dwarf2out.c: Likewise.
26924 * dwarf2out.h: Likewise.
26925 * emit-rtl.c: Likewise.
26926 * et-forest.c: Likewise.
26927 * except.c: Likewise.
26928 * explow.c: Likewise.
26929 * expmed.c: Likewise.
26930 * expr.c: Likewise.
26931 * final.c: Likewise.
26932 * fixed-value.c: Likewise.
26933 * fold-const.c: Likewise.
26934 * function.c: Likewise.
26935 * fwprop.c: Likewise.
26936 * gcc-plugin.h: Likewise.
26937 * gcse.c: Likewise.
26938 * generic-match-head.c: Likewise.
26939 * ggc-page.c: Likewise.
26940 * gimple-builder.c: Likewise.
26941 * gimple-expr.c: Likewise.
26942 * gimple-fold.c: Likewise.
26943 * gimple-iterator.c: Likewise.
26944 * gimple-low.c: Likewise.
26945 * gimple-match-head.c: Likewise.
26946 * gimple-pretty-print.c: Likewise.
26947 * gimple-ssa-isolate-paths.c: Likewise.
26948 * gimple-ssa-strength-reduction.c: Likewise.
26949 * gimple-streamer-in.c: Likewise.
26950 * gimple-streamer-out.c: Likewise.
26951 * gimple-streamer.h: Likewise.
26952 * gimple-walk.c: Likewise.
26953 * gimple.c: Likewise.
26954 * gimplify-me.c: Likewise.
26955 * gimplify.c: Likewise.
26956 * godump.c: Likewise.
26957 * graph.c: Likewise.
26958 * graphite-blocking.c: Likewise.
26959 * graphite-dependences.c: Likewise.
26960 * graphite-interchange.c: Likewise.
26961 * graphite-isl-ast-to-gimple.c: Likewise.
26962 * graphite-optimize-isl.c: Likewise.
26963 * graphite-poly.c: Likewise.
26964 * graphite-scop-detection.c: Likewise.
26965 * graphite-sese-to-poly.c: Likewise.
26966 * graphite.c: Likewise.
26967 * haifa-sched.c: Likewise.
26968 * hooks.h: Likewise.
26969 * hw-doloop.c: Likewise.
26970 * ifcvt.c: Likewise.
26971 * incpath.c: Likewise.
26972 * init-regs.c: Likewise.
26973 * internal-fn.c: Likewise.
26974 * ipa-chkp.c: Likewise.
26975 * ipa-comdats.c: Likewise.
26976 * ipa-cp.c: Likewise.
26977 * ipa-devirt.c: Likewise.
26978 * ipa-icf-gimple.c: Likewise.
26979 * ipa-icf.c: Likewise.
26980 * ipa-inline-analysis.c: Likewise.
26981 * ipa-inline-transform.c: Likewise.
26982 * ipa-inline.c: Likewise.
26983 * ipa-polymorphic-call.c: Likewise.
26984 * ipa-profile.c: Likewise.
26985 * ipa-prop.c: Likewise.
26986 * ipa-pure-const.c: Likewise.
26987 * ipa-ref.c: Likewise.
26988 * ipa-reference.c: Likewise.
26989 * ipa-split.c: Likewise.
26990 * ipa-utils.c: Likewise.
26991 * ipa-visibility.c: Likewise.
26992 * ipa.c: Likewise.
26993 * ira-build.c: Likewise.
26994 * ira-color.c: Likewise.
26995 * ira-conflicts.c: Likewise.
26996 * ira-costs.c: Likewise.
26997 * ira-emit.c: Likewise.
26998 * ira-lives.c: Likewise.
26999 * ira.c: Likewise.
27000 * jump.c: Likewise.
27001 * langhooks.c: Likewise.
27002 * lcm.c: Likewise.
27003 * loop-doloop.c: Likewise.
27004 * loop-init.c: Likewise.
27005 * loop-invariant.c: Likewise.
27006 * loop-iv.c: Likewise.
27007 * loop-unroll.c: Likewise.
27008 * lower-subreg.c: Likewise.
27009 * lra-assigns.c: Likewise.
27010 * lra-coalesce.c: Likewise.
27011 * lra-constraints.c: Likewise.
27012 * lra-eliminations.c: Likewise.
27013 * lra-lives.c: Likewise.
27014 * lra-remat.c: Likewise.
27015 * lra-spills.c: Likewise.
27016 * lra.c: Likewise.
27017 * lto-cgraph.c: Likewise.
27018 * lto-compress.c: Likewise.
27019 * lto-opts.c: Likewise.
27020 * lto-section-in.c: Likewise.
27021 * lto-section-out.c: Likewise.
27022 * lto-streamer-in.c: Likewise.
27023 * lto-streamer-out.c: Likewise.
27024 * lto-streamer.c: Likewise.
27025 * mcf.c: Likewise.
27026 * mode-switching.c: Likewise.
27027 * modulo-sched.c: Likewise.
27028 * omega.c: Likewise.
27029 * omp-low.c: Likewise.
27030 * optabs.c: Likewise.
27031 * opts-global.c: Likewise.
27032 * passes.c: Likewise.
27033 * plugin.c: Likewise.
27034 * postreload-gcse.c: Likewise.
27035 * postreload.c: Likewise.
27036 * predict.c: Likewise.
27037 * print-rtl.c: Likewise.
27038 * print-tree.c: Likewise.
27039 * profile.c: Likewise.
27040 * real.c: Likewise.
27041 * realmpfr.c: Likewise.
27042 * realmpfr.h: Likewise.
27043 * recog.c: Likewise.
27044 * ree.c: Likewise.
27045 * reg-stack.c: Likewise.
27046 * regcprop.c: Likewise.
27047 * reginfo.c: Likewise.
27048 * regrename.c: Likewise.
27049 * regs.h: Likewise.
27050 * regstat.c: Likewise.
27051 * reload.c: Likewise.
27052 * reload1.c: Likewise.
27053 * reorg.c: Likewise.
27054 * resource.c: Likewise.
27055 * rtl-chkp.c: Likewise.
27056 * rtlanal.c: Likewise.
27057 * rtlhooks.c: Likewise.
27058 * sanopt.c: Likewise.
27059 * sched-deps.c: Likewise.
27060 * sched-ebb.c: Likewise.
27061 * sched-rgn.c: Likewise.
27062 * sched-vis.c: Likewise.
27063 * sdbout.c: Likewise.
27064 * sel-sched-dump.c: Likewise.
27065 * sel-sched-ir.c: Likewise.
27066 * sel-sched.c: Likewise.
27067 * sese.c: Likewise.
27068 * shrink-wrap.c: Likewise.
27069 * shrink-wrap.h: Likewise.
27070 * simplify-rtx.c: Likewise.
27071 * stack-ptr-mod.c: Likewise.
27072 * statistics.c: Likewise.
27073 * stmt.c: Likewise.
27074 * stor-layout.c: Likewise.
27075 * store-motion.c: Likewise.
27076 * stringpool.c: Likewise.
27077 * symtab.c: Likewise.
27078 * target-globals.c: Likewise.
27079 * targhooks.c: Likewise.
27080 * toplev.c: Likewise.
27081 * tracer.c: Likewise.
27082 * trans-mem.c: Likewise.
27083 * tree-affine.c: Likewise.
27084 * tree-affine.h: Likewise.
27085 * tree-browser.c: Likewise.
27086 * tree-call-cdce.c: Likewise.
27087 * tree-cfg.c: Likewise.
27088 * tree-cfgcleanup.c: Likewise.
27089 * tree-chkp-opt.c: Likewise.
27090 * tree-chkp.c: Likewise.
27091 * tree-chrec.c: Likewise.
27092 * tree-complex.c: Likewise.
27093 * tree-data-ref.c: Likewise.
27094 * tree-dfa.c: Likewise.
27095 * tree-diagnostic.c: Likewise.
27096 * tree-dump.c: Likewise.
27097 * tree-eh.c: Likewise.
27098 * tree-emutls.c: Likewise.
27099 * tree-if-conv.c: Likewise.
27100 * tree-inline.c: Likewise.
27101 * tree-into-ssa.c: Likewise.
27102 * tree-iterator.c: Likewise.
27103 * tree-loop-distribution.c: Likewise.
27104 * tree-nested.c: Likewise.
27105 * tree-nrv.c: Likewise.
27106 * tree-object-size.c: Likewise.
27107 * tree-outof-ssa.c: Likewise.
27108 * tree-parloops.c: Likewise.
27109 * tree-phinodes.c: Likewise.
27110 * tree-predcom.c: Likewise.
27111 * tree-pretty-print.c: Likewise.
27112 * tree-pretty-print.h: Likewise.
27113 * tree-profile.c: Likewise.
27114 * tree-scalar-evolution.c: Likewise.
27115 * tree-sra.c: Likewise.
27116 * tree-ssa-address.c: Likewise.
27117 * tree-ssa-alias.c: Likewise.
27118 * tree-ssa-ccp.c: Likewise.
27119 * tree-ssa-coalesce.c: Likewise.
27120 * tree-ssa-copy.c: Likewise.
27121 * tree-ssa-copyrename.c: Likewise.
27122 * tree-ssa-dce.c: Likewise.
27123 * tree-ssa-dom.c: Likewise.
27124 * tree-ssa-dse.c: Likewise.
27125 * tree-ssa-forwprop.c: Likewise.
27126 * tree-ssa-ifcombine.c: Likewise.
27127 * tree-ssa-live.c: Likewise.
27128 * tree-ssa-loop-ch.c: Likewise.
27129 * tree-ssa-loop-im.c: Likewise.
27130 * tree-ssa-loop-ivcanon.c: Likewise.
27131 * tree-ssa-loop-ivopts.c: Likewise.
27132 * tree-ssa-loop-manip.c: Likewise.
27133 * tree-ssa-loop-niter.c: Likewise.
27134 * tree-ssa-loop-prefetch.c: Likewise.
27135 * tree-ssa-loop-unswitch.c: Likewise.
27136 * tree-ssa-loop.c: Likewise.
27137 * tree-ssa-loop.h: Likewise.
27138 * tree-ssa-math-opts.c: Likewise.
27139 * tree-ssa-operands.c: Likewise.
27140 * tree-ssa-phiopt.c: Likewise.
27141 * tree-ssa-phiprop.c: Likewise.
27142 * tree-ssa-pre.c: Likewise.
27143 * tree-ssa-propagate.c: Likewise.
27144 * tree-ssa-reassoc.c: Likewise.
27145 * tree-ssa-sccvn.c: Likewise.
27146 * tree-ssa-scopedtables.c: Likewise.
27147 * tree-ssa-sink.c: Likewise.
27148 * tree-ssa-strlen.c: Likewise.
27149 * tree-ssa-structalias.c: Likewise.
27150 * tree-ssa-tail-merge.c: Likewise.
27151 * tree-ssa-ter.c: Likewise.
27152 * tree-ssa-threadedge.c: Likewise.
27153 * tree-ssa-threadupdate.c: Likewise.
27154 * tree-ssa-uncprop.c: Likewise.
27155 * tree-ssa-uninit.c: Likewise.
27156 * tree-ssa.c: Likewise.
27157 * tree-ssanames.c: Likewise.
27158 * tree-stdarg.c: Likewise.
27159 * tree-streamer-in.c: Likewise.
27160 * tree-streamer-out.c: Likewise.
27161 * tree-streamer.c: Likewise.
27162 * tree-switch-conversion.c: Likewise.
27163 * tree-tailcall.c: Likewise.
27164 * tree-vect-data-refs.c: Likewise.
27165 * tree-vect-generic.c: Likewise.
27166 * tree-vect-loop-manip.c: Likewise.
27167 * tree-vect-loop.c: Likewise.
27168 * tree-vect-patterns.c: Likewise.
27169 * tree-vect-slp.c: Likewise.
27170 * tree-vect-stmts.c: Likewise.
27171 * tree-vectorizer.c: Likewise.
27172 * tree-vrp.c: Likewise.
27173 * tree.c: Likewise.
27174 * tsan.c: Likewise.
27175 * ubsan.c: Likewise.
27176 * valtrack.c: Likewise.
27177 * value-prof.c: Likewise.
27178 * var-tracking.c: Likewise.
27179 * varasm.c: Likewise.
27180 * varpool.c: Likewise.
27181 * vmsdbgout.c: Likewise.
27182 * vtable-verify.c: Likewise.
27183 * web.c: Likewise.
27184 * wide-int-print.cc: Likewise.
27185 * wide-int-print.h: Likewise.
27186 * wide-int.cc: Likewise.
27187 * xcoffout.c: Likewise.
27188 * config/aarch64/aarch64-builtins.c: Likewise.
27189 * config/aarch64/aarch64.c: Likewise.
27190 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27191 * config/alpha/alpha.c: Likewise.
27192 * config/arc/arc.c: Likewise.
27193 * config/arm/aarch-common.c: Likewise.
27194 * config/arm/arm-builtins.c: Likewise.
27195 * config/arm/arm-c.c: Likewise.
27196 * config/arm/arm.c: Likewise.
27197 * config/avr/avr-c.c: Likewise.
27198 * config/avr/avr-log.c: Likewise.
27199 * config/avr/avr.c: Likewise.
27200 * config/bfin/bfin.c: Likewise.
27201 * config/c6x/c6x.c: Likewise.
27202 * config/cr16/cr16.c: Likewise.
27203 * config/cris/cris.c: Likewise.
27204 * config/darwin-c.c: Likewise.
27205 * config/darwin.c: Likewise.
27206 * config/default-c.c: Likewise.
27207 * config/epiphany/epiphany.c: Likewise.
27208 * config/epiphany/mode-switch-use.c: Likewise.
27209 * config/epiphany/resolve-sw-modes.c: Likewise.
27210 * config/fr30/fr30.c: Likewise.
27211 * config/frv/frv.c: Likewise.
27212 * config/ft32/ft32.c: Likewise.
27213 * config/glibc-c.c: Likewise.
27214 * config/h8300/h8300.c: Likewise.
27215 * config/i386/i386-c.c: Likewise.
27216 * config/i386/i386.c: Likewise.
27217 * config/i386/msformat-c.c: Likewise.
27218 * config/i386/winnt-cxx.c: Likewise.
27219 * config/i386/winnt-stubs.c: Likewise.
27220 * config/i386/winnt.c: Likewise.
27221 * config/ia64/ia64-c.c: Likewise.
27222 * config/ia64/ia64.c: Likewise.
27223 * config/iq2000/iq2000.c: Likewise.
27224 * config/lm32/lm32.c: Likewise.
27225 * config/m32c/m32c-pragma.c: Likewise.
27226 * config/m32c/m32c.c: Likewise.
27227 * config/m32r/m32r.c: Likewise.
27228 * config/m68k/m68k.c: Likewise.
27229 * config/mcore/mcore.c: Likewise.
27230 * config/mep/mep-pragma.c: Likewise.
27231 * config/mep/mep.c: Likewise.
27232 * config/microblaze/microblaze-c.c: Likewise.
27233 * config/microblaze/microblaze.c: Likewise.
27234 * config/mips/mips.c: Likewise.
27235 * config/mmix/mmix.c: Likewise.
27236 * config/mn10300/mn10300.c: Likewise.
27237 * config/moxie/moxie.c: Likewise.
27238 * config/msp430/msp430-c.c: Likewise.
27239 * config/msp430/msp430.c: Likewise.
27240 * config/nds32/nds32-cost.c: Likewise.
27241 * config/nds32/nds32-fp-as-gp.c: Likewise.
27242 * config/nds32/nds32-intrinsic.c: Likewise.
27243 * config/nds32/nds32-isr.c: Likewise.
27244 * config/nds32/nds32-md-auxiliary.c: Likewise.
27245 * config/nds32/nds32-memory-manipulation.c: Likewise.
27246 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27247 * config/nds32/nds32-predicates.c: Likewise.
27248 * config/nds32/nds32.c: Likewise.
27249 * config/nios2/nios2.c: Likewise.
27250 * config/nvptx/nvptx.c: Likewise.
27251 * config/pa/pa.c: Likewise.
27252 * config/pdp11/pdp11.c: Likewise.
27253 * config/rl78/rl78-c.c: Likewise.
27254 * config/rl78/rl78.c: Likewise.
27255 * config/rs6000/rs6000-c.c: Likewise.
27256 * config/rs6000/rs6000.c: Likewise.
27257 * config/rx/rx.c: Likewise.
27258 * config/s390/s390-c.c: Likewise.
27259 * config/s390/s390.c: Likewise.
27260 * config/sh/sh-c.c: Likewise.
27261 * config/sh/sh-mem.cc: Likewise.
27262 * config/sh/sh.c: Likewise.
27263 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27264 * config/sh/sh_treg_combine.cc: Likewise.
27265 * config/sol2-c.c: Likewise.
27266 * config/sol2-cxx.c: Likewise.
27267 * config/sol2-stubs.c: Likewise.
27268 * config/sol2.c: Likewise.
27269 * config/sparc/sparc-c.c: Likewise.
27270 * config/sparc/sparc.c: Likewise.
27271 * config/spu/spu-c.c: Likewise.
27272 * config/spu/spu.c: Likewise.
27273 * config/stormy16/stormy16.c: Likewise.
27274 * config/tilegx/mul-tables.c: Likewise.
27275 * config/tilegx/tilegx-c.c: Likewise.
27276 * config/tilegx/tilegx.c: Likewise.
27277 * config/tilepro/mul-tables.c: Likewise.
27278 * config/tilepro/tilepro-c.c: Likewise.
27279 * config/tilepro/tilepro.c: Likewise.
27280 * config/v850/v850-c.c: Likewise.
27281 * config/v850/v850.c: Likewise.
27282 * config/vax/vax.c: Likewise.
27283 * config/visium/visium.c: Likewise.
27284 * config/vms/vms-c.c: Likewise.
27285 * config/vms/vms.c: Likewise.
27286 * config/vxworks.c: Likewise.
27287 * config/winnt-c.c: Likewise.
27288 * config/xtensa/xtensa.c: Likewise.
27289 * common/config/bfin/bfin-common.c: Likewise.
27290
27291 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
27292
27293 * tree.h (tree_code_for_canonical_type_merging): New function.
27294 * tree.c (gimple_canonical_types_compatible_p): Use
27295 tree_code_for_canonical_type_merging..
27296
27297 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27298
27299 PR c++/66192
27300 PR target/66200
27301 * doc/tm.texi: Regenerate.
27302 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27303 * target.def (TARGET_RELAXED_ORDERING): Likewise.
27304 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27305 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27306 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27307 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27308 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27309 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27310 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27311
27312 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27313
27314 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27315 register fma steering pass.
27316 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27317 AARCH64_TUNE_FMA_STEERING.
27318
27319 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
27320
27321 * tree.c (verify_type_variant): Verify that type and variant is
27322 compatible.
27323 (gimple_canonical_types_compatible_p): Look for main variants.
27324
27325 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27326
27327 * config.gcc (powerpc*-*-*): Add support for a new configure
27328 option --with-advance-toolchain=<xxx> which overrides using the
27329 default header files, libraries and dynamic linker.
27330
27331 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27332 specs to support the configure --with-advance-toolchain=<xxx>
27333 option.
27334 (INCLUDE_EXTRA_SPEC): Likewise.
27335 (LINK_OS_EXTRA_SPEC32): Likewise.
27336 (LINK_OK_EXTRA_SPEC64): Likewise.
27337 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27338 (DYNAMIC_LINKER_PREFIX): Likewise.
27339 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27340 toolchain support.
27341 (GLIBC_DYNAMIC_LINKER32): Likewise.
27342 (GLIBC_DYNAMIC_LINKER64): Likewise.
27343 (LINK_OS_LINUX_SPEC32): Likewise.
27344 (LINK_OS_LINUX_SPEC64): Likewise.
27345
27346 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27347 configuration option.
27348
27349 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
27350
27351 PR target/66275
27352 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27353 to determine current function ABI.
27354 (ix86_function_value_regno_p): Ditto.
27355
27356 2015-06-03 Martin Liska <mliska@suse.cz>
27357
27358 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27359 * bitmap.h (struct bitmap_usage): Likewise.
27360 * ggc-common.c (struct ggc_usage): Likewise.
27361 * mem-stats.h (struct mem_location): Likewise.
27362 (struct mem_usage): Likewise.
27363 * vec.c (struct vec_usage): Likewise.
27364
27365 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
27366
27367 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27368 -Bsymbolic.
27369
27370 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
27371
27372 * doc/plugins.texi (enum plugin_event): New event.
27373 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27374 and PLUGIN_FINISH_FUNCTION.
27375 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27376 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27377
27378 2015-06-03 Richard Biener <rguenther@suse.de>
27379
27380 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27381 compute GROUP_GAP for the first element.
27382 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27383 on in-group gaps.
27384
27385 2015-06-03 Nick Clifton <nickc@redhat.com>
27386
27387 * config/rl78/rl78-real.md: Add peepholes to avoid a register
27388 copy when calling a function.
27389 * config/rl78/rl78.c (need_to_save): Do not push the frame
27390 pointer in an interrupt handler prologue if it is never used.
27391
27392 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27393
27394 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27395
27396 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27397
27398 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27399 reference when cloning alias node.
27400
27401 2015-06-03 Martin Liska <mliska@suse.cz>
27402
27403 * alloc-pool.h (struct pool_usage): Correct space padding.
27404 * ggc-page.c (ggc_print_statistics): Align columns in a report.
27405 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
27406 * tree.c (dump_tree_statistics): Align columns in a report.
27407
27408 2015-06-03 Martin Liska <mliska@suse.cz>
27409
27410 * alloc-pool.c (allocate_pool_descriptor): Remove.
27411 (struct pool_output_info): Likewise.
27412 (print_alloc_pool_statistics): Likewise.
27413 (dump_alloc_pool_statistics): Likewise.
27414 * alloc-pool.h (struct pool_usage): New struct.
27415 (pool_allocator::initialize): Change usage of memory statistics
27416 to a new interface.
27417 (pool_allocator::release): Likewise.
27418 (pool_allocator::allocate): Likewise.
27419 (pool_allocator::remove): Likewise.
27420 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
27421 for a pool allocator.
27422 * mem-stats.h (struct mem_location): Add new ctor.
27423 (struct mem_usage): Add counter for number of
27424 instances.
27425 (mem_alloc_description::register_descriptor): New overload of
27426 * mem-stats.h (mem_location::to_string): New function.
27427 * bitmap.h (struct bitmap_usage): Use this new function.
27428 * ggc-common.c (struct ggc_usage): Likewise.
27429 the function.
27430
27431 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27432
27433 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
27434 of GCC_INSN_FLAGS_H block.
27435
27436 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
27437
27438 * explow.c (plus_constant): Update check after force_const_mem call
27439 to see if the value returned is not a NULL_RTX.
27440
27441 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27442
27443 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
27444 remove instumentation thunks calling reachable functions.
27445 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
27446 * lto/lto-partition.c (privatize_symbol_name_1): New.
27447 (privatize_symbol_name): Privatize both decl and orig_decl
27448 names for instrumented functions.
27449 * cgraph.c (cgraph_node::verify_node): Add transparent
27450 alias chain check for instrumented node.
27451
27452 2015-06-03 Marek Polacek <polacek@redhat.com>
27453
27454 PR c/64223
27455 PR c/29358
27456 * tree.c (attribute_value_equal): Handle attribute format.
27457 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
27458
27459 2015-06-03 Richard Biener <rguenther@suse.de>
27460
27461 PR tree-optimization/63916
27462 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
27463 Forward-propagate non-invariant addresses by splicing their
27464 reference ops if the result isn't going to be used by PRE.
27465 (vn_reference_lookup_3): Remove pointless assert.
27466
27467 2015-06-03 Richard Biener <rguenther@suse.de>
27468
27469 PR tree-optimization/66375
27470 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
27471 add to the evolution before following SSA edges.
27472
27473 2015-06-03 Bin Cheng <bin.cheng@arm.com>
27474
27475 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
27476 (dump_use, dump_cand, find_induction_variables): Pass new argument
27477 to dump_iv.
27478 (record_use): Preserve the ssa name information in IV.
27479
27480 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27481
27482 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
27483 NO_MODE_TEST.
27484 (add_mode_tests): Don't add mode tests if the predicate only
27485 accepts scalar constant integers. Otherwise, allow the mode
27486 of "op" to be VOIDmode if the predicate does accept such integers.
27487
27488 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
27489
27490 PR target/66258
27491 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
27492 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
27493 (aarch64_secondary_reload): Likewise
27494 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
27495 to !TARGET_FLOAT.
27496 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
27497 Likewise.
27498
27499 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
27500 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27501
27502 PR target/65768
27503 * cprop.c (try_replace_reg): Check cost of constants before propagating.
27504
27505 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27506
27507 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
27508 provide access to the IBM extended double floating point mode if
27509 long double is IEEE 128-bit floating point.
27510 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
27511 point if long double is the IBM extended double type.
27512
27513 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
27514 enable adding IEEE 128-bit floating point support.
27515 (-mfloat128-software): Likewise.
27516 (-mfloat128-sw): Likewise.
27517
27518 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
27519 128-bit floating point types to occupy any register if
27520 -mlong-double-64. Do not allow use of IFmode/KFmode unless
27521 -mfloat128-software is enabled.
27522 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
27523 support.
27524 (rs6000_option_override_internal): Add -mfloat128-* support.
27525 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
27526
27527 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
27528 and float128 type nodes.
27529 (ieee128_float_type_node): Likewise.
27530 (ibm128_float_type_node): Likewise.
27531
27532 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27533
27534 PR target/66136
27535 * config/aarch64/geniterators.sh: Rewrite in awk.
27536
27537 2015-06-02 Martin Liska <mliska@suse.cz>
27538
27539 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
27540 values to avoid -Wmaybe-uninitialized errors.
27541
27542 2015-06-02 Richard Biener <rguenther@suse.de>
27543
27544 PR debug/65549
27545 * dwarf2out.c (lookup_context_die): New function.
27546 (resolve_addr): Avoid forcing a full DIE for the
27547 target of a DW_TAG_GNU_call_site during late compilation.
27548 Instead create a stub DIE without a type if we have a
27549 context DIE present.
27550
27551 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
27552
27553 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
27554
27555 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27556
27557 PR tree-optimization/48052
27558 * cfgloop.h (struct control_iv): New.
27559 (struct loop): New field control_ivs.
27560 * tree-ssa-loop-niter.c : Include "stor-layout.h".
27561 (number_of_iterations_lt): Set no_overflow information.
27562 (number_of_iterations_exit): Init control iv in niter struct.
27563 (record_control_iv): New.
27564 (estimate_numbers_of_iterations_loop): Call record_control_iv.
27565 (loop_exits_before_overflow): New. Interface factored out of
27566 scev_probably_wraps_p.
27567 (scev_probably_wraps_p): Factor loop niter related code into
27568 loop_exits_before_overflow.
27569 (free_numbers_of_iterations_estimates_loop): Free control ivs.
27570 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
27571
27572 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
27573
27574 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
27575 the target doesn't belong to the current function.
27576
27577 2015-06-02 Marek Polacek <polacek@redhat.com>
27578
27579 PR middle-end/66345
27580 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
27581 get_maxval_strlen does not produce an INTEGER_CST.
27582
27583 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
27584
27585 * config/arc/constraints.md: Use lower-case names in match_code.
27586 * config/mmix/constraints.md: Likewise.
27587
27588 2015-06-02 Richard Biener <rguenther@suse.de>
27589
27590 PR tree-optimization/65961
27591 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
27592 check and clarify dump message.
27593 (vect_build_slp_tree): If all children are built up from scalars
27594 build up the parent from scalars instead.
27595 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
27596
27597 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
27598
27599 PR other/65366
27600 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
27601 instead of print ... .
27602
27603 2015-06-02 Alan Modra <amodra@gmail.com>
27604
27605 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
27606 2014-08-11 change.
27607
27608 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27609
27610 PR tree-optimization/52563
27611 PR tree-optimization/62173
27612 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
27613 (alloc_iv, set_iv): New parameter.
27614 (determine_biv_step): Delete.
27615 (find_bivs): Inline original determine_biv_step. Pass new
27616 argument to set_iv.
27617 (idx_find_step): Use no_overflow information for conversion.
27618 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
27619 resolve_mixers handle folded_casts.
27620 (instantiate_scev_name): Change bool parameter to bool pointer.
27621 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
27622 (instantiate_array_ref, instantiate_scev_not): Ditto.
27623 (instantiate_scev_3, instantiate_scev_2): Ditto.
27624 (instantiate_scev_1, instantiate_scev_r): Ditto.
27625 (instantiate_scev_convert, ): Change parameter. Pass argument
27626 to chrec_convert_aggressive.
27627 (instantiate_scev): Change argument.
27628 (resolve_mixers): New parameter and set it.
27629 (scev_const_prop): New argument.
27630 * tree-scalar-evolution.h (resolve_mixers): New parameter.
27631 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
27632 of chrec_conert_1.
27633 (chrec_convert): New parameter. Move definition below.
27634 (chrec_convert_aggressive): New parameter and set it. Call
27635 convert_affine_scev.
27636 * tree-chrec.h (chrec_convert): New parameter.
27637 (chrec_convert_aggressive): Ditto.
27638
27639 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27640
27641 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
27642 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
27643 the LHS of a no-return call if its type has variable size.
27644 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
27645 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
27646
27647 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
27648
27649 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
27650 * config.in: Regenerate.
27651
27652 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27653
27654 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
27655 consecutive accesses within outer-loop with force_vectorize
27656 for references with zero step in inner-loop.
27657
27658 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27659
27660 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
27661 rather than from gcc/build directory.
27662
27663 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27664
27665 PR target/65697
27666 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
27667 for __sync memory models, emit initial loads and final barriers as
27668 appropriate.
27669
27670 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27671
27672 PR target/65697
27673 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
27674 (aarch64_split_atomic_op): Check for __sync memory models, emit
27675 appropriate initial loads and final barriers.
27676
27677 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27678
27679 * Makefile.in: Fix gcov dependencies that should
27680 not point to a build folder.
27681
27682 2015-06-01 Richard Biener <rguenther@suse.de>
27683
27684 Revert
27685 2015-05-29 Richard Biener <rguenther@suse.de>
27686
27687 PR tree-optimization/66314
27688 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27689 parameter that says which loop the new block belongs to.
27690 (ssa_create_duplicates): Blocks duplicated for the threaded
27691 path belong to the loop of the thread destination.
27692
27693 2015-06-01 Martin Liska <mliska@suse.cz>
27694
27695 * sched-deps.c: Include pool-alloc.h before
27696 cselib.h header file is included.
27697
27698 2015-06-01 Richard Biener <rguenther@suse.de>
27699
27700 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
27701 functions.
27702
27703 2015-06-01 Martin Liska <mliska@suse.cz>
27704
27705 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
27706 a function local variable.
27707
27708 2015-06-01 Martin Liska <mliska@suse.cz>
27709
27710 * alloc-pool.c (create_alloc_pool): Remove.
27711 (empty_alloc_pool): Likewise.
27712 (free_alloc_pool): Likewise.
27713 (free_alloc_pool_if_empty): Likewise.
27714 (pool_alloc): Likewise.
27715 (pool_free): Likewise.
27716 * alloc-pool.h: Remove old declarations.
27717
27718 2015-06-01 Martin Liska <mliska@suse.cz>
27719
27720 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
27721 (ira_create_object): Likewise.
27722 (ira_create_allocno): Likewise.
27723 (ira_create_live_range): Likewise.
27724 (copy_live_range): Likewise.
27725 (ira_finish_live_range): Likewise.
27726 (ira_free_allocno_costs): Likewise.
27727 (finish_allocno): Likewise.
27728 (finish_allocnos): Likewise.
27729 (initiate_prefs): Likewise.
27730 (ira_create_pref): Likewise.
27731 (finish_pref): Likewise.
27732 (finish_prefs): Likewise.
27733 (initiate_copies): Likewise.
27734 (ira_create_copy): Likewise.
27735 (finish_copy): Likewise.
27736 (finish_copies): Likewise.
27737 (finish_prefs): Likewise.
27738
27739 2015-06-01 Martin Liska <mliska@suse.cz>
27740
27741 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
27742 (allocate_and_init_ipcp_value): Likewise.
27743 (ipcp_lattice::add_value): Likewise.
27744 (merge_agg_lats_step): Likewise.
27745 (ipcp_driver): Likewise.
27746 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
27747 (ipa_free_all_structures_after_iinln): Likewise.
27748 * ipa-prop.h: Likewise.
27749
27750 2015-06-01 Martin Liska <mliska@suse.cz>
27751
27752 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
27753 pool allocator.
27754 (set_hint_predicate): Likewise.
27755 (inline_summary_alloc): Likewise.
27756 (reset_inline_edge_summary): Likewise.
27757 (reset_inline_summary): Likewise.
27758 (set_cond_stmt_execution_predicate): Likewise.
27759 (set_switch_stmt_execution_predicate): Likewise.
27760 (compute_bb_predicates): Likewise.
27761 (estimate_function_body_sizes): Likewise.
27762 (inline_free_summary): Likewise.
27763
27764 2015-06-01 Martin Liska <mliska@suse.cz>
27765
27766 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
27767 (ipa_edge_duplication_hook): Likewise.
27768 (ipa_free_all_structures_after_ipa_cp): Likewise.
27769 (ipa_free_all_structures_after_iinln): Likewise.
27770
27771 2015-06-01 Martin Liska <mliska@suse.cz>
27772
27773 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
27774 (ipa_profile_generate_summary): Likewise.
27775 (ipa_profile_read_summary): Likewise.
27776 (ipa_profile): Likewise.
27777
27778 2015-06-01 Martin Liska <mliska@suse.cz>
27779
27780 * tree-ssa-structalias.c (new_var_info): Use new type-based
27781 pool allocator.
27782 (new_constraint): Likewise.
27783 (init_alias_vars): Likewise.
27784 (delete_points_to_sets): Likewise.
27785
27786 2015-06-01 Martin Liska <mliska@suse.cz>
27787
27788 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
27789 (free_strinfo): Likewise.
27790 (pass_strlen::execute): Likewise.
27791
27792 2015-06-01 Martin Liska <mliska@suse.cz>
27793
27794 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
27795 pool allocator.
27796 (vn_reference_insert_pieces): Likewise.
27797 (vn_phi_insert): Likewise.
27798 (visit_reference_op_call): Likewise.
27799 (copy_phi): Likewise.
27800 (copy_reference): Likewise.
27801 (process_scc): Likewise.
27802 (allocate_vn_table): Likewise.
27803 (free_vn_table): Likewise.
27804
27805 2015-06-01 Martin Liska <mliska@suse.cz>
27806
27807 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
27808 pool allocator.
27809 (add_repeat_to_ops_vec): Likewise.
27810 (get_ops): Likewise.
27811 (maybe_optimize_range_tests): Likewise.
27812 (init_reassoc): Likewise.
27813 (fini_reassoc): Likewise.
27814
27815 2015-06-01 Martin Liska <mliska@suse.cz>
27816
27817 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
27818 pool allocator.
27819 (bitmap_set_new): Likewise.
27820 (get_or_alloc_expr_for_constant): Likewise.
27821 (get_or_alloc_expr_for): Likewise.
27822 (phi_translate_1): Likewise.
27823 (compute_avail): Likewise.
27824 (init_pre): Likewise.
27825 (fini_pre): Likewise.
27826
27827 2015-06-01 Martin Liska <mliska@suse.cz>
27828
27829 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
27830 (delete_dep_node): Likewise.
27831 (create_deps_list): Likewise.
27832 (free_deps_list): Likewise.
27833 (sched_deps_init): Likewise.
27834 (sched_deps_finish): Likewise.
27835
27836 2015-06-01 Martin Liska <mliska@suse.cz>
27837
27838 * regcprop.c (free_debug_insn_changes): Use new type-based
27839 pool allocator.
27840 (replace_oldest_value_reg): Likewise.
27841 (pass_cprop_hardreg::execute): Likewise.
27842
27843 2015-06-01 Martin Liska <mliska@suse.cz>
27844
27845 * ira-build.c (initiate_cost_vectors): Use new type-based
27846 pool allocator.
27847 (ira_allocate_cost_vector): Likewise.
27848 (ira_free_cost_vector): Likewise.
27849 (finish_cost_vectors): Likewise.
27850
27851 2015-06-01 Martin Liska <mliska@suse.cz>
27852
27853 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
27854 pool allocator.
27855 (free_sched_pools): Likewise.
27856 * sel-sched-ir.h (_list_alloc): Likewise.
27857 (_list_remove): Likewise.
27858
27859 2015-06-01 Martin Liska <mliska@suse.cz>
27860
27861 * stmt.c (add_case_node): Use new type-based pool allocator.
27862 (expand_case): Likewise.
27863 (expand_sjlj_dispatch_table): Likewise.
27864
27865 2015-06-01 Martin Liska <mliska@suse.cz>
27866
27867 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
27868 (free_bb): Likewise.
27869 (pass_cse_reciprocals::execute): Likewise.
27870
27871 2015-06-01 Martin Liska <mliska@suse.cz>
27872
27873 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
27874 (sra_deinitialize) Likewise.
27875 (create_access_1) Likewise.
27876 (build_accesses_from_assign) Likewise.
27877 (create_artificial_child_access) Likewise.
27878
27879 2015-06-01 Martin Liska <mliska@suse.cz>
27880
27881 * dse.c (get_group_info):Use new type-based pool allocator.
27882 (dse_step0) Likewise.
27883 (free_store_info) Likewise.
27884 (delete_dead_store_insn) Likewise.
27885 (free_read_records) Likewise.
27886 (record_store) Likewise.
27887 (replace_read) Likewise.
27888 (check_mem_read_rtx) Likewise.
27889 (scan_insn) Likewise.
27890 (dse_step1) Likewise.
27891 (dse_step7) Likewise.
27892
27893 2015-06-01 Martin Liska <mliska@suse.cz>
27894
27895 * df-scan.c (struct df_scan_problem_data):Use new type-based
27896 pool allocator.
27897 (df_scan_free_internal) Likewise.
27898 (df_scan_alloc) Likewise.
27899 (df_grow_reg_info) Likewise.
27900 (df_free_ref) Likewise.
27901 (df_insn_create_insn_record) Likewise.
27902 (df_mw_hardreg_chain_delete) Likewise.
27903 (df_insn_info_delete) Likewise.
27904 (df_free_collection_rec) Likewise.
27905 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
27906 (df_sort_and_compress_mws) Likewise.
27907 (df_ref_create_structure) Likewise.
27908 (df_ref_record) Likewise.
27909
27910 2015-06-01 Martin Liska <mliska@suse.cz>
27911
27912 * df-problems.c (df_chain_create):Use new type-based pool allocator.
27913 (df_chain_unlink_1) Likewise.
27914 (df_chain_unlink) Likewise.
27915 (df_chain_remove_problem) Likewise.
27916 (df_chain_alloc) Likewise.
27917 (df_chain_free) Likewise.
27918 * df.h (struct dataflow) Likewise.
27919
27920 2015-06-01 Martin Liska <mliska@suse.cz>
27921
27922 * cselib.c (new_elt_list):Use new type-based pool allocator.
27923 (new_elt_loc_list) Likewise.
27924 (unchain_one_elt_list) Likewise.
27925 (unchain_one_elt_loc_list) Likewise.
27926 (unchain_one_value) Likewise.
27927 (new_cselib_val) Likewise.
27928 (cselib_init) Likewise.
27929 (cselib_finish) Likewise.
27930
27931 2015-06-01 Martin Liska <mliska@suse.cz>
27932
27933 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
27934 (sh_reorg) Likewise.
27935
27936 2015-06-01 Martin Liska <mliska@suse.cz>
27937
27938 * cfg.c (initialize_original_copy_tables):Use new type-based
27939 pool allocator.
27940 (free_original_copy_tables) Likewise.
27941 (copy_original_table_clear) Likewise.
27942 (copy_original_table_set) Likewise.
27943
27944 2015-06-01 Martin Liska <mliska@suse.cz>
27945
27946 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
27947 pool allocator.
27948 (asan_mem_ref_new) Likewise.
27949 (free_mem_ref_resources) Likewise.
27950
27951 2015-06-01 Martin Liska <mliska@suse.cz>
27952
27953 * var-tracking.c (variable_htab_free):Use new type-based
27954 pool allocator.
27955 (attrs_list_clear) Likewise.
27956 (attrs_list_insert) Likewise.
27957 (attrs_list_copy) Likewise.
27958 (shared_hash_unshare) Likewise.
27959 (shared_hash_destroy) Likewise.
27960 (unshare_variable) Likewise.
27961 (var_reg_delete_and_set) Likewise.
27962 (var_reg_delete) Likewise.
27963 (var_regno_delete) Likewise.
27964 (drop_overlapping_mem_locs) Likewise.
27965 (variable_union) Likewise.
27966 (insert_into_intersection) Likewise.
27967 (canonicalize_values_star) Likewise.
27968 (variable_merge_over_cur) Likewise.
27969 (dataflow_set_merge) Likewise.
27970 (remove_duplicate_values) Likewise.
27971 (variable_post_merge_new_vals) Likewise.
27972 (dataflow_set_preserve_mem_locs) Likewise.
27973 (dataflow_set_remove_mem_locs) Likewise.
27974 (variable_from_dropped) Likewise.
27975 (variable_was_changed) Likewise.
27976 (set_slot_part) Likewise.
27977 (clobber_slot_part) Likewise.
27978 (delete_slot_part) Likewise.
27979 (loc_exp_insert_dep) Likewise.
27980 (notify_dependents_of_changed_value) Likewise.
27981 (emit_notes_for_differences_1) Likewise.
27982 (vt_emit_notes) Likewise.
27983 (vt_initialize) Likewise.
27984 (vt_finalize) Likewise.
27985
27986 2015-06-01 Martin Liska <mliska@suse.cz>
27987
27988 * ira-color.c (init_update_cost_records):Use new type-based
27989 pool allocator.
27990 (get_update_cost_record) Likewise.
27991 (free_update_cost_record_list) Likewise.
27992 (finish_update_cost_records) Likewise.
27993 (initiate_cost_update) Likewise.
27994
27995 2015-06-01 Martin Liska <mliska@suse.cz>
27996
27997 * lra.c (init_insn_regs): Use new type-based pool allocator.
27998 (new_insn_reg) Likewise.
27999 (free_insn_reg) Likewise.
28000 (free_insn_regs) Likewise.
28001 (finish_insn_regs) Likewise.
28002 (init_insn_recog_data) Likewise.
28003 (init_reg_info) Likewise.
28004 (finish_reg_info) Likewise.
28005 (lra_free_copies) Likewise.
28006 (lra_create_copy) Likewise.
28007 (invalidate_insn_data_regno_info) Likewise.
28008
28009 2015-06-01 Martin Liska <mliska@suse.cz>
28010
28011 * lra-lives.c (free_live_range): Use new type-based pool allocator.
28012 (free_live_range_list) Likewise.
28013 (create_live_range) Likewise.
28014 (copy_live_range) Likewise.
28015 (lra_merge_live_ranges) Likewise.
28016 (remove_some_program_points_and_update_live_ranges) Likewise.
28017 (lra_live_ranges_init) Likewise.
28018 (lra_live_ranges_finish) Likewise.
28019
28020 2015-06-01 Martin Liska <mliska@suse.cz>
28021
28022 * et-forest.c (et_new_occ): Use new type-based pool allocator.
28023 (et_new_tree): Likewise.
28024 (et_free_tree): Likewise.
28025 (et_free_tree_force): Likewise.
28026 (et_free_pools): Likewise.
28027 (et_split): Likewise.
28028
28029 2015-06-01 Martin Liska <mliska@suse.cz>
28030
28031 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28032 to header file.
28033 * alloc-pool.h (pool_allocator::pool_allocator): New function.
28034 (pool_allocator::release): Likewise.
28035 (inline pool_allocator::release_if_empty): Likewise.
28036 (inline pool_allocator::~pool_allocator): Likewise.
28037 (pool_allocator::allocate): Likewise.
28038 (pool_allocator::remove): Likewise.
28039
28040 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28041
28042 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28043 in comment.
28044
28045 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28046
28047 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28048 to fusible_ops.
28049 * config/arm/arm.c (arm_print_tune_info): Likewise.
28050 (arm_macro_fusion_p): Likewise.
28051 (arm_macro_fusion_pair_p): Likewise.
28052
28053 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28054
28055 * config/aarch64/aarch64-protos.h (tune_params): Rename
28056 fuseable_ops to fusible_ops.
28057 * config/aarch64/aarch64.c (generic_tunings): Rename
28058 fuseable_ops to fusible_ops.
28059 (cortexa53_tunings): Likewise.
28060 (cortexa57_tunings): Likewise.
28061 (thunderx_tunings): Likewise.
28062 (xgene1_tunings): Likewise.
28063 (aarch64_macro_fusion_p): Likewise.
28064 (aarch64_macro_fusion_pair_p): Likewise.
28065
28066 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
28067
28068 * config/s390/driver-native.c: New file.
28069 * config/s390/x-native: New file.
28070 * config.host: Add new files for s390.
28071 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28072 and -march=native
28073 * config.gcc: Likewise.
28074 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28075 * config/s390/s390-opts.h (enum processor_type): Ditto.
28076 * config/s390/s390.c (s390_option_override): Catch unhandled
28077 PROCESSOR_NATIVE
28078
28079 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
28080
28081 PR target/65527
28082 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28083 redirection for instrumented calls.
28084 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28085 (append_compiler_options): Append -fcheck-pointer-bounds.
28086 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28087 (chkp_redirect_edge): New.
28088 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28089 (chkp_redirect_edge): New.
28090
28091 2015-06-01 Richard Biener <rguenther@suse.de>
28092
28093 PR tree-optimization/66280
28094 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28095 def-use walking.
28096
28097 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28098
28099 * config/aarch64/aarch64.md
28100 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28101 logic_shift_imm.
28102
28103 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28104
28105 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28106 Remove obsolete kludge.
28107
28108 2015-06-01 Richard Biener <rguenther@suse.de>
28109
28110 * tree-ssa-reassoc.c (get_rank): Simplify.
28111
28112 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
28113
28114 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28115 * configure: Regenerated.
28116
28117 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
28118
28119 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28120 issue (add space between string literal and macro).
28121 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28122
28123 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
28124
28125 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28126 implict or explicit -fPIE or -fpie.
28127
28128 2015-05-30 Mike Frysinger <vapier@gentoo.org>
28129
28130 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28131
28132 2015-05-28 DJ Delorie <dj@redhat.com>
28133
28134 * expmed.c (extract_bit_field_1): Avoid clobbering a
28135 yet-to-be-used base/index register.
28136
28137 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
28138
28139 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28140 (alias_stats): Add num_universal.
28141 (alias_set_subset_of): Special case pointers; be ready for NULL
28142 children.
28143 (alias_sets_conflict_p): Special case pointers; be ready for NULL
28144 children.
28145 (init_alias_set_entry): Break out from ...
28146 (record_alias_subset): ... here; propagate new fields;
28147 allocate children only when really needed.
28148 (get_alias_set): Do less generous pointer globbing.
28149 (dump_alias_stats_in_alias_c): Update statistics.
28150
28151 2015-05-30 Alan Modra <amodra@gmail.com>
28152
28153 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28154 correct block for use of r12.
28155 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28156
28157 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28158
28159 PR target/66215
28160 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28161 with -mhotpatch=.
28162
28163 2015-05-29 Jakub Jelinek <jakub@redhat.com>
28164
28165 PR tree-optimization/66142
28166 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28167 virtual phis that feed themselves.
28168
28169 2015-05-29 Richard Biener <rguenther@suse.de>
28170
28171 PR tree-optimization/66314
28172 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28173 parameter that says which loop the new block belongs to.
28174 (ssa_create_duplicates): Blocks duplicated for the threaded
28175 path belong to the loop of the thread destination.
28176
28177 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28178
28179 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28180 to cleanup-saved-temps.
28181 * doc/sourcebuild.texi (Clean up generated test files): Expand
28182 introduction.
28183 (dg-keep-saved-temps): Document new proc.
28184 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28185 cleanup-saved-temps): Remove.
28186
28187 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
28188
28189 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28190 gcc_AC_CHECK_DECLS.
28191 * configure: Regenerate.
28192
28193 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28194
28195 * config/nios2/linux.h (CPP_SPEC): Define.
28196
28197 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28198
28199 * config/microblaze/linux.h (CPP_SPEC): Define.
28200
28201 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28202
28203 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28204 -pthread is specified.
28205
28206 2015-05-28 Richard Biener <rguenther@suse.de>
28207
28208 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28209 (vect_fixup_scalar_cycles_with_patterns): Likewise.
28210 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28211 after pattern recog.
28212 (vect_create_epilog_for_reduction): Properly handle reductions
28213 with patterns.
28214 (vectorizable_reduction): Likewise.
28215 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28216 reduction chains.
28217 (vect_get_constant_vectors): Create the correct number of
28218 initial values for reductions.
28219 (vect_schedule_slp_instance): Handle reduction chains that are
28220 type changing properly.
28221 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28222
28223 2015-05-28 Richard Biener <rguenther@suse.de>
28224
28225 PR tree-optimization/66142
28226 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28227 values better in memcpy destination handling. Handle non-aliasing
28228 we discover here.
28229
28230 2015-05-28 Lawrence Velázquez <vq@larryv.me>
28231
28232 PR target/63810
28233 * config/darwin-c.c (version_components): New global enum.
28234 (parse_version, version_as_legacy_macro)
28235 (version_as_modern_macro, macosx_version_as_macro): New functions.
28236 (version_as_macro): Remove.
28237 (darwin_cpp_builtins): Use new function.
28238
28239 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
28240
28241 * builtins.c (expand_builtin_acc_on_device): Mark parameters
28242 with ATTRIBUTE_UNUSED.
28243
28244 2015-05-28 Julian Brown <julian@codesourcery.com>
28245
28246 PR libgomp/65742
28247
28248 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28249 sequence for !ACCEL_COMPILER.
28250
28251 2015-05-28 Nick Clifton <nickc@redhat.com>
28252
28253 * config/rx/rx.c (push_regs): New function. Extracts code from...
28254 (rx_expand_prologue): ... here. Use push_regs to push even small
28255 spans of registers.
28256 (pop_regs): New function.
28257 (rx_expand_epilogue): Use pop_regs to pop even small spans of
28258 registers.
28259
28260 2015-05-28 Richard Biener <rguenther@suse.de>
28261
28262 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28263 member.
28264 (SLP_INSTANCE_BODY_COST_VEC): Remove.
28265 (vect_update_slp_costs_according_to_vf): Likewise.
28266 (vect_slp_analyze_operations): Update prototype.
28267 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28268 vect_update_slp_costs_according_to_vf, adjust.
28269 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28270 (vect_analyze_slp_cost_1): Likewise.
28271 (vect_analyze_slp_cost): Likewise. Properly deal with
28272 widening reduction ops. Commit body costs.
28273 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
28274 cost for loops from here.
28275 (vect_slp_analyze_operations): But do it from here when
28276 the vectorization factor is known and stmts are analyzed.
28277 (vect_bb_vectorization_profitable_p): Simplify.
28278 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28279 (vect_update_slp_costs_according_to_vf): Remove.
28280
28281 2015-05-27 Magnus Granberg <zorry@gentoo.org>
28282 H.J. Lu <hongjiu.lu@intel.com>
28283
28284 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28285 (BUILD_CFLAGS): Likewise.
28286 (BUILD_CXXFLAGS): Likewise.
28287 (LINKER): Add @NO_PIE_FLAG@.
28288 (BUILD_LDFLAGS): Likewise.
28289 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28290 --enable-default-pie.
28291 * common.opt (fPIE): Initialize to -1.
28292 (fpie): Likewise.
28293 (no-pie): New option.
28294 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28295 * configure.ac: Add --enable-default-pie.
28296 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
28297 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
28298 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
28299 * gcc.c (NO_PIE_SPEC): New.
28300 (PIE_SPEC): Likewise.
28301 (NO_FPIE1_SPEC): Likewise.
28302 (FPIE1_SPEC): Likewise.
28303 (NO_FPIE2_SPEC): Likewise.
28304 (FPIE2_SPEC): Likewise.
28305 (NO_FPIE2_SPEC): Likewise.
28306 (FPIE_SPEC): Likewise.
28307 (NO_FPIE_SPEC): Likewise.
28308 (NO_FPIC1_SPEC): Likewise.
28309 (FPIC1_SPEC): Likewise.
28310 (NO_FPIC2_SPEC): Likewise.
28311 (FPIC2_SPEC): Likewise.
28312 (NO_FPIC2_SPEC): Likewise.
28313 (FPIC_SPEC): Likewise.
28314 (NO_FPIC_SPEC): Likewise.
28315 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28316 (FPIE1_OR_FPIC1_SPEC): Likewise.
28317 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28318 (FPIE2_OR_FPIC2_SPEC): Likewise.
28319 (NO_FPIE_AND_FPIC_SPEC): Likewise.
28320 (FPIE_OR_FPIC_SPEC): Likewise.
28321 (LD_PIE_SPEC): Likewise.
28322 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
28323 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28324 * config/darwin.h (PIE_SPEC): Renamed to ...
28325 (DARWIN_PIE_SPEC): This.
28326 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28327 * config/darwin9.h (PIE_SPEC): Renamed to ...
28328 (DARWIN_PIE_SPEC): This.
28329 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28330 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28331 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28332 FPIE2_OR_FPIC2_SPEC.
28333 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28334 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28335 * config/sol2.h (ASM_PIC_SPEC): Likewise.
28336 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28337 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28338 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28339 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28340 * config/m32r/m32r.h (ASM_SPEC): Likewise.
28341 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28342 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28343 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28344 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28345 * config/sparc/linux.h (ASM_SPEC): Likewise.
28346 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28347 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28348 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28349 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28350 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28351 * config/sparc/sparc.h (ASM_SPEC): Likewise.
28352 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28353 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28354 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28355 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28356 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28357 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28358 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28359 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28360 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28361 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28362 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28363 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28364 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28365 * config/vax/linux.h (ASM_SPEC): Likewise.
28366 * doc/install.texi: Document --enable-default-pie.
28367 * doc/invoke.texi: Document -no-pie.
28368 * config.in: Regenerated.
28369 * configure: Likewise.
28370
28371 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28372
28373 PR rtl-optimization/66168
28374 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28375 can_move_invariant_reg.
28376
28377 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
28378
28379 PR target/66148
28380 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28381 REG_EQUAL note when doing insert.
28382
28383 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28384 instead of "%d" for 'o' operand.
28385
28386 2015-05-27 Nathan Sidwell <nathan@acm.org>
28387
28388 PR c++/66270
28389 * tree.c (build_pointer_type_for_mode): Canonical type does not
28390 inherit can_alias_all.
28391 (build_reference_type_for_mode): Likewise.
28392
28393 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
28394
28395 * expr.h (array_at_struct_end_p): Move to...
28396 (array_ref_element_size): Likewise.
28397 (component_ref_field_offset): Likewise.
28398 * tree.h (array_ref_element_size): ...here.
28399 (array_at_struct_end_p): Likewise.
28400 (component_ref_field_offset): Likewise.
28401 * expr.c (array_ref_element_size): Move to...
28402 (array_ref_low_bound): Likewise.
28403 (array_at_struct_end_p): Likewise.
28404 (array_ref_up_bound): Likewise.
28405 (component_ref_field_offset): Likewise.
28406 * tree.c (array_ref_element_size): ...here.
28407 (array_ref_low_bound): Likewise.
28408 (array_ref_up_bound): Likewise.
28409 (array_at_struct_end_p): Likewise.
28410 (component_ref_field_offset): Likewise.
28411
28412 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28413 Szabolcs Nagy <szabolcs.nagy@arm.com>
28414
28415 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
28416
28417 2015-05-27 Jason Merrill <jason@redhat.com>
28418
28419 PR bootstrap/66304
28420 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
28421 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
28422 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
28423
28424 2015-05-22 Aditya Kumar <hiraditya@msn.com>
28425
28426 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
28427 is true.
28428
28429 * statistics.c (statistics_fini_pass): Print pass name.
28430
28431 2015-05-27 Richard Biener <rguenther@suse.de>
28432
28433 PR tree-optimization/66272
28434 Revert parts of
28435 2014-08-15 Richard Biener <rguenther@suse.de>
28436
28437 PR tree-optimization/62031
28438 * tree-data-ref.c (dr_analyze_indices): Do not set
28439 DR_UNCONSTRAINED_BASE.
28440 (dr_may_alias_p): All indirect accesses have to go the
28441 formerly DR_UNCONSTRAINED_BASE path.
28442 * tree-data-ref.h (struct indices): Remove
28443 unconstrained_base member.
28444 (DR_UNCONSTRAINED_BASE): Remove.
28445
28446 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
28447
28448 * dwarf2out.c: Remove block_map.
28449 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
28450 (gen_lexical_block_die): Same.
28451 (dwarf2out_function_decl): Remove block_map use.
28452 (dwarf2out_c_finalize): Same.
28453 * tree-core.h (struct tree_block): Add die field.
28454 * tree.h (BLOCK_DIE): New.
28455
28456 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28457
28458 PR target/65358
28459 * expr.c (memory_load_overlap): New function.
28460 (emit_push_insn): When pushing partial args to the stack would
28461 clobber the register part load the overlapping part into a pseudo
28462 and put it into the hard reg after pushing. Change return type
28463 to bool. Add bool argument.
28464 * expr.h (emit_push_insn): Change return type to bool.
28465 Add bool argument.
28466 * calls.c (expand_call): Cancel sibcall optimization when encountering
28467 partial argument on targets with ARGS_GROW_DOWNWARD and
28468 !STACK_GROWS_DOWNWARD.
28469 (emit_library_call_value_1): Update callsite of emit_push_insn.
28470 (store_one_arg): Likewise.
28471
28472 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28473
28474 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
28475
28476 2015-05-27 Martin Liska <mliska@suse.cz>
28477
28478 * Makefile.in: Add additional dependencies related to memory report
28479 enhancement.
28480 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
28481 * bitmap.c (struct bitmap_descriptor_d): Remove.
28482 (struct loc): Likewise.
28483 (struct bitmap_desc_hasher): Likewise.
28484 (bitmap_desc_hasher::hash): Likewise.
28485 (bitmap_desc_hasher::equal): Likewise.
28486 (get_bitmap_descriptor): Likewise.
28487 (bitmap_register): User new memory descriptor API.
28488 (register_overhead): Likewise.
28489 (bitmap_find_bit): Register nsearches and search_iter statistics.
28490 (struct bitmap_output_info): Remove.
28491 (print_statistics): Likewise.
28492 (dump_bitmap_statistics): Use new memory descriptor.
28493 * bitmap.h (struct bitmap_usage): New class.
28494 * genmatch.c: Extend header file inclusion.
28495 * genpreds.c: Likewise.
28496 * ggc-common.c (struct ggc_usage): New class.
28497 (struct ggc_loc_desc_hasher): Remove.
28498 (ggc_loc_desc_hasher::hash): Likewise.
28499 (ggc_loc_desc_hasher::equal): Likewise.
28500 (struct ggc_ptr_hash_entry): Likewise.
28501 (struct ptr_hash_hasher): Likewise.
28502 (ptr_hash_hasher::hash): Likewise.
28503 (ptr_hash_hasher::equal): Likewise.
28504 (make_loc_descriptor): Likewise.
28505 (ggc_prune_ptr): Likewise.
28506 (dump_ggc_loc_statistics): Use new memory descriptor.
28507 (ggc_record_overhead): Likewise.
28508 (ggc_free_overhead): Likewise.
28509 (final_cmp_statistic): Remove.
28510 (cmp_statistic): Likewise.
28511 (ggc_add_statistics): Liekwise.
28512 (ggc_prune_overhead_list): Likewise.
28513 * hash-map-traits.h: New file.
28514 * hash-map.h (struct default_hashmap_traits): Move the traits to a
28515 separate header file.
28516 * hash-set.h: Pass memory statistics info to ctor.
28517 * hash-table.c (void dump_hash_table_loc_statistics): New function.
28518 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
28519 (hash_table::~hash_table): Register memory release operation.
28520 (hash_table::alloc_entries): Handle memory allocation operation.
28521 (hash_table::expand): Likewise.
28522 * inchash.c (iterative_hash_hashval_t): Move implementation to header
28523 file.
28524 (iterative_hash_host_wide_int): Likewise.
28525 * inchash.h (class hash): Likewise.
28526 * mem-stats-traits.h: New file.
28527 * mem-stats.h: New file.
28528 (mem_location): Add new class.
28529 (mem_usage): Likewise.
28530 (mem_alloc_description): Likewise.
28531 * sese.c: Add new header file inclusision.
28532 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
28533 and hash_set.
28534 * tree-sra.c: Add new header file inclusision.
28535 * vec.c (struct vec_descriptor): Remove.
28536 (hash_descriptor): Likewise.
28537 (struct vec_usage): Likewise.
28538 (struct ptr_hash_entry): Likewise.
28539 (hash_ptr): Likewise.
28540 (eq_ptr): Likewise.
28541 (vec_prefix::register_overhead): Use new memory descriptor API.
28542 (vec_prefix::release_overhead): Likewise.
28543 (add_statistics): Remove.
28544 (dump_vec_loc_statistics): Use new memory descriptor API.
28545 * vec.h (struct vec_prefix): Likewise.
28546 (va_heap::reserve): Likewise.
28547 (va_heap::release): Likewise.
28548 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
28549
28550 2015-05-27 Richard Biener <rguenther@suse.de>
28551
28552 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
28553 earlier and remove ??? comment.
28554 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
28555 and got called from loop analysis bail out. Always pass the SLP
28556 node to the vectorizable_* functions.
28557 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
28558 the premature SLP check here.
28559 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
28560 detected SLP stmts.
28561 (vect_detect_hybrid_slp_1): Likewise.
28562
28563 2015-05-26 Jeff Law <law@redhat.com>
28564
28565 * combine.c (find_split_point): Verify that the shift count is a
28566 constant when choosing (plus (ashift ...)) as a split point.
28567
28568 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
28569 No functional changes.
28570
28571 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
28572
28573 * ipa-polymorphic-call.c
28574 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
28575 case when call target is already known.
28576
28577 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
28578
28579 PR target/65979
28580 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
28581 take into account the case that operands[1] and operands[2]
28582 are the same register.
28583
28584 2015-05-26 Michael Matz <matz@suse.de>
28585
28586 PR middle-end/66251
28587
28588 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
28589 stores.
28590 (vect_create_vectorized_demotion_stmts): Always set
28591 STMT_VINFO_VEC_STMT, also with SLP.
28592 (vectorizable_store): Handle strided group stores.
28593
28594 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28595
28596 PR target/66049
28597 * config/aarch64/aarch64.md
28598 (*adds_shift_imm_<mode>): New pattern.
28599 (*subs_shift_imm_<mode>): Likewise.
28600 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28601 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28602 (*add_uxt<mode>_shift2): Likewise.
28603 (*add_uxtsi_shift2_uxtw): Likewise.
28604 (*sub_uxt<mode>_shift2): Likewise.
28605 (*sub_uxtsi_shift2_uxtw): Likewise.
28606
28607 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
28608
28609 * config/rs6000/constraints.md (Y, U): Use match_test.
28610
28611 2015-05-26 Christian Bruel <christian.bruel@st.com>
28612
28613 PR target/52144
28614 * config/arm/arm.c (arm_option_check_internal)
28615 (arm_option_params_internal): Check opts->target_flags to set macros.
28616 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28617 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
28618 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28619 (builtin_define): Replaced with def_or_undef_macro.
28620 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28621 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
28622 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28623 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
28624 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
28625 (TARGET_ARM_FEATURE_LDREX_P)
28626 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
28627 * config/arm/arm-c.c (def_or_undef_macro): New function.
28628 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
28629
28630 2015-05-26 Christian Bruel <christian.bruel@st.com>
28631
28632 * c-common.h (builtin_define_with_int_value)
28633 (builtin_define_type_sizeof): Declare.
28634 * c-cppbuiltin.c (builtin_define_with_int_value)
28635 (builtin_define_type_sizeof): Externalize.
28636 (builtin_define_std): Cleanup declaration.
28637 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
28638 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
28639 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
28640 (builtin_define, builtin_assert): New macros.
28641
28642 2015-05-26 Richard Biener <rguenther@suse.de>
28643
28644 PR tree-optimization/66142
28645 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
28646 MEM_REFs for the same base address.
28647
28648 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28649
28650 PR ipa/66181
28651 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
28652
28653 2015-05-26 Jason Merrill <jason@redhat.com>
28654
28655 * configure.ac: Set CXXFLAGS for ISL test.
28656 * configure: Regenerate.
28657
28658 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
28659 strstr and basename.
28660 * configure: Regenerate.
28661
28662 2015-05-26 Richard Biener <rguenther@suse.de>
28663
28664 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
28665 X % C -> X & (C - 1) for C being a power-of two to ...
28666 * match.pd: ... patterns.
28667
28668 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
28669
28670 * match.pd (swapped_tcc_comparison): New operator list.
28671 (-A CMP -B): New simplification.
28672 * fold-const.c (fold_comparison): Remove corresponding code.
28673
28674 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28675
28676 * caller-save.c (init_caller_save): Base temporary register numbers
28677 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
28678 * cfgloopanal.c (init_set_costs): Likewise.
28679 * dojump.c (prefer_and_bit_test): Likewise.
28680 * expr.c (init_expr_target): Likewise.
28681 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28682 * lower-subreg.c (init_lower_subreg): Likewise.
28683 * postreload.c (reload_cse_regs_1): Likewise.
28684
28685 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28686
28687 * gensupport.h (compute_test_codes): Declare.
28688 * gensupport.c (compute_predicate_codes): Rename to...
28689 (compute_test_codes): ...this. Generalize error message.
28690 (process_define_predicate): Update accordingly.
28691 * genpreds.c (compute_maybe_allows): Delete.
28692 (add_constraint): Use compute_test_codes to determine whether
28693 something can accept a SUBREG, REG or MEM.
28694
28695 2015-05-26 Torvald Riegel <triegel@redhat.com>
28696
28697 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
28698 'memory model' to align with C++11; fix description of memory orders;
28699 fix a few typos.
28700
28701 2015-05-26 Richard Biener <rguenther@suse.de>
28702
28703 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
28704 (vect_analyze_loop_operations): ... here. Remove slp parameter,
28705 detect whether we apply SLP. Remove call to
28706 vect_update_slp_costs_according_to_vf.
28707 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
28708 vect_update_slp_costs_according_to_vf from here. Dispatch
28709 to vect_slp_analyze_operations to analyze SLP stmts.
28710 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
28711 unused bb_vec_info parameter, adjust assert.
28712 (vect_slp_analyze_operations): Pass in the slp instance tree
28713 instead of bb_vec_info.
28714 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
28715 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
28716
28717 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28718
28719 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
28720 Q_REGS. Expand comment.
28721 (REG_CLASS_NAMES): Ditto.
28722 (REG_CLASS_CONTENTS): Ditto.
28723
28724 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
28725
28726 PR target/66274
28727 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
28728 when LEGACY_INT_REGNO_P is processed.
28729
28730 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28731
28732 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
28733
28734 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28735
28736 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
28737 register if not marked dead/unused, before return.
28738
28739 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28740
28741 PR lto/66180
28742 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
28743 is set; check for assembler name at LTO time.
28744 (type_in_anonymous_namespace): Remove hacks, check that all
28745 anonymous types are called "<anon>"
28746 (odr_type_p): Simplify; add check for "<anon>"
28747 (odr_subtypes_equivalent): Add odr_type_p check.
28748 * tree.c (need_assembler_name_p): Even anonymous namespace needs
28749 assembler name.
28750
28751 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28752
28753 * ipa-utils.h (method_class_type): Remove.
28754 * cgraphunit.c (walk_polymorphic_call_targets): Use
28755 TYPE_METHOD_BASETYPE.
28756 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
28757 on main variants only.
28758 (method_class_type): Remove.
28759 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
28760 (build_type_inheritance_graph): Likewise.
28761 * ipa-icf.c (sem_function::equals_wpa): Likewise.
28762 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
28763 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
28764
28765 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28766
28767 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
28768 is_typedef_decl, typedef_variant_p): Constify.
28769 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
28770 is_typedef_decl, typedef_variant_p): Constify.
28771
28772 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28773
28774 * defaults.h (gen_tablejump): New function.
28775 (HAVE_tablejump): Add default value.
28776 * expr.c: Adjust.
28777 * stmt.c: Likewise.
28778
28779 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28780
28781 * defaults.h (gen_store_multiple): New function.
28782 (HAVE_store_multiple): Add default value.
28783 * expr.c (move_block_from_reg): Adjust.
28784
28785 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28786
28787 * defaults.h (gen_load_multiple): New function.
28788 (HAVE_load_multiple): Add default value.
28789 * expr.c (move_block_to_reg): Adjust.
28790
28791 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28792
28793 * defaults.h (gen_mem_signal_fence): New function.
28794 (HAVE_mem_signal_fence): Add default value.
28795 * optabs.c: Adjust.
28796
28797 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28798
28799 * defaults.h (gen_memory_barrier): New function.
28800 (HAVE_memory_barrier): Add default value.
28801 * optabs.c: Adjust.
28802
28803 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28804
28805 * defaults.h (gen_mem_thread_fence): New function.
28806 (HAVE_mem_thread_fence): Add default definition.
28807 * optabs.c: Adjust.
28808
28809 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28810
28811 * combine.c (find_split_point): Check the value of HAVE_lo_sum
28812 instead of if it is defined.
28813 (combine_simplify_rtx): Likewise.
28814 * lra-constraints.c (process_address_1): Likewise.
28815 * config/darwin.c: Adjust.
28816 * genconfig.c (main): Always define HAVE_lo_sum.
28817
28818 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28819
28820 * genmatch.c (parser::parse_operation): Reject expanding
28821 operator-list inside 'for'.
28822
28823 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28824
28825 * genmatch.c (parser::parse_for): Reject iterator if used as
28826 operator-list.
28827
28828 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28829
28830 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
28831 after end of id-list.
28832
28833 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28834
28835 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
28836 we do not try to compute canonical type for type that does not need
28837 alias set.
28838 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
28839 FUNCITON_TYPE.
28840 * tree.h (type_with_alias_set_p): New.
28841
28842 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28843
28844 * tree.c (gimple_canonical_types_compatible_p): Do not compare
28845 function attributes.
28846 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
28847
28848 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
28849
28850 * Makefile.in (check_gcc_parallelize): Delete.
28851 (lang_checks_parallelized): Update comment.
28852
28853 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
28854
28855 PR rtl-optimization/66237
28856 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
28857 location of an "as_a" cast.
28858
28859 2015-05-22 Jeff Law <law@redhat.com>
28860
28861 * config/pa/pa.md (non-canonical shift-add insns): Remove.
28862 (peepholes with non-canonical RTL sources): Remove.
28863 (peepholes for indexed stores of FP regs in integer modes): Match and
28864 generate canonical RTL.
28865
28866 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28867
28868 PR tree-optimization/63387
28869 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
28870 ((x ord x) & (y ord y) -> (x ord y),
28871 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
28872 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
28873 vectors like scalars.
28874
28875 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28876
28877 * convert.c (convert_to_integer, convert_to_vector): Include the
28878 types in the error message.
28879
28880 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28881
28882 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
28883 simplifications.
28884
28885 2015-05-22 Jeff Law <law@redhat.com>
28886
28887 * config/pa/pa.md (integer_indexed_store splitters): Use
28888 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
28889 insns -- adjusting the constant 2nd operand accordingly.
28890
28891 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
28892 (plus (ashift X log2) Y) if it is a split point.
28893
28894 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
28895 out of hppa_legitimize_address to handle both forms of a multiply
28896 by 2, 4 or 8.
28897 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
28898 Always generate the ASHIFT variant as the result is not directly
28899 used in a MEM. Update comments and refactor slightly to improve
28900 readability.
28901
28902 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28903
28904 PR target/65491
28905 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
28906 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
28907 (aarch64_composite_type_p): Return false if given type and mode are
28908 for a short vector.
28909
28910 2015-05-22 Richard Biener <rguenther@suse.de>
28911
28912 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
28913 member.
28914 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
28915 patterns when determining whether SLP is pure.
28916 (vect_is_slp_reduction): Remove check for pattern stmts.
28917 (vect_is_simple_reduction_1): Remove dead code.
28918 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
28919 (vect_get_and_check_slp_defs): Pass in the stmt number.
28920 Allow the first def in a reduction to be not a pattern stmt when
28921 the rest of the stmts def are patterns.
28922 (vect_build_slp_tree_1): Allow tcc_expression codes like
28923 SAD_EXPR and DOT_PROD_EXPR.
28924 (vect_build_slp_tree): Adjust.
28925 (vect_analyze_slp): Refactor and move BB vect error message ...
28926 (vect_slp_analyze_bb_1): ... here.
28927
28928 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
28929
28930 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
28931 for CSWTCH temporary.
28932
28933 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28934
28935 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
28936 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
28937 unknown unspecs.
28938
28939 2015-05-22 Richard Biener <rguenther@suse.de>
28940
28941 PR tree-optimization/66251
28942 * tree-vect-stmts.c (vectorizable_conversion): Properly
28943 set STMT_VINFO_VEC_STMT even for the SLP case.
28944
28945 2015-05-22 Marek Polacek <polacek@redhat.com>
28946
28947 * doc/extend.texi: Use @pxref instead of @xref.
28948
28949 2015-05-22 hiraditya <hiraditya@msn.com>
28950
28951 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
28952 redundant if.
28953
28954 2015-05-22 Richard Biener <rguenther@suse.de>
28955
28956 PR tree-optimization/65701
28957 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28958 Move peeling cost models into one place. Peel for alignment
28959 for single loads only if an aligned load is cheaper than
28960 an unaligned load.
28961
28962 2015-05-22 Marek Polacek <polacek@redhat.com>
28963
28964 PR c/47043
28965 * doc/extend.texi (Enumerator Attributes): New section.
28966 Document syntax of enumerator attributes.
28967
28968 2015-05-22 Richard Biener <rguenther@suse.de>
28969
28970 * tree-vect-loop.c (get_reduction_op): New function.
28971 (vect_model_reduction_cost): Use it, add reduc_index parameter.
28972 Make ready for BB reductions.
28973 (vect_create_epilog_for_reduction): Use get_reduction_op.
28974 (vectorizable_reduction): Init reduc_index to a valid value.
28975 Adjust vect_model_reduction_cost call.
28976 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
28977 operand for reduction defaults. Add SAD_EXPR support.
28978 Assert we have a neutral op for SLP reductions.
28979 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
28980 walking pattern stmt ops only recurse to SSA names.
28981
28982 2015-05-22 Richard Biener <rguenther@suse.de>
28983
28984 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
28985 assert with guard, remove check on detected reduction.
28986 (vect_recog_sad_pattern): Likewise.
28987 (vect_recog_widen_sum_pattern): Likewise.
28988
28989 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28990
28991 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
28992 __always_inline__ attribute.
28993 (vaesdq_u8): Likewise.
28994 (vaesmcq_u8): Likewise.
28995 (vaesimcq_u8): Likewise.
28996 (vsha1cq_u32): Likewise.
28997 (vsha1mq_u32): Likewise.
28998 (vsha1pq_u32): Likewise.
28999 (vsha1h_u32): Likewise.
29000 (vsha1su0q_u32): Likewise.
29001 (vsha1su1q_u32): Likewise.
29002 (vsha256hq_u32): Likewise.
29003 (vsha256h2q_u32): Likewise.
29004 (vsha256su0q_u32): Likewise.
29005 (vsha256su1q_u32): Likewise.
29006 (vmull_p64): Likewise.
29007 (vmull_high_p64): Likewise.
29008
29009 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29010
29011 * final.c (final_scan_insn): Don't check HAVE_peephole with the
29012 preprocessor.
29013 * output.h: Likewise.
29014 * genconfig.c (main): Alwways define HAVE_peephole.
29015 * genpeep.c: Don't emit checks of HAVE_peephole.
29016
29017 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29018
29019 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29020 check HAVE_conditional_move with the preprocessor.
29021
29022 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29023
29024 * genconfig.c (main): Always define HAVE_conditional_move.
29025 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29026 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29027 is defined.
29028
29029 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29030
29031 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29032 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29033 and FRAME_POINTER_REGNUM with the preprocessor.
29034
29035 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29036
29037 * defaults.h: Add default for STACK_PUSH_CODE.
29038 * expr.c: Don't redefine STACK_PUSH_CODE.
29039 * recog.c: Likewise.
29040
29041 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29042
29043 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29044 sched-deps.c: Use if instead of preprocessor checks with
29045 STACK_GROWS_DOWNWARD.
29046
29047 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29048
29049 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29050 is defined.
29051 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29052 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29053 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29054 * doc/tm.texi: Regenerate.
29055
29056 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
29057
29058 PR target/66232
29059 * config/i386/constraints.md (Bg): New constraint for GOT memory
29060 operand.
29061 * config/i386/i386.md (*call_got_x32): New pattern.
29062 (*call_value_got_x32): Likewise.
29063 * config/i386/predicates.md (GOT_memory_operand): New predicate.
29064
29065 2015-05-21 Jakub Jelinek <jakub@redhat.com>
29066
29067 PR tree-optimization/66233
29068 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29069 Simplify.
29070
29071 2015-05-21 Jeff Law <law@redhat.com>
29072
29073 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29074 than MULT for shadd sequences.
29075
29076 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
29077
29078 * alias.c (alias_stats): New static var.
29079 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29080 (dump_alias_stats_in_alias_c): New function.
29081 * alias.h (dump_alias_stats_in_alias_c): Declare.
29082 * tree-ssa-alias.c (dump_alias_stats): Call it.
29083
29084 2015-05-08 Michael Matz <matz@suse.de>
29085
29086 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29087 to strided_p.
29088 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29089 (STMT_VINFO_STRIDED_P): ... this.
29090 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29091 (vect_verify_datarefs_alignment): Likewise.
29092 (vect_enhance_data_refs_alignment): Likewise.
29093 (vect_analyze_data_ref_access): Likewise.
29094 (vect_analyze_data_refs): Accept strided stores.
29095 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29096 (vect_model_load_cost): Adjust for macro rename.
29097 (vectorizable_mask_load_store): Likewise.
29098 (vectorizable_load): Likewise.
29099 (vectorizable_store): Open code strided stores.
29100
29101 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29102
29103 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29104 Document sqrt_insn.
29105
29106 2015-05-21 Richard Biener <rguenther@suse.de>
29107
29108 PR c++/66211
29109 * match.pd: Guard pattern optimzing (int)(float)int
29110 conversions to apply only on GIMPLE.
29111
29112 2015-05-21 Jeff Law <law@redhat.com>
29113
29114 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29115 multiply-accumulate/shift-add insn generation.
29116
29117 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
29118
29119 PR target/54236
29120 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29121 operands[1] are the same.
29122
29123 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
29124
29125 PR middle-end/66221
29126 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29127 build_distinct_type_copy to copy bounds.
29128
29129 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
29130
29131 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29132 Change to unsigned int.
29133
29134 2015-05-20 Jeff Law <law@redhat.com>
29135
29136 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29137 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29138 (pa_shadd_constant_p): Allow constants for shadd insns rather
29139 than valid scaling constants for memory addresses.
29140 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29141 * config/pa/predicates.md (mem_shadd_operand): New predicate.
29142 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29143 (shift-add insns using ASHIFT): New patterns.
29144
29145 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
29146
29147 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29148 feasible.
29149 (fix_up_fall_thru_edges): Likewise.
29150 (fix_crossing_conditional_branches): Likewise. Promote jump targets
29151 from to rtx_insn to rtx_code_label where feasible.
29152 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29153 gen_move_insn (returned type changed to rtx_insn).
29154 * builtins.c (expand_errno_check): Fix arguments of
29155 do_compare_rtx_and_jump (now expects rtx_code_label).
29156 (expand_builtin_acc_on_device): Likewise.
29157 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29158 invert_jump (now exprects rtx_jump_insn).
29159 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29160 (construct_init_block): Use rtx_code_label.
29161 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29162 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29163 calling redirect_jump.
29164 (patch_jump_insn): Likewise.
29165 (redirect_branch_edge): Likewise.
29166 (force_nonfallthru_and_redirect): Likewise.
29167 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29168 when suitable.
29169 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29170 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29171 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29172 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29173 to store the value retured by gen_label_rtx.
29174 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29175 rtx_jump_insn.
29176 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29177 (split_branches): Fix calls of redirect_jump.
29178 * dojump.c (jumpifnot): Promote argument type from rtx to
29179 rtx_code_label.
29180 (jumpifnot_1): Likewise.
29181 (jumpif): Likewise.
29182 (jumpif_1): Likewise.
29183 (do_jump_1): Likewise.
29184 (do_jump): Likewise. Use rtx_code_label when feasible.
29185 (do_jump_by_parts_greater_rtx): Likewise.
29186 (do_jump_by_parts_zero_rtx): Likewise.
29187 (do_jump_by_parts_equality_rtx): Likewise.
29188 (do_compare_rtx_and_jump): Likewise.
29189 * dojump.h: Update function prototypes.
29190 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29191 returns rtx_insn).
29192 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29193 rtx_jump_insn.
29194 (emit_label_before): Likewise.
29195 (emit_jump_insn_after_noloc): Likewise.
29196 (emit_jump_insn_after_setloc): Likewise.
29197 (emit_jump_insn_after): Likewise
29198 (emit_jump_insn_before_setloc): Likewise.
29199 (emit_jump_insn_before): Likewise.
29200 (emit_label_before): Promote return type to rtx_code_label.
29201 (emit_label): Likewise.
29202 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29203 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29204 gen_move_insn.
29205 (emit_stack_restore): Likewise.
29206 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29207 (do_cmp_and_jump): Likewise.
29208 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29209 from rtx to rtx_code_label.
29210 (gen_move_insn_uncast): New function.
29211 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29212 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29213 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29214 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29215 invert_jump_1 and redirect_jump_1.
29216 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29217 do_compare_rtx_and_jump.
29218 (expand_addsub_overflow): Likewise.
29219 (expand_neg_overflow): Likewise.
29220 (expand_mul_overflow): Likewise.
29221 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29222 return value of gen_move_insn.
29223 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29224 * loop-doloop.c (add_test): Use rtx_code_label.
29225 (doloop_modify): Likewise.
29226 (doloop_optimize): Likewise.
29227 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29228 * lra-constraints.c (emit_spill_move): Remove cast of value returned
29229 by gen_move_insn.
29230 (inherit_reload_reg): Add cast when calling dump_insn_slim.
29231 (split_reg): Likewise.
29232 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29233 gen_move_insn.
29234 * optabs.c (expand_binop_directly): Remove casts of values returned by
29235 maybe_gen_insn.
29236 (expand_unop_direct): Likewise.
29237 (expand_abs): Likewise.
29238 (maybe_emit_unop_insn): Likewise.
29239 (maybe_gen_insn): Promote return type to rtx_insn.
29240 * optabs.h: Update prototype of maybe_gen_insn.
29241 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29242 redundant cast.
29243 * recog.c (struct peep2_insn_data): Promote type of insn field to
29244 rtx_insn.
29245 (peep2_reinit_state): Use NULL instead of NULL_RTX.
29246 (peep2_attempt): Remove casts of insn in peep2_insn_data.
29247 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29248 * recog.h (struct insn_gen_fn): Promote return types of function
29249 pointers and operator ().from rtx to rtx_insn.
29250 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29251 (fill_eager_delay_slots): Likewise.
29252 (relax_delay_slots): Likewise.
29253 (make_return_insns): Likewise.
29254 (dbr_schedule): Likewise.
29255 (optimize_skips): Likewise.
29256 (reorg_redirect_jump): Likewise.
29257 (fill_slots_from_thread): Likewise.
29258 * reorg.h: Update prototypes.
29259 * resource.c (find_dead_or_set_registers): Use dyn_cast to
29260 rtx_jump_insn instead of check. Use it's jump_target method.
29261 * rtl.h (rtx_jump_insn::jump_label): Define new method.
29262 (rtx_jump_insn::jump_target): Define new method.
29263 (rtx_jump_insn::set_jump_target): Define new method.
29264 * rtlanal.c (tablejump_p): Promote type of one local variable.
29265 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29266 (sched_analyze_insn): Likewise.
29267 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29268 (print_insn): Likewise.
29269 * stmt.c (label_rtx): Promote return type to rtx_insn.
29270 (force_label_rtx): Likewise.
29271 (jump_target_rtx): Define new function.
29272 (expand_label): Use it, get rid of one cast.
29273 (expand_naked_return): Promote rtx to rtx_code_label.
29274 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29275 (expand_case): Use rtx_code_label instread of rtx where feasible.
29276 (expand_sjlj_dispatch_table): Likewise.
29277 (emit_case_nodes): Likewise.
29278 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
29279 * store-motion.c (insert_store): Make use of new return type of
29280 gen_move_insn and remove a cast.
29281 (replace_store_insn): Likewise.
29282
29283 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
29284
29285 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29286 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29287
29288 2015-05-20 Jeff Law <law@redhat.com>
29289
29290 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29291 dispose of the jump thread path when the jump threading
29292 opportunity is cancelled.
29293
29294 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29295
29296 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29297 when printing the caret character.
29298
29299 2015-05-20 Marek Polacek <polacek@redhat.com>
29300
29301 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29302
29303 2015-05-20 Marek Polacek <polacek@redhat.com>
29304
29305 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29306 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29307 * gimple-fold.c (canonicalize_bool): Likewise.
29308 (same_bool_result_p): Likewise.
29309 * tree-if-conv.c (parse_predicate): Likewise.
29310
29311 2015-05-20 Marek Polacek <polacek@redhat.com>
29312
29313 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29314 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29315
29316 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29317
29318 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29319 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29320 values.
29321
29322 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
29323
29324 * config/mips/mips.h (micromips_globals): Declare.
29325
29326 2015-05-20 David Malcolm <dmalcolm@redhat.com>
29327
29328 * timevar.def (TV_INITIALIZE_RTL): New.
29329 * toplev.c (initialize_rtl): Use an auto_timevar to account this
29330 function's time to TV_INITIALIZE_RTL.
29331
29332 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
29333
29334 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29335 gimple_build_nop calls.
29336 (chkp_find_bounds_for_elem): Likewise.
29337 (chkp_get_zero_bounds): Likewise.
29338 (chkp_get_none_bounds): Likewise.
29339 (chkp_get_bounds_by_definition): Likewise.
29340 (chkp_generate_extern_var_bounds): Likewise.
29341 (chkp_get_bounds_for_decl_addr): Likewise.
29342 (chkp_get_bounds_for_string_cst): Likewise.
29343
29344 2015-05-20 Bin Cheng <bin.cheng@arm.com>
29345
29346 PR tree-optimization/65447
29347 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29348 (dump_use, dump_uses): Support to dump sub use.
29349 (record_use): New parameters to support sub use. Remove call to
29350 dump_use.
29351 (record_sub_use, record_group_use): New functions.
29352 (compute_max_addr_offset, split_all_small_groups): New functions.
29353 (group_address_uses, rewrite_use_address): New functions.
29354 (strip_offset): New declaration.
29355 (find_interesting_uses_address): Call record_group_use.
29356 (add_candidate): New assertion.
29357 (infinite_cost_p): Move definition forward.
29358 (add_costs): Check INFTY cost and return immediately.
29359 (get_computation_cost_at): Clear setup cost and dependent bitmap
29360 for sub uses.
29361 (determine_use_iv_cost_address): Compute cost for sub uses.
29362 (rewrite_use_address_1): Rename from old rewrite_use_address.
29363 (free_loop_data): Free sub uses.
29364 (tree_ssa_iv_optimize_loop): Call group_address_uses.
29365
29366 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29367 Jim Wilson <jim.wilson@linaro.org>
29368
29369 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29370 new fields loadv and storev.
29371 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29372 Initialize loadv and storev.
29373 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29374 (cortexa53_extra_costs): Likewise.
29375 (cortexa57_extra_costs): Likewise.
29376 (xgene1_extra_costs): Likewise.
29377 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29378 rtx_costs.
29379
29380 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29381
29382 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29383 storev.
29384 (cortexa8_extra_costs): Likewise.
29385 (cortexa5_extra_costs): Likewise.
29386 (cortexa7_extra_costs): Likewise.
29387 (cortexa12_extra_costs): Likewise.
29388 (cortexa15_extra_costs): Likewise.
29389 (v7m_extra_costs): Likewise.
29390
29391 2015-05-20 Jeff Law <law@redhat.com>
29392
29393 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29394 instead of open-coded version. Also delete the jump thread created
29395 within this function.
29396
29397 2015-05-20 Alan Modra <amodra@gmail.com>
29398
29399 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
29400 stack adjusting insn. Formatting.
29401 (rs6000_emit_prologue): Track stack adjusting insn, and use of
29402 r12. If possible, emit first -fsplit-stack arg pointer insn
29403 before stack adjust. Don't use r12 to save cr if split-stack.
29404
29405 2015-05-20 Alan Modra <amodra@gmail.com>
29406
29407 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
29408 Define.
29409 (rs6000_supports_split_stack): New function.
29410 * config/rs6000/rs6000.c (machine_function): Add
29411 split_stack_arg_pointer.
29412 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
29413 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
29414 rather than virtual_incoming_args_rtx.
29415 (rs6000_va_start): Likewise.
29416 (split_stack_arg_pointer_used_p): New function.
29417 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
29418 (morestack_ref): New var.
29419 (gen_add3_const, rs6000_expand_split_stack_prologue,
29420 rs6000_internal_arg_pointer, rs6000_live_on_entry,
29421 rs6000_split_stack_space_check): New functions.
29422 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
29423 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
29424 (UNSPECV_SPLIT_STACK_RETURN): Define.
29425 (split_stack_prologue, load_split_stack_limit,
29426 load_split_stack_limit_di, load_split_stack_limit_si,
29427 split_stack_return, split_stack_space_check): New expands and insns.
29428 * config/rs6000/rs6000-protos.h
29429 (rs6000_expand_split_stack_prologue): Declare.
29430 (rs6000_split_stack_space_check): Declare.
29431
29432 2015-05-20 Alan Modra <amodra@gmail.com>
29433
29434 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
29435 (direct_return): Test vrsave_size rather than vrsave_mask.
29436 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
29437 (rs6000_emit_epilogue): Likewise.
29438
29439 2015-05-20 Alan Modra <amodra@gmail.com>
29440
29441 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
29442 when not saving registers.
29443 (debug_stack_info): Adjust to omit printing unused offsets,
29444 as before.
29445 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
29446 expression.
29447
29448 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29449
29450 PR c++/65835
29451 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
29452 value_type to const char *.
29453
29454 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
29455
29456 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
29457 to build a biarch toolchain again.
29458
29459 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29460
29461 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
29462 or implicit declarations.
29463 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
29464 into it.
29465 (get_odr_type): Check type has linkage before adding bases.
29466 (register_odr_type): Check that type has linkage before adding it.
29467 (type_known_to_have_no_deriavations_p): Rename to ..
29468 (type_known_to_have_no_derivations_p): This one.
29469 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
29470 (type_known_to_have_no_derivations_p): This one.
29471 * ipa-polymorphic-call.c
29472 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
29473 type has linkage.
29474
29475 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29476
29477 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
29478 (layout_type): Use RECORD_OR_UNION_TYPE_P.
29479
29480 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29481
29482 * config/s390/s390.c (s390_vector_bool_type_p): New function.
29483 (s390_invalid_binary_op): New function.
29484 (TARGET_INVALID_BINARY_OP): Define macro.
29485
29486 2015-05-19 David Sherwood <david.sherwood@arm.com>
29487
29488 * loop-invariant.c (create_new_invariant): Don't calculate address cost
29489 if mode is not a scalar integer.
29490 (get_inv_cost): Increase computational cost for unused invariants.
29491
29492 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29493
29494 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
29495 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
29496 * config/s390/s390-builtin-types.def: New file.
29497 * config/s390/s390-builtins.def: New file.
29498 * config/s390/s390-builtins.h: New file.
29499 * config/s390/s390-c.c: New file.
29500 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
29501 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
29502 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
29503 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
29504 prototypes.
29505 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
29506 Include.
29507 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
29508 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
29509 variable definitions.
29510 (s390_const_operand_ok): New function.
29511 (s390_expand_builtin): Rewrite.
29512 (s390_init_builtins): New function.
29513 (s390_handle_vectorbool_attribute): New function.
29514 (s390_attribute_table): Add s390_vector_bool attribute.
29515 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
29516 (s390_branch_condition_mask): Generate masks for new modes.
29517 (s390_expand_vec_compare_cc): New function.
29518 (s390_mangle_type): Add mangling for vector bool types.
29519 (enum s390_builtin): Remove.
29520 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
29521 efpc builtins.
29522 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
29523 s390_cpu_cpp_builtins.
29524 (REGISTER_TARGET_PRAGMAS): New macro.
29525 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
29526 (insn_cmp mode attribute): Add new CC modes.
29527 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
29528 (lcbb): New pattern definition.
29529 * config/s390/s390intrin.h: Include vecintrin.h.
29530 * config/s390/t-s390: New file.
29531 * config/s390/vecintrin.h: New file.
29532 * config/s390/vector.md: Include vx-builtins.md.
29533 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
29534 support.
29535
29536 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29537
29538 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
29539 CCVFHE.
29540 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
29541 (s390_select_ccmode): Likewise.
29542 (s390_canonicalize_comparison): Swap operands if necessary.
29543 (s390_expand_vec_compare_scalar): Expand DFmode compare using
29544 single element vector instructions.
29545 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
29546 (s390_branch_condition_mask): Generate CC masks for the new modes.
29547 * config/s390/s390.md (v0, vf, vd): New mode attributes.
29548 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
29549 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
29550 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
29551 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
29552 (*extend<DSF:mode><BFP:mode>2): New insn definition.
29553 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
29554 (extend<DSF:mode><BFP:mode>2): Turn into expander.
29555 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
29556 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
29557 (sqrt<mode>2): Add vector instruction.
29558
29559 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29560
29561 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
29562 constraints.
29563 * config/s390/predicates.md (const0_operand, constm1_operand)
29564 (constable_operand): Accept vector operands.
29565 * config/s390/s390-modes.def: Add supported vector modes.
29566 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
29567 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
29568 (s390_bytemask_vector_p, s390_expand_vec_strlen)
29569 (s390_expand_vec_compare, s390_expand_vcond)
29570 (s390_expand_vec_init): Add prototypes.
29571 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
29572 (s390_vector_mode_supported_p): New function.
29573 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
29574 (s390_contiguous_bitmask_vector_p): New function.
29575 (s390_bytemask_vector_p): New function.
29576 (s390_split_ok_p): Vector regs don't work either.
29577 (regclass_map): Add VEC_REGS.
29578 (s390_legitimate_constant_p): Handle vector constants.
29579 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
29580 (legitimate_reload_vector_constant_p): New function.
29581 (s390_preferred_reload_class): Handle CONST_VECTOR.
29582 (s390_reload_symref_address): Likewise.
29583 (s390_secondary_reload): Vector memory instructions only support
29584 short displacements. Rename reload*_nonoffmem* to reload*_la*.
29585 (s390_emit_ccraw_jump): New function.
29586 (s390_expand_vec_strlen): New function.
29587 (s390_expand_vec_compare): New function.
29588 (s390_expand_vcond): New function.
29589 (s390_expand_vec_init): New function.
29590 (s390_dwarf_frame_reg_mode): New function.
29591 (print_operand): Handle addresses with 'O' and 'R' constraints.
29592 (NR_C_MODES, constant_modes): Add vector modes.
29593 (s390_output_pool_entry): Handle vector constants.
29594 (s390_hard_regno_mode_ok): Handle vector registers.
29595 (s390_class_max_nregs): Likewise.
29596 (s390_cannot_change_mode_class): New function.
29597 (s390_invalid_arg_for_unprototyped_fn): New function.
29598 (s390_function_arg_vector): New function.
29599 (s390_function_arg_float): Remove size variable.
29600 (s390_pass_by_reference): Handle vector arguments.
29601 (s390_function_arg_advance): Likewise.
29602 (s390_function_arg): Likewise.
29603 (s390_return_in_memory): Vector values are returned in a VR if
29604 possible.
29605 (s390_function_and_libcall_value): Handle vector arguments.
29606 (s390_gimplify_va_arg): Likewise.
29607 (s390_call_saved_register_used): Consider the arguments named.
29608 (s390_conditional_register_usage): Disable v16-v31 for non-vec
29609 targets.
29610 (s390_preferred_simd_mode): New function.
29611 (s390_support_vector_misalignment): New function.
29612 (s390_vector_alignment): New function.
29613 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
29614 (TARGET_VECTOR_MODE_SUPPORTED_P)
29615 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
29616 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
29617 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
29618 (TARGET_VECTOR_ALIGNMENT): Define target macro.
29619 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
29620 (FIRST_PSEUDO_REGISTER): Increase value.
29621 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
29622 (VECTOR_REG_P): Define macros.
29623 (FIXED_REGISTERS, CALL_USED_REGISTERS)
29624 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
29625 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
29626 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
29627 Add vector registers.
29628 (CANNOT_CHANGE_MODE_CLASS): Call C function.
29629 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
29630 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
29631 memory.
29632 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
29633 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
29634 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
29635 (VR*_REGNUM): New constants.
29636 (ALL): New mode iterator.
29637 (INTALL): Remove mode iterator.
29638 Include vector.md.
29639 (movti): Implement TImode moves for VRs.
29640 Disable TImode splitter for VR targets.
29641 Implement splitting TImode GPR<->VR moves.
29642 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
29643 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
29644 reload<mode>_la_in, reload<mode>_la_out.
29645 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
29646 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
29647 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
29648 (mov<mode> SF SD): Prefer lder, lde for loading.
29649 Add lrl and strl instructions.
29650 Add vector instructions.
29651 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
29652 Call s390_expand_vec_strlen on z13.
29653 (*cc_to_int): Change predicate to nonimmediate_operand.
29654 (addti3): Rename to *addti3. New expander.
29655 (subti3): Rename to *subti3. New expander.
29656 * config/s390/vector.md: New file.
29657
29658 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29659
29660 * common/config/s390/s390-common.c (processor_flags_table): Add
29661 z13.
29662 * config.gcc: Add z13.
29663 * config/s390/s390-opts.h (enum processor_type): Add
29664 PROCESSOR_2964_Z13.
29665 * config/s390/s390.c (s390_adjust_priority): Check for
29666 PROCESSOR_2964_Z13.
29667 (s390_reorg): Likewise.
29668 (s390_sched_reorder): Likewise.
29669 (s390_sched_variable_issue): Likewise.
29670 (s390_loop_unroll_adjust): Likewise.
29671 (s390_option_override): Likewise. Default to -mvx when available.
29672 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
29673 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
29674 (TARGET_VX_ABI): Define macros.
29675 macros.
29676 (TARGET_DEFAULT): Add MASK_OPT_VX.
29677 * config/s390/s390.md ("cpu" attribute): Add z13.
29678 ("cpu_facility" attribute): Add vec.
29679 * config/s390/s390.opt (processor_type): Add z13.
29680 (mvx): New options.
29681 * doc/invoke.texi: Add z13 option for -march.
29682
29683 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29684
29685 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
29686 mode check to make sure that only scalar integer values are
29687 accepted.
29688
29689 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29690
29691 * tree.c (verify_type_variant): Fix #undef.
29692 (gimple_canonical_types_compatible_p): Move here from lto.c
29693 (verify_type): Verify TYPE_CANONICAL compatibility.
29694 * tree.h (gimple_canonical_types_compatible_p): Declare.
29695
29696 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29697
29698 PR middle-end/66199
29699 * tree.h (OMP_TEAMS_COMBINED): Define.
29700 * gimplify.c (enum gimplify_omp_var_data): Add
29701 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
29702 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
29703 (omp_notice_variable): Accept both ORT_TEAMS
29704 and ORT_COMBINED_TEAMS. Don't recurse if
29705 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
29706 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
29707 GOVD_FIRSTPRIVATE.
29708 (omp_no_lastprivate): New function.
29709 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
29710 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
29711 notice_outer and set appropriate bits, otherwise make
29712 sure default(none) combined constructs won't complain.
29713 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
29714 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
29715 omp_no_lastprivate either remove the clause or turn it
29716 into OMP_CLAUSE_PRIVATE.
29717 (gimplify_omp_for): Fix up handling of implicit
29718 lastprivate or linear iterators.
29719 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
29720 ORT_COMBINED_TEAMS.
29721 * omp-low.c (lower_omp_for_lastprivate): For combined
29722 for simd use fd.loop.n2 from the for rather than simd.
29723
29724 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29725
29726 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
29727 instead of gen_rtx_raw_REG.
29728 (cris_expand_epilogue): Likewise.
29729 * config/microblaze/microblaze.c (microblaze_classify_address):
29730 Likewise.
29731 * config/sparc/sparc.md: Likewise.
29732
29733 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
29734
29735 * config/alpha/alpha.c (alpha_legitimize_reload_address)
29736 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
29737 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
29738 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
29739 Use CASE_CONST_SCALAR_INT.
29740 (print_operand) <case 'M'>: Use mode_width_operand to check the
29741 value of the constant.
29742 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
29743 * config/alpha/predicates.md (input_operand): Use general_operand
29744 instead of match_code as operand check.
29745 (symbolic_operand): Use match_code with subexpression digits.
29746 * config/alpha/constraints.md (Q): Ditto.
29747
29748 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29749
29750 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
29751
29752 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29753
29754 * config/s390/s390.c (s390_secondary_reload): Fix check for
29755 load/store relative.
29756
29757 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29758
29759 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
29760 alternative_mask to uint64_t.
29761
29762 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29763
29764 PR tree-optimization/66187
29765 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
29766 Pass TYPE_SIGN to tree_int_cst_min_precision. If
29767 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
29768
29769 2015-05-19 David Malcolm <dmalcolm@redhat.com>
29770
29771 * diagnostic.c (diagnostic_report_current_module): Strengthen
29772 local "new_map" from const line_map * to
29773 const line_map_ordinary *.
29774 * genmatch.c (error_cb): Likewise for local "map".
29775 (output_line_directive): Likewise for local "map".
29776 * input.c (expand_location_1): Likewise for local "map".
29777 Pass NULL rather than &map to
29778 linemap_unwind_to_first_non_reserved_loc, since the value is never
29779 read from there, and the value written back not read from here.
29780 (is_location_from_builtin_token): Strengthen local "map" from
29781 const line_map * to const line_map_ordinary *.
29782 (dump_location_info): Strengthen locals "map" from
29783 line_map *, one to const line_map_ordinary *, the other
29784 to const line_map_macro *.
29785 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
29786 const line_map * to const line_map_macro *.
29787 (maybe_unwind_expanded_macro_loc): Add a call to
29788 linemap_check_macro when writing to the "map" field of the
29789 loc_map_pair.
29790 Introduce local const line_map_ordinary * "ord_map", using it in
29791 place of "map" in the part of the function where we know we have
29792 an ordinary map. Strengthen local "m" from const line_map * to
29793 const line_map_ordinary *.
29794
29795 2015-05-19 Nick Clifton <nickc@redhat.com>
29796
29797 PR target/66156
29798 * config/msp430/msp430.md (zero_extendhisi2): Add support for
29799 separate source and destination registers.
29800
29801 2015-05-19 Richard Biener <rguenther@suse.de>
29802
29803 PR tree-optimization/66165
29804 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
29805 for no load permutation.
29806
29807 PR tree-optimization/66185
29808 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
29809 when building the SLP node from scalars.
29810
29811 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29812 Tristan Gingold <gingold@adacore.com>
29813
29814 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
29815 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
29816 (expand_stack_restore): Call record_new_stack_level.
29817 (expand_stack_save): Do not call do_pending_stack_adjust.
29818 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
29819 * calls.c (expand_call): Call record_new_stack_level for alloca.
29820 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
29821 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
29822 (update_sjlj_context): New global function.
29823 * except.h (update_sjlj_context): Declare.
29824 * explow.c (record_new_stack_level): New global function.
29825 (allocate_dynamic_stack_space): Call record_new_stack_level.
29826 * explow.h (record_new_stack_level): Declare.
29827 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
29828 * cfgrtl.c (duplicate_insn_chain): Likewise.
29829
29830 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29831
29832 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
29833 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
29834 STACK_GROWS_DOWNWARD as normal if.
29835 (expand_call): Likewise.
29836
29837 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
29838
29839 PR target/54236
29840 * config/sh/sh.md (*round_int_even): New insn_and_split and
29841 accompanying new unnamed split.
29842
29843 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29844
29845 * bitmap.c (bitmap_set_range): Handle count==1 specially.
29846 (bitmap_clear_range): Likewise.
29847 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
29848 bitmap_set_range unconditionally.
29849 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29850 * df-scan.c (df_mark_reg): Likewise.
29851 * haifa-sched.c (setup_ref_regs): Likewise.
29852 * sched-rgn.c (update_live_1): Likewise.
29853
29854 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29855
29856 * regs.h (END_HARD_REGNO): Delete.
29857 (END_REGNO): Move to...
29858 * rtl.h: ...here.
29859 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
29860 * caller-save.c (mark_set_regs): Likewise.
29861 * combine.c (move_deaths, distribute_notes): Likewise.
29862 * cse.c (invalidate, invalidate_for_call): Likewise.
29863 * df-scan.c (df_ref_record): Likewise.
29864 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
29865 (record_last_reg_set_info): Likewise.
29866 * reg-stack.c (convert_regs_exit): Likewise.
29867 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
29868 * resource.c (update_live_status): Likewise.
29869 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
29870
29871 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29872
29873 * rtl.h (reg_info): Add an nregs field.
29874 (REG_NREGS): Use it.
29875 (SET_REGNO_RAW): Delete.
29876 (set_regno_raw): New function.
29877 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
29878 (END_REGNO): Redefine in terms of REG_NREGS.
29879 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
29880 SET_REGNO_RAW.
29881 * emit-rtl.c (set_mode_and_regno): Likewise.
29882 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
29883 instead of SET_REGNO_RAW.
29884
29885 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29886
29887 * rtl.h (PUT_MODE_RAW): New macro.
29888 (PUT_REG_NOTE_KIND): Use it.
29889 (set_mode_and_regno): Declare.
29890 (gen_raw_REG): Change regno to "unsigned int".
29891 (gen_rtx_REG): Change "unsigned" to "unsigned int".
29892 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
29893 use set_mode_and_regno to change the mode of registers.
29894 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
29895 * emit-rtl.c (set_mode_and_regno): New function.
29896 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
29897 * caller-save.c (reg_save_code): Use set_mode_and_regno.
29898 * expr.c (init_expr_target): Likewise.
29899 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29900 * postreload.c (reload_cse_simplify_operands): Likewise.
29901
29902 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29903
29904 * caller-save.c (init_caller_save): Use word_mode and
29905 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
29906 * expr.c (init_expr_target): Likewise.
29907 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29908 * postreload.c (reload_cse_regs_1): Likewise.
29909
29910 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29911
29912 * rtl.def (REG): Change format to "r".
29913 * rtl.h (rtunion): Remove rt_reg.
29914 (reg_info): New structure.
29915 (rtx_def): Add reg field to main union.
29916 (X0REGATTR): Delete.
29917 (REG_CHECK): New macro.
29918 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
29919 * rtl.c (rtx_format): Document "r".
29920 (rtx_code_size): Handle REG specially.
29921 * gengenrtl.c (special_format): Return true for formats
29922 that include 'r'.
29923 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
29924 Deal with REG_ATTRS after the field loop.
29925 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
29926 * expmed.c (init_expmed): Call gen_raw_REG instead of
29927 gen_rtx_raw_REG.
29928 * expr.c (init_expr_target): Likewise.
29929 * regcprop.c (maybe_mode_change): Likewise.
29930 * varasm.c (make_decl_rtl): Likewise.
29931 * final.c (leaf_renumber_regs_insn): Return early after
29932 handling REGs.
29933 * genemit.c (gen_exp): Handle 'r' fields.
29934 * genpeep.c (match_rtx): Likewise.
29935 * gensupport.c (subst_pattern_match): Likewise.
29936 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
29937 (alter_constraints, subst_dup): Likewise.
29938 * read-rtl.c (read_rtx_code): Likewise.
29939 * print-rtl.c (print_rtx): Likewise.
29940 * genrecog.c (find_operand, find_matching_operand): Likewise.
29941 (validate_pattern, match_pattern_2): Likewise.
29942 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
29943 (rtx_test::regno_field): New function.
29944 (operator ==, safe_to_hoist_p, transition_parameter_type)
29945 (parameter_type_string, print_parameter_value)
29946 (print_nonbool_test, print_test): Handle new enum values.
29947 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
29948 * lra-constraints.c (operands_match_p): Likewise.
29949
29950 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29951
29952 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
29953 Change type of new_regno to unsigned int.
29954 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
29955 new_regno to unsigned int.
29956 (df_ref_change_reg_with_loc): Remove old_regno parameter.
29957 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
29958 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
29959 (SET_REGNO_RAW): Add space after ",".
29960
29961 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29962
29963 * rtl.h (REG_NREGS): New macro
29964 * alias.c (record_set): Use it.
29965 * cfgcleanup.c (mark_effect): Likewise.
29966 * combine.c (likely_spilled_retval_1): Likewise.
29967 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
29968 (move_deaths, distribute_notes): Likewise.
29969 * cselib.c (cselib_record_set): Likewise.
29970 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29971 * df-scan.c (df_mark_reg): Likewise.
29972 * dse.c (look_for_hardregs): Likewise.
29973 * dwarf2out.c (reg_loc_descriptor): Likewise.
29974 (multiple_reg_loc_descriptor): Likewise.
29975 * expr.c (write_complex_part, read_complex_part): Likewise.
29976 (emit_move_complex): Likewise.
29977 * haifa-sched.c (setup_ref_regs): Likewise.
29978 * ira-lives.c (mark_hard_reg_live): Likewise.
29979 * lra.c (lra_set_insn_recog_data): Likewise.
29980 * mode-switching.c (create_pre_exit): Likewise.
29981 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
29982 (reload_combine_recognize_pattern): Likewise.
29983 (reload_combine_note_use, move2add_record_mode): Likewise.
29984 (reload_cse_move2add): Likewise.
29985 * reg-stack.c (subst_stack_regs_pat): Likewise.
29986 * regcprop.c (kill_value, copy_value): Likewise.
29987 (copyprop_hardreg_forward_1): Likewise.
29988 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
29989 (build_def_use): Likewise.
29990 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
29991 (deps_analyze_insn): Likewise.
29992 * sched-rgn.c (check_live_1, update_live_1): Likewise.
29993 * sel-sched.c (count_occurrences_equiv): Likewise.
29994 * valtrack.c (dead_debug_insert_temp): Likewise.
29995
29996 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29997
29998 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
29999 * dse.c (note_add_store): Likewise.
30000 * ira-lives.c (mark_hard_reg_dead): Likewise.
30001 * loop-invariant.c (mark_reg_store): Likewise.
30002 (mark_reg_death): Likewise.
30003 * postreload.c (reload_combine): Likewise.
30004 (reload_combine_note_store): Likewise.
30005 (reload_combine_note_use): Likewise.
30006 * recog.c (peep2_reg_dead_p): Likewise.
30007
30008 2015-05-19 Alan Modra <amodra@gmail.com>
30009
30010 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30011 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30012 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30013 unused predicates.
30014 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30015 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
30016 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30017 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30018
30019 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
30020
30021 * config/mips/mips.md (JOIN_MODE): New mode iterator.
30022 (join2_load_Store<JOIN_MODE:mode>): New pattern.
30023 (join2_loadhi): Likewise.
30024 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30025 load-load and store-stores.
30026 * config/mips/mips.opt (mload-store-pairs): New option.
30027 (TARGET_LOAD_STORE_PAIRS): New macro.
30028 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30029 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30030 * config/mips/mips.c (mips_load_store_bonding_p): New function.
30031
30032 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
30033
30034 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30035 explicit swaps.
30036 * dojump.c (do_compare_rtx_and_jump): Likewise.
30037 * expmed.c (emit_store_flag_1): Likewise.
30038 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30039 * final.c (sprint_ul): Use std::reverse for reversing a string.
30040 * fold-const.c (extract_muldiv_1): Use std::swap.
30041 * genmodes.c (emit_mode_int_n): Likewise.
30042 * ifcvt.c (dead_or_predicable): Likewise.
30043 * ira-build.c (ira_merge_live_ranges): Likewise.
30044 (swap_allocno_copy_ends_if_necessary): Likewise.
30045 * ira.c (ira_setup_alts): Likewise.
30046 * loop-iv.c (iv_analyze_expr): Likewise.
30047 (implies_p): Likewise.
30048 (canon_condition): Likewise.
30049 * lra-constraints.c (swap_operands): Likewise.
30050 * lra-lives.c (lra_merge_live_ranges): Likewise.
30051 * omega.c (swap): Remove.
30052 (bswap): Remove.
30053 (omega_unprotect_1): Use std::swap.
30054 (omega_solve_geq): Likewise.
30055 * optabs.c (expand_binop_directly): Likewise.
30056 (expand_binop): Likewise.
30057 (emit_conditional_move): Likewise.
30058 (emit_conditional_add): Likewise.
30059 * postreload.c (reload_cse_simplify_operands): Likewise.
30060 * reg-stack.c (emit_swap_insn): Likewise.
30061 (swap_to_top): Likewise.
30062 (compare_for_stack_reg): Likewise.
30063 (subst_asm_stack_regs): Likewise.
30064 * reload.c (find_reloads): Likewise.
30065 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30066 * sel-sched.c (invoke_reorder_hooks): Likewise.
30067 (create_block_for_bookkeeping): Likewise.
30068 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30069 (lambda_matrix_right_hermite): Use std::swap.
30070 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30071 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30072 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30073 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30074 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30075 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30076 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30077 * tree-vrp.c (compare_ranges): Likewise.
30078 * var-tracking.c (add_with_sets): Likewise.
30079 (vt_find_locations): Likewise.
30080
30081 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
30082
30083 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30084 pie executables.
30085 (FBSD_ENDFILE_SPEC): Likewise.
30086 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30087 config/freebsd-spec.h.
30088 (ENDFILE_SPEC): Likewise.
30089
30090 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
30091 Richard Henderson <rth@redhat.com>
30092
30093 PR target/57032
30094 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30095 Check for a memory location that is not a reference (using an AND)
30096 to an unaligned location here.
30097 * config/alpha/predicates.md (normal_memory_operand): Remove.
30098
30099 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
30100
30101 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30102 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30103
30104 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
30105
30106 * config/mips/mips.c (micromips_globals): New variable.
30107 (mips_set_compression_mode): Save and reinitialize target-dependent
30108 state for microMIPS.
30109
30110 2015-05-18 Martin Liska <mliska@suse.cz>
30111
30112 * dbgcnt.def: Add new counter.
30113 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30114
30115 2015-05-18 Martin Liska <mliska@suse.cz>
30116
30117 * dbgcnt.def: Sort counters.
30118 * opts.c (common_handle_option): Do not compile if
30119 -fdbg-cnt-list is enabled.
30120
30121 2015-05-18 Tom de Vries <tom@codesourcery.com>
30122
30123 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30124 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
30125 address operator to va_list operand.
30126 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30127 unconditionally.
30128 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30129 operand.
30130 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30131 * config/s390/s390.c (s390_gimplify_va_arg): Same.
30132 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30133
30134 2015-05-18 Tom de Vries <tom@codesourcery.com>
30135
30136 * tree-ssa-tail-merge.c: Fix whitespace.
30137
30138 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
30139
30140 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30141 cortex-a17, and cortex-a17.cortex-a7.
30142
30143 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
30144
30145 PR target/54236
30146 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30147
30148 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
30149
30150 PR target/66174
30151 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30152 QImode inner modes for TARGET_AVX512BW. Force mask operand
30153 to a register for AVX512F modes.
30154
30155 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30156
30157 * toplev.c (emit_debug_global_declarations): Do not output debug info
30158 when doing slim LTO objects.
30159
30160 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30161
30162 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30163 odr_types_equivalent_p): Declare.
30164 (odr_type_p): Use gcc_checking_assert.
30165 (type_in_anonymous_namespace_p) Declare.
30166 (type_with_linkage_p): Declare.
30167 * common.opt (Wlto-type-mismatch): New warning.
30168 * ipa-devirt.c (compound_type_base): New function.
30169 (odr_or_derived_type_p): New function.
30170 (odr_types_equivalent_p): New function.
30171 (add_type_duplicate): Simplify.
30172 (type_with_linkage_p): Add hack to prevent false positives on C types
30173 (type_in_anonymous_namespace_p): Likewise.
30174 * tree.c (need_assembler_name_p): Use type_with_linkage.
30175 * tree.h (type_in_anonymous_namespace_p): Remove.
30176 * doc/invoke.texi (-Wlto-type-mismatch): Document
30177
30178 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30179
30180 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30181 (verify_type): Verify STRING_FLAG.
30182
30183 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
30184
30185 PR fortran/44054
30186 * tree-pretty-print.c (percent_K_format): Replace locus pointer
30187 with accessor function.
30188 * tree-diagnostic.c (diagnostic_report_current_function): Use
30189 diagnostic_location function.
30190 (maybe_unwind_expanded_macro_loc): Likewise.
30191 (virt_loc_aware_diagnostic_finalizer): Likewise.
30192 (default_tree_printer): Replace locus pointer with accessor function.
30193 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30194 (diagnostic_set_info_translated): Initialize second location.
30195 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30196 (diagnostic_show_locus): Handle two locations. Call
30197 diagnostic_print_caret_line.
30198 (diagnostic_print_caret_line): New.
30199 (default_diagnostic_starter): Use diagnostic_location function.
30200 (diagnostic_report_diagnostic): Use diagnostic_location function.
30201 (verbatim): Do not set text.locus.
30202 * diagnostic.h (struct diagnostic_info): Remove location field.
30203 (struct diagnostic_context): Make caret_chars an array of two.
30204 (diagnostic_location): New inline.
30205 (diagnostic_expand_location): Handle two locations.
30206 (diagnostic_same_line): New inline.
30207 (diagnostic_print_caret_line): Declare.
30208 (CARET_LINE_MARGIN): New constant.
30209 * pretty-print.c (pp_printf): Do not set text.locus.
30210 (pp_verbatim): Do not set text.locus.
30211 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30212 (struct text_info): Replace locus pointer with locations
30213 array. Add accessor functions.
30214
30215 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
30216 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30217
30218 PR target/65768
30219 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30220 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30221 large constants in register instead of splitting them.
30222
30223 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
30224
30225 PR target/66140
30226 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30227 replacements in memory addresses.
30228 (get_unaligned_address): Ditto.
30229
30230 2015-05-16 James Bowman <james.bowman@ftdichip.com>
30231
30232 * config/ft32/*: New files for FT32 port.
30233 * doc/install.texi: Add FT32 information.
30234 * doc/invoke.texi: Add FT32 information.
30235 * doc/md.texi: Add FT32 information.
30236 * doc/contrib.texi: Self added.
30237
30238 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
30239
30240 PR tree-optimization/64454
30241 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30242 (-1 - A -> ~A): Remove unnecessary condition.
30243
30244 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
30245
30246 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30247 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30248 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30249
30250 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
30251
30252 * ipa-chkp.h (chkp_wrap_function): New.
30253 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30254 (chkp_wrap_function_name): New.
30255 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30256 to get wrapper name.
30257 * lto-cgraph.c: Include ipa-chkp.h.
30258 (input_cgraph_1): Avoid alias chain for wrappers.
30259
30260 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30261
30262 PR middle-end/66134
30263 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30264 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30265
30266 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30267
30268 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30269 (AARCH64_FL_SLOWMUL): Delete.
30270 (AARCH64_FL_CRC): Redefine to 1<<3.
30271 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30272
30273 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30274
30275 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30276 casting.
30277
30278 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30279
30280 * config/alpha/alpha.md (extendqidi2): Use general_operand
30281 instead of some_operand for operand[1] predicate.
30282 (extendhidi2): Ditto.
30283 (cbranchdi4): Use general_operand instead of some_operand
30284 for operand[1] and operands[2] predicates.
30285 (cstoredi4): Ditto.
30286 * config/alpha/predicates.md (some_operand): Remove unused predicate.
30287 (some_ni_operand): Ditto.
30288
30289 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30290
30291 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30292 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
30293 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30294 low part of the constant using alpha_emit_set_const_1.
30295 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30296
30297 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
30298
30299 * varasm.c (output_constant_pool_1): Pass down alignment from
30300 constant pool entry's descriptor to output_constant_pool_2.
30301 (output_object_block): Add comment prior to call to
30302 output_constant_pool_1.
30303
30304 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
30305
30306 PR rtl-optimization/65862
30307 * target.def (ira_change_pseudo_allocno_class): New hook.
30308 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30309 value of the hook.
30310 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30311 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30312 hook.
30313 * ira-costs.c (find_costs_and_classes): Call the hook and change
30314 classes when it is necessary.
30315 * doc/tm.texi: Update.
30316
30317 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
30318
30319 * config/i386/i386.md (sibcall_memory): Check that register with
30320 callee address is not also used as one of the arguments, instead
30321 of checking that it is not live after the sibcall.
30322 (sibcall_pop_memory): Ditto.
30323 (sibcall_value_memory): Ditto.
30324 (sibcall_value_pop_memory): Ditto.
30325
30326 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
30327
30328 * generic-match-head.c (types_match): Handle non-types.
30329 * gimple-match-head.c (types_match): Likewise.
30330 * match.pd: Remove unnecessary TREE_TYPE for types_match.
30331
30332 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
30333
30334 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30335 (csneg3<mode>_insn): Enable expansion of pattern.
30336
30337 2015-05-14 Nick Clifton <nickc@redhat.com>
30338
30339 * config/rl78/rl78.c (rl78_select_section): Select the correct
30340 default section based upon the category of the decl.
30341
30342 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30343
30344 PR rtl-optimization/30967
30345 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30346 destination mode for the cost of scc patterns.
30347
30348 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30349
30350 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30351 using SWIM248 mode iterator.
30352 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30353 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
30354 for operand[2] constraint.
30355 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30356
30357 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30358
30359 PR middle-end/66133
30360 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30361 make sure it is never noreturn, even when the task body does not
30362 return.
30363 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30364 right before GIMPLE_OMP_RETURN.
30365 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30366 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
30367 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30368
30369 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30370
30371 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30372 * tree-ssa-math-opts.c: Include params.h
30373 (pow_synth_sqrt_info): New struct.
30374 (representable_as_half_series_p): New function.
30375 (get_fn_chain): Likewise.
30376 (print_nested_fn): Likewise.
30377 (dump_fractional_sqrt_sequence): Likewise.
30378 (dump_integer_part): Likewise.
30379 (expand_pow_as_sqrts): Likewise.
30380 (gimple_expand_builtin_pow): Use above to attempt to expand
30381 pow as series of square roots. Removed now unused variables.
30382
30383 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30384
30385 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30386 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30387 Remove *p0 and *p1 arguments. Rewrite function.
30388 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30389 (alpha_split_const_mov): Update calls to alpha_extract_integer and
30390 alpha_emit_set_long_const.
30391 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30392 (alpha_output_mi_thunk_osf): Ditto.
30393 * config/alpha/alpha.md (movti): Do not check operands[1]
30394 for CONST_DOUBLE.
30395
30396 2015-05-13 Richard Biener <rguenther@suse.de>
30397
30398 PR tree-optimization/66129
30399 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
30400 commutative.
30401 (vect_schedule_slp_instance): Fix typo.
30402
30403 2015-05-13 David Malcolm <dmalcolm@redhat.com>
30404
30405 * common.opt (fdump-internal-locations): New option.
30406 * input.c: Include diagnostic-core.h.
30407 (get_end_location): New function.
30408 (write_digit): New function.
30409 (write_digit_row): New function.
30410 (dump_location_range): New function.
30411 (dump_labelled_location_range): New function.
30412 (dump_location_info): New function.
30413 * input.h (dump_location_info): New prototype.
30414 * toplev.c (compile_file): Handle flag_dump_locations.
30415
30416 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
30417
30418 * gimple-expr.h (is_gimple_constant): Reorder.
30419 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
30420
30421 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30422
30423 * combine.c (simplify_set): When generating a CC set, if the
30424 source already is in the correct mode, do not wrap it in a
30425 compare. Simplify the rest of that code.
30426
30427 2015-05-13 Richard Biener <rguenther@suse.de>
30428
30429 PR tree-optimization/66123
30430 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
30431 a taken edge.
30432
30433 2015-05-13 Richard Biener <rguenther@suse.de>
30434
30435 PR middle-end/66110
30436 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
30437 specially.
30438 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
30439
30440 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30441
30442 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
30443 * aclocal.m4: Regenerated with automake-1.11.6.
30444
30445 2015-05-13 Tom de Vries <tom@codesourcery.com>
30446
30447 PR tree-optimization/66010
30448 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
30449 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
30450 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
30451 and rval based on do_deref.
30452
30453 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30454
30455 PR target/65103
30456 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
30457 link time constants into adress expressions and therefore set
30458 their cost to 0.
30459
30460 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30461
30462 PR target/66112
30463 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
30464 Use SWI248 iterator instead of SWI.
30465 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
30466 Use eq_attr "alternative" "0" instead of match_test in
30467 length_immediate attribute computation.
30468 (*mulvhi4, *mulvhi4_1): New define_insns.
30469
30470 PR target/66112
30471 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
30472 SIGNED to get precision of non-negative value.
30473
30474 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30475
30476 PR target/66048
30477 * function.c (diddle_return_value_1): Process bounds first.
30478 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
30479 register.
30480
30481 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
30482
30483 PR rtl-optimization/64616
30484 * loop-invariant.c (can_move_invariant_reg): New.
30485 (move_invariant_reg): Call above new function to decide whether
30486 instruction can just be moved, skipping creation of temporary
30487 register.
30488
30489 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30490
30491 PR target/pr66047.c
30492 * i386.c (ix86_function_sseregparm): Only return -1 if local function
30493 with implied regparm is called from -mno-sse function.
30494 (init_cumulative_args): Output error if ix86_function_sseregparm
30495 return -1 and SSE register would be needed.
30496 (function_arg_advance_32): Likewise.
30497 (function_arg_32): Likewise.
30498 * i386.h (ix86_args): Add decl field.
30499
30500 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30501
30502 PR ipa/65873
30503 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
30504 inlines across optimization boundary.
30505
30506 2015-05-12 Jason Merrill <jason@redhat.com>
30507
30508 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
30509 string literal and macro name.
30510
30511 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
30512
30513 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
30514 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
30515 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
30516
30517 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30518
30519 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
30520 (-Wmisleading-indentation): New option.
30521 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
30522
30523 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
30524
30525 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
30526 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
30527 (alpha_extract_integer): Ditto.
30528 (alpha_legitimate_constant_p): Ditto.
30529 (alpha_split_tmode_pair): Ditto.
30530 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
30531 (alpha_expand_mov): Ditto.
30532 (print_operand): Remove handling of 'H' modifier.
30533 <case 'm'>: Remove CONST_DOUBLE handling.
30534 (summarize_insn): Handle CONST_WIDE_INT.
30535 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
30536 (anddi3): Ditto.
30537 (movti): Handle CONST_WIDE_INT.
30538 * config/alpha/constraints.md ('H'): Remove constraint definition.
30539 ('G'): Do not match MODE_FLOAT class.
30540 * config/alpha/predicates.md (const0_operand): Also match
30541 const_wide_int.
30542 (non_add_const_operand): Ditto.
30543 (non_zero_const_operand): Ditto.
30544 (some_operand): Ditto.
30545 (input_operand): Ditto. Handle CONST_WIDE_INT.
30546 (and_operand): Do not match const_double.
30547 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
30548
30549 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
30550
30551 PR target/65697
30552 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
30553 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
30554 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
30555 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
30556 is_mm_seq_cst, is_mm_sync): New accessor functions.
30557 * builtins.c (expand_builtin_sync_operation,
30558 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
30559 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
30560 (get_memmodel, expand_builtin_atomic_compare_exchange,
30561 expand_builtin_atomic_load, expand_builtin_atomic_store,
30562 expand_builtin_atomic_clear): Use new accessor routines.
30563 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
30564 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
30565 (maybe_emit_sync_lock_test_and_set): Use new accessors and
30566 MEMMODEL_SYNC_ACQUIRE.
30567 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
30568 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
30569 expand_atomic_store): Use new accessors.
30570 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
30571 * tsan.c (instrument_builtin_call): Update check for memory model beyond
30572 final enum to use MEMMODEL_LAST.
30573 * c-family/c-common.c: Use new accessor for memmodel_base.
30574 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
30575 accessors.
30576 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
30577 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
30578 mem_thread_fence, *dmb): Likewise.
30579 * config/alpha/alpha.c (alpha_split_compare_and_swap,
30580 alpha_split_compare_and_swap_12): Likewise.
30581 * config/arm/arm.c (arm_expand_compare_and_swap,
30582 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
30583 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
30584 atomic_loaddi): Likewise.
30585 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
30586 Likewise.
30587 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
30588 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
30589 use new accessors.
30590 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
30591 atomic_store<mode>, atomic_compare_and_swap<mode>,
30592 atomic_exchange<mode>): Use new accessors.
30593 * config/mips/mips.c (mips_process_sync_loop): Likewise.
30594 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
30595 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
30596 rs6000_post_atomic_barrier): Add new cases.
30597 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
30598 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
30599 (atomic_load<mode>): Add new cases and use new accessors.
30600 (store_quadpti): Add new cases.
30601 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
30602 accessors.
30603 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
30604 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
30605 model, not 8.
30606
30607 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30608
30609 * ipa-devirt.c (type_with_linkage_p): New function.
30610 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
30611 type has linkage.
30612 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
30613 (can_be_name_hashed_p): Simplify.
30614 (hash_odr_name): Check that type has linkage before checking if it is
30615 anonymous.
30616 (types_same_for_odr): Likewise.
30617 (odr_name_hasher::equal): Likewise.
30618 (odr_subtypes_equivalent_p): Likewise.
30619 (warn_types_mismatch): Likewise.
30620 (get_odr_type): Likewise.
30621 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
30622 * ipa-utils.h (odr_type_p): Move offline.
30623 * tree.c (need_assembler_name_p): Fix handling of types
30624 without linkages.
30625 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
30626
30627 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30628
30629 * timevar.c (timevar_enable): Delete in favor of...
30630 (g_timer): New global.
30631 (struct timevar_def): Move to timevar.h inside class timer.
30632 (struct timevar_stack_def): Likewise.
30633 (timevars): Delete global in favor of field "m_timevars" within
30634 class timer in timevar.h
30635 (stack): Likewise, in favor of field "m_stack".
30636 (unused_stack_instances): Likewise, in favor of field
30637 "m_unused_stack_instances".
30638 (start_time): Likewise, in favor of field "m_start_time".
30639 (get_time): Eliminate check for timevar_enable.
30640 (timer::timer): New function, built from part of timevar_init.
30641 (timevar_init): Rewrite idempotency test from using
30642 "timevar_enable" bool to using dynamic allocation of "g_timer".
30643 Move rest of implementation into timer's constructor.
30644 (timevar_push_1): Rename to...
30645 (timer::push): ...this, adding "m_" prefixes to variables that
30646 are now fields of timer.
30647 (timevar_pop_1): Likewise, rename to...
30648 (timer::pop): ...this, and add "m_" prefixes.
30649 (timevar_start): Replace test for "timevar_enable" with one for
30650 "g_timer", and move bulk of implementation to...
30651 (timer::start): ...here, adding "m_" prefixes.
30652 (timevar_stop): Likewise, from here...
30653 (timer::stop): ...to here.
30654 (timevar_cond_start): Likewise, from here...
30655 (timer::cond_start): ...to here.
30656 (timevar_cond_stop): Likewise, from here...
30657 (timer::cond_stop): ...to here.
30658 (validate_phases): Rename to...
30659 (timer::validate_phases): ...this, and add "m_" prefixes. Make
30660 locals "total" and "tv" const.
30661 (timevar_print): Rename to...
30662 (timer::print): ...this, and add "m_" prefixes. Make locals
30663 "total" and "tv" const. Eliminate test for timevar_enable.
30664 * timevar.h (timevar_enable): Eliminate.
30665 (g_timer): New declaration.
30666 (timevar_push_1): Eliminate.
30667 (timevar_pop_1): Eliminate.
30668 (timevar_print): Eliminate.
30669 (class timer): New class.
30670 (timevar_push): Rewrite to use g_timer.
30671 (timevar_pop): Likewise.
30672 * toplev.c (toplev::~toplev): Likewise.
30673
30674 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
30675
30676 * arm-protos.h (arm_sched_autopref): Delete.
30677 (tune_params): Re-organize, use enums for flag values.
30678 (FUSE_OPS): New macro.
30679 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
30680 (ARM_PREFETCH_BENEFICIAL): Likewise.
30681 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
30682 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
30683 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
30684 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
30685 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
30686 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
30687 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
30688 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
30689 format.
30690 (arm_option_override, thumb2_reorg, arm_print_tune_info)
30691 (aarch_macro_fusion_pair_p): Update uses of current_tune.
30692 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
30693
30694 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
30695
30696 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
30697 "break".
30698
30699 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
30700 Sandra Loosemore <sandra@codesourcery.com>
30701
30702 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
30703 value.
30704 (REG_CLASS_NAMES): Add "IJMP_REGS".
30705 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
30706 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
30707 use new "c" register constraint.
30708 * config/nios2/constraint.md (c): New register constraint
30709 corresponding to IJMP_REGS.
30710
30711 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30712
30713 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
30714 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
30715 define_splits): Delete, revamp, transmogrify into ...
30716 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
30717 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
30718 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
30719 New.
30720
30721 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30722
30723 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
30724 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
30725
30726 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30727
30728 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
30729 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
30730 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
30731 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
30732 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
30733 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
30734 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
30735 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
30736 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
30737 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
30738 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
30739 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
30740 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
30741 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
30742 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
30743 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
30744 and 30 corresponding splitters): Delete.
30745
30746 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30747
30748 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
30749 zero_extract.
30750
30751 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30752
30753 * combine.c (recog_for_combine_1): New function, factored out
30754 from recog_for_combine.
30755 (change_zero_ext): New function.
30756 (recog_for_combine): If recog fails, try again with the pattern
30757 modified by change_zero_ext; if that still fails, restore the
30758 pattern.
30759
30760 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30761
30762 * combine.c (get_undo_marker): New function.
30763 (undo_to_marker): New function, largely factored out from ...
30764 (undo_all): ... this. Adjust.
30765
30766 2015-05-12 Richard Biener <rguenther@suse.de>
30767
30768 PR tree-optimization/66101
30769 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
30770 fixup if we turn a loop exit edge to a fallthru edge.
30771
30772 2015-05-12 Richard Biener <rguenther@suse.de>
30773
30774 PR tree-optimization/37021
30775 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
30776 (SLP_TREE_TWO_OPERATORS): New define.
30777 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
30778 SLP_TREE_TWO_OPERATORS.
30779 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
30780 SLP node.
30781 (vect_build_slp_tree): Adjust.
30782 (vect_analyze_slp_cost_1): Likewise.
30783 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
30784 emitting two vector stmts and mixing the results.
30785
30786 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
30787
30788 * call.c (print_z_candidates): Remove dead code.
30789
30790 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30791
30792 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
30793 and zEC12_simple_fp.
30794 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
30795 to 1.
30796
30797 2015-05-12 Tom de Vries <tom@codesourcery.com>
30798
30799 PR tree-optimization/66010
30800 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
30801 ifn_va_arg.
30802 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
30803 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
30804 va_lists are passed, and remove corresponding handling.
30805 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
30806 do_deref argument to ifn_va_arg.
30807 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
30808 ifn_va_arg.
30809
30810 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30811
30812 PR target/65955
30813 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
30814 REG before taking its REGNO.
30815
30816 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30817
30818 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
30819 rsp->sign_bit_copies and rsp->nonzero_bits into ...
30820 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
30821 present to get more accurate information about the number of sign bit
30822 copies and non zero bits.
30823
30824 2015-05-12 Richard Biener <rguenther@suse.de>
30825
30826 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
30827 do not allow unrolling.
30828
30829 2015-05-11 Richard Henderson <rth@redhat.com>
30830
30831 * config/i386/i386-modes.def (CCP): New.
30832 * config/i386/i386.c (put_condition_code): Handle it.
30833 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
30834
30835 2015-05-11 Richard Henderson <rth@redhat.com>
30836
30837 * target.def (md_asm_clobbers): Replace with...
30838 (md_asm_adjust): this.
30839 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
30840 (TARGET_MD_ASM_ADJUST): New.
30841 * tm.texi: Rebuild.
30842 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
30843 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
30844 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
30845
30846 * cfgexpand.c (check_operand_nalternatives): Accept vector of
30847 constraints instead of lists of outputs and inputs.
30848 (expand_asm_stmt): Save and restore input_location around the
30849 body of the function. Move asm data into vectors instead of
30850 building tree lists. Generate cleanup sequences as needed,
30851 rather than waiting til the end. Use new md_asm_adjust hook.
30852
30853 * config/vxworks.c: Include vec.h before target.h.
30854 * gimple.c: Likewise.
30855 * incpath.c: Likewise.
30856 * mode-switching.c: Likewise.
30857
30858 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
30859 (cris_md_asm_adjust): this.
30860 (TARGET_MD_ASM_CLOBBERS): Remove.
30861 (TARGET_MD_ASM_ADJUST): New.
30862 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
30863 (ix86_md_asm_adjust): this.
30864 (TARGET_MD_ASM_CLOBBERS): Remove.
30865 (TARGET_MD_ASM_ADJUST): New.
30866 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
30867 (mn10300_md_asm_adjust): this.
30868 (TARGET_MD_ASM_CLOBBERS): Remove.
30869 (TARGET_MD_ASM_ADJUST): New.
30870 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
30871 (rs6000_md_asm_adjust): this.
30872 (TARGET_MD_ASM_CLOBBERS): Remove.
30873 (TARGET_MD_ASM_ADJUST): New.
30874 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
30875 (visium_md_asm_adjust): this.
30876 (TARGET_MD_ASM_CLOBBERS): Remove.
30877 (TARGET_MD_ASM_ADJUST): New.
30878
30879 2015-05-11 Richard Henderson <rth@redhat.com>
30880
30881 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
30882 if noutputs is zero.
30883 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
30884
30885 * cfgexpand.c (expand_asm_operands): Merge into...
30886 (expand_asm_stmt): ... here.
30887
30888 * cfgexpand.c (expand_asm_operands): Don't call
30889 resolve_asm_operand_names.
30890 * stmt.c (resolve_asm_operand_names): Clarify block comment.
30891
30892 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
30893
30894 * dwarf2out.c (gen_member_die): Sanity check that we access
30895 TYPE_MAIN_VARIANT for TYPE_METHODS.
30896 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
30897 checking TYPE_METHODS.
30898 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
30899 if non-null.
30900 (build_distinct_type_copy): Clear TYPE_METHODS.
30901 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
30902 (verify_type): Allow TYPE_METHODS to be error_mark_node.
30903 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
30904
30905 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
30906
30907 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
30908 (emit_pattern_before_setloc): Likewise.
30909
30910 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30911
30912 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
30913 for define_peephole2s.
30914 (get_peephole2_pattern): New function.
30915 (main): Use it. Call validate_pattern.
30916
30917 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30918
30919 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
30920 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
30921 (Last callee saved reg is different for AVR_TINY architecture)
30922
30923 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30924
30925 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
30926 when looking for memory references.
30927
30928 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30929
30930 PR target/65753
30931 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
30932 via function pointers.
30933
30934 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30935
30936 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
30937 indirect call by forcing address into a pseudo with -fno-plt.
30938 * common.opt (flag_plt): New option.
30939 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
30940 ([-fno-plt]): Document.
30941
30942 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
30943
30944 PR bootstrap/66105
30945 * config/rs6000/option-defaults.h: Add space between string literal
30946 and macro name.
30947
30948 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
30949
30950 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
30951 accross ARM targets.
30952
30953 2015-05-11 Christian Bruel <christian.bruel@st.com>
30954
30955 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
30956 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
30957
30958 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30959
30960 PR rtl-optimization/66076
30961 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
30962 Don't grow the heap array if it is already big enough from a
30963 previous iteration.
30964
30965 2015-05-11 Christian Bruel <christian.bruel@st.com>
30966
30967 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
30968 (is_called_in_ARM_mode): Remove.
30969 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
30970 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
30971 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
30972 arm_declare_function_name.
30973
30974 2015-05-11 Christian Bruel <christian.bruel@st.com>
30975
30976 * config/arm/arm.c (arm_option_override): Reoganized and split into :
30977 (arm_option_params_internal); New function.
30978 (arm_option_check_internal): New function.
30979 (arm_option_override_internal): New function.
30980 (thumb_code, thumb1_code): Remove.
30981 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
30982 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
30983 (thumb_code, thumb1_code): Remove.
30984 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
30985
30986 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30987
30988 * config/alpha/alpha.c (alpha_emit_set_const_1)
30989 (alpha_emit_set_long_const, alpha_extract_integer)
30990 (alpha_legitimate_constant_p, alpha_split_const_mov)
30991 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
30992 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30993 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
30994 HOST_WIDE_INT_1U.
30995 * config/alpha/predicates.md (mode_mask_operand): Do not match
30996 const_double RTX.
30997 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
30998 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
30999 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31000 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31001 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31002
31003 2015-05-11 Jakub Jelinek <jakub@redhat.com>
31004
31005 PR target/65780
31006 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31007 default_binds_local_p_2.
31008 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31009 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31010
31011 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31012
31013 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31014
31015 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31016
31017 Patch by Richard Biener
31018 * coverage.c (coverage_obj_init): Delay building of type variant
31019 until the type is finished.
31020
31021 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31022
31023 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31024 mismatch between C and C++ type; compoare correctly ARG_TYPES
31025 for non-prototypes and output correctly parameter index for METHOD_TYPE.
31026 (odr_types_equivalent_p): Fix wording of warning about attributes;
31027 it is OK to match prototype and non-prototype.
31028
31029 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31030
31031 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31032 TYPE_ARG_TYPES list.
31033 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31034 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31035
31036 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31037
31038 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31039 * tree.h (is_lang_specific): Constify.
31040
31041 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
31042
31043 PR tree-optimization/64454
31044 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31045 Rewrite.
31046
31047 2015-05-08 Jason Merrill <jason@redhat.com>
31048
31049 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31050 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31051 config/darwin.h, config/darwin9.h, config/elfos.h,
31052 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31053 config/microblaze/microblaze.h, config/mips/mips.h,
31054 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31055 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31056 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31057 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31058 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31059 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31060 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31061 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31062 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31063 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31064 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31065 between string literal and macro name.
31066
31067 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31068
31069 * jump.c: Change argument types to rtx_insn *.
31070 * rtl.h: Adjust.
31071
31072 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31073
31074 * lra-constraints.c: Change argument type to rtx_insn *.
31075
31076 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31077
31078 * df-problems.c: Change argument type to rtx_insn *.
31079
31080 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31081
31082 * combine.c: Change argument type to rtx_insn *.
31083
31084 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31085
31086 * rtl.h: Adjust.
31087 * rtlanal.c: Change argument type to rtx_insn *.
31088
31089 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31090
31091 * sched-deps.c: Change argument types to rtx_insn *.
31092 * sched-int.h: Adjust.
31093
31094 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31095
31096 * dwarf2cfi.c: Change argument type to rtx_insn *.
31097
31098 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31099
31100 * ira.c (decrease_live_ranges_number): Changetype of local
31101 variable to rtx_insn *.
31102 * recog.c: Change argument types to rtx_insn *.
31103 * recog.h: Adjust.
31104
31105 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31106
31107 * reorg.c: Change argument types to rtx_insn *.
31108
31109 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31110
31111 * ira-color.c: Change argument types to rtx_insn *.
31112 * lra-eliminations.c: Likewise.
31113 * ira.h: Adjust.
31114
31115 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31116
31117 * gcse.c: Change argument types to rtx_insn *.
31118
31119 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31120
31121 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31122
31123 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31124
31125 * emit-rtl.c (emit_debug_insn_before): Change argument type to
31126 rtx_insn *.
31127 * rtl.h: Adjust.
31128
31129 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31130
31131 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31132 * rtl.h: Adjust.
31133
31134 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31135
31136 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31137 * rtl.h: Adjust.
31138
31139 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31140
31141 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31142 * rtl.h: Adjust.
31143
31144 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31145
31146 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31147 * rtl.h: Adjust.
31148
31149 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31150
31151 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31152 to rtx_insn *.
31153 * rtl.h: Adjust.
31154
31155 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31156
31157 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31158 to rtx_insn *.
31159 * rtl.h: Likewise.
31160
31161 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31162
31163 * except.c (can_nonlocal_goto): Change type of argument to
31164 rtx_insn *.
31165 * rtl.h: Adjust.
31166
31167 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31168
31169 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31170 * rtl.h: Adjust.
31171
31172 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31173
31174 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31175 * cfgrtl.c (can_delete_label_p): Adjust.
31176 * rtl.h: likewise.
31177
31178 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31179
31180 * reorg.c (stop_search_p): Change argument to rtx_insn *.
31181
31182 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31183
31184 * except.c (make_reg_eh_region_note): Change argument to
31185 rtx_insn *.
31186 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31187 * except.h: Adjust.
31188
31189 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31190
31191 * mode-switching.c (commit_mode_sets): Change type of local
31192 variable from rtx to rtx_insn *.
31193
31194 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
31195
31196 * doc/install.texi (--enable-languages): Add missing jit and lto info.
31197 Add ^ to grep command.
31198 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31199 arg to last gimple_simplify declaration. Add missing gimple_build
31200 declaration for built-in function case with four tree args.
31201
31202 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31203 Szabolcs Nagy <szabolcs.nagy@arm.com>
31204
31205 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31206 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31207 (GNU_USER_DYNAMIC_LINKERN32): Update.
31208
31209 2015-05-08 Richard Biener <rguenther@suse.de>
31210
31211 PR tree-optimization/66036
31212 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31213 Handle strided group loads.
31214 (vect_verify_datarefs_alignment): Likewise.
31215 (vect_enhance_data_refs_alignment): Likewise.
31216 (vect_analyze_group_access): Likewise.
31217 (vect_analyze_data_ref_access): Likewise.
31218 (vect_analyze_data_ref_accesses): Likewise.
31219 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31220 (vectorizable_load): Likewise.
31221
31222 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
31223
31224 * config/rs6000/rs6000.md: Require operand inequality in one
31225 of the peepholes.
31226
31227 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
31228 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
31229
31230 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31231 from (set ...).
31232 * config/rx/rx.md (movdi, movdf): Likewise.
31233 Likewise for define_peephole2s.
31234
31235 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31236
31237 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31238 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31239 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31240 vtst_u64): Rewrite using gcc vector extensions.
31241
31242 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31243
31244 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31245 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31246
31247 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31248
31249 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31250
31251 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
31252
31253 * config/glibc-stdint.h (OPTION_MUSL): Define.
31254 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31255 Change the definition based on OPTION_MUSL for 64 bit targets.
31256 * config/linux.h (OPTION_MUSL): Redefine.
31257 * config/alpha/linux.h (OPTION_MUSL): Redefine.
31258 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31259 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31260
31261 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31262 Szabolcs Nagy <szabolcs.nagy@arm.com>
31263
31264 * config.gcc (LIBC_MUSL): New tm_defines macro.
31265 * config/linux.h (OPTION_MUSL): Define.
31266 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31267 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31268 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31269 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31270 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31271 * config/linux.opt (mmusl): New option.
31272 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31273 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31274 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31275 * configure: Regenerate.
31276
31277 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
31278 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31279
31280 PR target/48904
31281 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31282 * config/i386/knetbsd-gnu64.h: New file.
31283
31284 2015-05-08 Marek Polacek <polacek@redhat.com>
31285
31286 PR c/64918
31287 * doc/invoke.texi: Document -Woverride-init-side-effects.
31288
31289 2015-05-07 Marek Polacek <polacek@redhat.com>
31290
31291 PR c/65179
31292 * doc/invoke.texi: Document -Wshift-negative-value.
31293
31294 2015-05-06 Aditya Kumar <hiraditya@msn.com>
31295
31296 * gcov-tool.c (do_merge): Refactore to remove int ret.
31297 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31298 !type == FUNC to type != FUNC.
31299 * reload.h (struct target_reload): Changee to type of
31300 x_spill_indirect_levels from bool to unsigned char.
31301
31302 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
31303
31304 * rtl.h (always_void_p): New function.
31305 * gengenrtl.c (always_void_p): Likewise.
31306 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31307 with code foo are always VOIDmode.
31308 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31309 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31310 compare-elim.c, config/aarch64/aarch64.c,
31311 config/aarch64/aarch64.md, config/alpha/alpha.c,
31312 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31313 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31314 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31315 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31316 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31317 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31318 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31319 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31320 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31321 config/ia64/vect.md, config/iq2000/iq2000.c,
31322 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31323 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31324 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31325 config/mep/mep.c, config/microblaze/microblaze.c,
31326 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31327 config/mn10300/mn10300.c, config/msp430/msp430.c,
31328 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31329 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31330 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31331 config/rs6000/altivec.md, config/rs6000/rs6000.c,
31332 config/rs6000/rs6000.md, config/rs6000/vector.md,
31333 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31334 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31335 config/sh/sh.md, config/sh/sh_treg_combine.cc,
31336 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31337 config/spu/spu.md, config/stormy16/stormy16.c,
31338 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31339 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31340 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31341 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31342 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31343 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31344 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31345 var-tracking.c: Update calls accordingly.
31346
31347 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
31348
31349 PR middle-end/192
31350 PR middle-end/54303
31351 * varasm.c (function_mergeable_rodata_prefix): New function.
31352 (mergeable_string_section): Use it.
31353 (mergeable_constant_section): Use it.
31354
31355 2015-05-07 Jeff Law <law@redhat.com>
31356
31357 PR target/39726
31358 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31359 simplifier to narrow arithmetic.
31360 * generic-match-head.c: (types_match, single_use): New functions.
31361 * gimple-match-head.c: (types_match, single_use): New functions.
31362
31363 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31364
31365 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31366 rtx type.
31367
31368 2015-05-07 Richard Biener <rguenther@suse.de>
31369
31370 PR tree-optimization/66002
31371 * passes.def: Schedule another pass_merge_phi after ifcombine, right
31372 before phiopt.
31373
31374 2015-05-07 Marek Polacek <polacek@redhat.com>
31375 Martin Uecker <uecker@eecs.berkeley.edu>
31376
31377 * doc/invoke.texi: Document -fsanitize=bounds-strict.
31378 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31379 into SANITIZE_NONDEFAULT.
31380 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31381
31382 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
31383
31384 PR target/66015
31385 * config/alpha/alpha.c (alpha_override_options_after_change): New.
31386 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31387 (alpha_override_options): Move align_loops, align_jumps and
31388 align_functions handling into alpha_override_options_after_change.
31389
31390 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
31391 Chris Jones <chrisj@nvidia.com>
31392 Joshua Conner <jconner@nvidia.com>
31393
31394 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31395 linking of crtfastmath.o.
31396 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31397
31398 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
31399
31400 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
31401 (cstore<mode>4_unsigned_imm): New expander.
31402 (cstore<mode>4): Remove empty constraint strings. Use the new
31403 expanders.
31404
31405 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
31406
31407 PR target/64208
31408 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
31409 alternatives.
31410
31411 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
31412
31413 * config/aarch64/geniterators.sh: Use standard BRE in sed.
31414
31415 2015-05-06 Alan Modra <amodra@gmail.com>
31416
31417 PR target/66033
31418 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
31419 (UNSPEC_NOP): Define.
31420 (reload_vsx_from_gpr<mode>): Add missing DONE.
31421 (reload_gpr_from_vsx<mode>): Likewise.
31422 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
31423 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
31424
31425 2015-05-06 Christian Bruel <christian.bruel@st.com>
31426
31427 PR target/66015
31428 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
31429 align_jumps, align_functions into aarch64_override_options_after_change.
31430
31431 2015-05-06 Richard Biener <rguenther@suse.de>
31432
31433 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
31434 vect_transform_slp_perm_load to check if we support a permutation
31435 for basic-block vectorization.
31436
31437 2015-05-06 Nick Clifton <nickc@redhat.com>
31438
31439 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
31440 used, even if it is not being used as a frame pointer.
31441
31442 2015-05-05 Jason Merrill <jason@redhat.com>
31443
31444 * dwarf2out.c (gen_member_die): Don't emit anything for an
31445 anonymous class constructor.
31446
31447 2015-05-05 David Malcolm <dmalcolm@redhat.com>
31448
31449 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
31450 that it reflects the block structure.
31451 (afdo_propagate_edge): Likewise.
31452 (afdo_calculate_branch_prob): Likewise.
31453 (afdo_annotate_cfg): Likewise.
31454 * cfgcleanup.c (equal_different_set_p): Likewise.
31455 (try_crossjump_to_edge): Likewise.
31456 * cgraph.c (cgraph_node::verify_node): Likewise.
31457 * cgraphunit.c (expand_all_functions): Likewise.
31458 * config/i386/i386.c (ix86_expand_copysign): Likewise.
31459 (exact_dependency_1): Likewise.
31460 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
31461 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
31462 * gensupport.c (process_define_subst): Likewise.
31463 * lto-wrapper.c (merge_and_complain): Likewise.
31464 * tree-if-conv.c (if_convertible_bb_p): Likewise.
31465 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
31466 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31467 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
31468 * tree-vect-loop.c (vectorizable_reduction): Likewise.
31469 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31470 * tree-vect-stmts.c (vectorizable_shift): Likewise.
31471 * tree-vrp.c (vrp_finalize): Likewise.
31472 * tree.c (variably_modified_type_p): Likewise.
31473
31474 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
31475
31476 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
31477 on darwin12 and later.
31478 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
31479 file to pass -rdynamic on darwin12 and later.
31480 * config/darwin.opt (rdynamic): Add.
31481
31482 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31483
31484 * doc/extend.texi (C Extensions): Update menu for moved Variable
31485 Attributes and Type Attributes sections.
31486
31487 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31488
31489 PR target/65990
31490 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
31491 if rep_8byte stringop strategy was specified for 32-bit target.
31492
31493 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
31494
31495 PR target/65915
31496 * config/i386/i386.md (vector convert to float spltiter): Check for
31497 xmm16+, when splitting scalar float conversion.
31498 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
31499
31500 2015-05-05 Nick Clifton <nickc@redhat.com>
31501
31502 * config/msp430/msp430-opts.h (enum msp430_regions): New.
31503 * config/msp430/msp430.c (msp430_override_options): Complain if
31504 -mcode-region or -mdata-region is used on a non MSP430X.
31505 (msp430_section_attr): New function. Checks lower, upper and
31506 either attributes.
31507 (msp430_attribute_table): Add lower, upper and either.
31508 (gen_prefix): New function. Generates a prefix for a section
31509 name.
31510 (msp430_select_section): New function - handles the choice of
31511 section for an object. Takes into account memory region
31512 attributes and options.
31513 (msp430_function_section): Use gen_prefix.
31514 (TARGET_SECTION_TYPE_FLAGS): Define.
31515 (msp430_section_type_flags): New function.
31516 (TARGET_ASM_UNIQUE_SECTION): Define.
31517 (msp430_unique_section): New function.
31518 (msp430_output_aligned_decl_common): New function.
31519 (msp430_do_not_relax_short_jumps): New function.
31520 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
31521 Define.
31522 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
31523 * config/msp430/msp430-protos.h
31524 (msp430_do_not_relax_short_jumps): New prototype.
31525 (msp430_output_aligned_decl_common): New prototype.
31526 * config/msp430/msp430.md (length): New attribute.
31527 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
31528 then use a long code sequence for short jumps.
31529 * config/msp430/msp430.opt (mcode-region): New.
31530 (mdata-region): New.
31531 * doc/invoke.texi: Document new options.
31532 * doc/extend.texi: Document new attributes.
31533
31534 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31535
31536 * config/aarch64-protos.h (struct cpu_branch_cost): New.
31537 (tune_params): Add field branch_costs.
31538 (aarch64_branch_cost): Declare.
31539 * config/aarch64.c (generic_branch_cost): New.
31540 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
31541 (cortexa53_tunings): Likewise.
31542 (cortexa57_tunings): Likewise.
31543 (thunderx_tunings): Likewise.
31544 (xgene1_tunings): Likewise.
31545 (aarch64_branch_cost): Define.
31546 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
31547
31548 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31549
31550 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
31551 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
31552 * config/i386/i386.md: Ditto.
31553 * config/i386/winnt.c: Ditto.
31554
31555 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31556
31557 * doc/extend.texi (__atomic Builtins): Move implementation details
31558 to the end of the description, rewrite opening paragraphs, state
31559 difference with __sync builtins, state C11/C++11 assumptions,
31560 weaken itemized descriptions, add explanation of memory model
31561 behaviour, expand description of compare-exchange, simplify text.
31562
31563 2015-05-05 Renlin Li <renlin.li@arm.com>
31564
31565 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
31566
31567 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
31568
31569 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
31570 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31571 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
31572 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31573 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
31574 * configure: Regenerate.
31575 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
31576 * doc/install.texi (aarch64*-*-*): Document new
31577 --enable-fix-cortex-a53-843419 option.
31578 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
31579 and -mno-fix-cortex-a53-843419 options.
31580
31581 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31582
31583 PR target/65871
31584 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
31585
31586 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
31587
31588 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
31589 fix overactive TYPE_MIN_VALUE check and add FIXME for type
31590 compatibility problems.
31591
31592 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31593
31594 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
31595 constraints.
31596 (cbranchsi4_reg): New.
31597 * config/microblaze/microblaze.c
31598 (microblaze_expand_conditional_branch_reg): New.
31599 * config/microblaze/microblaze-protos.h
31600 (microblaze_expand_conditional_branch_reg): New prototype.
31601
31602 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31603
31604 * config/microblaze/microblaze.md (peephole2): New.
31605
31606 2015-05-04 Jeff Law <law@redhat.com>
31607
31608 Revert:
31609 2015-05-04 Jeff Law <law@redhat.com>
31610
31611 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31612 simplifier to narrow arithmetic.
31613 * generic-match-head.c: (types_match, single_use): New functions.
31614 * gimple-match-head.c: (types_match, single_use): New functions.
31615
31616 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
31617
31618 PR target/65987
31619 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
31620 (split_branches): Likewise.
31621
31622 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
31623
31624 * common.opt (fdelete-null-pointer-checks): Init to -1.
31625 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
31626 override flag_delete_null_pointer_checks default.
31627 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
31628 behavior re address zero. Better document target-specific behavior.
31629 (-fisolate-errneous-paths-dereference): Mention relationship to
31630 -fdelete-null-pointer-checks.
31631
31632 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31633
31634 PR tree-optimization/65984
31635 * ubsan.c: Include tree-cfg.h.
31636 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
31637 stmt_could_throw_p test, rename can_throw variable to ends_bb.
31638
31639 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31640
31641 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
31642 to CONST_DOUBLE_P predicate.
31643 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
31644 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
31645 allow only operands that satisfy standard_sse_constant_p predicate.
31646 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
31647 to CONST_DOUBLE_P predicate.
31648
31649 2015-05-04 Jeff Law <law@redhat.com>
31650
31651 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31652 simplifier to narrow arithmetic.
31653 * generic-match-head.c: (types_match, single_use): New functions.
31654 * gimple-match-head.c: (types_match, single_use): New functions.
31655
31656 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
31657
31658 * config/arm/arm.c: Restore bootstrap.
31659
31660 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31661
31662 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
31663 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
31664 as CONST_WIDE_INT, not CONST_DOUBLE.
31665 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
31666 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
31667 (ix86_find_base_term): Do not check for CONST_DOUBLE.
31668 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
31669 (ix86_build_signbit_mask): Rewrite using wide ints.
31670 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
31671 (ix86_rtx_costs): Handle CONST_WIDE_INT.
31672 (find_constant): Ditto.
31673 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
31674 using gen_int_mode.
31675 * config/i386/predicates.md (x86_64_immediate_operand)
31676 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31677 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
31678 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31679 (const0_operand): Also match const_wide_int.
31680 (constm1_operand): Ditto.
31681 (const1_operand): Ditto.
31682
31683 2015-05-04 Richard Biener <rguenther@suse.de>
31684
31685 PR tree-optimization/65965
31686 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
31687 store groups at gaps.
31688
31689 2015-05-04 Richard Biener <rguenther@suse.de>
31690
31691 PR tree-optimization/65935
31692 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
31693 then make sure to apply that swapping to the IL.
31694
31695 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31696
31697 * Makefile.in (PATCHLEVEL_c): New variable.
31698 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
31699 expand the same way as if DEVPHASE_c was non-empty.
31700
31701 2015-05-04 Kai Tietz <ktietz@redhat.com>
31702
31703 PR target/65559
31704 * lto-wrapper.c (run_gcc): Open filename
31705 in binary-mode.
31706
31707 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
31708
31709 * doc/extend.texi (Variable Attributes, Type Attributes): Move
31710 sections up in file, to immediately after the Function Attributes
31711 section.
31712
31713 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
31714
31715 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
31716
31717 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31718
31719 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
31720 (insert_partition_copy_on_edge): Adjust.
31721 (insert_rtx_to_part_on_edge): Likewise.
31722 (insert_part_to_rtx_on_edge): Likewise.
31723
31724 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31725
31726 * function.c (set_return_jump_label): Change type of argument to
31727 rtx_insn *.
31728 * function.h (set_return_jump_label): Adjust.
31729
31730 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31731
31732 * reload.h (struct reg_equivs_t): Change type of init to
31733 rtx_insn *.
31734 * ira.c (fix_reg_equiv_init): Adjust.
31735 * reload1.c (eliminate_regs_1): Likewise.
31736 (init_eliminable_invariants): Likewise.
31737
31738 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31739
31740 * cselib.c (fp_setter_insn): Take a rtx_insn *.
31741 * cselib.h (fp_setter_insn): Adjust.
31742
31743 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31744
31745 * recog.c (struct validate_replace_src_data): Change type of
31746 insn field to rtx_insn *.
31747 (validate_replace_src_group): Change type of argument to rtx_insn *.
31748 * recog.h (validate_replace_src_group): Adjust.
31749
31750 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31751
31752 * haifa-sched.c: Change the type of some variables to rtx_insn *.
31753 * sched-deps.c: Likewise.
31754 * sched-int.h: Likewise.
31755 * sched-rgn.c: Likewise.
31756 * sel-sched.c: Likewise.
31757
31758 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31759
31760 to rtx_insn *.
31761 * config/i386/i386.c: Change the type of some arguments to
31762 rtx_insn *.
31763 * config/arm/arm.c: Likewise.
31764
31765 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31766
31767 * lra-constraints.c: Change type of some arguments to rtx_insn *.
31768
31769 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31770
31771 * regcprop.c (kill_autoinc_value): Change type of argument to
31772 rtx_insn *.
31773
31774 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31775
31776 * genrecog.c (print_subroutine): Adjust.
31777 * recog.c (get_bool_attr_mask_uncached): Likewise.
31778 * recog.h (struct recog_data_d): Change the type of insn to
31779 rtx_insn *.
31780
31781 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31782
31783 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
31784
31785 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31786
31787 * df-problems.c (df_set_note): Change type of argument to
31788 rtx_insn *.
31789
31790 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31791
31792 * builtins.c (expand_builtin_trap): Change type of local
31793 variable to rtx_insn *.
31794 (add_sched_insns_for_speculation): Likewise.
31795 (ix86_emit_save_regs): Likewise.
31796 (get_scratch_register_on_entry): Likewise.
31797 (ix86_emit_restore_reg_using_pop): Likewise.
31798 (ix86_emit_leave): Likewise.
31799 (ix86_emit_restore_regs_using_mov): Likewise.
31800 (ix86_expand_epilogue): Likewise.
31801 Likewise.
31802 (rl78_alloc_physical_registers_umul): Likewise.
31803 * cselib.c (discard_useless_locs): Likewise.
31804 (cselib_invalidate_regno): Likewise.
31805 (cselib_invalidate_mem): Likewise.
31806 * function.c (expand_function_start): Likewise.
31807 (emit_use_return_register_into_block): Likewise.
31808 * gcse.c: Likewise.
31809 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
31810 * ifcvt.c (noce_get_alt_condition): Likewise.
31811 * loop-doloop.c (doloop_condition_get): Likewise.
31812 * lra-constraints.c (inherit_in_ebb): Likewise.
31813 * modulo-sched.c (sms_schedule_by_order): Likewise.
31814 * recog.c (next_insn_tests_no_inequality): Likewise.
31815 * reorg.c (emit_delay_sequence): Likewise.
31816 (update_reg_dead_notes): Likewise.
31817 (fix_reg_dead_note): Likewise.
31818 (fill_slots_from_thread): Likewise.
31819 (delete_computation): Likewise.
31820
31821 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
31822
31823 * doc/extend.texi (Variable Attributes): Add menu and proper
31824 @nodes to subsections. Move Microsoft Windows attributes to
31825 their own subsection.
31826 (Type Attributes): Reorganize introduction to remove duplicate
31827 list of attributes. Add menu and proper @nodes to subsections.
31828 Alphabetize the main table of common attributes.
31829
31830 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
31831
31832 * match.pd: New simplification patterns.
31833 (x + (x & 1)) -> ((x + 1) & ~1)
31834 (x & ~(x & y)) -> ((x & ~y))
31835 (x | ~(x | y)) -> ((x | ~y))
31836
31837 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31838
31839 * target.def (attribute_table): Mention that struct attribute_spec
31840 is defined in tree-core.h rather than tree.h
31841 * doc/tm.texi: Regenerate.
31842
31843 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
31844
31845 * genrecog.c (test): Rename to rtx_test. Update rest of file
31846 accordingly.
31847
31848 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
31849
31850 PR translation/65959
31851 * params.h (DEFPARAM): Rename msgid to nocmsgid.
31852
31853 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31854
31855 * config/aarch64/aarch64-protos.h (tune_params):
31856 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
31857 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
31858 Return value depending on target.
31859 (generic_tunings): Initialize new target settings.
31860 (cortexa53_tunings): Likewise.
31861 (cortexa57_tunings): Likewise.
31862 (thunderx_tunings): Likewise.
31863 (xgene1_tunings): Likewise.
31864
31865 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31866
31867 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
31868 Make Cortex-A53 shift costs more accurate.
31869
31870 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31871
31872 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
31873 UNSIGNED_FLOAT.
31874
31875 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31876
31877 * config/aarch64/aarch64.c (aarch64_rtx_costs):
31878 Calculate cost of op0 and op1 in PLUS and MINUS cases.
31879
31880 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31881
31882 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31883 Add cost of op0 in the compare-with-fpzero case.
31884
31885 2015-04-30 David Malcolm <dmalcolm@redhat.com>
31886
31887 * builtins.c (fold_builtin_1): Remove spurious second
31888 semicolon.
31889 * cgraph.h (symtab_node::get_availability): Likewise.
31890 * opts.c (common_handle_option): Remove spurious second semicolon.
31891 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
31892 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
31893
31894 2015-04-30 Caroline Tice <cmtice@google.com>
31895
31896 PR gcov-profile/65929
31897 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
31898 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
31899 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
31900 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
31901 * doc/tm.texi: Regenerate.
31902 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
31903 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
31904 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
31905 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
31906
31907 2015-04-30 Marek Polacek <polacek@redhat.com>
31908
31909 * varasm.c (handle_cache_entry): Fix logic.
31910
31911 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31912
31913 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
31914 (*extrsi5_insn_uxtw_alt): Likewise.
31915 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
31916 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
31917 operations.
31918
31919 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31920
31921 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
31922 fabd in ABS case.
31923
31924 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31925
31926 * config/aarch64/aarch64.md
31927 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
31928 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
31929 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
31930 appropriately. Handle alternative EON form.
31931
31932 2015-04-30 Renlin Li <renlin.li@arm.com>
31933
31934 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
31935 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
31936
31937 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31938
31939 PR ipa/65873
31940 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
31941 -fstrict-aliasing boundaries.
31942
31943 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31944
31945 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31946 and [SU]MNEGL patterns.
31947
31948 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31949
31950 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
31951 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
31952 combined arithmetic-shift ops. Properly handle all shift and extend
31953 operations that can occur in combination with PLUS/MINUS.
31954 Rename maybe_fma to compound_p.
31955 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
31956 arithmetic and shift operations.
31957
31958 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31959
31960 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
31961 rather than arith_shift cost when costing ADD/MINUS of an
31962 extended value.
31963
31964 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31965
31966 PR lto/65948
31967 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
31968 to itself.
31969
31970 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
31971
31972 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
31973 are for the same position.
31974
31975 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
31976
31977 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
31978 vectorize_loops.
31979 (vectorize_loops): Use it.
31980
31981 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31982
31983 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
31984 for aggregate types.
31985 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
31986 type to be non_ODR.
31987 * tree.c (need_assembler_name_p): Compute mangled name for
31988 non-fundamental types and integer types.
31989
31990 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
31991
31992 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
31993 manual swaps.
31994 * expr.c (expand_expr_real_2): Likewise.
31995
31996 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
31997
31998 * tree.c (build_common_builtin_nodes): Do not build
31999 __builtin_alloca_with_align as equivalent of library alloca.
32000
32001 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32002
32003 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32004 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32005 bugus variants.
32006 * tree.c: Include print-tree.h and ipa-utils.h
32007 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32008 (free_lang_data_in_cgraph): Call verify_type.
32009 (verify_type_variant): New function.
32010 (verify_type): New function.
32011 * tree.h (verify_type): Declare.
32012
32013 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
32014
32015 * config/mips/mips-cpus.def: (mips4): Change default processor
32016 from PROCESSOR_R8000 to PROCESSOR_R10000.
32017
32018 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
32019
32020 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32021 la/jalr instead of jal.
32022
32023 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
32024
32025 PR target/65871
32026 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32027 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32028 (setcc+movzbl peephole2): Check also clobbered reg.
32029 (setcc+andl peephole2): Ditto.
32030
32031 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32032
32033 PR libgomp/65099
32034 * config/nvptx/mkoffload.c (target_ilp32): New variable.
32035 (main): Set it depending on "-foffload-abi=[...]".
32036 (compile_native, main): Use it to pass "-m32" or "-m64" to the
32037 compiler.
32038
32039 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32040
32041 PR target/65770
32042 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32043 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32044 Flip lane index back at assembly time for bigendian.
32045
32046 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32047
32048 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32049 * gimplify.c (gimplify_omp_workshare): Use it.
32050
32051 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32052
32053 * Makefile.in (build/genrecog.o): Depend on inchash.h.
32054 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32055 build/inchash.o
32056 * genrecog.c: Rewrite most of the code except for the third page.
32057
32058 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32059
32060 * inchash.h, inchash.c: Include bconfig.h for build objects.
32061 * Makefile.in (build/inchash.o): New rule.
32062
32063 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
32064
32065 PR target/65924
32066 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32067 number in type attribute expression.
32068
32069 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32070
32071 * loop-iv.c (canon_condition): Generalize to all types of integer
32072 constant.
32073
32074 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
32075
32076 * gimple-walk.c: Prune duplicate or unneeded includes.
32077 (walk_gimple_asm): Only call parse_input_constraint or
32078 parse_output_constraint if their findings are used.
32079 Honour parse_input_constraint and parse_output_constraint
32080 result.
32081
32082 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32083
32084 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32085
32086 2015-04-29 Tom de Vries <tom@codesourcery.com>
32087
32088 PR tree-optimization/65893
32089 * passes.def (pass_all_optimizations): Move pass_stdarg to after
32090 pass_dce.
32091
32092 2015-04-29 Richard Biener <rguenther@suse.de>
32093
32094 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32095 compute GROUP_SIZE for basic-block SLP.
32096 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32097 take into account gaps.
32098 (vect_get_mask_element): Properly reject references to previous
32099 vectors.
32100 (vect_transform_slp_perm_load): Likewise.
32101
32102 2015-04-29 Christian Bruel <christian.bruel@st.com>
32103
32104 PR target/64835
32105 * config/i386/i386.c (ix86_default_align): New function.
32106 (ix86_override_options_after_change): Call ix86_default_align.
32107 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32108 (ix86_override_options_after_change): New function.
32109
32110 2015-04-28 Jeff Law <law@redhat.com>
32111
32112 * tree-ssa-dom.c (record_equality); Fix comment typos.
32113
32114 2015-04-28 Tom de Vries <tom@codesourcery.com>
32115
32116 PR tree-optimization/65887
32117 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32118
32119 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
32120
32121 * doc/extend.texi (Declaring Attributes of Functions): Split into
32122 subsections by target. Alphabetize the table of common attributes.
32123 Rewrite some of the introductory text to reflect the new structure.
32124 Update some cross-references to point to the new subsections.
32125 (Attribute Syntax): Put paragraph about "__" naming here. Remove
32126 duplicate copies in the discussion of function, label, and type
32127 attributes.
32128
32129 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
32130
32131 PR bootstrap/65910
32132 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32133
32134 2015-04-28 Jason Merrill <jason@redhat.com>
32135
32136 PR c++/65734
32137 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32138 (finalize_type_size): Respect TYPE_USER_ALIGN.
32139 (layout_type) [ARRAY_TYPE]: Likewise.
32140
32141 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
32142
32143 * config/arm/arm.md (*arm_movt): Fix type attribute.
32144 (*cmpsi_shiftsi): Likewise.
32145 (*cmpsi_shiftsi_swp): Likewise.
32146 (*movsicc_insn): Likewise.
32147 (*cond_move): Likewise.
32148 (*if_plus_move): Likewise.
32149 (*if_move_plus): Likewise.
32150 (*if_arith_move): Likewise.
32151 (*if_move_arith): Likewise.
32152 (*if_shift_move): Likewise.
32153 (*if_move_shift): Likewise.
32154 (*arm_movtas_ze): Likewise.
32155 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32156 redundancy and type attribute.
32157 (*thumb2_movsi_insn): Fix type attribute.
32158 (*thumb2_addsi_short): Likewise.
32159 (thumb2_addsi3_compare0): Likewise.
32160 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32161 attributes accordingly.
32162
32163 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
32164
32165 PR other/65911
32166 * function.c (pad_to_arg_alignment): Add parentheses.
32167
32168 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
32169
32170 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32171 libgcc/config/frv/elf-lib.h.
32172
32173 2015-04-28 Tom de Vries <tom@codesourcery.com>
32174
32175 * tree-call-cdce.c: Fix example in header comment.
32176
32177 2015-04-28 Richard Biener <rguenther@suse.de>
32178
32179 PR tree-optimization/62283
32180 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32181 fails fatally and we are vectorizing a basic-block simply
32182 cause the child to be constructed piecewise.
32183 (vect_analyze_slp_cost_1): Adjust.
32184 (vect_detect_hybrid_slp_stmts): Likewise.
32185 (vect_bb_slp_scalar_cost): Likewise.
32186 (vect_get_constant_vectors): For piecewise constructed
32187 constants place them after the last def.
32188 (vect_get_slp_defs): Adjust.
32189 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32190 externals for basic-block vectorization.
32191
32192 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32193
32194 PR target/63503
32195 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32196 aarch64-*-*.
32197 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32198 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32199 (AARCH64_TUNE_FMA_STEERING): Likewise.
32200 * config/aarch64/aarch64-cores.def: Set
32201 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32202 FMUL/FMADD instructions.
32203 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32204 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
32205 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32206 * config/aarch64/cortex-a57-fma-steering.h: New file.
32207 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32208
32209 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
32210
32211 * gensupport.c (std_preds): Add missing codes to address_operand entry.
32212
32213 2015-04-28 Richard Biener <rguenther@suse.de>
32214
32215 PR tree-optimization/65851
32216 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32217 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
32218 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
32219 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32220 (ccp_visit_phi_node): Adjust.
32221 (evaluate_stmt): For simplifications to SSA names return its
32222 lattice value if that isn't VARYING. Return immediately when
32223 simplified to a constant.
32224 (visit_assignment): Adjust.
32225 (ccp_visit_stmt): Likewise.
32226
32227 2015-04-28 Tom de Vries <tom@codesourcery.com>
32228
32229 PR tree-optimization/65818
32230 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32231 evaluated.
32232
32233 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32234
32235 * calls.c (save_fixed_argument_area): Don't check
32236 ARGS_GROW_DOWNWARD with the preprocessor.
32237 (restore_fixed_argument_area): Likewise.
32238 (mem_overlaps_already_clobbered_arg_p): Likewise.
32239 (check_sibcall_argument_overlap): Likewise.
32240 (expand_call): Likewise.
32241 (emit_library_call_value_1): Likewise.
32242 (store_one_arg): Likewise.
32243 * function.c (assign_parms): Likewise.
32244 (locate_and_pad_parm): Likewise.
32245 (pad_to_arg_alignment): Likewise.
32246 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32247
32248 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32249
32250 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32251 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32252 * calls.c (save_fixed_argument_area): Don't chekc if
32253 ARGS_GROW_DOWNWARD is defined.
32254 (restore_fixed_argument_area): Likewise.
32255 (mem_overlaps_already_clobbered_arg_p): Likewise.
32256 (check_sibcall_argument_overlap): Likewise.
32257 (expand_call): Likewise.
32258 (emit_library_call_value_1): Likewise.
32259 (store_one_arg): Likewise.
32260 * function.c (assign_parms): Likewise.
32261 (locate_and_pad_parm): Likewise.
32262 (pad_to_arg_alignment): Likewise.
32263 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32264
32265 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32266
32267 * defaults.h (gen_epilogue): New function.
32268 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32269 defined.
32270 * cfgrtl.c (cfg_layout_finalize): Likewise.
32271 * df-scan.c: Likewise.
32272 * function.c (thread_prologue_and_epilogue_insns): Likewise.
32273 (reposition_prologue_and_epilogue_notes): Likewise.
32274 * reorg.c (find_end_label): Likewise.
32275 * toplev.c: Likewise.
32276
32277 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32278
32279 * bb-reorder.c (HAVE_return): Don't check if its undefined.
32280 * defaults.h (gen_simple_return): New function.
32281 (gen_simple_return): Likewise.
32282 (HAVE_return): Add default definition to false.
32283 (HAVE_simple_return): Likewise.
32284 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32285 HAVE_return and HAVE_simple_return are defined.
32286 * function.c (gen_return_pattern): Likewise.
32287 (convert_jumps_to_returns): Likewise.
32288 (thread_prologue_and_epilogue_insns): Likewise.
32289 * reorg.c (find_end_label): Likewise.
32290 (dbr_schedule): Likewise.
32291 * shrink-wrap.c: Likewise.
32292 * shrink-wrap.h: Likewise.
32293
32294 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32295
32296 * defaults.h (EPILOGUE_USES): Add default definition of false.
32297 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32298 * resource.c (init_resource_info): Likewise.
32299
32300 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32301
32302 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32303 to false.
32304 * dwarf2out.c (field_byte_offset): REmove check if
32305 PCC_BITFIELD_TYPE_MATTERS is defined.
32306 * stor-layout.c (layout_decl): Likewise.
32307 (update_alignment_for_field): Likewise.
32308 (place_field): Likewise.
32309
32310 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32311
32312 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32313 true.
32314 * regrename.c (check_new_reg_p): Remove check if
32315 HARD_REGNO_RENAME_OK is defined.
32316 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32317
32318 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32319
32320 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32321 * cse.c (fold_rtx): Likewise.
32322 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32323 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32324 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32325 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32326 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32327 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32328 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32329 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32330 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32331 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32332 * Likewise.
32333 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32334 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32335 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32336 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32337 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32338 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32339 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32340 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32341 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32342 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32343 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32344 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32345 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32346 * doc/tm.texi: Regenerate.
32347 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32348 either true or false.
32349
32350 2015-04-27 Jeff Law <law@redhat.com>
32351
32352 PR tree-optimization/65217
32353 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32354 of them has a single use, make sure it is the LHS of the implied
32355 copy.
32356
32357 2015-04-28 Alan Modra <amodra@gmail.com>
32358
32359 PR target/65810
32360 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32361 (offsettable_ok_by_alignment): Use minimum of decl and toc
32362 pointer alignment. Replace dead code with assertion.
32363 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
32364 case if size exceeds toc pointer alignment.
32365 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32366 (rs6000_emit_move): Likewise.
32367 * configure.ac: Add linker toc pointer alignment check.
32368 * configure: Regenerate.
32369 * config.in: Regenerate.
32370
32371 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
32372
32373 * config.gcc: Add h8300-*-linux.
32374 * config/h8300/linux.h: New.
32375 * config/h8300/t-linux: New.
32376 * config/h8300/h8300.c (h8300_option_override): Normal mode
32377 is not supported for h8300-*-linux.
32378 (h8300_file_start): Target priority change.
32379 (get_shift_alg): Likewise.
32380 (h8300_shift_need_scratch_p): Likewise.
32381 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32382 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32383
32384 2015-04-27 Caroline Tice <cmtice@google.com>
32385
32386 * final.c (final_scan_insn): Output cold_function_name as function
32387 type.
32388 * varasm.c (cold_function_name): Make global.
32389 (assemble_start_function): Re-set cold_function_name.
32390 (assemble_end_function): Output cold partition size.
32391 * varasm.h (cold_function_name): Declare global.
32392
32393 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
32394
32395 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32396 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32397 constraint.
32398 (*movxi_internal_avx512f): Ditto.
32399 (define_split): Check for xmm16+, when splitting scalar float_extend.
32400 (*extendsfdf2_mixed): Use "v" constraint.
32401 (define_split): Check for xmm16+, when splitting scalar float_truncate.
32402 (*truncdfsf_fast_sse): Use "v" constraint.
32403 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
32404 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
32405 (define_peephole2): Check for xmm16+, when converting scalar
32406 float_truncate.
32407 (define_peephole2): Check for xmm16+, when converting scalar
32408 float_extend.
32409 (*fop_<mode>_comm_mixed): Use "v" constraint.
32410 (*fop_<mode>_comm_sse): Ditto.
32411 (*fop_<mode>_1_mixed): Ditto.
32412 (*sqrt<mode>2_sse): Ditto.
32413 (*ieee_s<ieee_maxmin><mode>3): Ditto.
32414
32415 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32416
32417 * combine.c (simplify_if_then_else): Use std::swap instead
32418 of manually swapping.
32419 (known_cond): Likewise.
32420 (simplify_comparison): Likewise.
32421
32422 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
32423
32424 PR target/64579
32425 * config/rs6000/htm.md: Remove all define_expands.
32426 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
32427 UNSPECV_HTM_TABORTWCI): Remove.
32428 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
32429 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
32430 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
32431 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
32432 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
32433 tabortwci_internal): Remove define_insns.
32434 (tabort<wd>c, tabort<wd>ci): New define_insns.
32435 (tabort): Use gpc_reg_operand.
32436 (tcheck): Remove operand.
32437 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
32438 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
32439 expected value.
32440 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
32441 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
32442 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
32443 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
32444 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
32445 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
32446 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
32447 (tcheck): Remove builtin argument.
32448 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
32449 not TARGET_64BIT.
32450 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
32451 tabortdc and tabortdci builtins when not in 64-bit mode.
32452 Modify code to handle the loss of the HTM define_expands.
32453 Emit code to copy the CR register to TARGET.
32454 (htm_init_builtins): Modify code to handle the loss of the HTM
32455 define_expands.
32456 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
32457 (RS6000_BTC_64BIT): Likewise.
32458 (RS6000_BTC_CR): New macro.
32459 * doc/extend.texi: Update documentation for htm builtins.
32460
32461 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32462
32463 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
32464 of manually swapping.
32465 (simplify_associative_operation): Likewise.
32466 (simplify_binary_operation): Likewise.
32467 (simplify_plus_minus): Likewise.
32468 (simplify_relational_operation): Likewise.
32469 (simplify_ternary_operation): Likewise.
32470
32471 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32472
32473 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
32474 (xs_hi_nonmemory_operand): Remove error.
32475 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
32476 general_operand rather than xs_hi_general_operand.
32477
32478 2015-04-27 Richard Biener <rguenther@suse.de>
32479
32480 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
32481 (record_equivalences_from_stmt): Valueize rhs.
32482 (record_equality): Canonicalize x and y order via
32483 tree_swap_operands_p. Do not swap operands for same loop depth.
32484
32485 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
32486
32487 PR target/65296
32488 PR target/65895
32489 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
32490 Add hint how to use own spec file.
32491
32492 2015-04-27 Jakub Jelinek <jakub@redhat.com>
32493
32494 PR tree-optimization/65875
32495 * tree-vrp.c (update_value_range): If in is_new case setting
32496 old_vr to VR_VARYING, also set new_vr to it. Remove
32497 old_vr->type == VR_VARYING test.
32498 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
32499 SSA_PROP_INTERESTING if update_value_range returned true,
32500 but new range is VR_VARYING.
32501
32502 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
32503
32504 * combine.c (sign_extend_short_imm): New.
32505 (set_nonzero_bits_and_sign_copies): Use above new function for sign
32506 extension of src short immediate.
32507 (reg_nonzero_bits_for_combine): Likewise for tem.
32508
32509 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32510
32511 * stor-layout.c (self_referential_component_ref_p): New predicate.
32512 (copy_self_referential_tree_r): Use it.
32513 (self_referential_size): Punt for simple operations directly involving
32514 self-referential component references.
32515 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
32516
32517 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32518
32519 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
32520
32521 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32522
32523 * vec.h (vec): Make splice arguments const. Update definitions
32524 accordingly.
32525
32526 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
32527
32528 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
32529 alternatives.
32530
32531 2015-04-26 Tom de Vries <tom@codesourcery.com>
32532
32533 PR tree-optimization/65826
32534 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
32535
32536 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
32537
32538 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
32539 (*madd3<mode>): Ditto.
32540 (*msub4<mode>): Ditto.
32541 (*msub3<mode>): Ditto.
32542 (*nmadd4<mode>): Ditto.
32543 (*nmadd3<mode>): Ditto.
32544 (*nmadd4<mode>_fastmath): Ditto.
32545 (*nmadd3<mode>_fastmath): Ditto.
32546 (*nmsub4<mode>): Ditto.
32547 (*nmsub3<mode>): Ditto.
32548 (*nmsub4<mode>_fastmath): Ditto.
32549 (*nmsub3<mode>_fastmath): Ditto.
32550
32551 2015-04-24 Jason Merrill <jason@redhat.com>
32552
32553 PR c++/50800
32554 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
32555 down when building TYPE_CANONICAL.
32556 (build_pointer_type_for_mode): Likewise.
32557
32558 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
32559
32560 * genrecog.c (validate_pattern): Check matching constraint refers
32561 to a lower numbered operand.
32562
32563 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
32564
32565 PR target/65849
32566 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
32567 save to independent variables use the Save attribute. This will
32568 allow these options to be modified with the #pragma/attribute
32569 target support.
32570 (-mallow-movmisalign): Likewise.
32571 (-mallow-df-permute): Likewise.
32572 (-msched-groups): Likewise.
32573 (-malways-hint): Likewise.
32574 (-malign-branch-targets): Likewise.
32575 (-mvectorize-builtins): Likewise.
32576 (-msave-toc-indirect): Likewise.
32577
32578 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
32579 can be set via the #pragma/attribute target support.
32580 (rs6000_opt_vars): Likewise.
32581 (rs6000_inner_target_options): If VSX was set, also set
32582 -mno-avoid-indexed-addresses.
32583
32584 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32585
32586 * config/arm/iterators.md (shiftable_ops): Rename to...
32587 (SHIFTABLE_OPS): ... This. Update use in comments.
32588 (ior_xor): Rename to...
32589 (IOR_XOR): ... This.
32590 (vqh_ops): Rename to...
32591 (VQH_OPS): ... This.
32592 (vqhs_ops): Rename to...
32593 (VQHS_OPS): ... This.
32594 (rshifts): Rename to...
32595 (RSHIFTS): ... This.
32596 (returns): Rename to...
32597 (RETURNS): ... This.
32598 * config/arm/arm.md: Update uses of the above.
32599 * config/arm/neon.md: Likewise.
32600
32601 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32602
32603 * config.host (case ${host}): Add aarch64*-*-linux case.
32604 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
32605 fields to all the cores.
32606 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
32607 Add MCPU_MTUNE_NATIVE_SPECS.
32608 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
32609 field to all extensions.
32610 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
32611 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
32612 Adjust definition of AARCH64_OPT_EXTENSION.
32613 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
32614 (MCPU_MTUNE_NATIVE_SPECS): Define.
32615 * config/aarch64/driver-aarch64.c: New file.
32616 * config/aarch64/x-arch64: New file.
32617 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
32618 -mtune and -march.
32619
32620 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32621 Wei Mi <wmi@google.com>
32622
32623 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
32624 * config/i386/i386.c (extract_base_offset_in_addr): New function.
32625 (ix86_operands_ok_for_move_multiple): Ditto.
32626 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
32627 (movlpd/movhpd to movupd peephole2): Ditto.
32628
32629 2015-04-24 Marek Polacek <polacek@redhat.com>
32630
32631 PR c/61534
32632 * input.h (from_macro_expansion_at): Define.
32633
32634 PR c/63357
32635 * doc/invoke.texi: Update description of -Wlogical-op.
32636
32637 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32638
32639 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
32640 ternary operator in fprintf and harmonize spacing.
32641
32642 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32643
32644 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
32645 Mark operand1 commutative.
32646
32647 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32648
32649 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
32650 input operands in memory.
32651 (*vec_concatv2si_sse4_1): Ditto.
32652 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
32653 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
32654 register_operand.
32655 (vec_extract_hi_v32hi): Ditto.
32656 (vec_extract_hi_v64hi): Ditto.
32657 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
32658
32659 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32660 Steven Bosscher <steven@gcc.gnu.org>
32661
32662 PR rtl-optimization/34503
32663 * cprop.c (cprop_reg_p): New.
32664 (hash_scan_set): Use above function to check if register can be
32665 propagated.
32666 (find_avail_set): Return up to two sets, one whose source is a
32667 register and one whose source is a constant. Sets are returned in an
32668 array passed as parameter rather than as a return value.
32669 (cprop_insn): Use a do while loop rather than a goto. Try each of the
32670 sets returned by find_avail_set, starting with the one whose source is
32671 a constant. Use cprop_reg_p to check if register can be propagated.
32672 (do_local_cprop): Use cprop_reg_p to check if register can be
32673 propagated.
32674 (implicit_set_cond_p): Likewise.
32675
32676 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32677
32678 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
32679 (sem_function::equals): IGNORED_NODES parameter is now unused;
32680 update call of equals_private.
32681 (sem_function::equals_private): Do not call equals_wpa; skip
32682 gimple body matching if there is no body.
32683 (sem_function::init): Add logic to hash tthunk info.
32684 (sem_function::parse): Also parse thunks.
32685 * ipa-icf.h (equals_private): Update declaration.
32686
32687 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32688
32689 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
32690 asterisk from name so this can be generated directly.
32691 (*altivec_stvx_<mode>_internal): Likewise.
32692 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
32693 that this is never called during or after reload/lra.
32694 (rs6000_frame_related): Remove split_reg
32695 argument and logic that references it.
32696 (emit_frame_save): Remove last parameter from call to
32697 rs6000_frame_related.
32698 (rs6000_emit_prologue): Remove last parameter from eight calls to
32699 rs6000_frame_related. Force generation of stvx instruction for
32700 Altivec register saves. Remove split_reg handling, which is no
32701 longer needed.
32702 (rs6000_emit_epilogue): Force generation of lvx instruction for
32703 Altivec register restores.
32704
32705 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32706
32707 * config/rs6000/rs6000.opt (mcrypto): Change option description to
32708 match category changes in ISA 2.07B.
32709
32710 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32711
32712 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
32713 iterators.
32714 (cmp_op, cmp_type): New code attributes.
32715 (NEON_VCMP, NEON_VACMP): New int iterators.
32716 (cmp_op_unsp): New int attribute.
32717 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
32718 (neon_vceq<mode>): Delete.
32719 (neon_vc<cmp_op><mode>_insn): New pattern.
32720 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
32721 (neon_vcgeu<mode>): Delete.
32722 (neon_vcle<mode>): Likewise.
32723 (neon_vclt<mode>: Likewise.
32724 (neon_vcage<mode>): Likewise.
32725 (neon_vcagt<mode>): Likewise.
32726 (neon_vca<cmp_op><mode>): New define_expand.
32727 (neon_vca<cmp_op><mode>_insn): New pattern.
32728 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
32729
32730 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32731
32732 * tree.h (attribute_value_equal): Declare.
32733 * tree.c (attribute_value_equal): Export.
32734
32735 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32736
32737 * ipa-icf.c (sem_item::compare_attributes): New function.
32738 (sem_item::compare_referenced_symbol_properties): Compare variable
32739 attributes.
32740 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
32741 (sem_function::param_used_p): New function.
32742 (sem_function::equals_wpa): Fix attribute comparsion; match
32743 parameter type codes; do not compare paremter flags when
32744 they are not used; compare edge flags; compare indirect calls.
32745 (sem_item::update_hash_by_addr_refs): Hash reference type.
32746 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
32747 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
32748 reference use type.
32749 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
32750 * ipa-icf.h (compare_attributes, param_used_p): Declare.
32751
32752 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32753
32754 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
32755 cleanup.
32756 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
32757 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
32758 (sem_item::compare_referenced_symbol_properties): New.
32759 (sem_item::hash_referenced_symbol_properties): New.
32760 (sem_item::compare_cgraph_references): Rename to ...
32761 (sem_item::compare_symbol_references): ... this one; use
32762 compare_referenced_symbol_properties.
32763 (sem_function::equals_wpa): Do not compare
32764 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
32765 DECL_IS_OPERATOR_NEW; compare pointer sizes.
32766 (sem_item::update_hash_by_addr_refs): Call
32767 hash_referenced_symbol_properties.
32768 (sem_item::update_hash_by_local_refs): Cleanup.
32769 (sem_function::merge): Do not mix up symbol properties.
32770 (sem_variable::equals_wpa): Use compare_symbol_references.
32771 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
32772 (sem_item::hash_referenced_symbol_properties): New.
32773 (sem_item::compare_symbol_references): New.
32774 (sem_item::compare_cgraph_references): Remove.
32775
32776 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
32777
32778 PR target/26702
32779 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
32780 Emit size of local.
32781
32782 2015-04-23 Nick Clifton <nickc@redhat.com>
32783
32784 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
32785 ATTRIBUTE_UNUSED to x parameter.
32786 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
32787
32788 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32789
32790 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
32791 TARGET_CRYPTO to TARGET_P8_VECTOR>
32792 (crypto_vpermxor_<mode>): Likewise.
32793 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
32794 (BU_CRYPTO_3A): Likewise.
32795 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
32796 (BU_CRYPTO_OVERLOAD_3A): New #define.
32797 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
32798 (VPMSUMH): Likewise.
32799 (VPMSUMW): Likewise.
32800 (VPMSUMD): Likewise.
32801 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
32802 (VPERMXOR_V4SI): Likewise.
32803 (VPERMXOR_V8HI): Likewise.
32804 (VPERMXOR_V16QI): Likewise.
32805 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
32806 BU_CRYPTO_OVERLOAD_2A.
32807 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
32808 BU_CRYPTO_OVERLOAD_3A.
32809 * config/rs6000/rs6000.opt (mcrypto): Change description of
32810 option.
32811
32812 2015-04-23 Richard Biener <rguenther@suse.de>
32813
32814 * passes.def: Remove copy propagation passes run directly after CCP.
32815 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
32816 SSA names.
32817 (ccp_visit_phi_node): Rework to handle first executable edge
32818 specially.
32819
32820 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
32821
32822 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32823 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32824 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32825 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
32826 (thumb_legimitimize_reload_address): Remove.
32827 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
32828 Remove.
32829 (thumb_legimitimize_reload_address): Remove.
32830
32831 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32832
32833 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
32834
32835 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32836
32837 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
32838 MAX_LDM_STM_OPS.
32839 (store_multiple): Likewise.
32840
32841 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32842
32843 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
32844 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
32845 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
32846 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
32847 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
32848 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
32849 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
32850 Specify issue_rate value.
32851 (arm_issue_rate): Look up issue rate from tuning structs. Remove
32852 large switch statement.
32853 (arm_marvell_pj4_tune): New struct.
32854 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
32855 struct.
32856
32857 2015-04-23 Richard Biener <rguenther@suse.de>
32858
32859 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
32860 (vect_find_last_store_in_slp_instance): Rename to ...
32861 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
32862 (vect_analyze_slp_cost_1): Use vector_load for constant defs
32863 and vec_construct for external defs when estimating prologue cost.
32864 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
32865 Compute costs here only when vectorizing loops.
32866 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
32867 have been determined.
32868 (vect_schedule_slp_instance): Simplify vectorized code placement
32869 and prepare for in-BB external defs.
32870 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
32871 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
32872 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
32873 guard.
32874 (vect_model_load_cost): Likewise.
32875 (vectorizable_store): Instead add it here.
32876 (vectorizable_load): Likewise.
32877 (vect_is_simple_use): Dump def type textually.
32878
32879 2015-04-23 Richard Biener <rguenther@suse.de>
32880
32881 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
32882 * cfgloop.c (verify_loop_structure): Verify the root loop node.
32883 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
32884 instead of get_eh_region_from_lp_number.
32885 * loop-init.c (fix_loop_structure): If we removed a loop, reset
32886 the SCEV cache.
32887
32888 2015-04-23 Anton Blanchard <anton@samba.org>
32889
32890 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
32891 need for -mprofile-kernel to save LR to stack.
32892
32893 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32894
32895 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
32896 adjustments.
32897 (insn_is_swappable_p): Return 1 for a convert from double to
32898 single precision when all of its uses are splats of BE element
32899 zero.
32900
32901 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
32902
32903 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
32904
32905 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32906
32907 PR target/65456
32908 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
32909 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
32910 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
32911 option.
32912 (rs6000_builtin_mask_for_load): Return 0 for targets with
32913 efficient unaligned VSX accesses so that the vectorizer will use
32914 direct unaligned loads.
32915 (rs6000_builtin_support_vector_misalignment): Always return true
32916 for targets with efficient unaligned VSX accesses.
32917 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
32918 stores on targets with efficient unaligned VSX accesses is almost
32919 always the same as the cost of an aligned load or store, so model
32920 it that way.
32921 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
32922 unaligned vectors if we have efficient unaligned VSX accesses.
32923 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
32924 undocumented option.
32925
32926 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32927
32928 Revert:
32929 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32930
32931 * config.gcc (LIBC_MUSL): New tm_defines macro.
32932 * config/linux.h (OPTION_MUSL): Define.
32933 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32934 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32935 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32936
32937 * config/linux.opt (mmusl): New option.
32938 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32939 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32940
32941 * configure: Regenerate.
32942
32943 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32944
32945 * config.gcc (LIBC_MUSL): New tm_defines macro.
32946 * config/linux.h (OPTION_MUSL): Define.
32947 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32948 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32949 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32950
32951 * config/linux.opt (mmusl): New option.
32952 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32953 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32954
32955 * configure: Regenerate.
32956
32957 2015-04-22 Yury Gribov <y.gribov@samsung.com>
32958
32959 * doc/invoke.texi (-fsanitize-sections): Update description.
32960 * asan.c (set_sanitized_sections): Parse incoming arg.
32961 (section_sanitized_p): Support wildcards.
32962
32963 2015-04-22 Tom de Vries <tom@codesourcery.com>
32964
32965 PR tree-optimization/65823
32966 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
32967 equality between ap_copy and ap.
32968
32969 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32970
32971 PR target/47098
32972 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
32973
32974 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32975
32976 PR target/47122
32977 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
32978
32979 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32980
32981 PR target/55144
32982 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
32983 remove already contained t-files.
32984
32985 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32986
32987 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
32988 Remove unneeded forward declarations.
32989 (suitable_for_tail_call_opt_p): Commentary typo fix.
32990
32991 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32992
32993 * varasm.c (emit_bss): Remove redundant guard.
32994
32995 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32996
32997 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
32998
32999 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33000
33001 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33002
33003 2015-04-22 Hale Wang <hale.wang@arm.com>
33004 Terry Guo <terry.guo@arm.com>
33005
33006 PR rtl-optimization/64818
33007 * combine.c (can_combine_p): Don't combine user-specified
33008 register if it is in an asm input.
33009
33010 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
33011
33012 PR ipa/65076
33013 * passes.def (early_optimizations): Add pass_dse.
33014
33015 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33016
33017 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33018 * reorg.c (redundant_insn): Remove ifdef
33019 INSN_REFERENCES_ARE_DELAYED.
33020 * resource.c (mark_referenced_resources): Likewise.
33021
33022 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33023
33024 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33025 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33026 * resource.c (mark_set_resources): Likewise.
33027
33028 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33029
33030 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33031 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33032 (flow_find_head_matching_sequence): Likewise.
33033 (try_head_merge_bb): Likewise.
33034 * combine.c (can_combine_p): Likewise.
33035 (try_combine): Likewise.
33036 (distribute_notes): Likewise.
33037 * df-problems.c (can_move_insns_across): Likewise.
33038 * final.c (final): Likewise.
33039 * gcse.c (insert_insn_end_basic_block): Likewise.
33040 * ira.c (find_moveable_pseudos): Likewise.
33041 * reorg.c (try_merge_delay_insns): Likewise.
33042 (fill_simple_delay_slots): Likewise.
33043 (fill_slots_from_thread): Likewise.
33044 * sched-deps.c (sched_analyze_2): Likewise.
33045
33046 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33047
33048 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33049 PIC_OFFSET_TABLE_REGNUM.
33050
33051 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33052
33053 * alias.c (init_alias_target): Remove ifdef
33054 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33055 * df-scan.c (df_insn_refs_collect): Likewise.
33056 (df_get_regular_block_artificial_uses): Likewise.
33057 (df_get_eh_block_artificial_uses): Likewise.
33058 (df_get_entry_block_def_set): Likewise.
33059 (df_get_exit_block_use_set): Likewise.
33060 * emit-rtl.c (gen_rtx_REG): Likewise.
33061 * ira.c (ira_setup_eliminable_regset): Likewise.
33062 * reginfo.c (init_reg_sets_1): Likewise.
33063 * regrename.c (rename_chains): Likewise.
33064 * reload1.c (reload): Likewise.
33065 (eliminate_regs_in_insn): Likewise.
33066 * resource.c (mark_referenced_resources): Likewise.
33067 (init_resource_info): Likewise.
33068
33069 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33070
33071 * defaults.h (MASK_RETURN_ADDR): New definition.
33072 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33073 MASK_RETURN_ADDR.
33074
33075 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33076
33077 * defaults.h (RETURN_ADDR_OFFSET): New definition.
33078 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33079 RETURN_ADDR_OFFSET.
33080 (expand_builtin_frob_return_addr): Likewise.
33081
33082 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33083
33084 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33085 (try_redirect_by_replacing_jump): Likewise.
33086 (rtl_tidy_fallthru_edge): Likewise.
33087 * combine.c (insn_a_feeds_b): Likewise.
33088 (find_split_point): Likewise.
33089 (simplify_set): Likewise.
33090 * cprop.c (cprop_jump): Likewise.
33091 * cse.c (cse_extended_basic_block): Likewise.
33092 * df-problems.c (can_move_insns_across): Likewise.
33093 * function.c (emit_use_return_register_into_block): Likewise.
33094 * haifa-sched.c (sched_init): Likewise.
33095 * ira.c (find_moveable_pseudos): Likewise.
33096 * loop-invariant.c (find_invariant_insn): Likewise.
33097 * lra-constraints.c (curr_insn_transform): Likewise.
33098 * postreload.c (reload_combine_recognize_const_pattern):
33099 * Likewise.
33100 * reload.c (find_reloads): Likewise.
33101 * reorg.c (delete_scheduled_jump): Likewise.
33102 (steal_delay_list_from_target): Likewise.
33103 (steal_delay_list_from_fallthrough): Likewise.
33104 (redundant_insn): Likewise.
33105 (fill_simple_delay_slots): Likewise.
33106 (fill_slots_from_thread): Likewise.
33107 (delete_computation): Likewise.
33108 * sched-rgn.c (add_branch_dependences): Likewise.
33109
33110 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33111
33112 * genconfig.c (main): Always define HAVE_cc0.
33113 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33114 HAVE_cc0.
33115 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33116 (flow_find_head_matching_sequence): Likewise.
33117 (try_head_merge_bb): Likewise.
33118 * cfgrtl.c (rtl_merge_blocks): Likewise.
33119 (try_redirect_by_replacing_jump): Likewise.
33120 (rtl_tidy_fallthru_edge): Likewise.
33121 * combine.c (do_SUBST_MODE): Likewise.
33122 (insn_a_feeds_b): Likewise.
33123 (combine_instructions): Likewise.
33124 (can_combine_p): Likewise.
33125 (try_combine): Likewise.
33126 (find_split_point): Likewise.
33127 (subst): Likewise.
33128 (simplify_set): Likewise.
33129 (distribute_notes): Likewise.
33130 * cprop.c (cprop_jump): Likewise.
33131 * cse.c (cse_extended_basic_block): Likewise.
33132 * df-problems.c (can_move_insns_across): Likewise.
33133 * final.c (final): Likewise.
33134 (final_scan_insn): Likewise.
33135 * function.c (emit_use_return_register_into_block): Likewise.
33136 * gcse.c (insert_insn_end_basic_block): Likewise.
33137 * haifa-sched.c (sched_init): Likewise.
33138 * ira.c (find_moveable_pseudos): Likewise.
33139 * loop-invariant.c (find_invariant_insn): Likewise.
33140 * lra-constraints.c (curr_insn_transform): Likewise.
33141 * optabs.c (prepare_cmp_insn): Likewise.
33142 * postreload.c (reload_combine_recognize_const_pattern):
33143 * Likewise.
33144 * reload.c (find_reloads): Likewise.
33145 (find_reloads_address_1): Likewise.
33146 * reorg.c (delete_scheduled_jump): Likewise.
33147 (steal_delay_list_from_target): Likewise.
33148 (steal_delay_list_from_fallthrough): Likewise.
33149 (try_merge_delay_insns): Likewise.
33150 (redundant_insn): Likewise.
33151 (fill_simple_delay_slots): Likewise.
33152 (fill_slots_from_thread): Likewise.
33153 (delete_computation): Likewise.
33154 (relax_delay_slots): Likewise.
33155 * sched-deps.c (sched_analyze_2): Likewise.
33156 * sched-rgn.c (add_branch_dependences): Likewise.
33157
33158 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33159
33160 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33161 that is trivially ded on non cc0 targets.
33162 (simplify_set): Likewise.
33163 (mark_used_regs_combine): Likewise.
33164 * cse.c (new_basic_block): Likewise.
33165 (fold_rtx): Likewise.
33166 (cse_insn): Likewise.
33167 (cse_extended_basic_block): Likewise.
33168 (set_live_p): Likewise.
33169 * rtlanal.c (canonicalize_condition): Likewise.
33170 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33171
33172 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33173
33174 * conditions.h: Define macros even if HAVE_cc0 is undefined.
33175 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33176 * final.c: Likewise.
33177 * jump.c: Likewise.
33178 * recog.c: Likewise.
33179 * recog.h: Declare functions even when HAVE_cc0 is undefined.
33180 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33181
33182 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33183
33184 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33185 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33186 * builtins.c (expand_builtin): Remove check if
33187 EH_RETURN_DATA_REGNO is defined.
33188 * df-scan.c (df_bb_refs_collect): Likewise.
33189 (df_get_exit_block_use_set): Likewise.
33190 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33191 * ira-lives.c (process_bb_node_lives): Likewise.
33192 * lra-lives.c (process_bb_lives): Likewise.
33193
33194 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33195
33196 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33197 FIRST_PSEUDO_REG): New.
33198 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33199 (ARG_POINTER_REGNUM): Define to ARGP_REG.
33200 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33201 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33202 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33203 (FIRST_INT_REG): New.
33204 (LAST_INT_REG): New.
33205 (FIRST_*_REG): Define using *_REG.
33206 (LAST_*_REG): Ditto.
33207 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33208 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33209 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33210
33211 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33212
33213 * expmed.c: (synth_mult): Only assume overlapping
33214 shift with previous steps in alg_sub_t_m2 case.
33215
33216 2015-04-21 Richard Biener <rguenther@suse.de>
33217
33218 PR tree-optimization/65650
33219 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33220 transitions involving copies.
33221 (set_lattice_value): Adjust for copy lattice state.
33222 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33223 if that doesn't dominate the merge point.
33224 (bit_value_unop): Adjust what we treat as varying mask.
33225 (bit_value_binop): Likewise.
33226 (bit_value_assume_aligned): Likewise.
33227 (evaluate_stmt): When we simplified to a SSA name record a copy
33228 instead of dropping to varying.
33229 (visit_assignment): Simplify.
33230
33231 * gimple-match.h (gimple_simplify): Add another callback.
33232 * gimple-fold.c (fold_stmt_1): Adjust caller.
33233 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33234 for the 2nd callback.
33235 * gimple-match-head.c (gimple_simplify): Add a callback that is
33236 used to valueize the stmt operands and use it that way.
33237
33238 2015-04-21 Richard Biener <rguenther@suse.de>
33239
33240 PR tree-optimization/65788
33241 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33242
33243 2015-04-21 Richard Biener <rguenther@suse.de>
33244
33245 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33246 vec_construct cost by vec_stmt_cost.
33247
33248 2015-04-21 Richard Biener <rguenther@suse.de>
33249
33250 * cfghooks.h (create_basic_block): Replace with two overloads
33251 for RTL and GIMPLE.
33252 (split_block): Likewise.
33253 * cfghooks.c (split_block): Rename to ...
33254 (split_block_1): ... this.
33255 (split_block): Add two type-safe overloads for RTL and GIMPLE.
33256 (split_block_after_labels): Call split_block_1.
33257 (create_basic_block): Rename to ...
33258 (create_basic_block_1): ... this.
33259 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33260 (create_empty_bb): Call create_basic_block_1.
33261 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33262 split_block_after_labels.
33263 * omp-low.c (expand_parallel_call): Likewise.
33264 (expand_omp_target): Likewise.
33265 (simd_clone_adjust): Likewise.
33266 * tree-chkp.c (chkp_get_entry_block): Likewise.
33267 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33268 create_basic_block overload.
33269 (cgraph_node::expand_thunk): Likewise.
33270 * tree-cfg.c (make_blocks): Likewise.
33271 (handle_abnormal_edges): Likewise.
33272 * tree-inline.c (copy_bb): Likewise.
33273
33274 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33275
33276 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33277 New pattern.
33278 (*xor_one_cmplsidi3_ze): Likewise.
33279
33280 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
33281
33282 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33283 use df_remove_problem rather than manually removing problems, leaving
33284 holes in df->problems_in_order[].
33285
33286 2015-04-21 Tom de Vries <tom@codesourcery.com>
33287
33288 PR tree-optimization/65802
33289 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33290
33291 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33292
33293 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33294 Increase to 128.
33295 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33296 at '.'. Assert that there's enough space for everything.
33297
33298 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33299
33300 PR tree-optimization/64950
33301 Revert:
33302 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
33303
33304 PR target/41089
33305 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33306 as volatile.
33307
33308 2015-04-20 Shiva Chen <shiva0217@gmail.com>
33309
33310 PR rtl-optimization/64916
33311 * cfgcleanup.c (values_equal_p): New function.
33312 (can_replace_by): Use it.
33313
33314 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
33315
33316 PR c++/65801
33317 * doc/invoke.texi ([-Wnarrowing]): Update.
33318
33319 2015-04-20 Jeff Law <law@redhat.com>
33320
33321 PR tree-optimization/65658
33322 * tree-ssa-threadupdate.c (redirection_block_p): Remove
33323 redundant test for GIMPLE_ASSIGN in last change.
33324
33325 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
33326
33327 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33328 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33329 (legitimize_tls_address): Ditto.
33330 (ix86_expand_move): Ditto.
33331 (ix86_expand_binary_operator): Remove reload_in_progress checks.
33332 (ix86_expand_unary_operator): Ditto.
33333 * config/i386/predicates.md (index_register_operand): Ditto.
33334
33335 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
33336
33337 * reorg.c (try_merge_delay_insns): Improve correctness checking
33338 for targets with multiple delay slots.
33339
33340 2015-04-20 Jeff Law <law@redhat.com>
33341
33342 PR tree-optimization/65658
33343 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33344 statements too.
33345
33346 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33347
33348 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33349 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33350 Delete.
33351
33352 2015-04-20 Jakub Jelinek <jakub@redhat.com>
33353
33354 PR debug/65807
33355 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33356
33357 2015-04-20 Richard Biener <rguenther@suse.de>
33358
33359 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33360 * gimple-fold.c (gimple_build_valueize): New function.
33361 (gimple_build): Always use gimple_build_valueize as valueize hook.
33362
33363 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33364
33365 PR target/64134
33366 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33367 and overwrite variable parts if <= 1/2 the elements are variable.
33368
33369 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
33370
33371 PR rtl-optimization/65805
33372 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33373 Don't use difference of offset and previous offset if
33374 update_sp_offset is non-zero.
33375 (eliminate_regs_in_insn): Ditto.
33376 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33377 lra_eliminate_regs_1 call.
33378 * lra-constraints.c (get_equiv_with_elimination): Ditto.
33379
33380 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
33381
33382 * hash-table.h: Remove version of hash_table that stored value_type *.
33383 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33384 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33385 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33386 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33387 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33388 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33389 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33390 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33391 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33392 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33393 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33394 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33395 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33396 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33397 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33398 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33399
33400 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33401 Jakub Jelinek <jakub@redhat.com>
33402
33403 PR target/65787
33404 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
33405 subsequent SH_NONE operand does not overwrite an existing *special
33406 value.
33407 (adjust_extract): Handle case where a vec_extract operation is
33408 wrapped in a PARALLEL.
33409
33410 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33411
33412 PR target/65780
33413 * config/i386/i386.c (ix86_binds_local_p): Define only if
33414 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
33415
33416 2015-04-17 Jeff Law <law@redhat.com>
33417
33418 PR tree-optimization/47679
33419 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
33420 * tree-ssa-scopedtables.c: New file.
33421 * tree-ssa-scopedtables.h: New file.
33422 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
33423 (const_and_copies): Change name/type.
33424 (record_const_or_copy): Move into tree-ssa-scopedtables.c
33425 (record_const_or_copy_1): Similarly.
33426 (restore_vars_to_original_value): Similarly.
33427 (pass_dominator::execute): Create and destroy const_and_copies table.
33428 (thread_across_edge): Update passing of const_and_copies.
33429 (record_temporary_equivalence): Use method calls rather than
33430 manipulating const_and_copies directly.
33431 (record_equality, cprop_into_successor_phis): Similarly.
33432 (dom_opt_dom_walker::before_dom_children): Similarly.
33433 (dom_opt_dom_walker::after_dom_children): Similarly.
33434 (eliminate_redundant_computations): Similarly.
33435 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
33436 (record_temporary_equivalence): Likewise.
33437 (invalidate_equivalences): Likewise.
33438 (record_temporary_equivalences_from_phis): Update due to type
33439 change of const_and_copies. Use method calls rather than
33440 manipulating the stack directly.
33441 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
33442 (thread_through_normal_block, thread_across_edge): Likewise.
33443 (thread_across_edge): Likewise.
33444 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
33445 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
33446 of equiv_stack.
33447 (identify_jump_threads): Update due to type change of equiv_stack.
33448 (finalize_jump_threads): Delete the equiv_stack when complete.
33449
33450 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
33451
33452 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33453 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
33454 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
33455
33456 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
33457
33458 PR target/65535
33459 * config.gcc: Exit with a comment when we do not have a major version
33460 number for the FreeBSD target.
33461
33462 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33463
33464 PR target/65689
33465 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
33466 maybe_allows_mem bitfields.
33467 (maybe_allows_none_start, maybe_allows_none_end,
33468 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
33469 maybe_allows_mem_end): New variables.
33470 (compute_maybe_allows): New function.
33471 (add_constraint): Use it to initialize maybe_allows_reg and
33472 maybe_allows_mem fields.
33473 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
33474 is_address constraints such that those that allow neither mem nor
33475 reg come first, then those that only allow reg but not mem, then
33476 those that only allow mem but not reg, then the rest.
33477 (write_allows_reg_mem_function): New function.
33478 (write_tm_preds_h): Call it.
33479 * stmt.c (parse_output_constraint, parse_input_constraint): Use
33480 the generated insn_extra_constraint_allows_reg_mem function
33481 instead of always setting *allows_reg = true; *allows_mem = true;
33482 for unknown extra constraints.
33483
33484 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33485
33486 PR target/65780
33487 * output.h (default_binds_local_p_3): New.
33488 * varasm.c (default_binds_local_p_3): Make it public. Take an
33489 argument to indicate if common symbol may be local. If common
33490 symbol may be local, treat non-external variable as defined
33491 locally.
33492 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
33493 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
33494 * config/i386/i386.c (ix86_binds_local_p): New.
33495 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
33496 ix86_binds_local_p.
33497
33498 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33499
33500 PR debug/65771
33501 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
33502 trying mem_loc_descriptor on XEXP (rtl, 0).
33503
33504 2015-04-17 Martin Liska <mliska@suse.cz>
33505
33506 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
33507 Release symbol_compare_collection.
33508 * ipa-reference.c: Add TODO that a vector should be released.
33509
33510 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
33511
33512 PR target/65296
33513 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
33514 to new AVR-LibC file layout (bug #44574).
33515 (*avrlibc_devicelib): Same.
33516 * config/avr/avr-mcus.def: Adjust comments.
33517 * config/avr/avr.opt (nodevicelib): Adjust help.
33518
33519 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
33520
33521 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
33522
33523 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
33524
33525 PR c++/64527
33526 * gimplify.c (gimplify_init_constructor): Always emit a
33527 side-effecting constructor.
33528
33529 2015-04-17 Tom de Vries <tom@codesourcery.com>
33530
33531 PR tree-optimization/64950
33532 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
33533 in cfun->curr_properties.
33534 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
33535 if we generate an IFN_VA_ARG.
33536 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
33537 function if PROP_gimple_lva is not set in src function.
33538
33539 2015-04-17 Tom de Vries <tom@codesourcery.com>
33540 Michael Matz <matz@suse.de>
33541
33542 PR tree-optimization/64950
33543 * gimple-iterator.c (update_modified_stmts): Remove static.
33544 * gimple-iterator.h (update_modified_stmts): Declare.
33545 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
33546 (gimplify_va_arg_internal): New function.
33547 (gimplify_va_arg_expr): Use IFN_VA_ARG.
33548 * gimplify.h (gimplify_va_arg_internal): Declare.
33549 * internal-fn.c (expand_VA_ARG): New unreachable function.
33550 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
33551 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
33552 (expand_ifn_va_arg): New function.
33553 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
33554 (pass_stdarg::execute): Call expand_ifn_va_arg.
33555 (pass_data_lower_vaarg): New pass_data.
33556 (pass_lower_vaarg): New gimple_opt_pass.
33557 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
33558 (make_pass_lower_vaarg): New function.
33559 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
33560 properties_required field.
33561 * passes.def (all_passes): Add pass_lower_vaarg.
33562 * tree-pass.h (PROP_gimple_lva): Add define.
33563 (make_pass_lower_vaarg): Declare.
33564
33565 2015-04-17 Tom de Vries <tom@codesourcery.com>
33566
33567 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
33568 * calls.c (call_expr_flags): Same.
33569
33570 2015-04-17 Tom de Vries <tom@codesourcery.com>
33571
33572 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
33573 (pass_stdarg::execute): ... here.
33574
33575 2015-04-17 Tom de Vries <tom@codesourcery.com>
33576 Michael Matz <matz@suse.de>
33577
33578 * tree-cfg.c (make_blocks_1): Factor out of ...
33579 (make_blocks): ... here.
33580 (make_edges_bb): Factor out of ...
33581 (make_edges): ... here.
33582 (gimple_find_sub_bbs): New function.
33583 * tree-cfg.h (gimple_find_sub_bbs): Declare.
33584
33585 2015-04-17 Tom de Vries <tom@codesourcery.com>
33586
33587 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
33588
33589 2015-04-17 Yury Gribov <y.gribov@samsung.com>
33590
33591 * asan.c (set_sanitized_sections): New function.
33592 (section_sanitized_p): Ditto.
33593 (asan_protect_global): Optionally sanitize user-defined
33594 sections.
33595 * asan.h (set_sanitized_sections): Declare new function.
33596 * common.opt (fsanitize-sections): New option.
33597 * doc/invoke.texi (-fsanitize-sections): Document new option.
33598 * opts-global.c (handle_common_deferred_options): Handle new
33599 option.
33600
33601 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33602
33603 PR debug/65771
33604 * dwarf2out.c (loc_list_from_tree): Return NULL
33605 for DEBUG_EXPR_DECL.
33606
33607 2015-04-17 Christian Bruel <christian.bruel@st.com>
33608
33609 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
33610 same attributes.
33611
33612 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33613
33614 * ira-color.c (setup_left_conflict_sizes_p): Do not process
33615 node itself when computing left conflict subnode size.
33616
33617 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33618
33619 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
33620 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
33621 *fop_<mode>_1_sse using enabled attribute. Use
33622 register_mixssei387nonimm_operand operand 1 predicate. Change
33623 alternative 3 constraints from "x" to "v".
33624
33625 2015-04-16 Richard Biener <rguenther@suse.de>
33626
33627 PR tree-optimization/65774
33628 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
33629 bit-value tracking on.
33630
33631 2015-04-16 Richard Biener <rguenther@suse.de>
33632
33633 PR tree-optimization/64277
33634 * tree-vrp.c (check_array_ref): Fix anti-range handling,
33635 simplify upper bound handling.
33636 (search_for_addr_array): Simplify.
33637 (check_array_bounds): Handle ADDR_EXPRs here.
33638 (check_all_array_refs): Simplify.
33639
33640 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33641
33642 * config/i386/i386.c (print_reg): Rewrite function.
33643
33644 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33645
33646 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
33647 Invert the condition.
33648
33649 2015-04-16 Renlin Li <renlin.li@arm.com>
33650
33651 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
33652 simplifications for UNSIGNED_FLOAT.
33653
33654 2015-04-16 Nick Clifton <nickc@redhat.com>
33655
33656 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
33657 MUL_UNINIT.
33658 (enum rl78_cpu_type): New.
33659 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
33660 (umulhi3_shift_virt): Remove m constraint from operand 1.
33661 (umulqihi3_virt): Likewise.
33662 * config/rl78/rl78.c (rl78_option_override): Add code to process
33663 -mcpu and -mmul options.
33664 (rl78_alloc_physical_registers): Add code to handle divhi and
33665 divsi valloc attributes.
33666 (set_origin): Likewise.
33667 * config/rl78/rl78.h (RL78_MUL_G14): Define.
33668 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
33669 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
33670 __RL78_Gxx__.
33671 (ASM_SPEC): Pass -mcpu on to assembler.
33672 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
33673 (mulqi3_rl78): Likewise.
33674 (mulhi3_g13): Likewise.
33675 (mulhi3): Generate the G13 or G14 versions of the insn directly.
33676 (mulsi3): Likewise.
33677 (mulhi3_g14): Add clobbers of AX and BC.
33678 (mulsi3_g14): Likewise.
33679 (mulsi3_g13): Likewise.
33680 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
33681 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
33682 * config/rl78/rl78.opt (mmul): Initialise value to
33683 RL78_MUL_UNINIT.
33684 (mcpu): New option.
33685 (m13, m14, mrl78): New option aliases.
33686 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
33687 (MULTILIB_DIRNAMES): Add g13 and g14.
33688 * doc/invoke.texi: Document -mcpu and -mmul options.
33689
33690 2015-04-16 Richard Biener <rguenther@suse.de>
33691
33692 * tree-ssa-ccp.c (likely_value): See if we have operands that
33693 are marked as never simulate again and return CONSTANT in this
33694 case.
33695 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
33696 not have any operands that will be simulated again as
33697 not being simulated again.
33698
33699 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
33700
33701 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
33702 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
33703 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
33704 attribute.
33705 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
33706 enabled attribute.
33707 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
33708 *float<SWI48:mode><MODEF:mode>2_sse.
33709 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
33710 enabled attribute.
33711 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
33712 enabled attribute.
33713
33714 2015-04-15 Tom de Vries <tom@codesourcery.com>
33715
33716 PR other/65487
33717 * function.c (push_dummy_function): New function.
33718 (init_dummy_function_start): Use push_dummy_function.
33719 (pop_dummy_function): New function. Factored out of ...
33720 (expand_dummy_function_end): ... here.
33721 * function.h (push_dummy_function, pop_dummy_function): Declare.
33722 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
33723 pop_dummy_function.
33724 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
33725
33726 2015-04-15 Jeff Law <law@redhat.com>
33727
33728 PR tree-optimization/47679
33729 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
33730 need for forward declaration in upcoming changes.
33731 (record_conditions, record_edge_info): Likewise.
33732
33733 PR rtl-optimization/42522
33734 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
33735 SIGN_EXTRACT as a whole object rather than simplifying
33736 its operand.
33737
33738 2015-04-15 Jakub Jelinek <jakub@redhat.com>
33739
33740 PR ipa/65765
33741 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
33742 and GIMPLE_PREDICT use break instead of return true. For
33743 GIMPLE_EH_DISPATCH, compare dispatch region.
33744
33745 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
33746
33747 * doc/extend.texi (__sync Builtins): Simplify some text. Update
33748 details about the implementation. Make clear preference for
33749 __atomic builtins. Reduce possibility of future change.
33750
33751 2015-04-15 Nick Clifton <nickc@redhat.com>
33752
33753 * config/rx/rx.opt (mallow-string-insns): New option.
33754 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
33755 builtin if string instructions are denied.
33756 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
33757 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
33758 appropriate.
33759 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
33760 * config/rx/rx.md (movstr): Enable pattern only if string
33761 instructions are allowed.
33762 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
33763 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
33764 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
33765 (MULTILIB_DIRNAMES): Add no-strings.
33766 * doc/invoke.texi: Document -mno-allow-string-insns.
33767
33768 2015-04-15 Alan Modra <amodra@gmail.com>
33769
33770 PR target/65408
33771 PR target/58744
33772 PR middle-end/36043
33773 * calls.c (load_register_parameters): Don't load past end of
33774 mem unless suitably aligned.
33775
33776 2015-04-15 Nick Clifton <nickc@redhat.com>
33777
33778 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
33779 decrement instruction as being frame related.
33780 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
33781 based addresses.
33782 If zero extending a function address enclose the operation in
33783 %code(...).
33784 (rl78_preferred_reload_class): New function.
33785 (TARGET_PREFERRED_RELOAD_CLASS): Define.
33786 * config/rl78/rl78.md: Remove useless constraints in expanders.
33787 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
33788 (mulhi3_rl78): Likewise.
33789 (mulhi3_g13): Likewise.
33790 (mulsi3_rl78): Likewise.
33791 (es_addr): Move to before the multiply patterns.
33792
33793 2015-04-15 Alan Modra <amodra@gmail.com>
33794
33795 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
33796 and sequence_stack. Add seq.
33797 (seq_stack): Delete.
33798 * function.c (prepare_function_start): Don't access x_last_insn.
33799 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
33800 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
33801 * emit_rtl.c (start_sequence, push_topmost_sequence,
33802 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
33803 sequence accessors.
33804 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
33805 remove_insn): Likewise. Simplify.
33806 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
33807 and pop_topmost_sequence.
33808 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
33809 debug insns.
33810 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
33811
33812 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
33813
33814 PR target/65729
33815 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
33816 the assertiion.
33817
33818 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33819
33820 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
33821 (LEGACY_INT_REGNO_P): Ditto.
33822 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
33823 (ANY_MASK_REG_P): Remove.
33824 (BND_REG_P): Rename from ANY_BND_REG_P.
33825 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
33826 legacy integer registers. Do not handle MMX_REG_P in a special way.
33827 Merge 64byte and 32byte SSE handling.
33828
33829 2015-04-14 Nick Clifton <nickc@redhat.com>
33830
33831 * expr.c (expand_assignment): Force an address offset computation
33832 into a register before changing its mode.
33833 (expand_expr_real_1): Likewise.
33834
33835 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
33836
33837 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
33838 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
33839 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
33840 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
33841 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
33842 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
33843 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
33844 and __aarch64_vget_lane_any.
33845
33846 2015-04-14 Jakub Jelinek <jakub@redhat.com>
33847
33848 PR rtl-optimization/65761
33849 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
33850 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
33851
33852 2015-04-14 Richard Biener <rguenther@suse.de>
33853
33854 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
33855 (graphite_can_represent_scev): Use POINTER_TYPE_P.
33856
33857 2015-04-14 Richard Biener <rguenther@suse.de>
33858
33859 PR tree-optimization/65758
33860 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
33861 against -1.
33862 (ccp_lattice_meet): Likewise.
33863 (bit_value_unop): Likewise.
33864 (bit_value_binop): Likewise.
33865 (bit_value_assume_aligned): Likewise.
33866
33867 2015-04-14 Christian Bruel <christian.bruel@st.com>
33868
33869 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
33870 function.
33871
33872 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
33873
33874 PR tree-optimization/63387
33875 * match.pd ((x unord x) | (y unord y) -> (x unord y),
33876 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
33877
33878 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33879
33880 * config/i386/predicates.md (any_QIreg_operand): Rename from
33881 q_regs_operand. Do not process subregs.
33882 (QIreg_operand): Use QI_REGNO_P predicate.
33883 (ext_QIreg_operand): Ditto.
33884 (ext_register_operand): Ditto.
33885 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
33886 (AND splitters): Ditto.
33887 (AND with -65536 splitter): Add SWI48 mode for operand 0.
33888 (AND with -256 splitter): Use any_QIreg_operand predicate and
33889 SWI248 mode for operand 0.
33890 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
33891 mode for operand 0.
33892 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
33893
33894 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
33895
33896 * doc/plugins.texi: Rewrite first introductory paragraph.
33897
33898 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33899
33900 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
33901 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
33902
33903 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33904
33905 * ipa-profie.c (ipa_profile): Check number of parameters
33906 and possible polymorphic call targets before
33907 devirtualizing.
33908
33909 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
33910
33911 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
33912 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
33913
33914 2015-04-13 Richard Biener <rguenther@suse.de>
33915
33916 PR tree-optimization/65204
33917 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
33918 takens for bit-CCP.
33919
33920 2015-04-13 Richard Biener <rguenther@suse.de>
33921
33922 PR target/65660
33923 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
33924 and cond_not_taken_branch_cost to 4 and 2.
33925 (bdver2_cost): Likewise.
33926 (bdver3_cost): Likewise.
33927 (bdver4_cost): Likewise.
33928
33929 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33930
33931 * hash-table.h (hash_table constructor): Add mem stats.
33932 (alloc_entries): Likewise.
33933
33934 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33935
33936 * ipa-cp.c (ipcp_driver): Relase prev_edge.
33937 * passes.c (execute_one_pass): Only add transform if pass has one.
33938
33939 2015-04-12 Joseph Myers <joseph@codesourcery.com>
33940
33941 * config/i386/i386.c (ix86_option_override_internal): Don't set
33942 -fprefetch-loop-arrays if optimizing for size.
33943
33944 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33945 Gerald Pfeifer <gerald@pfeifer.com>
33946
33947 * doc/contrib.texi (Contributors): Add Martin Jambor and
33948 Michael Matz.
33949
33950 2015-04-12 Jakub Jelinek <jakub@redhat.com>
33951
33952 * BASE-VER: Set to 6.0.0.
33953
33954 PR tree-optimization/65747
33955 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
33956 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
33957
33958 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33959
33960 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
33961 sentence. Improve grammar.
33962
33963 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33964
33965 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
33966
33967 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33968
33969 PR ipa/65743
33970 * ipa-inline-transform.c (speculation_removed): Remove static var.
33971 (check_speculations): New function.
33972 (clone_inlined_nodes): Do not check spculations.
33973 (inline_call): Call check_speculations.
33974 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
33975 consider non-invariants.
33976
33977 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33978 Martin Liska <mliska@suse.cz>
33979
33980 PR ipa/65722
33981 * ipa-icf.c (sem_item::compare_cgraph_references): function and
33982 variable can not match.
33983 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
33984 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
33985
33986 2015-04-11 Jakub Jelinek <jakub@redhat.com>
33987
33988 PR tree-optimization/65735
33989 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
33990 Remove visited_phis argument, add visited_bbs, avoid recursing into the
33991 same bb rather than just into the same phi node.
33992 (thread_through_normal_block): Adjust caller.
33993
33994 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
33995
33996 * doc/contrib.texi (Contributors): Add Ira Rosen.
33997
33998 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
33999
34000 * gcov.c (find_source): Fix miswording in error message.
34001 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34002 (ix86_expand_sse_comi_round): Fix typo in error message.
34003
34004 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34005
34006 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34007
34008 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
34009
34010 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34011
34012 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34013
34014 PR target/65710
34015 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34016 Print bad_spills_num and insn_pseudos_num.
34017
34018 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34019
34020 PR target/65694
34021 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34022 when creating +1 values for SImode.
34023
34024 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34025
34026 PR target/65729
34027 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34028 assert.
34029
34030 2015-04-10 Jakub Jelinek <jakub@redhat.com>
34031 Iain Sandoe <iain@codesourcery.com>
34032
34033 PR target/65351
34034 * configure: Regenerate.
34035
34036 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34037
34038 PR target/65671
34039 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34040
34041 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
34042
34043 * doc/contrib.texi (Contributors): Add John Marino.
34044
34045 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34046
34047 PR tree-optimization/65709
34048 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34049 TREE_TYPE (TREE_TYPE (t)).
34050
34051 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
34052
34053 PR target/65710
34054 * lra-int.h (lra_bad_spill_regno_start): New.
34055 * lra.c (lra_bad_spill_regno_start): New.
34056 (lra): Set up lra_bad_spill_regno_start. Set up
34057 lra_constraint_new_regno_start unconditionally.
34058 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34059 spill preferences.
34060
34061 2015-04-09 Marek Polacek <polacek@redhat.com>
34062 Jakub Jelinek <jakub@redhat.com>
34063
34064 PR middle-end/65554
34065 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34066 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34067 of STRIP_NOPS.
34068
34069 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
34070
34071 PR rtl-optimization/65693
34072 * combine.c (is_parallel_of_n_reg_sets): Move outside of
34073 #ifndef HAVE_cc0.
34074
34075 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
34076
34077 PR target/65296
34078 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34079 device specs file if "device-specs%s" didn't resolve to a path.
34080
34081 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34082
34083 PR target/65676
34084 * config/i386/i386.c (fixup_modeless_constant): New.
34085 (ix86_expand_args_builtin): Fixup modeless constant operand.
34086 (ix86_expand_round_builtin): Ditto.
34087 (ix86_expand_special_args_builtin): Ditto.
34088 (ix86_expand_builtin): Ditto.
34089
34090 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34091
34092 PR target/65693
34093 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34094 any pow2 integer in between 2 and 0x80000000U inclusive.
34095
34096 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
34097
34098 PR rtl-optimization/65693
34099 * combine.c (is_parallel_of_n_reg_sets): Change first argument
34100 from an rtx_insn * to an rtx.
34101 (try_combine): Adjust both callers. Use it once more.
34102
34103 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34104
34105 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34106 (chkp_make_static_const_bounds): Search existing
34107 symbol by assembler name. Use make_decl_one_only.
34108 (chkp_get_zero_bounds_var): Remove node search which
34109 is now performed in chkp_make_static_const_bounds.
34110 (chkp_get_none_bounds_var): Likewise.
34111
34112 2015-04-08 Michael Witten <mfwitten@gmail.com>
34113
34114 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34115 to an example.
34116
34117 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34118
34119 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34120
34121 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34122
34123 * doc/extend.texi (__sync Builtins): Fix grammar.
34124
34125 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34126
34127 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34128
34129 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34130
34131 * varasm.c (emit_local): Move definition of align.
34132
34133 2015-04-08 Julian Brown <julian@codesourcery.com>
34134
34135 * config/nvptx/mkoffload.c (process): Support variable mapping.
34136
34137 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
34138
34139 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34140 alpha_links **.
34141 (alpha_write_one_linkage): Correct typo.
34142
34143 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34144
34145 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34146
34147 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34148
34149 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34150
34151 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34152
34153 * tree-chkp.h (chkp_insert_retbnd_call): New.
34154 * tree-chkp.c (chkp_insert_retbnd_call): New.
34155 * ipa-split.c (insert_bndret_call_after): Remove.
34156 (split_function): Use chkp_insert_retbnd_call.
34157 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34158 bounds for instrumented functions.
34159
34160 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
34161
34162 PR ipa/65540
34163 * calls.c (initialize_argument_information): When producing tail
34164 call also turn SSA_NAMES passed by references to original PARM_DECLs
34165
34166 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
34167
34168 PR target/65648
34169 * lra-remat.c (do_remat): Process input and non-input insn
34170 registers separately.
34171
34172 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34173
34174 PR debug/65678
34175 * valtrack.c (debug_lowpart_subreg): New function.
34176 (dead_debug_insert_temp): Use it.
34177
34178 PR middle-end/65680
34179 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34180 into signed HOST_WIDE_INT the same as negative bit_offset.
34181
34182 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
34183
34184 * ipa-comdats.c (ipa_comdats): Visit all thunks
34185 to set proper comdat group.
34186
34187 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34188
34189 PR target/65489
34190 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34191 on constants for NEON VSTRUCT modes.
34192
34193 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34194 Iain Sandoe <iain@codesourcery.com>
34195
34196 PR target/65351
34197 * configure: Regenerate.
34198
34199 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34200
34201 PR target/65614
34202 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34203 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34204 that LFD is used to load double constants instead of LFS. Add
34205 defaults for all costs structures. Add comments for missing
34206 initialization fields.
34207 (size32_cost): Likewise.
34208 (size64_cost): Likewise.
34209 (rs64a_cost): Likewise.
34210 (mpccore_cost): Likewise.
34211 (ppc403_cost): Likewise.
34212 (ppc405_cost): Likewise.
34213 (ppc440_cost): Likewise.
34214 (ppc476_cost): Likewise.
34215 (ppc601_cost): Likewise.
34216 (ppc603_cost): Likewise.
34217 (ppc604_cost): Likewise.
34218 (ppc604e_cost): Likewise.
34219 (ppc620_cost): Likewise.
34220 (ppc630_cost): Likewise.
34221 (ppccell_cost): Likewise.
34222 (ppc750_cost): Likewise.
34223 (ppc7450_cost): Likewise.
34224 (ppc8540_cost): Likewise.
34225 (ppce300c2c3_cost): Likewise.
34226 (ppce500mc_cost): Likewise.
34227 (ppce500mc64_cost): Likewise.
34228 (ppce5500_cost): Likewise.
34229 (ppce6500_cost): Likewise.
34230 (titan_cost): Likewise.
34231 (power4_cost): Likewise.
34232 (power6_cost): Likewise.
34233 (power7_cost): Likewise.
34234 (power8_cost): Likewise.
34235 (ppca2_cost): Likewise.
34236 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34237
34238 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34239 instead of XXLOR to copy SFmode to clear out dirty bits created
34240 when SFmode denormals are generated.
34241 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34242 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34243
34244 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34245
34246 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34247 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34248 * config/aarch64/aarch64-tune.md: Regenerate.
34249
34250 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34251
34252 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34253 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34254 * config/arm/arm-cores.def (exynos-m1): New core.
34255 * config/arm/arm-tune.md: Regenerate.
34256 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34257 * config/arm/bpabi.h: Likewise.
34258
34259 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34260
34261 * ipa-cp (set_single_call_flag): Remove too
34262 restrictive assert.
34263
34264 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
34265
34266 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34267 GOMP_offload_unregister from the destructor.
34268
34269 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34270
34271 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34272 flags for instrumentation thunk.
34273 (chkp_produce_thunks): Likewise.
34274
34275 2015-04-05 Martin Liska <mliska@suse.cz>
34276
34277 PR ipa/65665
34278 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34279 has computed data structure.
34280 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34281
34282 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
34283
34284 * invoke.texi (inline-unit-growth): Increase growth to 20%
34285 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34286
34287 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
34288
34289 PR target/65647
34290 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
34291 value checking.
34292 (lra_rematerialization_iter): New.
34293 * lra.c (lra): Initialize lra_rematerialization_iter.
34294 Stop updating lra_constraint_new_regno_start after switching of
34295 inheritance and rematerialization.
34296 * lra-remat.c (lra_rematerialization_iter): New.
34297 (lra_remat): Add printing pass iteration. Do rematerialization
34298 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34299
34300 2015-04-04 Richard Biener <rguenther@suse.de>
34301
34302 PR tree-optimization/64909
34303 PR tree-optimization/65660
34304 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34305 to take a cost vector for scalar iteration cost.
34306 (vect_get_single_scalar_iteration_cost): Likewise.
34307 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34308 Compute the scalar iteration cost into a cost vector.
34309 (vect_get_known_peeling_cost): Use the scalar cost vector to
34310 account for the cost of the peeled iterations.
34311 (vect_estimate_min_profitable_iters): Likewise.
34312 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34313 Likewise.
34314
34315 2015-04-04 Alan Modra <amodra@gmail.com>
34316
34317 PR target/65576
34318 PR target/65240
34319 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34320 0.0 constant unless TARGET_VSX.
34321 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34322 alternative.
34323
34324 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34325
34326 PR ipa/65654
34327 * ipa-inline-transform.c (inline_call): Skip sanity check to work
34328 around the ICE
34329
34330 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34331
34332 PR ipa/65655
34333 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34334 speculative indirect edges to avoid ordering issue.
34335
34336 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34337
34338 PR ipa/65076
34339 * ipa-inline.c (edge_badness): Add combined size to the denominator.
34340
34341 2015-04-03 Jakub Jelinek <jakub@redhat.com>
34342
34343 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34344 TYPE_ARTIFICIAL on the .omp_data* types.
34345
34346 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34347
34348 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34349 instrumentation thunks.
34350
34351 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34352
34353 * config/i386/i386.c (ix86_expand_call): Avoid nested
34354 PARALLEL in returned call value.
34355
34356 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34357
34358 * lto-cgraph.c (input_cgraph_1): Always link instrumented
34359 assembler name with original one.
34360
34361 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34362
34363 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34364
34365 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34366
34367 Revert parts of r216820.
34368 * config/i386/i386.md (movqi_internal): Correct type calculation
34369 for alternatives 3 and 5.
34370
34371 2015-04-02 Jakub Jelinek <jakub@redhat.com>
34372
34373 PR preprocessor/61977
34374 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34375 predefine __vector/__bool/__pixel macros nor context sensitive
34376 macros for CLK_ASM.
34377 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34378
34379 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
34380
34381 * config/pa/pa.c (pa_output_move_double): Directly handle register
34382 indexed memory operand. Simplify handling of scaled register indexed
34383 memory operands.
34384
34385 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34386
34387 PR driver/65444
34388 * config/i386/linux-common.h (MPX_SPEC): New.
34389 (CHKP_SPEC): Add MPX_SPEC.
34390 * doc/invoke.texi (-fcheck-pointer-boudns): Document
34391 possible issues with '-z bndplt' support in linker.
34392
34393 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34394
34395 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34396 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34397 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34398 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34399 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
34400
34401 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
34402
34403 * config/i386/sync.md (UNSPEC_MOVA): Remove.
34404 (atomic_load<mode>): Change operand 0 predicate to
34405 nonimmediate_operand and fix up the destination when needed.
34406 Use UNSPEC_LDA.
34407 (atomic_loaddi_fpu): Use UNSPEC_LDA.
34408 (atomic_store<mode>): Change operand 1 predicate to
34409 nonimmendate_operand and move the source to register when needed.
34410 Use UNSPEC_STA.
34411 (atomic_store<mode>_1): Use UNSPEC_STA.
34412 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
34413 Fix moves from memory operand. Use UNSPEC_STA.
34414
34415 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34416
34417 * expmed.c (strict_volatile_bitfield_p): Check that the access will
34418 not cross a MODESIZE boundary.
34419 (store_bit_field, extract_bit_field): Added assertions in the
34420 strict volatile bitfields code path.
34421
34422 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
34423
34424 PR target/65624
34425 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
34426 Increase args array size by one to avoid buffer overflow.
34427
34428 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34429
34430 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
34431 split_part.
34432 * ipa-inline.c (edge_badness): Add wrapper penalty.
34433 (sum_callers): Move up.
34434 (inline_small_functions): Set single_caller.
34435 * ipa-inline.h (inline_summary): Add single_caller.
34436 * ipa-split.c (split_function): Set split_part.
34437 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
34438 * cgraph.h (cgraph_node): Add split_part.
34439
34440 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
34441
34442 PR target/58945
34443 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
34444 Do not split operands 0 and operands 2 to halfmode.
34445 (atomic_compare_and_swap<mode>): Update for
34446 atomic_compare_and_swap<dwi>_doubleword changes.
34447
34448 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34449
34450 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
34451 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
34452 no caching is done.
34453
34454 2015-03-31 Martin Liska <mliska@suse.cz>
34455
34456 PR ipa/65557
34457 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
34458 has already filled up function summary.
34459 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34460
34461 2015-03-31 Richard Biener <rguenther@suse.de>
34462
34463 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
34464 of types.
34465
34466 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
34467
34468 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
34469 nested functions.
34470 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
34471 (s390_asm_output_function_label): Adapt to new signature of
34472 s390_function_num_hotpatch_hw
34473 Optimise the code generating assembler output.
34474 Add comments to assembler file.
34475
34476 2015-03-31 Richard Biener <rguenther@suse.de>
34477
34478 PR middle-end/65626
34479 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
34480 of the noreturn call so it is last and cleanup_control_flow_bb
34481 can do the CFG part.
34482
34483 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
34484
34485 PR target/65531
34486 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
34487 same_comdat_group for external symbols.
34488 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
34489 infinite same_comdat_group traversal loop.
34490
34491 2015-03-31 Jakub Jelinek <jakub@redhat.com>
34492
34493 PR plugins/61176
34494 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
34495 automatically to $headers.
34496
34497 2015-03-30 Jakub Jelinek <jakub@redhat.com>
34498
34499 PR ipa/65610
34500 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
34501 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
34502 function.
34503 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
34504 Use it.
34505 * ipa-prop.c (param_type_may_change_p): Likewise.
34506 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
34507 (remove_unused_scope_block_p): Add in_ctor_dtor_block
34508 argument. Before inlining, preserve
34509 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
34510 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
34511 recursive calls.
34512 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
34513
34514 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34515
34516 PR ipa/65076
34517 * ipa-inline.c (edge_badness): Base denominator on callee's
34518 grwoth squared.
34519
34520 2015-03-27 Martin Jambor <mjambor@suse.cz>
34521
34522 PR ipa/65478
34523 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
34524 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
34525 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
34526 node_calling_single_call.
34527 * ipa-cp.c (count_callers): New function.
34528 (set_single_call_flag): Likewise.
34529 (initialize_node_lattices): Count callers and set single_flag_call if
34530 necessary.
34531 (incorporate_penalties): New function.
34532 (good_cloning_opportunity_p): Use it, dump new flags.
34533 (propagate_constants_topo): Set node_within_scc flag if appropriate.
34534 * doc/invoke.texi (ipa-cp-recursion-penalty,
34535 ipa-cp-single-call-pentalty): Document.
34536
34537 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34538
34539 PR ipa/65588
34540 * symtab.c (symtab_node::get_partitioning_class): Register vars
34541 are duplicated.
34542 * varpool.c (symbol_table::output_variables) Do not assemble unefined
34543 decls for non-symbols.
34544
34545 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
34546
34547 PR target/65248
34548 * output.h (default_binds_local_p_2): New.
34549 * varasm.c (default_binds_local_p_2): Renamed to ...
34550 (default_binds_local_p_3): This. Don't return true on protected
34551 data symbol if protected data may be external.
34552 (default_binds_local_p): Use default_binds_local_p_3.
34553 (default_binds_local_p_1): Likewise.
34554 (default_binds_local_p_2): New.
34555 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
34556 default_binds_local_p_2 if TARGET_MACHO is undefined.
34557
34558 2015-03-27 Jakub Jelinek <jakub@redhat.com>
34559
34560 PR target/65593
34561 * config/i386/i386.c (legitimize_pic_address): If base
34562 is SYMBOL_REF or LABEL_REF using %rip addressing, force
34563 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
34564
34565 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34566
34567 PR target/65531
34568 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
34569 comdat groups.
34570
34571 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34572
34573 PR ipa/65600
34574 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
34575 of optimized out indirect call.
34576 (redirect_to_unreachable): Always build symbol table node for
34577 BUILT_IN_UNREACHABLE
34578
34579 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
34580
34581 PR target/65407
34582 * ira-costs.c (record_reg_classes): Process all constraint string
34583 containing 0-9.
34584
34585 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
34586
34587 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
34588 memory_operand.
34589
34590 PR target/65052
34591 * config/c6x/constraints.md (S3): New constraint.
34592 * config/c6x/c6x.md (real_jump): Use it.
34593
34594 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34595
34596 PR middle-end/65595
34597 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
34598 do redirection if the call is not optimized out.
34599
34600 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
34601
34602 PR target/65495
34603 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
34604 (fchkp-check-incomplete-type): Add LTO.
34605 (fchkp-zero-input-bounds-for-main): Likewise.
34606 (fchkp-first-field-has-own-bounds): Likewise.
34607 (fchkp-narrow-bounds): Likewise.
34608 (fchkp-narrow-to-innermost-array): Likewise.
34609 (fchkp-use-static-bounds): Likewise.
34610 (fchkp-use-static-const-bounds): Likewise.
34611 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34612
34613 2015-03-27 Marek Polacek <polacek@redhat.com>
34614
34615 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
34616
34617 2015-03-27 Marek Polacek <polacek@redhat.com>
34618
34619 PR sanitizer/65583
34620 * ubsan.c (ubsan_create_edge): New function.
34621 (instrument_bool_enum_load): Call it.
34622 (instrument_nonnull_arg): Likewise.
34623 (instrument_nonnull_return): Likewise.
34624 (instrument_object_size): Likewise.
34625
34626 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34627
34628 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
34629 auto_vec.
34630
34631 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34632
34633 PR lto/65536
34634 * lto-streamer.h (class lto_location_cache): New.
34635 (struct data_in): Add location_cache.
34636 (lto_input_location): Update prototype.
34637 (stream_input_location_now): New.
34638 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
34639 pointer to location.
34640 (stream_input_location): Update.
34641 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
34642 (warn_odr): Apply location cache before warning.
34643 (lto_input_location): Update prototype.
34644 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
34645 Use stream_input_location_now.
34646 * lto-streamer-in.c (lto_location_cache::current_cache): New static
34647 variable.
34648 (lto_location_cache::cmp_loc): New function.
34649 (lto_location_cache::apply_location_cache): New function.
34650 (lto_location_cache::accept_location_cache): New function.
34651 (lto_location_cache::revert_location_cache): New function.
34652 (lto_location_cache::input_location): New function.
34653 (lto_input_location): Do location caching.
34654 (stream_input_location_now): New function.
34655 (input_eh_region, input_struct_function_base): Use
34656 stream_input_location_now.
34657 (lto_data_in_create): use new.
34658 (lto_data_in_delete): Use delete.
34659 * tree-streamer-in.c (unpack_ts_block_value_fields,
34660 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
34661 lto_input_ts_exp_tree_pointers): Update for cached location api.
34662
34663 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34664
34665 PR ipa/65076
34666 * passes.def: Add pass_nothrow.
34667 * ipa-pure-const.c: (pass_data_nothrow): New.
34668 (pass_nothrow): New.
34669 (pass_nothrow::execute): New.
34670 (make_pass_nothrow): New.
34671 * tree-pass.h (make_pass_nothrow): Declare.
34672
34673 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34674
34675 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
34676 edge to change by speculation resolution or redirection.
34677 (edge_set_predicate): Likewise.
34678 (inline_summary_t::duplicate): Likewise.
34679 (remap_edge_summaries): Likewise.
34680
34681 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34682
34683 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
34684 New macros.
34685 (can_inline_edge_p): Relax option matching for always inline functions.
34686
34687 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
34688
34689 PR target/65561
34690 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
34691 Check operand 4 and operand 0 for equality.
34692 (avx512f_vextract<shuffletype>32x4_1_maskm):
34693 Check operand 6 and operand 0 for equality.
34694 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
34695 for equality.
34696 (vec_extract_hi_<mode>_maskm): Ditto.
34697
34698 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34699
34700 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
34701 dead calls back to live.
34702 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
34703 cross check to ...
34704 (cgraph_node::verify_node): ... here; verify only callee edges,
34705 not caller.
34706 * cif-code.def (CILK_SPAWN): New code.
34707
34708 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34709
34710 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
34711 (edge_set_predicate): Use it to mark unreachable edges.
34712 (inline_summary_t::duplicate): Remove unnecesary code.
34713 (remap_edge_summaries): Likewise.
34714 (dump_inline_summary): Report contains_cilk_spawn.
34715 (compute_inline_parameters): Compute contains_cilk_spawn.
34716 (inline_read_section, inline_write_summary): Stream
34717 contains_cilk_spawn.
34718 * ipa-inline.c (can_inline_edge_p): Do not touch
34719 DECL_STRUCT_FUNCTION that may not be available;
34720 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
34721 remove check for callee_fun->can_throw_non_call_exceptions and
34722 replace it by optimization attribute check; check for flag_exceptions.
34723 * ipa-inline-transform.c (inline_call): Maintain
34724 DECL_FUNCTION_PERSONALITY
34725 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
34726
34727 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34728
34729 PR tree-optimization/65551
34730 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
34731 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
34732
34733 2015-03-26 Richard Biener <rguenther@suse.de>
34734
34735 PR middle-end/65555
34736 * tree-cfg.c (verify_gimple_call): Do not require a call to
34737 have no LHS if it wasn't recognized as control altering yet.
34738
34739 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34740
34741 PR tree-optimization/64715
34742 * passes.def: Add another instance of pass_object_sizes before ccp1.
34743 * tree-object-size.c (pass_object_sizes::execute): In
34744 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
34745 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
34746 __bos result and the computed constant. Remove redundant
34747 checks, obsoleted by gimple_call_builtin_p test.
34748
34749 * var-tracking.c (variable_tracking_main_1): Don't track
34750 variables for targetm.no_register_allocation targets.
34751
34752 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
34753
34754 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
34755 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
34756
34757 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
34758
34759 PR target/65569
34760 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
34761 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
34762 0.0 is correctly setup.
34763 (extenddftf2_internal): Likewise.
34764
34765 2015-03-25 Sebastian Pop <s.pop@samsung.com>
34766
34767 PR tree-optimization/65177
34768 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
34769 (bb_in_bbs): New.
34770 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
34771 edges not adjacent on the path to the original code.
34772
34773 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
34774
34775 PR bootstrap/65537
34776 * doc/install.texi (Building a native compiler): Document new
34777 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
34778 configuration assumes that the host supports the linker plugin.
34779
34780 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
34781
34782 PR target/65508
34783 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
34784 chain for generated call.
34785
34786 2015-03-25 Richard Biener <rguenther@suse.de>
34787
34788 * passes.c (pass_manager::execute_early_local_passes): Guard
34789 execution of pass_chkp_instrumentation_passes with
34790 flag_check_pointer_bounds.
34791 (pass_chkp_instrumentation_passes::gate): Likewise.
34792
34793 2015-03-25 Martin Liska <mliska@suse.cz>
34794
34795 PR tree-optimization/65538
34796 * symbol-summary.h (function_summary::~function_summary):
34797 Relese memory for allocated summaries.
34798 (function_summary::release): New function.
34799
34800 2015-03-25 Jakub Jelinek <jakub@redhat.com>
34801
34802 PR lto/65515
34803 * lto-streamer-out.c (DFS::worklist): New struct.
34804 (DFS::worklist_vec): New data member.
34805 (DFS::next_dfs_num): Remove.
34806 (DFS::DFS): Rewritten using worklist instead of recursion,
34807 using most of code from DFS::DFS_write_tree.
34808 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
34809 pass it to DFS_write_tree calls.
34810 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
34811 quick initial checks push it into worklist_vec and return.
34812
34813 2015-03-25 Richard Biener <rguenther@suse.de>
34814
34815 PR middle-end/65519
34816 * genmatch.c (expr::gen_transform): Re-write to avoid
34817 using gimple_build.
34818
34819 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34820
34821 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
34822
34823 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34824
34825 * config/arm/arm.opt (print_tune_info): New option.
34826 * config/arm/arm.c (arm_print_tune_info): New function.
34827 (arm_file_start): Call arm_print_tune_info.
34828 * config/arm/arm-protos.h (struct tune_params): Add comment.
34829 * doc/invoke.texi (@item -mprint-tune-info): New item.
34830 (-mtune): mention it in ARM Option Summary.
34831
34832 2015-03-25 DJ Delorie <dj@redhat.com>
34833
34834 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
34835 correct clause.
34836
34837 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
34838 Martin Liska <mliska@suse.cz>
34839
34840 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
34841 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
34842 (sem_item::add_type): New function.
34843 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
34844 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
34845 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
34846 (sem_function::equals_wpa): Fix typo.
34847 * ipa-icf.h (sem_item::add_type): New function.
34848 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
34849 order.
34850
34851 2015-03-24 Jakub Jelinek <jakub@redhat.com>
34852
34853 PR tree-optimization/65533
34854 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
34855 with swapped operands, call vect_free_slp_tree on
34856 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
34857 vector.
34858
34859 2015-03-24 Richard Biener <rguenther@suse.de>
34860
34861 PR middle-end/65517
34862 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
34863 for fixup if necessary.
34864
34865 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
34866
34867 * doc/extend.texi (Function Attributes): Add @cindex entries
34868 for all attributes and regularize their format. Delete text
34869 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
34870 information about "eightbit_data", "tiny_data", and "model"
34871 variable attributes to the Variable Attributes section. Fix
34872 some obvious typos and copy-editing issues.
34873 (Variable Attributes, Type Attributes): Likewise add/fix
34874 @cindex entries for all attributes.
34875
34876 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34877
34878 PR target/65523
34879 * tree-chkp.c (chkp_build_returned_bound): Ignore
34880 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
34881
34882 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
34883
34884 PR target/65505
34885 * config/sh/predicates.md (simple_mem_operand,
34886 displacement_mem_operand): Add test for reg.
34887 (short_displacement_mem_operand): Test for displacement_mem_operand
34888 before invoking sh_disp_addr_displacement.
34889 * config/sh/constraints.md (Sdd, Sra): Simplify.
34890 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
34891 Remove redundant displacement_mem_operand tests.
34892
34893 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
34894
34895 PR target/65296
34896 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
34897 the same -mmcu=MCU more than once.
34898
34899 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34900
34901 PR bootstrap/65522
34902 * ipa-devirt.c: Remove duplicate demangle.h include.
34903
34904 PR target/65504
34905 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
34906 on the pseudo.
34907 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
34908 REG_POINTER on *destptr after adjusting it for prologue size.
34909
34910 PR ipa/65521
34911 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
34912 ultimate_alias_target ()->order ints instead of
34913 ultimate_alias_target () pointers.
34914
34915 2015-03-23 Richard Biener <rguenther@suse.de>
34916
34917 PR tree-optimization/65518
34918 * tree-vect-stmts.c (vectorizable_load): Reject single-element
34919 interleaving cases we generate absymal code for.
34920
34921 2015-03-23 Richard Biener <rguenther@suse.de>
34922
34923 PR tree-optimization/65494
34924 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
34925 matches here.
34926 (vect_analyze_slp_instance): But do that here, always and once.
34927
34928 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34929
34930 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
34931 adding T or multiplying by T+1 and subracting T.
34932
34933 2015-03-22 Jeff Law <law@redhat.com>
34934
34935 PR rtl-optimization/64317
34936 * Makefile.in (OBJS): Add gcse-common.c
34937 * gcse.c: Include gcse-common.h
34938 (struct modify_pair_s): Move structure definition to gcse-common.h
34939 (compute_transp): Move function to gcse-common.c.
34940 (canon_list_insert): Similarly.
34941 (record_last_mem_set_info): Break out some code and put it into
34942 gcse-common.c. Call into the new common code.
34943 (compute_local_properties): Pass additional arguments to compute_transp.
34944 * postreload-gcse.c: Include gcse-common.h and df.h
34945 (modify_mem_list_set, blocks_with_calls): New variables.
34946 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
34947 (get_bb_avail_insn): Pass in the expression index too.
34948 (alloc_mem): Allocate memory for the new bitmaps and lists.
34949 (free_mem): Free memory for the new bitmaps and lists.
34950 (insert_expr_in_table): Record a bitmap index for each entry we
34951 add to the table.
34952 (record_last_mem_set_info): Call into common code in gcse-common.c.
34953 (get_bb_avail_insn): If no available insn was found in the requested
34954 BB. If BB has a single predecessor, see if the expression is
34955 transparent in BB and available in that single predecessor.
34956 (compute_expr_transp): New wrapper for compute_transp.
34957 (eliminate_partially_redundant_load): Pass expression's bitmap_index
34958 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
34959 (gcse_after_reload_main): If there are elements in the hash table,
34960 then compute transparency for all the elements in the hash table.
34961 * gcse-common.h: New file.
34962 * gcse-common.c: New file.
34963
34964 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
34965
34966 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
34967 as an adjective.
34968 (System Headers): Likewise.
34969 (Ifdef): Likewise.
34970 (Traditional macros): Likewise.
34971 (Invocation): Likewise.
34972 (Option Index): Likewise.
34973 * doc/cppopts.texi (-M): Likewise.
34974 (-finput-charset): Likewise.
34975 (--help): Likewise.
34976 * doc.invoke.texi (AVR Options): Likewise.
34977 (V850 Options): Likewise.
34978
34979 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
34980
34981 PR ipa/65475
34982 * ipa-devirt.c: Include demangle.h
34983 (odr_type_d): Add field rtti_broken.
34984 (odr_subtypes_equivalent_p): Do not require name to match.
34985 (compare_virtual_tables): Fix typo; if type already has ODR violation,
34986 bypass the tests; be ready for function referneces in vtables that are
34987 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
34988 (warn_odr): Give up for nameless types.
34989 (warn_types_mismatch): Report mismatch in mangled names;
34990 report mismatch in anonymous namespaces; look into component types to
34991 give useful error; report when mismatch is dragged in from other ODR
34992 type.
34993 (odr_types_equivalent_p): Match types for being polymorphic; avoid
34994 duplicated diagnostics.
34995 (add_type_duplicate): Reorder checks so more informative ones come
34996 first; fix typo; do not output "the extra base is defined here" when
34997 we did not warn.
34998 (BINFO_N_BASE_BINFOS): Relax sanity check.
34999
35000 2015-03-22 Martin Liska <mliska@suse.cz>
35001 Jakub Jelinek <jakub@redhat.com>
35002
35003 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35004 masks that can potentially include a builtin.
35005 (ix86_add_new_builtins): Introduce fast filter for isa values
35006 that cannot trigger builtin inclusion.
35007
35008 2015-03-22 Martin Liska <mliska@suse.cz>
35009
35010 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35011 (sem_item::update_hash_by_local_refs): Likewise.
35012 (sem_variable::get_hash): Empty line is fixed.
35013 (sem_item_optimizer::execute): Include adding of hash references.
35014 (sem_item_optimizer::update_hash_by_addr_refs): New function.
35015 (sem_item_optimizer::build_hash_based_classes): Use local hash.
35016 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35017 (sem_item::update_hash_by_local_refs): Likewise.
35018
35019 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35020
35021 PR ipa/65502
35022 * ipa-comdats.c (enqueue_references): Walk through thunks.
35023 (ipa_comdats): Likewise.
35024 (set_comdat_group_1): New function.
35025
35026 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35027
35028 PR ipa/65475
35029 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35030 non-polymorphic
35031
35032 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
35033 Gerald Pfeifer <gerald@pfeifer.com>
35034
35035 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35036
35037 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35038 Sandra Loosemore <sandra@codesourcery.com>
35039
35040 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35041 function parameter declaration.
35042 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35043 Update arguments to nios2_adjust_call_address().
35044 (sibcall_internal): Rename from *sibcall.
35045 (sibcall_value_internal): Rename from *sibcall_value.
35046 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35047 (nios2_large_got_address): Add target temp reg parameter.
35048 (nios2_got_address): Adjust call to nios2_large_got_address, add
35049 force_reg around it.
35050 (nios2_load_pic_address): Add target temp reg parameter, replace call
35051 to nios2_got_address with corresponding code.
35052 (nios2_legitimize_constant_address): Update call to
35053 nios2_load_pic_address.
35054 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35055 to use temp reg for PIC loading purposes.
35056 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35057 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35058 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35059
35060 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35061
35062 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35063 usage of "the @option{...}".
35064 (-Wopenmp-simd): Likewise.
35065 (-fsanitize-recover): Likewise.
35066 (-fsanitize-undefined-trap-on-error): Likewise.
35067 (-flto): Likewise.
35068 (tracer-dynamic-coverage-feedback): Likewise.
35069 (reorder-block-duplicate-feedback): Likewise.
35070 (loop-unroll-jam-size): Likewise.
35071 (-B): Likewise.
35072 (-I-): Likewise.
35073 (-mabs=legacy): Likewise.
35074 (-mupper-regs-df): Likewise.
35075 (-mupper-regs-sf): Likewise.
35076 (-mpointers-to-nested-functions): Likewise.
35077
35078 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35079
35080 * doc/extend.texi (Cilk Plus Builtins): Add markup.
35081
35082 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35083
35084 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35085 additional index entries and cross-references.
35086 (-fchkp-check-incomplete-type): Likewise.
35087 (-fchkp-first-field-has-own-bounds): Likewise.
35088 (-fchkp-narrow-to-innermost-array): Likewise.
35089 (-fchkp-use-fast-string-functions): Likewise.
35090 (-fchkp-use-nochk-string-functions): Likewise.
35091 (-fchkp-use-static-const-bounds): Likewise.
35092 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35093 (-fchkp-instrument-marked-only): Likewise.
35094 (-fchkp-use-wrappers): Likewise.
35095 (-static-libmpx): Likewise.
35096 (-static-libmpxwrappers): Likewise.
35097 * doc/extend.texi (bnd_legacy): Likewise.
35098 (bnd_instrument): Likewise.
35099 (bnd_variable_size): Likewise.
35100 (Pointer Bounds Checker builtins): Likewise.
35101
35102 2015-03-21 Tom de Vries <tom@codesourcery.com>
35103
35104 PR tree-optimization/65458
35105 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35106 * cgraph.h (cgraph_node): Add parallelized_function field.
35107 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35108 (input_overwrite_node): Read parallelized_function field.
35109 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35110 parallelized_function on cgraph_node for child_fn.
35111 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35112 Remove include of gt-tree-parloops.h.
35113 (parallelized_functions): Remove static variable.
35114 (parallelized_function_p): Rewrite using parallelized_function field of
35115 cgraph_node.
35116 (create_loop_fn): Remove adding to parallelized_functions.
35117 * Makefile.in (GTFILES): Remove tree-parloops.c
35118
35119 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
35120
35121 PR rtl-optimization/64366
35122 * lra.c (lra_update_insn_regno_info): Consider regs in
35123 CALL_INSN_FUNCTION_USAGE memory.
35124
35125 2015-03-20 Richard Biener <rguenther@suse.de>
35126
35127 PR middle-end/64715
35128 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35129 for type comparison and gcc_checking_assert.
35130 (chrec_fold_plus_poly_poly): Likewise.
35131 (chrec_fold_multiply_poly_poly): Likewise.
35132 (chrec_convert_1): Likewise.
35133 * gimplify.c (gimplify_expr): Remove premature folding of
35134 &X + CST to &MEM[&X, CST].
35135
35136 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35137
35138 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35139 already is final.
35140 (ipa_inline): Recompute inline_failed codes.
35141 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35142 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35143 CIF_FINAL_ERROR.
35144
35145 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
35146
35147 PR rtl-optimization/60851
35148 * recog.c (constrain_operands): Accept a pseudo register before reload
35149 for LRA enabled targets.
35150
35151 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
35152
35153 PR target/65240
35154 * config/rs6000/predicates.md (easy_fp_constant): Remove special
35155 -ffast-math handling that kept non-0 constants live in the RTL
35156 until reload. Remove logic testing the number of instructions it
35157 took to create a constant in a GPR that was never used, due to a
35158 test for soft-float earlier.
35159 (memory_fp_constant): Delete, no longer used.
35160
35161 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35162 alternatives for loading non-0 constants into GPRs for hard
35163 floating point that is no longer needed due to changes in
35164 easy_fp_constant. Add support for loading 0.0 into GPRs.
35165 (mov<mode>_hardfloat32): Likewise.
35166 (mov<mode>_hardfloat64): Likewise.
35167 (mov<mode>_64bit_dm): Likewise.
35168 (movtd_64bit_nodm): Likewise.
35169 (pre-reload move FP constant define_split): Delete define_split,
35170 since it is no longer used.
35171 (extenddftf2_internal): Remove GHF constraints that are not valid
35172 for extenddftf2.
35173
35174 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
35175
35176 PR rtl-optimization/63491
35177 * lra-constraints.c (check_and_process_move): Use src instead of
35178 sreg. Remove some dead code.
35179
35180 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
35181
35182 PR ipa/65380
35183 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35184 (sem_variable::merge): Likewise.
35185
35186 2015-03-19 Martin Liska <mliska@suse.cz>
35187
35188 PR ipa/65465
35189 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35190 all fields of cgraph_thunk_info.
35191
35192 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
35193
35194 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35195 clone instrumented thunks.
35196
35197 2015-03-19 Richard Biener <rguenther@suse.de>
35198
35199 Revert
35200 2015-03-10 Richard Biener <rguenther@suse.de>
35201
35202 PR middle-end/63155
35203 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35204 * tree-ssa-coalesce.c: Include timevar.h.
35205 (attempt_coalesce): Handle graph being NULL.
35206 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35207 Split out abnormal coalescing to ...
35208 (perform_abnormal_coalescing): ... this function.
35209 (coalesce_ssa_name): Perform abnormal coalescing without computing
35210 live/conflict.
35211 (verify_ssa_coalescing_worker): New function.
35212 (verify_ssa_coalescing): Likewise.
35213
35214 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
35215 Jakub Jelinek <jakub@redhat.com>
35216
35217 PR sanitizer/65400
35218 * tsan.c (instrument_gimple): Clear tail call flag on
35219 calls.
35220
35221 2015-03-19 Jakub Jelinek <jakub@redhat.com>
35222
35223 PR sanitizer/65400
35224 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35225 call in the return bb.
35226 (find_split_points): Add RETURN_BB argument, don't call
35227 find_return_bb.
35228 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
35229 if true append TSAN_FUNC_EXIT internal call after the call to
35230 the split off function.
35231 (execute_split_functions): Call find_return_bb here.
35232 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35233 Adjust find_split_points and split_function calls.
35234
35235 2015-03-18 DJ Delorie <dj@redhat.com>
35236
35237 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35238 (iorqi3_virt): Likewise.
35239
35240 2015-03-18 Tom de Vries <tom@codesourcery.com>
35241
35242 * tree-parloops.c (parallelize_loops): Make static.
35243 * tree-parloops.h (parallelize_loops): Remove extern declaration.
35244
35245 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
35246
35247 PR middle-end/64491
35248 Revert:
35249 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
35250
35251 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35252 condition would be removed due to undefined behaviour.
35253
35254 2015-03-18 Martin Liska <mliska@suse.cz>
35255
35256 PR ipa/65432
35257 * cgraph.c (cgraph_node::get_create): Remove unnecessary
35258 xstrdup_for_dump wrapper.
35259 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35260 sem_item::name.
35261 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35262 with xstrdup_for_dump.
35263 (sem_variable::equals): Likewise.
35264 (sem_item_optimizer::read_section): Use symtab_node::name instead of
35265 sem_item::name.
35266 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35267 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35268 symtab_node::asm_name with xstrdup_for_dump.
35269 (congruence_class::dump): Use symtab_node::name instead of
35270 sem_item::name.
35271 * ipa-icf.h (symtab_node::name): Remove.
35272 (symtab_node::asm_name): Likewise.
35273
35274 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35275
35276 PR tree-optimization/65450
35277 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35278 function.
35279 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35280 it instead of duplicate_ssa_name_ptr_info.
35281
35282 PR target/65222
35283 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35284
35285 2015-03-18 Richard Biener <rguenther@suse.de>
35286
35287 * tree-data-ref.h (struct access_matrix): Remove.
35288 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35289 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35290 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35291 (am_vector_index_for_loop): Likewise.
35292 (struct data_reference): Remove access_matrix member.
35293 (DR_ACCESS_MATRIX): Remove.
35294 (lambda_vector_new): Add comment.
35295 (lambda_matrix_new): Use XOBNEWVEC.
35296
35297 2015-03-18 Richard Biener <rguenther@suse.de>
35298
35299 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35300 (pass_ch::execute): Cleanup the CFG only if we did sth.
35301 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35302
35303 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35304
35305 * expmed.c (synth_mult): Use std::swap instead of manually
35306 swapping algorithms.
35307
35308 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35309
35310 PR target/65078
35311 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35312
35313 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
35314
35315 PR target/65296
35316 * config/avr/avr.opt (-nodevicelib): New option.
35317 * doc/invoke.texi (AVR Options): Document it.
35318 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35319 libgcc.a, libc.a, libm.a.
35320 * config/avr/specs.h: Same.
35321 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35322 which don't (directly) depend on the device. Print more help.
35323 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35324 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35325 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35326 case of an error.
35327 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35328 for specs file name.
35329 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35330 * config/avr/avr-mcus.def: Adjust initializers and comments.
35331
35332 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
35333
35334 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35335 DECL_ONE_ONLY to check if decl is one only.
35336 * ipa-split.c (consider_split): Limit splitt of one only functions.
35337
35338 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35339
35340 PR tree-optimization/65427
35341 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35342 functions.
35343 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35344
35345 2015-03-16 Marek Polacek <polacek@redhat.com>
35346
35347 * cgraph.h (add_new_static_var): Remove declaration.
35348 * varpool.c (add_new_static_var): Remove function.
35349
35350 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35351
35352 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35353 instead of vec<tree> * with vec_alloc and release for args.
35354 Adjust all users.
35355
35356 PR middle-end/65431
35357 * omp-low.c (delete_omp_context): Only splay_tree_delete
35358 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35359 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
35360
35361 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
35362
35363 PR sanitizer/64820
35364 * cfgexpand.c (align_base): New function.
35365 (alloc_stack_frame_space): Call it.
35366 (expand_stack_vars): Align prev_frame to be sure
35367 data->asan_vec elements aligned properly.
35368
35369 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
35370
35371 PR middle-end/65409
35372 * expr.c (store_field): Do not do a direct block copy if the source is
35373 a PARALLEL with BLKmode.
35374
35375 2015-03-16 Tom de Vries <tom@codesourcery.com>
35376
35377 PR middle-end/65414
35378 Revert:
35379 2015-03-12 Tom de Vries <tom@codesourcery.com>
35380
35381 PR rtl-optimization/64895
35382 * lra-lives.c (check_pseudos_live_through_calls): Use
35383 actual_call_used_reg_set instead of call_used_reg_set, if available.
35384
35385 2015-03-16 Alan Modra <amodra@gmail.com>
35386
35387 PR target/63150
35388 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35389 Modify Z->r bswapdi splitter to use dest in place of scratch.
35390 In r->Z and Z->r bswapdi splitter rename word_high, word_low
35391 to word1, word2 and rearrange logic to suit.
35392 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35393 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
35394 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35395 Add one '?' on r->r. Modify Z->r splitter to avoid need for
35396 early clobber.
35397
35398 2015-03-14 Jakub Jelinek <jakub@redhat.com>
35399
35400 PR tree-optimization/65369
35401 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
35402 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
35403 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
35404
35405 PR tree-optimization/65418
35406 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
35407 are casts in the first PLUS_EXPR operand, ensure tbias and
35408 *totallowp are in the inner type.
35409
35410 PR rtl-optimization/65401
35411 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
35412 argument. If true, adjust_address_nv of x with big-endian
35413 correction for the mode widening to GET_MODE (y).
35414 (make_field_assignment): Don't do MEM mode widening here.
35415 Use MEM_P instead of GET_CODE == MEM.
35416
35417 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
35418
35419 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
35420 the external decls.
35421
35422 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35423
35424 PR target/64600
35425 * config/arm/arm.c (arm_gen_constant, AND case): Use
35426 ARM_SIGN_EXTEND when constructing AND mask.
35427
35428 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35429
35430 * graph.c (print_graph_cfg): Make function names visible and append
35431 parenthesis to it. Also make groups of basic blocks belonging to the
35432 same function visible.
35433
35434 2015-03-12 Richard Biener <rguenther@suse.de>
35435
35436 PR middle-end/44563
35437 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
35438 to avoid quadratic behavior with inline expansion splitting blocks.
35439 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
35440 with the successor if the predecessor will be merged with it.
35441 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
35442 entry block with its successor.
35443
35444 2015-03-13 Richard Biener <rguenther@suse.de>
35445
35446 PR middle-end/44563
35447 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
35448 (cleanup_tree_cfg_1): Do not call it.
35449 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
35450 (fixup_noreturn_call): Mark the stmt as control altering.
35451 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
35452 here.
35453 (pass_data_fixup_cfg): Produce a dump file.
35454 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
35455 (need_noreturn_fixup): New global.
35456 (pass_dominator::execute): Fixup queued noreturn calls.
35457 (optimize_stmt): Queue calls that became noreturn for fixup.
35458 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
35459 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
35460 (el_to_fixup): New global.
35461 (eliminate_dom_walker::before_dom_childre): Queue calls that
35462 became noreturn for fixup.
35463 (eliminate): Fixup queued noreturn calls.
35464 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
35465 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
35466 (substitute_and_fold_dom_walker::before_dom_children): Queue
35467 alls that became noreturn for fixup.
35468 (substitute_and_fold): Fixup queued noreturn calls.
35469
35470 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
35471
35472 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
35473 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
35474 are building; for methods check ODR type of class they belong to if
35475 they may lead to a polymorphic call.
35476 (sem_function::compare_polymorphic_p): Be bit smarter about testing
35477 when function may lead to a polymorphic call.
35478 (sem_function::compare_type_list): Remove.
35479 (sem_variable::equals): Update use of compatible_types_p.
35480 (sem_variable::parse_tree_refs): Remove.
35481 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
35482 cdtor.
35483 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
35484 matching here.
35485 (func_checker::compatible_polymorphic_types_p): Break out from ...
35486 (unc_checker::compatible_types_p): ... here.
35487 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
35488 Declare.
35489 (unc_checker::compatible_types_p): Update.
35490 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
35491 Remove.
35492
35493 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35494
35495 PR rtl-optimization/65235
35496 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
35497 When first element of vec_concat is const_int, calculate its size
35498 using second element.
35499
35500 2015-03-12 Richard Biener <rguenther@suse.de>
35501
35502 PR middle-end/65270
35503 * fold-const.c (operand_equal_p): Fix ordering of resetting
35504 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
35505
35506 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
35507
35508 * config/s390/s390.c (s390_reorg): Move code to output nops after label
35509 to s390_reorg ().
35510 (s390_asm_output_function_label): Likewise.
35511 * config/s390/s390.c (s390_asm_output_function_label):
35512 Fix function label alignment with -mhtopatch.
35513 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
35514 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
35515 ("nop_2_byte"): New define_insn.
35516 ("nop_4_byte"): Likewise.
35517 ("nop_6_byte"): Likewise.
35518 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
35519 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
35520
35521 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35522
35523 PR target/65103
35524 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
35525 register.
35526
35527 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35528
35529 PR target/65044
35530 * toplev.c (process_options): Restrict Pointer Bounds Checker
35531 usage with Address Sanitizer.
35532
35533 2015-03-12 Richard Biener <rguenther@suse.de>
35534
35535 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
35536 to split on.
35537 * omp-low.c (expand_omp_taskreg): Split block before removing
35538 the stmt.
35539 (expand_omp_target): Likewise.
35540 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
35541 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
35542 stmt to split_block.
35543
35544 2015-03-12 Tom de Vries <tom@codesourcery.com>
35545
35546 PR rtl-optimization/64895
35547 * lra-lives.c (check_pseudos_live_through_calls): Use
35548 actual_call_used_reg_set instead of call_used_reg_set, if available.
35549
35550 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35551
35552 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
35553 (cgraph_node::remove): Likewise.
35554 (cgraph_node::get_untransformed_body): Likewise.
35555 * varpool.c (varpool_node::remove): Likewise.
35556 (varpool_node::get_constructor): Add sanity check.
35557
35558 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
35559
35560 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
35561 old GCC versions.
35562 (-fabi-compat-version): Likewise.
35563 (-ffriend-injection): Likewise.
35564 (-Wdeclaration-after-statement): Likewise.
35565 (-fomit-frame-pointer): Likewise.
35566 (-ftree-coalesce-inlined-vars): Likewise.
35567 (-fvisibility=): Likewise.
35568 * doc/extend.texi (Typeof): Likewise.
35569 (Zero Length): Likewise.
35570 (Escaped Newlines): Likewise.
35571 (Compound Literals): Likewise.
35572 (Function Attributes): Likewise.
35573 (Label Attributes): Likewise.
35574 (Type Attributes): Likewise.
35575 (Function Names): Likewise.
35576 (Other Builtins): Likewise.
35577 (Function Specific Option Pragmas): Likewise.
35578 (C++ Interface): Likewise.
35579
35580 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
35581
35582 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
35583
35584 2015-03-11 Marek Polacek <polacek@redhat.com>
35585
35586 PR tree-optimization/65388
35587 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
35588
35589 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35590
35591 PR target/65296
35592 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
35593 * configure: Regenerate.
35594 * config.in: Regenerate.
35595 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
35596 [-mn-flash]: Document it.
35597 [__AVR_ARCH__]: Document avrtiny.
35598
35599 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
35600 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
35601 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
35602
35603 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35604
35605 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
35606
35607 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
35608
35609 PR target/65242
35610 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
35611 allow reloads of PLUS in floating point/VSX registers.
35612
35613 2015-03-11 Junmo Park <junmoz.park@samsung.com>
35614
35615 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
35616 crypto_sha256_fast.
35617 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
35618
35619 2015-03-11 Richard Biener <rguenther@suse.de>
35620
35621 PR tree-optimization/65310
35622 * tree-sra.c (build_ref_for_offset): Also preserve larger
35623 alignment.
35624
35625 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
35626
35627 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
35628
35629 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35630
35631 PR target/65368
35632 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
35633 new define_expand.
35634 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
35635
35636 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35637
35638 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
35639 (sem_function::equals_wpa): ... here.
35640
35641 2015-03-10 Marek Polacek <polacek@redhat.com>
35642 Jakub Jelinek <jakub@redhat.com>
35643
35644 PR sanitizer/65367
35645 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
35646 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
35647 separately.
35648
35649 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35650
35651 PR target/65286
35652 * config/rs6000/t-linux: For powerpc64* target set
35653 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
35654
35655 2015-03-10 Richard Biener <rguenther@suse.de>
35656
35657 PR middle-end/44563
35658 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
35659 for redirect_all_calls.
35660
35661 2015-03-10 Marek Polacek <polacek@redhat.com>
35662
35663 * gdbinit.in (pcfun): Define and document.
35664
35665 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
35666
35667 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
35668 of libgomp-plugin.h.
35669 (find_target_compiler): Support a case when the path to gcc is
35670 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
35671 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
35672 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
35673 libgomp-plugin.h.
35674 (main): Use GCC_INSTALL_NAME as target_driver_name.
35675 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
35676 define.
35677 (mkoffload.o): Remove obsolete include path and defines.
35678 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
35679
35680 2015-03-10 Richard Biener <rguenther@suse.de>
35681
35682 PR middle-end/63155
35683 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35684 * tree-ssa-coalesce.c: Include timevar.h.
35685 (attempt_coalesce): Handle graph being NULL.
35686 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35687 Split out abnormal coalescing to ...
35688 (perform_abnormal_coalescing): ... this function.
35689 (coalesce_ssa_name): Perform abnormal coalescing without computing
35690 live/conflict.
35691 (verify_ssa_coalescing_worker): New function.
35692 (verify_ssa_coalescing): Likewise.
35693
35694 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35695
35696 PR target/65296
35697 * config.gcc (extra_options) [avr]: Remove.
35698 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
35699 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
35700 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
35701
35702 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
35703 (-mmcu=): Add Var and MissingArgError properties.
35704 (-march=): Remove.
35705 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
35706 * config/avr/t-multilib: Regenerate.
35707 * config/avr/specs.h: New file.
35708 * config/avr/driver-avr.c: New file.
35709 * config/avr/genopt.sh: Remove file.
35710 * config/avr/avr-tables.opt: Remove file.
35711 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
35712 * config/avr/avr-c.c: Same.
35713 * avr-arch.h: Same.
35714 (avr_current_device): Remove proto.
35715 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
35716 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
35717 (EXTRA_SPEC_FUNCTIONS): Define.
35718 (avr_devicespecs_file): New specs function proto.
35719 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
35720 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
35721 (avr_current_device): Remove definition and usage.
35722 (avr_set_core_architecture): New static function.
35723 (avr_option_override): Use it.
35724 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
35725 (mcu_name): New static array.
35726 (comparator, avr_archs_str, avr_mcus_str): New static functions.
35727 (avr_inform_devices, avr_inform_core_architectures): New functions.
35728 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
35729 (avrlibc.h) [WITH_AVRLIBC]: Include.
35730 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
35731 (print_mcu): Rewrite from scratch.
35732 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
35733 Forward to avr-specific specs defined in device-specs file.
35734 * config/avr/t-avr (driver-avr.o): New rule.
35735 (avr-devices.o): Depend on avr-arch.h.
35736 (avr-mcus): No more depend on avr-tables.opt.
35737 (avr-tables.opt): Remove rule.
35738 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
35739
35740 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35741
35742 * c-family/c.opt (fchkp-use-wrappers): New.
35743 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
35744 (chkp_wrap_function): New.
35745 (chkp_build_instrumented_fndecl): Support wrapped
35746 functions.
35747 * doc/invoke.texi (-fcheck-pointer-bounds): New.
35748 (-fchkp-check-incomplete-type): New.
35749 (-fchkp-first-field-has-own-bounds): New.
35750 (-fchkp-narrow-bounds): New.
35751 (-fchkp-narrow-to-innermost-array): New.
35752 (-fchkp-optimize): New.
35753 (-fchkp-use-fast-string-functions): New.
35754 (-fchkp-use-nochk-string-functions): New.
35755 (-fchkp-use-static-bounds): New.
35756 (-fchkp-use-static-const-bounds): New.
35757 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
35758 (-fchkp-check-read): New.
35759 (-fchkp-check-write): New.
35760 (-fchkp-store-bounds): New.
35761 (-fchkp-instrument-calls): New.
35762 (-fchkp-instrument-marked-only): New.
35763 (-fchkp-use-wrappers): New.
35764 (-static-libmpx): New.
35765 (-static-libmpxwrappers): New.
35766
35767 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35768
35769 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
35770 (CHKP_SPEC): Add wrappers library.
35771 * c-family/c.opt (static-libmpxwrappers): New.
35772
35773 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35774
35775 * config/i386/linux-common.h (LIBMPX_LIBS): New.
35776 (LIBMPX_SPEC): New.
35777 (CHKP_SPEC): New.
35778 * gcc.c (CHKP_SPEC): New.
35779 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
35780 * c-family/c.opt (static-libmpx): New.
35781
35782 2015-03-10 Richard Biener <rguenther@suse.de>
35783
35784 PR middle-end/44563
35785 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
35786 for compare_type.
35787 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
35788 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
35789 (cgraph_add_edge_to_call_site_hash): Likewise.
35790 (cgraph_node::get_edge): Likewise.
35791 (cgraph_edge::set_call_stmt): Likewise.
35792 (cgraph_edge::remove_caller): Likewise.
35793
35794 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
35795
35796 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
35797 (callee_saved_gpr_regs_size): ... this.
35798 (callee_saved_regs_first_regno): Rename to ...
35799 (callee_saved_first_gpr_regno): ... this.
35800 (callee_saved_regs_last_regno) Rename to ...
35801 (callee_saved_last_gpr_regno): ... this.
35802 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
35803 variables.
35804 (nds32_initial_elimination_offset): Likewise.
35805 (nds32_expand_prologue): Likewise.
35806 (nds32_expand_epilogue): Likewise.
35807 (nds32_expand_prologue_v3push): Likewise.
35808 (nds32_expand_epilogue_v3pop): Likewise.
35809 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
35810 Adjust renamed variables.
35811 (nds32_output_stack_pop): Likewise.
35812
35813 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
35814
35815 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
35816 code in comment.
35817
35818 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35819
35820 PR rtl-optimization/65321
35821 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
35822 than shift mode.
35823 * var-tracking.c (use_narrower_mode): Likewise.
35824
35825 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35826
35827 PR tree-optimization/65355
35828 * varasm.c (notice_global_symbol): Do not produce RTL.
35829 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
35830 anchor.
35831 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
35832 check for section anchors.
35833
35834 2015-03-10 Alan Modra <amodra@gmail.com>
35835
35836 PR target/65286
35837 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
35838 to be single-arch by default. Set cpu_is_64bit for powerpc64
35839 given --with-cpu=native.
35840 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
35841 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
35842 and powerpc64le.
35843 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
35844 rs6000_isa_flags rather than TARGET_64BIT.
35845
35846 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
35847 Kaz Kojima <kkojima@gcc.gnu.org>
35848
35849 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
35850
35851 2015-03-09 Jakub Jelinek <jakub@redhat.com>
35852
35853 PR lto/65361
35854 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
35855 on a TREE_BINFO, instead use BINFO_TYPE.
35856
35857 2015-03-09 Richard Biener <rguenther@suse.de>
35858
35859 PR middle-end/65270
35860 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
35861 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
35862 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
35863 of that. When comparing dereferences compare alignment.
35864 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
35865
35866 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35867
35868 * ipa-inline-analysis.c (check_callers): Check
35869 node->can_remove_if_no_direct_calls_and_refs_p.
35870 (growth_likely_positive): Reorganize to call
35871 can_remove_if_no_direct_calls_p later.
35872 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
35873 will_be_removed_from_program_if_no_direct_calls_p): Add
35874 will_inline parameter.
35875 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
35876 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35877 Handle inliner case correctly.
35878
35879 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
35880
35881 PR tree-optimization/63743
35882 * cfgexpand.c (reorder_operands): Also reorder if only second operand
35883 had its definition forwarded by TER.
35884
35885 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35886
35887 PR lto/65316
35888 * ipa-utils.h (types_odr_comparable): Add strict argument.
35889 * ipa-devirt.c: Fix whitespace;
35890 (odr_hasher): Remove.
35891 (odr_name_hasher, odr_vtable_hasher): New hashers.
35892 (can_be_name_hashed_p): New predicate.
35893 (hash_type_name): remove.
35894 (hash_odr_name): New.
35895 (odr_name_hasher::hash): new.
35896 (can_be_vtable_hashed_p): New.
35897 (hash_odr_vtable): New.
35898 (odr_vtable_hasher::hash): New.
35899 (types_same_for_odr): Add strict parameter.
35900 (types_odr_comparable): Likewise.
35901 (odr_name_hasher::equal): New.
35902 (odr_vtable_hasher::equal): New.
35903 (odr_name_hasher::remove): New.
35904 (odr_hash_type): Change to hash_table<odr_name_hasher>.
35905 (odr_vtable_hash_type): New.
35906 (odr_vtable_hash): New.
35907 (odr_subtypes_equivalent_p): Do strict comparsion.
35908 (add_type_duplicate): Merge type names; cleanup; avoid type
35909 duplicates.
35910 (register_odr_type): Initialize vtable hash.
35911 (build_type_inheritance_graph): Likewise
35912 (get_odr_type): Reorg to use two hashes.
35913 (dump_possible_polymorphic_call_targets): Move sanity check after debug
35914 output.
35915 (ipa_devirt): Dump type_inheritance_graph.
35916 (types_same_for_odr): Add strict mode.
35917
35918 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35919
35920 PR ipa/65334
35921 * cgraph.h (symtab_node): Add definition_alignment,
35922 can_increase_alignment_p and increase_alignment.
35923 * symtab.c (symtab_node::can_increase_alignment_p,
35924 increase_alignment_1, symtab_node::increase_alignment,
35925 symtab_node::definition_alignment): New.
35926 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
35927 can_increase_alignment_p.
35928 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
35929 * tree-vect-stmts.c (ensure_base_align): Likewise.
35930 * varasm.c (function_section_1): Use definition_alignment.
35931 (assemble_start_function): Likewise.
35932 (emit_local): likewise.
35933 (build_constant_desc): Likewsie.
35934 (output_constant_def_contents): Likewise.
35935 (place_block_symbol): Likewise.
35936 (output_object_block): Likewise.
35937
35938 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35939
35940 PR ipa/65316
35941 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
35942 when outputting debug.
35943
35944 2015-03-07 Marek Polacek <polacek@redhat.com>
35945 Martin Uecker <uecker@eecs.berkeley.edu>
35946
35947 PR sanitizer/65280
35948 * doc/invoke.texi: Update description of -fsanitize=bounds.
35949
35950 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
35951
35952 * tree-ssa-phiopt.c (neg_replacement): Remove.
35953 (tree_ssa_phiopt_worker): Remove negate optimization.
35954
35955 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35956
35957 PR ipa/65302
35958 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
35959
35960 2015-03-06 Richard Biener <rguenther@suse.de>
35961
35962 PR middle-end/64928
35963 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
35964 and liveout_obstack members.
35965 (calculate_live_on_exit): Remove.
35966 (calculate_live_ranges): Change declaration.
35967 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
35968 (new_tree_live_info): Adjust.
35969 (calculate_live_ranges): Delete livein when not wanted.
35970 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
35971 Deal with partly deleted live info.
35972 (loe_visit_block): Remove temporary bitmap by using
35973 bitmap_ior_and_compl_into.
35974 (live_worklist): Adjust accordingly.
35975 (calculate_live_on_exit): Make static.
35976 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
35977 we do not need livein.
35978
35979 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
35980
35981 * real.c (real_from_string): Fix typo in assertion.
35982
35983 2015-03-06 Alex Velenko <alex.velenko@arm.com>
35984
35985 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
35986 the patch.
35987
35988 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35989
35990 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
35991
35992 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
35993
35994 PR target/64342
35995 * lra-assigns.c (find_hard_regno_for): Rename to
35996 find_hard_regno_for_1. Add a new parameter.
35997 (find_hard_regno_for): New function using find_hard_regno_for_1.
35998
35999 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36000
36001 PR rtl-optimization/65067
36002 * expmed.c (store_bit_field, extract_bit_field): Reworked the
36003 strict volatile bitfield handling.
36004
36005 2015-03-05 Martin Liska <mliska@suse.cz>
36006
36007 PR ipa/65318
36008 * ipa-icf.c (sem_variable::equals): Compare variables types.
36009
36010 2015-03-05 Richard Henderson <rth@redhat.com>
36011
36012 PR target/65121
36013 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36014 correctly check weak symbol binding.
36015
36016 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
36017
36018 PR middle-end/65315
36019 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36020 needed alignment.
36021
36022 2015-03-05 Martin Liska <mliska@suse.cz>
36023
36024 * ipa-inline.c (inline_small_functions): Set default value to
36025 prevent warning during bootstrap.
36026 * tree.h: Add pragma guard that ignores false positives during
36027 bootstrap.
36028
36029 2015-03-05 Richard Biener <rguenther@suse.de>
36030
36031 PR tree-optimization/65310
36032 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36033 Properly preserve alignment of the base of the access.
36034
36035 2015-03-05 Richard Biener <rguenther@suse.de>
36036
36037 PR ipa/65270
36038 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36039 Compare dependence info.
36040
36041 2015-03-05 Richard Biener <rguenther@suse.de>
36042
36043 PR middle-end/65233
36044 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36045 tree-into-ssa.h.
36046 (walk_ssa_copies): Revert last chage. Instead do not walk
36047 SSA names registered for SSA update.
36048
36049 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36050
36051 PR ipa/65270
36052 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36053 vtable references for their containing type.
36054 (sem_function::equals_wpa): Compare TYPE_RESTRICT
36055 and type attributes.
36056
36057 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
36058
36059 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36060 before negating it.
36061 * stor-layout.c (finalize_record_size): Revert latest change.
36062
36063 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
36064
36065 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36066
36067 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36068
36069 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36070 for correct comdat handling.
36071 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36072 Likewise.
36073 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36074 (used_from_object_file_p_worker): Remove.
36075 (cgraph_node::only_called_directly_or_alised): Add
36076 used_from_object_file_p.
36077 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36078 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36079 can_remove_if_no_direct_calls_and_refs_p.
36080
36081 2015-03-04 Nick Clifton <nickc@redhat.com>
36082
36083 * config/rl78/rl78.h (enum reg_class): Remove real registers from
36084 General register class.
36085 * config/rl78/rl78-real.md: Replace general register constraints
36086 with real+virtual register constraints.
36087
36088 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36089
36090 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36091 from checking for -mhtm option.
36092
36093 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36094
36095 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36096 (struct ipa_sra_check_caller_data): Add has_thunk field.
36097 (ipa_sra_check_caller): Check for thunk.
36098 (ipa_sra_preliminary_function_checks): Give up on function with
36099 thunks.
36100 (ipa_early_sra): Use call_for_symbol_and_aliases.
36101
36102 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
36103
36104 PR target/65249
36105 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36106 called for __stack_chk_guard symbol.
36107
36108 2015-03-03 DJ Delorie <dj@redhat.com>
36109
36110 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36111 inc/dec.
36112 (*addhi3_real): Likewise.
36113 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36114 pattern to match incrementing memory.
36115 * config/rl78/predicates.md (rl78_1_2_operand): New.
36116 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36117 it's the same and only mem.
36118 (rl78_alloc_physical_registers_op2): If there's effectively only
36119 one MEM, transcode it into HL.
36120 (rl78_far_p): Reject addresses that aren't legitimate.
36121
36122 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36123
36124 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36125 negating it.
36126
36127 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36128
36129 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36130
36131 Implement call0 ABI for xtensa
36132 * config/xtensa/constraints.md ("a" constraint): Include stack
36133 pointer in case of call0 ABI.
36134 ("q" constraint): Make empty in case of call0 ABI.
36135 ("D" constraint): Include stack pointer in case of call0 ABI.
36136 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36137 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36138 prototypes.
36139 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36140 variable.
36141 (xtensa_regno_to_class): Make it a local variable in the
36142 function xtensa_regno_to_class.
36143 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36144 macro, function prototype and implementation.
36145 (reg_nonleaf_alloc_order): Make it a local variable in the
36146 function order_regs_for_local_alloc.
36147 (xtensa_conditional_register_usage): New function.
36148 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36149 (xtensa_valid_move): Allow direct moves to stack pointer
36150 register in call0 ABI.
36151 (xtensa_setup_frame_addresses): Only spill register windows in
36152 windowed ABI.
36153 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36154 call0 ABI respectively.
36155 (xtensa_function_arg_1): Only mark a7 register for copying in
36156 windowed ABI.
36157 (xtensa_call_save_reg): New function.
36158 (compute_frame_size): Add space for callee saved register
36159 storage to the frame size in call0 ABI.
36160 (xtensa_expand_prologue): Generate code to set up stack frame
36161 and save callee-saved registers in call0 ABI.
36162 (xtensa_expand_epilogue): New function.
36163 (xtensa_set_return_address): New function.
36164 (xtensa_return_addr): Calculate return address in call0 ABI.
36165 (xtensa_builtin_saveregs): Only mark a7 register for copying and
36166 emit copying code in windowed ABI.
36167 (order_regs_for_local_alloc): Add preferred register allocation
36168 order for non-leaf function in call0 ABI.
36169 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36170 (xtensa_asm_trampoline_template): Add trampoline generation for
36171 call0 ABI.
36172 (xtensa_trampoline_init): Add trampoline initialization for
36173 call0 ABI.
36174 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36175 functions.
36176 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36177 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36178 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36179 ABI call-used registers.
36180 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36181 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36182 call0 ABI.
36183 (REG_CLASS_CONTENTS): Include all registers into the preferred
36184 reload registers set, adjust the set in the
36185 xtensa_conditional_register_usage.
36186 (xtensa_regno_to_class): Drop variable declaration.
36187 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36188 function.
36189 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36190 respectively.
36191 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36192 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36193 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36194 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36195 location in call0 ABI.
36196 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36197 stack adjustment size when handling exception.
36198 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36199 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36200 definitions.
36201 ("return" pattern): Generate ret.n/ret in call0 ABI.
36202 ("epilogue" pattern): Expand epilogue.
36203 ("nonlocal_goto" pattern): Use default in call0 ABI.
36204 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36205 emit eh_set_a0_* depending on ABI.
36206 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36207 ("eh_set_a0_call0", "blockage"): New patterns.
36208
36209 2015-03-03 Martin Liska <mliska@suse.cz>
36210
36211 PR ipa/65287
36212 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36213
36214 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
36215
36216 PR 65138/target
36217 * config/rs6000/rs6000-tables.opt: Regenerate table.
36218
36219 2015-03-03 Renlin Li <renlin.li@arm.com>
36220
36221 * doc/md.texi (@item ^): Change ? into ^.
36222
36223 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
36224
36225 * doc/tm.texi: Regenerated.
36226
36227 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36228
36229 * builtins.c (expand_builtin_return_addr): Add
36230 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36231 surrounding #ifdef.
36232 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36233 definition to 1.
36234 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36235 Likewise.
36236 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36237 undefined.
36238 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36239 paragraph.
36240
36241 2015-03-03 Martin Jambor <mjambor@suse.cz>
36242 Eric Botcazou <ebotcazou@adacore.com>
36243
36244 * tree-sra.c (ipa_sra_check_caller_data): New type.
36245 (has_caller_p): Removed.
36246 (ipa_sra_check_caller): New function.
36247 (ipa_sra_preliminary_function_checks): Use it.
36248
36249 2015-03-03 Martin Liska <mliska@suse.cz>
36250
36251 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36252 instead of if branch.
36253
36254 2015-03-03 Martin Liska <mliska@suse.cz>
36255
36256 PR ipa/65282
36257 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36258
36259 2015-03-23 Jeff Law <law@redhat.com>
36260
36261 PR tree-optimization/65241
36262 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36263 hash table if INSERT is true.
36264
36265 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36266
36267 PR target/65296
36268 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36269
36270 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36271
36272 PR target/64331
36273 * config/avr/avr.c (context.h, tree-pass.h): Include them.
36274 (avr_pass_data_recompute_notes): New static variable.
36275 (avr_pass_recompute_notes): New class.
36276 (avr_register_passes): New static function.
36277 (avr_option_override): Call it.
36278
36279 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36280
36281 Fix various problems with specs file generation.
36282
36283 PR target/65296
36284 * config.gcc (extra_gcc_objs) [avr]: Remove.
36285 * config/avr/driver-avr.c: Remove file.
36286 * config/avr/t-avr (driver-avr.o): Remove rule.
36287 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36288 INCLUDES to build. Depend on TM_H.
36289 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
36290 build warnings. Fix non-matching types and non-existing %-codes.
36291 (tm.h): Include.
36292 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36293 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36294 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36295 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36296 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36297 (LIBGCC_SPEC): Remove definitions.
36298
36299 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36300
36301 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36302 to create a register in testing mode.
36303
36304 2015-03-03 Martin Liska <mliska@suse.cz>
36305 Jan Hubicka <hubicka@ucw.cz>
36306
36307 PR ipa/65263
36308 * cgraph.c (cgraph_node::has_thunk_p): New function.
36309 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36310 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36311 (sem_function::merge): Assert is changed.
36312
36313 2015-03-03 Martin Liska <mliska@suse.cz>
36314 Martin Jambor <mjambor@suse.cz>
36315
36316 PR ipa/65087
36317 * ipa-icf.c (sem_item_optimizer::execute): Change function
36318 return value to boolean.
36319 (sem_item_optimizer::merge_classes): Likewise.
36320 (ipa_icf_driver): Return TODO_remove_functions in case there's
36321 a merge operation processed.
36322 * ipa-icf.h: Change function return value to boolean.
36323
36324 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36325
36326 PR 65138/target
36327 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36328 processor type for 64-bit little endian PowerPC.
36329
36330 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36331 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
36332 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
36333 printing built-in mask so it does not pass NULL pointers.
36334
36335 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36336 -mcpu=powerpc64le.
36337
36338 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
36339
36340 PR target/58158
36341 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36342 !ISA_HAS_FP_CONDMOVE.
36343
36344 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
36345
36346 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36347 reload_completed.
36348
36349 2015-03-02 Ulrich Drepper <drepper@gmail.com>
36350
36351 * doc/invoke.texi (Options for Code Generation Conventions):
36352 Fix URL of DSO paper.
36353
36354 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36355
36356 PR ipa/65130
36357 * ipa-inline.c (check_callers): Looks for recursion.
36358 (inline_to_all_callers): Give up on uninlinable or recursive edges.
36359 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36360 summary of inline clones.
36361 (do_estimate_growth_1): Fix recursion check.
36362
36363 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36364
36365 PR ipa/64988
36366 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36367 comdat groups.
36368
36369 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36370 Aldy Hernandez <aldyh@redhat.com>
36371
36372 PR lto/65276
36373 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36374 when checking TYPE_BINFO.
36375
36376 2015-03-02 Richard Biener <rguenther@suse.de>
36377
36378 PR ipa/65270
36379 * ipa-icf-gimple.c: Include builtins.h.
36380 (func_checker::compare_memory_operand): Compare base alignment.
36381
36382 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36383
36384 PR target/65184
36385 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36386 passed by reference.
36387
36388 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36389
36390 PR target/65183
36391 * tree-chkp.c (chkp_check_lower): Don't check against
36392 zero bounds for already instrumented functions.
36393 (chkp_check_upper): Likewise.
36394 (chkp_fini): Clean pass local data to avoid wrong reusage.
36395
36396 2015-02-28 Martin Liska <mliska@suse.cz>
36397 Jan Hubicka <hubicka@ucw.cz>
36398
36399 * ipa-icf.c (sem_variable::equals): Improve debug output;
36400 get variable constructor.
36401 (sem_variable::parse): Do not filter out too early; give up on
36402 volatile and register vars.
36403 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
36404 variables.
36405 * ipa-icf.h (sem_variable::init): Do not set ctor.
36406 (sem_variable::ctor): Remove.
36407
36408 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
36409
36410 PR middle-end/65233
36411 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
36412
36413 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36414
36415 * ipa-icf.c: Include stor-layout.h
36416 (sem_function::compare_cgraph_references): Rename to ...
36417 (sem_item::compare_cgraph_references): ... this one.
36418 (sem_variable::equals_wpa): New function
36419 (sem_variable::equals): Do not check stuff already verified by
36420 equals_wpa.
36421 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
36422 * ipa-icf.h (sem_item): Add compare_cgraph_references.
36423 (sem_function): Remove compare_cgraph_references.
36424 (sem_variable): Turns equals_wpa into non-inline.
36425
36426 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36427
36428 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
36429 (sem_item::add_expr): New function.
36430 (sem_function::hash_stmt): Handle operands of most statements.
36431 (sem_variable::get_hash): Hash the actual constructor.
36432 * ipa-icf.h (sem_item): Add add_expr.
36433 (sem_function): Update prototype of hash_stmt
36434
36435 2015-02-28 Martin Liska <mliska@suse.cz>
36436 Jan Hubicka <hubicka@ucw.cz>
36437
36438 PR ipa/65245
36439 * ipa-icf-gimple.c (func_checker::compare_function_decl):
36440 Remove.
36441 (func_checker::compare_variable_decl): Skip symtab vars.
36442 (func_checker::compare_cst_or_decl): Update.
36443 * ipa-icf.c (sem_function::parse): Do not consider aliases.
36444 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
36445 use correct symtab predicates.
36446 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
36447 (sem_variable::parse): Update comment.
36448 (sem_item_optimizer::build_graph): Consider ultimate aliases
36449 for references.
36450
36451 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36452
36453 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
36454 of OBJ_TYPE_REF.
36455
36456 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36457
36458 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
36459 (sem_variable::merge) Likewise.
36460
36461 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36462
36463 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
36464 target; also match flag_ipa_devirt.
36465
36466 2015-03-01 Martin Liska <mliska@suse.cz>
36467 Jan Hubicka <hubicka@ucw.cz>
36468
36469 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
36470 Validate variable alignment.
36471 * ipa-icf.c (sem_function::equals_private): Be more precise
36472 about non-common function attributes.
36473 (sem_variable::equals): Likewise.
36474
36475 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36476
36477 PR ipa/65237
36478 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
36479 across COMDAT group boundary.
36480
36481 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36482
36483 PR ipa/65232
36484 * ipa-icf.c (clear_decl_rtl): New function.
36485 (sem_function::merge): Clear RTL before forming alias.
36486 (sem_variable::merge): Clear RTL before forming alias.
36487
36488 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36489
36490 PR ipa/65236
36491 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
36492
36493 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
36494
36495 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
36496 to neon_to_gp<q>.
36497
36498 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36499
36500 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
36501 a typo in the description.
36502
36503 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36504
36505 PR target/64317
36506 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36507 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36508 * lra-constraints.c: Include "params.h".
36509 (EBB_PROBABILITY_CUTOFF): Use
36510 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
36511 (lra_inheritance): Use '<' instead of '<=' for
36512 EBB_PROBABILITY_CUTOFF.
36513 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
36514 Document change.
36515
36516 2015-02-27 Martin Liska <mliska@suse.cz>
36517
36518 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
36519 vector length condition.
36520
36521 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
36522
36523 * doc/extend.texi (x86 transactional memory intrinsics):
36524 Reorganize discussion of _xbegin. Clarify that the return
36525 value is a bit mask. Expand example and move to end of section.
36526
36527 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36528 Aldy Hernandez <aldyh@redhat.com>
36529
36530 PR rtl-optimization/65220
36531 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
36532
36533 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36534
36535 PR target/65032
36536 * lra-remat.c (update_scratch_ops): New.
36537 (do_remat): Call it.
36538 * lra.c (lra_register_new_scratch_op): New. Take code from ...
36539 (remove_scratches): ... here.
36540 * lra-int.h (lra_register_new_scratch_op): New prototype.
36541
36542 2015-02-27 Marek Polacek <polacek@redhat.com>
36543
36544 PR c/65040
36545 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
36546 -Wformat-signedness anymore.
36547
36548 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36549
36550 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
36551 function.
36552 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
36553
36554 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36555
36556 * config/s390/s390.c (enum s390_builtin):
36557 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
36558 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
36559 (s390_init_builtins): Generate new builtin functions.
36560 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
36561 (s390_sfpc, s390_efpc): New pattern definitions.
36562
36563 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36564
36565 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
36566 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
36567 (s390_builtin_decls): New array.
36568 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
36569 (s390_builtin_decl): New function.
36570 (TARGET_BUILTIN_DECL): Define macro.
36571
36572 2015-02-27 Richard Biener <rguenther@suse.de>
36573
36574 PR middle-end/63175
36575 * builtins.c (get_object_alignment_2): Make sure to re-apply
36576 the ANDed mask after recursing to its operand gets us a new
36577 misalignment bit position.
36578
36579 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
36580 Martin Liska <mliska@suse.cz>
36581
36582 PR bootstrap/65150
36583 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
36584 Use address_matters_p.
36585 (redirect_all_callers, set_addressable): New functions.
36586 (sem_function::merge): Reorganize and fix merging issues.
36587 (sem_variable::merge): Likewise.
36588 (sem_variable::compare_sections): Remove.
36589 * common.opt (fmerge-all-constants, fmerge-constants): Remove
36590 Optimization flag.
36591 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
36592 redirect them.
36593 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
36594 decl is used.
36595 (address_matters_1): New function.
36596 (symtab_node::address_matters_p): New function.
36597 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
36598 check for merged flag.
36599 * cgraph.h (address_matters_p): Declare.
36600 (symtab_node::address_taken_from_non_vtable_p): Remove.
36601 (symtab_node::address_can_be_compared_p): New method.
36602 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
36603 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
36604 Remove.
36605 (comdat_can_be_unshared_p_1) Use address_matters_p.
36606 (update_vtable_references): Fix formating.
36607 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
36608 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
36609 * cgraphclones.c: Preserve merged and icf_merged flags.
36610
36611 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
36612
36613 * doc/extend.texi (Function Attributes): Fix spelling and typos.
36614 (Label Attributes): Likewise.
36615 (Cilk Plus Builtins): Likewise.
36616 (ARC SIMD Built-in Functions): Likewise.
36617 (ARM C Language Extensions (ACLE)): Likewise.
36618 (PowerPC Built-in Functions): Likewise.
36619 (PowerPC Hardware Transactional Memory Built-in Functions):
36620 Likewise.
36621
36622 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36623
36624 PR tree-optimization/65216
36625 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
36626 new stmt and new SSA_NAME for lhs whenever the arguments have
36627 changed and weren't just swapped. Fix comment typo.
36628
36629 PR tree-optimization/65215
36630 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
36631 for PDP endian targets.
36632 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
36633 Fix up formatting issues.
36634 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
36635 size is smaller than the original, adjust MEM_REF offset by the
36636 difference of sizes. Use is_gimple_mem_ref_addr instead of
36637 is_gimple_min_invariant test to avoid adding address temporaries.
36638
36639 2015-02-26 Martin Liska <mliska@suse.cz>
36640 Jan Hubicka <hubicka@ucw.cz>
36641
36642 PR ipa/64693
36643 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
36644 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
36645 (sem_item_optimizer::process_cong_reduction): Include division by
36646 sensitive references.
36647 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
36648 * ipa-ref.c (ipa_ref::address_matters_p): New function.
36649 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
36650
36651 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
36652
36653 PR target/65192
36654 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
36655 Remove.
36656 * config/avr/avr.c: Same.
36657 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
36658 Refuse any constant address not in 0..0xbf.
36659 * config/avr/avr.md (*mov<mode>, *movsf): Remove
36660 tiny_valid_direct_memory_access_range from insn conditions.
36661 (mov<mode>): Don't special-case expansion of avrtiny addresses.
36662
36663 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
36664
36665 PR target/61142
36666 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
36667 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
36668 * config/sh/predicates.md (const_logical_operand): New predicate.
36669 * config/sh/sh.md: Add new peephole2 patterns.
36670
36671 2015-02-26 Marek Polacek <polacek@redhat.com>
36672
36673 PR ipa/65008
36674 * ipa-inline.c (early_inliner): Recompute inline parameters.
36675
36676 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36677
36678 PR target/65171
36679 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
36680 instructions with TImode operands are included in the analysis.
36681
36682 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36683
36684 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
36685 of an EDGE_FSM_THREAD.
36686
36687 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
36688
36689 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
36690
36691 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
36692
36693 PR debug/46102
36694 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
36695
36696 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36697
36698 PR tree-optimization/65048
36699 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
36700 (thread_through_all_blocks): Call valid_jump_thread_path.
36701 Remove invalid FSM jump-thread paths.
36702
36703 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36704
36705 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
36706 (ipa_write_optimization_summaries): Likewise.
36707 * tree-streamer.h: Include data-streamer.h.
36708 (streamer_mode_table): Declare extern variable.
36709 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
36710 * lto-streamer-out.c (lto_output_init_mode_table,
36711 lto_write_mode_table): New functions.
36712 (produce_asm_for_decls): Call lto_write_mode_table when streaming
36713 offloading LTO.
36714 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
36715 (lto_create_simple_input_block): Add mode_table argument to the
36716 lto_input_block constructors.
36717 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
36718 Likewise.
36719 * data-streamer-in.c (string_for_index): Likewise.
36720 * ipa-inline-analysis.c (inline_read_section): Likewise.
36721 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
36722 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
36723 * lto-streamer-in.c (lto_read_body_or_constructor,
36724 lto_input_toplevel_asms): Likewise.
36725 (lto_input_mode_table): New function.
36726 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
36727 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
36728 Use bp_pack_machine_mode.
36729 * real.h (struct real_format): Add name field.
36730 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36731 (class lto_input_block): Add mode_table member.
36732 (lto_input_block::lto_input_block): Add mode_table_ argument,
36733 initialize mode_table.
36734 (struct lto_file_decl_data): Add mode_table field.
36735 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
36736 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
36737 unpack_ts_decl_common_value_fields,
36738 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
36739 * tree-streamer.c (streamer_mode_table): New variable.
36740 * real.c (ieee_single_format, mips_single_format,
36741 motorola_single_format, spu_single_format, ieee_double_format,
36742 mips_double_format, motorola_double_format,
36743 ieee_extended_motorola_format, ieee_extended_intel_96_format,
36744 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
36745 ibm_extended_format, mips_extended_format, ieee_quad_format,
36746 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
36747 decimal_single_format, decimal_double_format, decimal_quad_format,
36748 ieee_half_format, arm_half_format, real_internal_format): Add name
36749 field.
36750 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
36751
36752 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
36753
36754 PR target/65161
36755 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
36756 reordering for selective scheduling.
36757
36758 2015-02-26 Terry Guo <terry.guo@arm.com>
36759
36760 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
36761 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
36762 (arm_arch_no_volatile_ce): Declare new global variable.
36763 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
36764 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
36765 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
36766 (TARGET_NO_VOLATILE_CE): New macro.
36767 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
36768 volatile memory access in IT block
36769
36770 2015-02-25 Kai Tietz <ktietz@redhat.com>
36771
36772 PR tree-optimization/61917
36773 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
36774 that reduc_def_stmt is null.
36775
36776 2015-02-25 Martin Liska <mliska@suse.cz>
36777
36778 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
36779 hard register variables.
36780
36781 2015-02-25 Kai Tietz <ktietz@redhat.com>
36782
36783 PR target/64212
36784 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
36785 (symtab::noninterposable_alias): Likewise.
36786
36787 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
36788
36789 PR target/65167
36790 * config/i386/i386.c (ix86_function_arg_regno_p): Support
36791 bounds registers.
36792 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
36793
36794 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
36795
36796 PR target/64997
36797 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
36798 as split condition; force split via '#' in output pattern.
36799
36800 2015-02-25 Richard Biener <rguenther@suse.de>
36801 Kai Tietz <ktietz@redhat.com>
36802
36803 PR tree-optimization/61917
36804 * tree-vect-loop.c (vectorizable_reduction): Allow
36805 vect_internal_def without reduction to exit graceful.
36806
36807 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36808
36809 PR target/65196
36810 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36811 only with NONDEBUG_INSN_P.
36812
36813 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36814
36815 Use variadic macros with avr-log.c.
36816
36817 * config/avr/avr-protos.h (avr_vdump): New prototype.
36818 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
36819 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
36820 * config/avr/avr-log.c: Adjust comments.
36821 (avr_vdump): New function.
36822 (avr_vadump): Pass caller as 2nd argument instead of format string.
36823 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
36824 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
36825
36826 2015-02-25 Jakub Jelinek <jakub@redhat.com>
36827
36828 PR lto/64374
36829 * target.def (target_option_stream_in): New target hook.
36830 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
36831 targetm.target_option.post_stream_in if non-NULL.
36832 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
36833 * doc/tm.texi: Updated.
36834 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
36835 function.
36836 (TARGET_OPTION_POST_STREAM_IN): Redefine.
36837
36838 2015-02-24 Jeff Law <law@redhat.com>
36839
36840 PR target/65117
36841 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
36842 of operand 0 and operand 2.
36843 (zero_cost_loop_end, loop_end): Similarly.
36844
36845 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
36846
36847 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
36848 CXX_MEM_STAT_INFO.
36849
36850 2015-02-24 DJ Delorie <dj@redhat.com>
36851
36852 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
36853 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
36854 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
36855 instead of hardcoding SImode.
36856
36857 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
36858
36859 * omp-low.c (create_omp_child_function): Tag entrypoint
36860 functions with a special attribute.
36861
36862 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36863
36864 PR target/65058
36865 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
36866
36867 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
36868
36869 PR rtl-optimization/65123
36870 * lra-remat.c (operand_to_remat): Check hard regs in insn
36871 definition too.
36872
36873 2015-02-24 Nick Clifton <nickc@redhat.com>
36874
36875 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
36876 to the assembler.
36877
36878 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
36879
36880 PR libgomp/64625
36881 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
36882 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
36883 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
36884 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
36885 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
36886 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
36887 (BUILT_IN_GOACC_PARALLEL): Specify as
36888 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
36889 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
36890 * builtin-types.def
36891 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36892 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36893 Remove function types.
36894 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
36895 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36896 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36897 New function types.
36898
36899 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
36900
36901 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
36902
36903 2015-02-24 Jakub Jelinek <jakub@redhat.com>
36904
36905 PR tree-optimization/65170
36906 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
36907 if val[1] < 0, clear also val[2] and return 3.
36908
36909 2015-02-24 Alan Modra <amodra@gmail.com>
36910
36911 PR target/65172
36912 * config/rs6000/rs6000.c (get_memref_parts): Only return true
36913 when *base is a reg. Handle nested plus addresses. Simplify
36914 pre_modify test.
36915
36916 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
36917
36918 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
36919 use natural alignment when optimizing for size.
36920
36921 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
36922
36923 PR target/65153
36924 * config/sh/sh.md (movsicc_true+3): Remove peephole.
36925 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
36926 * config/sh/sh.c (replace_n_hard_rtx): Remove.
36927
36928 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
36929
36930 PR fortran/63427
36931 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
36932 too big for a wide_int. Implement missing wrapping operation.
36933
36934 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
36935
36936 PR target/65163
36937 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
36938 instead of const_int 4294901760.
36939
36940 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
36941
36942 * config/avr/t-avr: Fix typo in comment.
36943
36944 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
36945
36946 * doc/rtl.texi (fma): Clarify documentation.
36947
36948 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
36949
36950 PR debug/58123
36951 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
36952 over input_location.
36953
36954 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36955
36956 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
36957 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
36958 restrict alignments to absolute_biggest_alignment.
36959 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
36960 Define.
36961 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
36962 * doc/tm.texi: Regenerate.
36963 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
36964
36965 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
36966
36967 PR target/64172
36968 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
36969
36970 2015-02-20 Richard Biener <rguenther@suse.de>
36971
36972 PR tree-optimization/65136
36973 * tree-ssa-propagate.c: Include cfgloop.h.
36974 (replace_phi_args_in): Avoid replacing loop latch edge PHI
36975 arguments with constants.
36976
36977 2015-02-20 Jakub Jelinek <jakub@redhat.com>
36978 Martin Liska <mliska@suse.cz>
36979
36980 PR target/63892
36981 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
36982 don't try to create_thunk if stdarg_p. If
36983 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
36984 redirect_callers if possible.
36985 (sem_item_optimizer::execute): Call unregister_hooks here...
36986 (ipa_icf_driver): ... instead of here.
36987
36988 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36989
36990 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
36991 Mark operand 0 as earlyclobber in 2nd alternative.
36992 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
36993 Write negated shift amount into QI lowpart operand 0 and use it
36994 in the shift step.
36995 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
36996
36997 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36998
36999 * cgraph.h (clone_function_name_1): Declare.
37000 * cgraphclones.c (clone_function_name_1): New function.
37001 (clone_function_name): Use it.
37002 * lto-partition.c: Include "stringpool.h".
37003 (must_not_rename, maybe_rewrite_identifier)
37004 (validize_symbol_for_target): New static functions.
37005 (privatize_symbol_name): Use must_not_rename.
37006 (promote_symbol): Call validize_symbol_for_target.
37007 (lto_promote_cross_file_statics): Likewise.
37008 (lto_promote_statics_nonwpa): Likewise.
37009
37010 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
37011
37012 PR target/64452
37013 * config/avr/avr.md (pushhi_insn): New insn.
37014 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37015
37016 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37017 Jakub Jelinek <jakub@redhat.com>
37018
37019 * tree-streamer.c (preload_common_nodes): Don't preload
37020 TI_VA_LIST* for offloading.
37021 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37022 in_lto_p.
37023
37024 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
37025
37026 * config/pa/pa.c (pa_emit_move_sequence): Always force
37027 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
37028 note on insn.
37029
37030 * config/pa/pa.c (pa_reloc_rw_mask): New function.
37031 (TARGET_ASM_RELOC_RW_MASK): Define.
37032 (pa_cannot_force_const_mem): Revert previous change.
37033
37034 2015-02-19 Martin Jambor <mjmabor@suse.cz>
37035 Jan Hubicka <hubicka@ucw.cz>
37036
37037 PR ipa/65028
37038 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37039 across jump functions.
37040
37041 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
37042
37043 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37044
37045 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
37046
37047 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37048
37049 2015-02-19 Richard Henderson <rth@redhat.com>
37050
37051 PR middle-end/65074
37052 * varasm.c (default_binds_local_p_2): Don't test node->definition;
37053 test DECL_EXTERNAL independent of symtab_node.
37054
37055 2015-02-19 Jakub Jelinek <jakub@redhat.com>
37056
37057 PR lto/65012
37058 * varpool.c (varpool_node::get_constructor): Return early
37059 if this->lto_file_data is NULL.
37060
37061 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37062
37063 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37064 (rank_for_schedule_debug): Update.
37065 (ready_sort): Make static. Move sorting logic to ...
37066 (ready_sort_debug, ready_sort_real): New static functions.
37067 (schedule_block): Sort both debug insns and real insns in preparation
37068 for ready list trimming. Improve debug output.
37069 * sched-int.h (ready_sort): Remove global declaration.
37070
37071 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
37072
37073 * ipa-icf.c (sem_function::equals_private): Adjust.
37074 (sem_function::bb_dict_test): Take a vec<int> * instead of
37075 auto_vec<int>.
37076 * ipa-icf.h (bb_dict_test): Likewise.
37077
37078 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37079
37080 PR gcov-profile/64634
37081 * tree-eh.c (frob_into_branch_around): Fix up typos
37082 in function comment.
37083 (lower_catch): Put eh_seq resulting from EH lowering of
37084 the cleanup sequence after the cleanup rather than before it.
37085
37086 2015-02-18 Tom de Vries <tom@codesourcery.com>
37087
37088 * common.opt (fstdarg-opt): New option.
37089 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37090 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37091 (@item -fstdarg-opt): New item.
37092
37093 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
37094
37095 PR target/65064
37096 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37097 for common symbols.
37098
37099 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37100
37101 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37102 insn-modes.h.
37103 (ALL_HOST_OBJS): Add mkoffload.o.
37104 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37105
37106 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
37107
37108 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37109 (compare_virtual_tables): Be smarter about skipping typeinfos;
37110 do sane output on virtual table table mismatch.
37111 (warn_odr): Be ready for forward declarations of enums;
37112 output sane info on base mismatch and virtual table mismatch.
37113 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37114 when only one type is polymorphic.
37115 (get_odr_type): Fix hashtable corruption.
37116 (dump_odr_type): Dump mangled names.
37117
37118 2015-02-18 Richard Biener <rguenther@suse.de>
37119
37120 PR tree-optimization/65063
37121 * tree-predcom.c (determine_unroll_factor): Return 1 if we
37122 have replaced looparound PHIs.
37123
37124 2015-02-18 Martin Liska <mliska@suse.cz>
37125
37126 * lto-streamer.c (lto_streamer_init): Encapsulate
37127 streamer_check_handled_ts_structures with checking macro.
37128
37129 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37130
37131 PR ipa/65087
37132 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37133 section if !implicit_section.
37134 (cgraph_node::create_version_clone_with_body): Likewise.
37135 * trans-mem.c (ipa_tm_create_version): Likewise.
37136
37137 2015-02-18 Richard Biener <rguenther@suse.de>
37138
37139 PR tree-optimization/62217
37140 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37141 into BIVs.
37142
37143 2015-02-18 Marek Polacek <polacek@redhat.com>
37144
37145 PR sanitizer/65081
37146 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37147 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37148 is in range [-16K, -1]. Don't issue run-time error if
37149 (ptr > ptr + offset).
37150
37151 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
37152
37153 * doc/install.texi (nvptx-*-none): New section.
37154 * doc/invoke.texi (Nvidia PTX Options): Likewise.
37155 * config/nvptx/nvptx.opt: Update.
37156
37157 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37158 (access_check): New functions, copied from
37159 config/i386/intelmic-mkoffload.c.
37160 (main): For non-installed testing, look in all COMPILER_PATHs for
37161 GCC_INSTALL_NAME.
37162
37163 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37164
37165 2015-02-18 Andrew Pinski <apinski@cavium.com>
37166 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37167
37168 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37169 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37170
37171 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37172
37173 * ipa-visibility.c (function_and_variable_visibility): Only
37174 check locality if node is not already local.
37175 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37176 call_for_symbol_and_aliases instead of
37177 call_for_symbol_thunks_and_aliases.
37178 (ipa_inline): Likewise.
37179 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37180 first walk aliases.
37181 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37182 call_for_symbol_and_aliases.
37183 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37184 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37185 (ipa_propagate_frequency): Update.
37186 (ipa_profile): Add opt_for_fn gueards.
37187
37188 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37189
37190 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37191 * doc/invoke.texi (SH options): Document it.
37192 * config/sh/sh.c (sh_insn_length_adjustment): Check
37193 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37194
37195 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
37196
37197 * common.opt (fipa-cp-alignment): New.
37198 * ipa-cp.c (ipcp_store_alignment_results): Check
37199 flag_ipa_cp_alignment.
37200 * opts.c (default_options_table): Enable -fipa-cp-alignment for
37201 -O2.
37202 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37203 * doc/invoke.texi: Document -fipa-cp-alignment.
37204
37205 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37206
37207 PR target/64793
37208 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37209 to nil. Adjust comments.
37210
37211 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37212
37213 * ipa-visibility.c (function_and_variable_visibility): Only
37214 check locality if node is not already local.
37215 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37216 call_for_symbol_and_aliases instead of
37217 call_for_symbol_thunks_and_aliases.
37218 (ipa_inline): Likewise.
37219 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37220 first walk aliases.
37221 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37222 call_for_symbol_and_aliases.
37223 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37224 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37225 (ipa_propagate_frequency): Update.
37226 (ipa_profile): Add opt_for_fn guards.
37227
37228 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
37229
37230 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37231 skipping of "strange" tokens.
37232
37233 2015-02-17 Jeff Law <law@redhat.com>
37234
37235 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
37236 obsolete comment.
37237
37238 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
37239
37240 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37241 as forcing a HARD_DEP between instructions, thereby
37242 disallowing rewriting to break dependencies.
37243
37244 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37245
37246 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37247 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37248 variables in boundary that have no inlitalizer encoded and are
37249 not aliases.
37250 * varasm.c (default_binds_local_p_2): External definitions do not
37251 count as definitions here.
37252
37253 2015-02-16 Jeff Law <law@redhat.com>
37254
37255 PR tree-optimization/64823
37256 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37257 statements.
37258 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37259 threading through blocks with PHIs, but no statements.
37260 (thread_through_normal_block): Distinguish between blocks where
37261 we did not process all the statements and blocks with no statements.
37262
37263 2015-02-16 Jakub Jelinek <jakub@redhat.com>
37264 James Greenhalgh <james.greenhalgh@arm.com>
37265
37266 PR ipa/64963
37267 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37268 section if not linkonce. Fix up formatting.
37269 (cgraph_node::create_version_clone_with_body): Copy section.
37270 * trans-mem.c (ipa_tm_create_version): Likewise.
37271
37272 2015-02-16 Richard Biener <rguenther@suse.de>
37273
37274 PR tree-optimization/65077
37275 * tree-ssa-structalias.c (get_constraint_for_1): Handle
37276 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37277 (find_func_aliases): Allow float values to carry pointers again.
37278
37279 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
37280
37281 * doc/install.texi (Specific): Reorder targets list to put
37282 aarch64 in alphabetical order. Add a link to aarch64*-*-*
37283 from the top menu.
37284
37285 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37286 David Edelsohn <dje.gcc@gmail.com>
37287
37288 PR target/65058
37289 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37290 mapping class to external variable or function reference.
37291 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37292 mapping class.
37293
37294 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
37295
37296 PR target/53348
37297 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37298 ASM_WEAKEN_DECL if defined.
37299
37300 2015-02-16 Richard Biener <rguenther@suse.de>
37301
37302 PR lto/65015
37303 * varasm.c (default_file_start): For LTO produced units
37304 emit <artificial> as file directive.
37305
37306 2015-02-16 Richard Biener <rguenther@suse.de>
37307
37308 PR tree-optimization/63593
37309 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37310 stmts and releasing SSA names until...
37311 (execute_pred_commoning): ... after processing all chains.
37312
37313 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37314
37315 PR ipa/65059
37316 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37317 external functions.
37318
37319 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
37320
37321 * doc/bugreport.texi: Adjust section titles throughout the file
37322 to use "Title Case".
37323 * doc/extend.texi: Likewise.
37324 * doc/gcov.texi: Likewise.
37325 * doc/implement-c.texi: Likewise.
37326 * doc/implement-cxx.texi: Likewise.
37327 * doc/invoke.texi: Likewise.
37328 * doc/objc.texi: Likewise.
37329 * doc/standards.texi: Likewise.
37330 * doc/trouble.texi: Likewise.
37331
37332 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
37333
37334 * cgraph.h (symtab_node::has_aliases_p): Simplify.
37335 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37336 * tree.c (lookup_binfo_at_offset): Make static.
37337 (get_binfo_at_offset): Do not shadow offset; add explanatory
37338 comment.
37339
37340 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
37341
37342 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37343 for all floading point loads and stores except those using a register
37344 index address.
37345 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37346 to a register.
37347
37348 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37349
37350 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37351 (do_estimate_growth_1): Record if any uninlinable edge was seen.
37352 (estimate_growth): Handle uninlinable edges correctly.
37353 (check_callers): New.
37354 (growth_likely_positive): Handle aliases correctly.
37355
37356 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37357
37358 * ipa-chkp.c: Use iterate_direct_aliases.
37359 * symtab.c (resolution_used_from_other_file_p): Move inline.
37360 (symtab_node::create_reference): Fix formating.
37361 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37362 (symtab_node::iterate_reference): Move inline.
37363 (symtab_node::iterate_referring): Move inline.
37364 (symtab_node::iterate_direct_aliases): Move inline.
37365 (symtab_node::used_from_object_file_p_worker): Inline into ...
37366 (symtab_node::used_from_object_file_p): ... this one; move inline.
37367 (symtab_node::call_for_symbol_and_aliases): Move inline;
37368 use iterate_direct_aliases.
37369 (symtab_node::call_for_symbol_and_aliases_1): New method.
37370 (cgraph_node::call_for_symbol_and_aliases): Move inline;
37371 use iterate_direct_aliases.
37372 (cgraph_node::call_for_symbol_and_aliases_1): New method.
37373 (varpool_node::call_for_node_and_aliases): Rename to ...
37374 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37375 use iterate_direct_aliases.
37376 (varpool_node::call_for_symbol_and_aliases_1): New method.
37377 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37378 (ipa_discover_readonly_nonaddressable_var): Update.
37379 * ipa-devirt.c: Fix formating.
37380 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37381 Move inline.
37382 (cgraph_node::call_for_symbol_and_aliases): Move inline.
37383 (cgraph_node::call_for_symbol_and_aliases_1): New function..
37384 * cgraph.h (used_from_object_file_p_worker): Remove.
37385 (resolution_used_from_other_file_p): Move inline.
37386 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37387 (symtab_node::iterate_reference): Move inline.
37388 (symtab_node::iterate_referring): Move inline.
37389 (symtab_node::iterate_direct_aliases): Move inline.
37390 (symtab_node::used_from_object_file_p_worker): Inline into ...
37391 (symtab_node::used_from_object_file_p): Move inline.
37392 * tree-emutls.c (ipa_lower_emutls): Update.
37393 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37394 (varpool_node::call_for_node_and_aliases): Remove.
37395
37396 2015-02-14 Jakub Jelinek <jakub@redhat.com>
37397
37398 PR tree-optimization/62209
37399 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
37400 op == range->exp, insert seq and gimplified code after labels
37401 instead of after the phi.
37402
37403 2015-02-13 Jeff Law <law@redhat.com>
37404
37405 PR bootstrap/65060
37406 Revert my change for tree-optimization/64823.
37407
37408 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37409
37410 PR tree-optimization/65053
37411 * tree-ssa-phiopt.c (value_replacement): When moving assign before
37412 cond, either reset VR on lhs or set it to phi result VR.
37413
37414 2015-02-13 Jeff Law <law@redhat.com>
37415
37416 PR tree-optimization/64823
37417 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
37418 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37419 threading through blocks with PHIs, but no statements.
37420 (thread_through_normal_block): Distinguish between blocks where
37421 we did not process all the statements and blocks with no statements.
37422
37423 PR rtl-optimization/47477
37424 * match.pd (convert (plus/minus (convert @0) (convert @1): New
37425 simplifier to narrow arithmetic.
37426
37427 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
37428
37429 PR ipa/65028
37430 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
37431 polymorphic call info when type is not known to be preserved.
37432
37433 2015-02-13 Maritn Jambor <mjambor@suse.cz>
37434
37435 PR ipa/65028
37436 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
37437 (inline_call): Use it.
37438
37439 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
37440
37441 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
37442 GOMP_DEVICE_NVIDIA_PTX.
37443
37444 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37445
37446 PR ipa/65034
37447 * stmt.c (emit_case_nodes): Use void_type_node instead of
37448 NULL_TREE as LABEL_DECL type.
37449
37450 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
37451
37452 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
37453 constraints.
37454 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
37455 symbolic references to data to be forced to constant memory on the
37456 SOM target.
37457
37458 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
37459
37460 PR tree-optimization/65002
37461 * tree-cfg.c (pass_data_fixup_cfg): Don't update
37462 SSA on start.
37463 * tree-sra.c (some_callers_have_no_vuse_p): New.
37464 (ipa_early_sra): Reject functions whose callers
37465 assume function is read only.
37466
37467 2015-02-13 Richard Biener <rguenther@suse.de>
37468
37469 PR lto/65015
37470 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
37471 for LTO produced CUs.
37472
37473 2015-02-13 Bin Cheng <bin.cheng@arm.com>
37474
37475 PR tree-optimization/64705
37476 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
37477 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
37478 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
37479 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
37480 expand_simple_operations.
37481
37482 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
37483 Richard Henderson <rth@redhat.com>
37484
37485 PR rtl/32219
37486 * cgraphunit.c (cgraph_node::finalize_function): Set definition
37487 before notice_global_symbol.
37488 (varpool_node::finalize_decl): Likewise.
37489 * varasm.c (default_binds_local_p_2): Rename from
37490 default_binds_local_p_1, add weak_dominate argument. Use direct
37491 returns instead of assigning to local variable. Unify varpool and
37492 cgraph paths via symtab_node. Reject undef weak variables before
37493 testing visibility. Reorder tests for simplicity.
37494 (default_binds_local_p): Use default_binds_local_p_2.
37495 (default_binds_local_p_1): Likewise.
37496 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
37497 via symtab_node.
37498 (default_elf_asm_output_external): Emit visibility when specified.
37499
37500 2015-02-13 Alan Modra <amodra@gmail.com>
37501
37502 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
37503 code setting up r11 for out-of-line fp restore.
37504
37505 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
37506
37507 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
37508 (muser-mode): Likewise.
37509
37510 2015-02-13 Alan Modra <amodra@gmail.com>
37511
37512 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
37513 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
37514
37515 2015-02-12 David Howells <dhowells@redhat.com>
37516
37517 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
37518 warning.
37519 * tree-ssa-uninit.c (dump_predicates): Likewise.
37520 * opts.c (print_filtered_help): Likewise.
37521
37522 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37523
37524 * dwarf2out.c (output_die): Use "%s", name instead of name to
37525 avoid -Wformat-security warning.
37526
37527 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
37528 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37529 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
37530 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37531
37532 2015-02-12 Jason Merrill <jason@redhat.com>
37533
37534 * common.opt (-flifetime-dse): New.
37535
37536 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37537
37538 PR sanitizer/65019
37539 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
37540
37541 PR tree-optimization/65014
37542 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
37543 use original second operand of arg0 or arg1 instead of
37544 that adjusted by STRIP_NOPS.
37545
37546 2015-02-11 Jeff Law <law@redhat.com>
37547
37548 PR target/63347
37549 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
37550 that needs to be queued, just queue it for a single cycle.
37551
37552 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
37553
37554 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
37555 bodies of thunks; comment on why.
37556 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
37557 symbols are extern.
37558
37559 2015-02-11 Richard Henderson <rth@redhat.com>
37560
37561 PR sanitize/65000
37562 * tree-eh.c (mark_reachable_handlers): Mark source and destination
37563 regions of __builtin_eh_copy_values.
37564
37565 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37566
37567 PR middle-end/65003
37568 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
37569 ultimate alias is MEM with SYMBOL_REF satisfying
37570 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
37571 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
37572
37573 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
37574
37575 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
37576 "diagnostic-core.h".
37577 (main): Initialize progname, and call diagnostic_initialize.
37578
37579 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
37580 instead of __OPENMP_TARGET__.
37581
37582 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
37583 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
37584 hard-coding PTX_ID.
37585
37586 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
37587
37588 * doc/sourcebuild.texi (pie_enabled): Document.
37589
37590 2015-02-11 Martin Liska <mliska@suse.cz>
37591
37592 PR ipa/64813
37593 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
37594 a return value for call to a function that is noreturn.
37595
37596 2015-02-11 Richard Biener <rguenther@suse.de>
37597
37598 PR lto/65015
37599 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
37600 and -fresolution.
37601
37602 2015-02-11 Andrew Pinski <apinski@cavium.com>
37603
37604 PR target/64893
37605 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
37606 Change the first argument type to size_type_node and add another
37607 size_type_node.
37608 (aarch64_simd_expand_builtin): Handle the new argument to
37609 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
37610 print an out when the first two arguments are not
37611 nonzero integer constants.
37612 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
37613 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
37614
37615 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37616
37617 PR target/61925
37618 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
37619 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
37620 (ix86_set_current_function): Rewritten.
37621 (ix86_add_new_builtins): Temporarily clear current_target_pragma
37622 when creating builtin fndecls.
37623
37624 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37625
37626 PR ipa/65005
37627 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
37628 function.
37629 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
37630 have no comdat group.
37631 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
37632 (lto_output_varpool_node): Always output alias info.
37633 (output_refs): Output refs of boundary aliases, too.
37634 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
37635 (output_symtab): Output call eges in thunks in boundary.
37636 (get_alias_symbol): Remove.
37637 (input_node, input_varpool_node): Do not special case weakrefs.
37638 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
37639 alias and thunks targets in the boundary; do not take removed symbols
37640 from their comdat groups.
37641 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
37642 (cgraph_node::global_info): Remove.
37643 (cgraph_node::rtl_info): Look through aliases and thunks.
37644 * cgrpah.h (global_info): Remove.
37645 (non_local_p): Remove.
37646
37647 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37648 Sandra Loosemore <sandra@codesourcery.com>
37649
37650 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
37651 to inline asm. List dialects in proper order.
37652
37653 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37654 Sandra Loosemore <sandra@codesourcery.com>
37655
37656 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
37657
37658 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37659
37660 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
37661 modified) reference to Solaris.
37662
37663 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
37664
37665 * doc/extend.texi (Extended Asm): Fix typos.
37666
37667 2015-02-10 Jakub Jelinek <jakub@redhat.com>
37668
37669 PR sanitizer/65004
37670 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
37671
37672 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
37673
37674 PR target/64661
37675 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
37676 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
37677 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
37678 * config/sh/constraints.md (Ara, Add): New constraints.
37679 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
37680 predicates.
37681 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
37682 atomic_mem_operand_0. Don't use force_reg on the memory address.
37683 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
37684 Sra constraint. Convert to insn_and_split. Add workaround for
37685 PR 64974.
37686 (atomic_compare_and_swap<mode>_hard): Copy to
37687 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
37688 Use atomic_mem_operand_0 predicate.
37689 (atomic_compare_and_swap<mode>_soft_gusa,
37690 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
37691 AraAdd constraints.
37692 (atomic_compare_and_swap<mode>_soft_tcb,
37693 atomic_compare_and_swap<mode>_soft_imask,
37694 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
37695 atomic_mem_operand_0 predicate and SraSdd constraints.
37696 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
37697 constraint.
37698 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
37699 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
37700 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
37701 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
37702 force_reg on the memory address.
37703 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
37704 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
37705 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
37706 atomic_mem_operand_1 predicate and Sra constraint.
37707 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
37708 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37709 Use atomic_mem_operand_1 predicate.
37710 (atomic_<fetchop_name><mode>_hard): Copy to
37711 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37712 Use atomic_mem_operand_1 predicate.
37713 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
37714 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37715 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
37716 insn_and_split. Use atomic_mem_operand_1 predicate.
37717 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
37718 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
37719 Use atomic_mem_operand_1 predicate.
37720 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
37721 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37722 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
37723 in generated insn with original mem operand before emitting the insn.
37724 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
37725 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
37726 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
37727 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
37728 Use atomic_mem_operand_1 predicate and AraAdd constraints.
37729 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
37730 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
37731 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
37732 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
37733 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
37734 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
37735 atomic_not_fetch<mode>_soft_tcb,
37736 atomic_<fetchop_name>_fetch<mode>_soft_imask,
37737 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
37738 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
37739 Use atomic_mem_operand_1 predicate and SraSdd constraints.
37740
37741 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
37742
37743 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
37744 and 3 earlyclobber operands.
37745
37746 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37747
37748 * common.opt (fstack-reuse): Mark as optimization.
37749
37750 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37751
37752 PR ipa/64982
37753 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
37754
37755 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
37756
37757 PR tree-optimization/64326
37758 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
37759
37760 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
37761
37762 PR gcov-profile/61889
37763 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
37764
37765 2015-02-10 Richard Biener <rguenther@suse.de>
37766
37767 PR tree-optimization/64995
37768 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
37769 value we use is final.
37770 (visit_reference_op_store): Always valueize op.
37771 (visit_use): Properly valueize vuses.
37772
37773 2015-02-10 Richard Biener <rguenther@suse.de>
37774
37775 PR tree-optimization/64909
37776 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
37777 pass a scalar-stmt count estimate to the cost model.
37778 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
37779
37780 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
37781
37782 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
37783 enabled by default together with var-tracking.
37784
37785 2015-02-10 Nick Clifton <nickc@redhat.com>
37786
37787 * config/rl78/rl78.c: Remove DIV attribute code accidentally
37788 included in previous rl78 commit.
37789
37790 2015-02-10 Richard Biener <rguenther@suse.de>
37791
37792 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
37793 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
37794 return the bitpack.
37795
37796 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
37797
37798 PR gcov-profile/61889
37799 * config.in: regenerate.
37800 * configure.in: Likewise.
37801 * configure.ac: Check for ftw.h.
37802 * gcov-tool.c: Check for ftw.h before using nftw.
37803
37804 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
37805
37806 PR lto/64076
37807 * ipa-visibility.c (update_visibility_by_resolution_info): Only
37808 assert when not in lto mode.
37809
37810 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37811
37812 * ira-color.c (setup_left_conflict_sizes_p): Simplify
37813 initialization/assignment of conflict_size.
37814
37815 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
37816
37817 PR ipa/64978
37818 * ipa-cp.c (gather_caller_stats): Skip thunks.
37819 (propagate_constants_topo): Skip aliases.
37820
37821 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
37822
37823 PR target/64761
37824 * config/sh/sh.c (sh_option_override): Don't change
37825 -freorder-blocks-and-partition to -freorder-blocks even when
37826 unwinding is enabled.
37827 (sh_can_follow_jump): Return false if the followee jump is
37828 a crossing jump when -freorder-blocks-and-partition is specified.
37829 * config/sh/sh.md (*jump_compact_crossing): New insn.
37830
37831 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
37832 Kaz Kojima <kkojima@gcc.gnu.org>
37833
37834 PR target/64761
37835 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
37836 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
37837 (sh_can_redirect_branch): Rename to ...
37838 (sh_can_follow_jump): ... this. Constify argument types.
37839 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
37840 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
37841 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
37842 * doc/tm.texi: Regenerate.
37843
37844 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37845
37846 PR sanitizer/64981
37847 * builtins.c (expand_builtin): Call targetm.expand_builtin
37848 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
37849
37850 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37851
37852 PR ipa/61548
37853 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
37854
37855 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37856
37857 PR ipa/63566
37858 * ipa-icf.c (set_local): New function.
37859 (sem_function::merge): Use it.
37860
37861 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37862
37863 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
37864 (add_type_duplicate): Fix comparison of BINFOs.
37865
37866 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37867
37868 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
37869 on getting VOID pointer.
37870
37871 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37872
37873 PR target/64979
37874 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
37875 va_list escapes.
37876
37877 2015-02-09 Richard Biener <rguenther@suse.de>
37878
37879 * genmatch.c (replace_id): Copy expr_type.
37880
37881 2015-02-09 Richard Biener <rguenther@suse.de>
37882
37883 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
37884 (streamer_write_tree_bitfields): Declare.
37885 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
37886 properly unpack padding.
37887 (unpack_value_fields): Inline ...
37888 (streamer_read_tree_bitfields): ... here.
37889 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
37890 and properly add padding bits.
37891 (streamer_pack_tree_bitfields): Fold into ...
37892 (streamer_write_tree_bitfields): ... this new function,
37893 exposing the bitpack object.
37894 * lto-streamer-out.c (lto_write_tree_1): Call
37895 streamer_write_tree_bitfields.
37896
37897 2015-02-09 Richard Biener <rguenther@suse.de>
37898
37899 PR tree-optimization/54000
37900 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
37901 (struct ivopts_data): Add loop_loc member.
37902 (tree_ssa_iv_optimize_loop): Dump loop location.
37903 (create_new_ivs): Likewise, also dump number of IVs generated.
37904
37905 2015-02-09 Martin Liska <mliska@suse.cz>
37906
37907 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
37908 just if not yet registered.
37909 (ipa_icf_generate_summary): Register callgraph hooks.
37910
37911 2015-02-08 Andrew Pinski <apinski@cavium.com>
37912
37913 * config/aarch64/aarch64.c (gty_dummy): Delete.
37914
37915 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37916
37917 PR ipa/63566
37918 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
37919 (cgraph_node::local_p): Remove thunk related FIXME.
37920
37921 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37922
37923 PR ipa/63566
37924 * i386.c (ix86_function_regparm): Look through aliases to see if callee
37925 is local and optimized.
37926 (ix86_function_sseregparm): Likewise; also use target's SSE math
37927 settings; error out instead of silently generating wrong code
37928 on mismatches.
37929 (init_cumulative_args): Look through aliases.
37930
37931 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37932
37933 PR ipa/63566
37934 * ipa-split.c (execute_split_functions): Split if function has aliases.
37935
37936 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37937
37938 PR ipa/63566
37939 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
37940 aliases before trying to expand it.
37941 (cgraph_node::expand_thunk): Fix formating.
37942
37943 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
37944
37945 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37946 (Using Assembly Language with C): Expand introduction.
37947 (Basic Asm): Copy-edit. Add more information about uses of
37948 basic asm.
37949 (Extended Asm): Copy-edit. Document new escape syntax and
37950 %l[label] syntax.
37951 (Global Reg Vars): Copy-edit.
37952 (Local Reg Vars): Likewise.
37953
37954 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
37955
37956 PR debug/2714
37957 PR bootstrap/64256
37958 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
37959 (DBX_CONTIN_CHAR): Define.
37960
37961 2015-02-06 Sebastian Pop <s.pop@samsung.com>
37962 Brian Rzycki <b.rzycki@samsung.com>
37963
37964 PR tree-optimization/64878
37965 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
37966 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
37967 Stop recursion at loop phi nodes after having visited a loop phi node.
37968
37969 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37970
37971 * toplev.c (process_options): Change flag_ipa_ra before creating
37972 optimization_{default,current}_node.
37973
37974 PR ipa/64896
37975 * cgraphunit.c (cgraph_node::expand_thunk): If
37976 restype is not is_gimple_reg_type nor the thunk_fndecl
37977 returns aggregate_value_p, set restmp to a temporary variable
37978 instead of resdecl.
37979
37980 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
37981
37982 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
37983
37984 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
37985
37986 PR target/64205
37987 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
37988 add a general secondary reload handler for SDmode, unless we have
37989 both read/write support for SDmode.
37990
37991 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37992
37993 PR middle-end/64937
37994 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
37995 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
37996 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
37997 1 before, push it to abstract_vec.
37998 (dwarf2out_abstract_function): Adjust caller. Don't call
37999 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38000 DECL_ABSTRACT_P flags for all abstract_vec elts.
38001
38002 2015-02-06 Renlin Li <renlin.li@arm.com>
38003
38004 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38005 complex gimple.
38006 * tree-ssa.c (execute_update_addresses_taken): Likewise.
38007
38008 2015-02-06 Jeff Law <law@redhat.com>
38009
38010 PR target/64889
38011 * config/h8300/h8300.c (push): New argument "in_prologue".
38012 Pass "in_prologue" along to "F".
38013 (h8300_push_pop): Corresponding changes.
38014 (h8300_expand_prologue): Likewise.
38015 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
38016
38017 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38018
38019 PR rtl-optimization/64957
38020 PR debug/64817
38021 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38022 IOR rather than for AND.
38023
38024 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
38025
38026 PR target/62631
38027 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38028 of shift-add and (add + shift) operations. Rename local variable.
38029
38030 2015-02-05 Jeff Law <law@redhat.com>
38031
38032 PR target/17306
38033 * config/h8300/constraints.md (U): Correctly dectect
38034 "eightbit_data" memory addresses.
38035 * config/h8300/h8300.c (eightbit_constant_address_p): Also
38036 handle (const (plus (symbol_ref (x)))) where x is declared
38037 as an 8-bit data memory address.
38038 * config/h8300/h8300.md (call, call_value): Correctly detect
38039 "funcvec" functions.
38040
38041 PR target/43264
38042 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38043 24 to 28 bits for the H8/300.
38044
38045 2015-02-06 Alan Modra <amodra@gmail.com>
38046
38047 PR target/64876
38048 * config/rs6000/rs6000.c (chain_already_loaded): New function.
38049 (rs6000_call_aix): Use it.
38050
38051 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
38052
38053 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38054 check.
38055
38056 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
38057
38058 * config/h8300/constraints.md ("U" constraint): Use strict
38059 variant of REG_OK_FOR_BASE_P after reload has started.
38060
38061 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
38062
38063 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38064 define to zero if !TARGET_NEON.
38065 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38066
38067 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38068 Trevor Saunders <tsaunders@mozilla.com>
38069
38070 PR ipa/61548
38071 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38072
38073 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38074
38075 PR ipa/61548
38076 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38077 when removing varpool nodes.
38078
38079 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38080
38081 PR ipa/61548
38082 * varpool.c (varpool_node::remove): Fix order of variables.
38083
38084 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38085
38086 PR ipa/64686
38087 * ipa-inline.c (inline_small_functions): Fix ordering issue between
38088 speculation resolution and key updates.
38089
38090 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38091
38092 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38093 about not letting any speculative edges unupdated.
38094
38095 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38096
38097 PR gcov/64123
38098 * gcov-io.c (gcov_var): Export.
38099
38100 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38101
38102 PR middle-end/64922
38103 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38104 edges that become speculative.
38105
38106 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38107
38108 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38109 or DW_LANG_Fortran08.
38110 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38111 DW_LANG_Fortran08.
38112 (gen_compile_unit_die): Handle "GNU Fortran2003" and
38113 "GNU Fortran2008" language strings.
38114 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38115 * langhooks.h (lang_GNU_Fortran): New prototype.
38116 * langhooks.c (lang_GNU_Fortran): New function.
38117 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38118 lang_GNU_Fortran.
38119
38120 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38121
38122 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38123 (RTX_OK_FOR_OLO10_P): Likewise.
38124
38125 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38126
38127 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38128
38129 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38130
38131 PR middle-end/64922
38132 * gimple.c: Include gimple-ssa.h.
38133 (maybe_remove_unused_call_args): New function.
38134 * gimple.h (maybe_remove_unused_call_args): Declare.
38135 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38136 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38137 * gimple-fold.c (gimple_fold_call): Likewise.
38138
38139 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
38140
38141 PR rtl-optimization/64905
38142 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38143 pointer alignment if it isn't needed.
38144
38145 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38146
38147 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38148 cortex-a72.cortex-a53.
38149 * config/aarch64/aarch64-tune.md: Regenerate.
38150 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38151
38152 2015-02-04 Nick Clifton <nickc@redhat.com>
38153
38154 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38155 inside a MEM.
38156
38157 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38158
38159 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38160 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38161 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38162 of DEF_BUILTIN.
38163 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38164 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38165 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38166 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38167 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38168 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38169 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38170 * tree-core.h (enum built_in_function): In between
38171 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38172 for builtins that use DEF_BUILTIN_CHKP macro.
38173
38174 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
38175
38176 PR debug/64817
38177 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38178 operands for tcc_comparison exprs. Fix typos.
38179
38180 PR debug/64817
38181 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38182 of two XORs that have an intervening AND or IOR.
38183
38184 PR debug/64817
38185 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38186 simplification of XOR of AND to not allocate new rtx before
38187 committing to a simplification.
38188
38189 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38190
38191 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38192 manual swaps in all peepholes.
38193
38194 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38195
38196 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38197 of manual swapping implementation.
38198 (aarch64_expand_vec_perm_const_1): Likewise.
38199
38200 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
38201
38202 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38203 (generic_addrcost_table): Remove NAMED_PARAM.
38204 (cortexa57_addrcost_table): Likewise.
38205 (xgene1_addrcost_table): Likewise.
38206 (generic_regmove_table): Likewise.
38207 (cortexa53_regmove_table): Likewise.
38208 (xgene1_regmove_table): Likewise.
38209 (generic_vector_table): Likewise.
38210 (cortexa57_vector_table): Likewise.
38211 (xgene1_vector_table): Likewise.
38212 (generic_tunings): Likewise.
38213 (cortexa53_tunings): Likewise.
38214 (cortexa57_tunings): Likewise.
38215 (xgene1_tunings): Likewise.
38216
38217 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38218
38219 * config/arm/arm-cores.def: Add cortex-a72 and
38220 cortex-a72.cortex-a53.
38221 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38222 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38223 * config/arm/arm-tune.md: Regenerate.
38224 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38225 "cortex-a72.cortex-a53".
38226 * doc/invoke.texi (ARM Options/-mtune): Likewise.
38227
38228 2015-02-04 Nick Clifton <nickc@redhat.com>
38229
38230 PR target/64408
38231 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38232 of accepted codes.
38233 (nonimmediate_di_operand): Likewise.
38234
38235 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38236 prefixes of known F5 using MSP430 MCUs.
38237
38238 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38239
38240 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38241 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38242 instead of __builtin_sqrt.
38243
38244 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
38245
38246 * varasm.c (do_assemble_alias): Follow transparent alias
38247 chain for target.
38248 (default_assemble_visibility): Follow transparent alias
38249 chain for decl name.
38250
38251 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
38252
38253 PR middle-end/62103
38254 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38255 to compute size of referenced value in the constant case.
38256
38257 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38258
38259 PR rtl-optimization/64756
38260 * cse.c (invalidate_dest): New function.
38261 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
38262 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38263 invalidate and do not record it.
38264
38265 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
38266
38267 PR target/64660
38268 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38269 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38270 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38271 atomic_nand<mode>_soft_tcb): New insns.
38272 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38273 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38274 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38275 Split into atomic_not_fetchsi_hard if operands[0] is unused.
38276 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38277 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38278 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
38279 atomic_not<mode>_hard if operands[0] is unused.
38280 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38281 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38282 if operands[0] is unused.
38283 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
38284 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38285 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38286 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38287 unused.
38288 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
38289 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38290 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38291 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38292 if operands[0] is unused.
38293 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
38294 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38295 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
38296 atomic_nand_fetchsi_hard if operands[0] is unused.
38297 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
38298 atomic_nand<mode>_hard if operands[0] is unused.
38299 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
38300 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38301 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
38302 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38303 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
38304 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38305 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38306 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38307 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
38308 atomic_not<mode>_hard if operands[0] is unused.
38309 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38310 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38311 unused.
38312 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38313 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38314 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
38315 atomic_nand<mode>_hard if operands[0] is unused.
38316 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38317 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38318
38319 2015-02-03 David Malcolm <dmalcolm@redhat.com>
38320
38321 PR jit/64810
38322 * Makefile.in (GCC_OBJS): Add gcc-main.o.
38323 * gcc-main.c: New file, containing "main" taken from gcc.c.
38324 * gcc.c (do_self_spec): Free decoded_options.
38325 (class driver): Move declaration to gcc.h.
38326 (main): Move declaration and implementation to new file
38327 gcc-main.c.
38328 (driver_get_configure_time_options): New function.
38329 * gcc.h (class driver): Move this declaration here, from
38330 gcc.c.
38331 (driver_get_configure_time_options): New declaration.
38332
38333 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
38334
38335 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38336 cross-module inlining.
38337 * cgraph.h (cgraph_node): Add flag merged.
38338 * ipa-icf.c (sem_function::merge): Maintain it.
38339
38340 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
38341
38342 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38343 instead of OBJECT_P.
38344
38345 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
38346
38347 PR target/62631
38348 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38349 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38350 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38351 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38352
38353 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38354
38355 PR other/63504
38356 * combine.c (reg_n_sets_max): New variable.
38357 (can_change_dest_mode, reg_nonzero_bits_for_combine,
38358 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38359 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38360 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38361 (rest_of_handle_combine): Initialize reg_n_sets_max.
38362
38363 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
38364
38365 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38366 if some always_inline was inlined, apply changes before inlining
38367 heuristically.
38368
38369 2015-02-02 David Malcolm <dmalcolm@redhat.com>
38370
38371 PR jit/64810
38372 * config/arm/arm.c (arm_option_override): Set
38373 arm_selected_arch/cpu/tune to NULL on entry.
38374
38375 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
38376 Andrew Pinski <pinskia@gcc.gnu.org>
38377 Jakub Jelinek <jakub@gcc.gnu.org>
38378
38379 PR target/64231
38380 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38381 integer typing for small model. Use IN_RANGE.
38382
38383 2015-02-02 Richard Biener <rguenther@suse.de>
38384
38385 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38386 * tree-vrp.c (vrp_valueize_1): Likewise.
38387
38388 2015-02-02 Alan Modra <amodra@gmail.com>
38389
38390 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38391 than mem for toc_restore.
38392 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38393 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38394 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38395
38396 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
38397
38398 PR target/64047
38399 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
38400 explicit default options.
38401
38402 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
38403
38404 PR ipa/64872
38405 * ipa-utils.c (ipa_merge_profiles): Add release argument.
38406 * ipa-icf.c (sem_function::merge): Do not release body when merging.
38407 * ipa-utils.h (ipa_merge_profiles): Update prototype.
38408
38409 2015-02-01 Jakub Jelinek <jakub@redhat.com>
38410
38411 PR debug/64817
38412 * cfgexpand.c (deep_ter_debug_map): New variable.
38413 (avoid_deep_ter_for_debug): New function.
38414 (expand_debug_expr): If TERed SSA_NAME is in
38415 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
38416 instead of trying to expand SSA_NAME's def stmt.
38417 (expand_debug_locations): When expanding debug bind
38418 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
38419 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
38420 value.
38421 (pass_expand::execute): Call avoid_deep_ter_for_debug on
38422 all debug bind stmts. Delete deep_ter_debug_map after
38423 expand_debug_location if non-NULL and clear it.
38424
38425 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
38426
38427 PR target/64851
38428 * config/sh/sync.md (atomic_fetch_notsi_hard,
38429 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
38430 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
38431 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
38432 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
38433 atomic_not_fetch<mode>_soft_imask): New insns.
38434
38435 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38436
38437 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
38438 (rank_for_schedule_debug): Split from ...
38439 (rank_for_schedule): ... this.
38440 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
38441 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
38442
38443 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38444
38445 * doc/md.texi (Machine Constraints): Alphabetize table by target.
38446 * doc/extend.texi (x86 Variable Attributes): Move section to
38447 correct alphabetization after renaming.
38448 (x86 Type Attributes): Likewise.
38449 (Target Builtins): Re-alphabetize menu.
38450 (x86 Built-in Functions): Move section to correct alphabetization
38451 after renaming.
38452 (x86 transactional memory intrinsics): Likewise.
38453 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
38454 and x86 Windows Options in table and menu.
38455 (x86 Options): Move section to correct alphabetization after
38456 renaming.
38457 (x86 Windows Options): Likewise.
38458
38459 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38460
38461 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
38462 preferred names of the architecture and its 32- and 64-bit
38463 variants.
38464 * doc/invoke.texi: Likewise.
38465 * doc/md.texi: Likewise.
38466
38467 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38468
38469 PR target/64882
38470 * config/i386/predicates.md (address_no_seg_operand): Reject
38471 non-CONST_INT_P operands in invalid mode.
38472
38473 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38474
38475 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
38476 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
38477 * config/i386/predicates.md (address_no_seg_operand): Call
38478 address_operand with VOIDmode.
38479 (vsib_address_operand): Ditto.
38480 (address_mpx_no_base_operand): Ditto.
38481 (address_mpx_no_index_operand): Ditto.
38482
38483 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38484
38485 PR target/64688
38486 * lra-constraints.c (original_subreg_reg_mode): New.
38487 (simplify_operand_subreg): Try to simplify subreg of const. Use
38488 original_subreg_reg_mode for it.
38489 (swap_operands): Update original_subreg_reg_mode.
38490 (curr_insn_transform): Set up original_subreg_reg_mode.
38491
38492 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38493
38494 PR target/64617
38495 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
38496 function.
38497 (process_alt_operands): Use it.
38498 (curr_insn_transform): Check the optional reload pseudo class is
38499 ok for the mode.
38500
38501 2015-01-30 Joseph Myers <joseph@codesourcery.com>
38502
38503 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
38504 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
38505 prototype.
38506 * toplev.h (init_asm_output): Update comment on use of
38507 UNKNOWN_LOCATION with fatal_error.
38508 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
38509 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
38510 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
38511 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
38512 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
38513 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
38514 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
38515 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
38516 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
38517 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
38518 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
38519 fatal_error changed to pass input_location as first argument.
38520
38521 2015-01-30 Martin Liska <mliska@suse.cz>
38522
38523 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
38524 in #pragma GCC diagnostic guards.
38525
38526 2015-01-30 Richard Biener <rguenther@suse.de>
38527
38528 PR tree-optimization/64829
38529 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
38530 not add a widening conversion pattern but hand off extra
38531 widenings to callers.
38532 (vect_recog_widen_mult_pattern): Handle extra widening produced
38533 by vect_handle_widen_op_by_const.
38534 (vect_recog_widen_shift_pattern): Likewise.
38535 (vect_pattern_recog_1): Remove excess vertical space in dumping.
38536 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
38537 (vect_init_vector_1): Likewise.
38538 (vect_get_vec_def_for_operand): Likewise.
38539 (vect_finish_stmt_generation): Likewise.
38540 (vectorizable_load): Likewise.
38541 (vect_analyze_stmt): Likewise.
38542 (vect_is_simple_use): Likewise.
38543
38544 2015-01-29 Jeff Law <law@redhat.com>
38545
38546 * combine.c (try_combine): Fix typo in comment.
38547
38548 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
38549
38550 PR target/64580
38551 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
38552 (rs6000_stack_info): Add assert.
38553 (rs6000_output_savres_externs): New function, split off from...
38554 (rs6000_output_function_prologue): ... here. Do not call it for
38555 thunks.
38556
38557 2015-01-29 Jeff Law <law@redhat.com>
38558
38559 PR target/15184
38560 * combine.c (try_combine): If I0 is a memory load and I3 a store
38561 to a related address, increase the "goodness" of doing a 4-insn
38562 combination with I0-I3.
38563 (make_field_assignment): Handle SUBREGs in the ior+and case.
38564
38565 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
38566
38567 PR tree-optimization/64746
38568 * tree-if-conv.c (mask_exists): New function.
38569 (predicate_mem_writes): Save created mask with given size for further
38570 use.
38571 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
38572 (ifcvt_repair_bool_pattern): Collect all statements that are root
38573 of bool pattern and use iterative algorithm to remove multiple uses
38574 of predicates, display number of required iterations.
38575
38576 2015-01-29 Richard Biener <rguenther@suse.de>
38577
38578 PR tree-optimization/64853
38579 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
38580 stmt will get simulated again.
38581 * tree-ssa-ccp.c (valueize_op_1): Likewise.
38582
38583 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38584
38585 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
38586 return_in_pc. Remove redundant assignments.
38587 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
38588 (arm_expand_epilogue): Don't compare boolean with true in if condition.
38589
38590 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
38591
38592 * config/i386/i386.c (ix86_mode_after): Make static.
38593
38594 2015-01-29 Richard Biener <rguenther@suse.de>
38595
38596 PR tree-optimization/64844
38597 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
38598 dump cost model analysis.
38599 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
38600 Do not register adjusted load/store costs here.
38601
38602 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38603 Uros Bizjak <ubizjak@gmail.com>
38604
38605 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
38606 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
38607 using x86_use_pseudo_pic_reg.
38608 * config/i386/i386.c (ix86_conditional_register_usage): Remove
38609 support for fixed PIC register.
38610 (ix86_use_pseudo_pic_reg): Not static any more.
38611
38612 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38613
38614 PR middle-end/64805
38615 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
38616 to avoid error in cgraph node verification.
38617
38618 2015-01-29 Marek Polacek <polacek@redhat.com>
38619
38620 * doc/standards.texi: Reflect that the default for C is gnu11.
38621
38622 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
38623
38624 PR target/64761
38625 * reorg.c (switch_text_sections_between_p): New function.
38626 (relax_delay_slots): Call it when testing if the jump insn
38627 is removable. Use targetm.can_follow_jump when testing if
38628 the conditional branch can follow an unconditional jump.
38629
38630 2015-01-27 Caroline Tice <cmtice@google.com>
38631
38632 Committing VTV Cywin/Ming patch for Patrick Wollgast
38633 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
38634 if -fvtable-verify=preinit/std is used.
38635 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
38636 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
38637 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
38638 if -fvtable-verify=preinit/std is used.
38639 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38640 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
38641 if -fvtable-verify=preinit/std is used.
38642 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
38643 * config/i386/mingw32.h (LIB_SPEC): Likewise.
38644 * varasm.c (assemble_variable): Add code to properly set the comdat
38645 section and name for the .vtable_map_vars section in case the
38646 target is PE or COFF.
38647
38648 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38649
38650 PR ipa/64801
38651 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
38652 make sane BB profile.
38653 (cgraph_node::expand_thunk): Make sane BB profile.
38654 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
38655 * cgraph.h (init_lowered_empty_function): Update prototype.
38656 * config/i386/i386.c (make_resolver_func): Update call.
38657 * predict.c (gate): Disable branch prediction pass if
38658 profile is already there.
38659
38660 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38661
38662 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
38663 * opth-gen.awk: Likewise.
38664 * common.opt: Mark flag_fp_contract_mode as Optimization.
38665
38666 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
38667
38668 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
38669 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
38670
38671 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
38672
38673 PR target/64659
38674 * config/sh/predicates.md (atomic_arith_operand,
38675 atomic_logical_operand): Remove.
38676 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
38677 (atomic_arith_operand_0): New predicate.
38678 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
38679 Use atomic_arith_operand_0 for input values.
38680 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
38681 atomic_compare_and_swap<mode>_soft_gusa,
38682 atomic_compare_and_swap<mode>_soft_tcb,
38683 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
38684 arith_reg_operand instead of register_operand.
38685 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
38686 atomic_arith_operand_0 for newval input.
38687 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
38688 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
38689 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
38690 arith_reg_operand instead of register_operand.
38691 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
38692 fetchop_predicate_1, fetchop_constraint_1_llcs,
38693 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
38694 fetchop_constraint_1_imask): New code iterator attributes.
38695 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
38696 register_operand. Use fetchop_predicate_1.
38697 (atomic_fetch_<fetchop_name>si_hard,
38698 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
38699 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
38700 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
38701 and arith_reg_operand instead of register_operand. Use
38702 fetchop_predicate_1, fetchop_constraint_1_gusa.
38703 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
38704 and arith_reg_operand instead of register_operand. Use
38705 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
38706 to allow R0 usage.
38707 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
38708 and arith_reg_operand instead of register_operand. Use
38709 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
38710 to allow R0 usage.
38711 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
38712 register_operand. Use atomic_logical_operand_1.
38713 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
38714 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
38715 arith_reg_operand instead of register_operand.
38716 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
38717 Use arith_reg_dest and arith_reg_operand instead of register_operand.
38718 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
38719 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
38720 register_operand. Use fetchop_predicate_1.
38721 (atomic_<fetchop_name>_fetchsi_hard,
38722 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
38723 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38724 fetchop_constraint_1_llcs.
38725 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
38726 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38727 fetchop_constraint_1_gusa.
38728 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
38729 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38730 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
38731 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
38732 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38733 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
38734 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
38735 register_operand. Use atomic_logical_operand_1.
38736 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
38737 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
38738 arith_reg_operand instead of register_operand.
38739 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
38740 arith_reg_operand instead of register_operand. Use logical_operand
38741 and K08. Adjust asm sequence to allow R0 usage.
38742 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
38743 arith_reg_operand instead of register_operand. Use logical_operand
38744 and K08.
38745
38746 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38747
38748 PR other/63504
38749 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
38750 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
38751 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
38752 only get_full_len HOST_WIDE_INTs from get_val () array rather than
38753 all bits in *val_wide.
38754
38755 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
38756
38757 * varpool.c (tls_model_names): Fix names.
38758 (varpool_node::dump): Dump tls- prefix for tls models.
38759
38760 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
38761 Bernd Schmidt <bernds@codesourcery.com>
38762 Nathan Sidwell <nathan@codesourcery.com>
38763
38764 * config/nvptx/mkoffload.c: New file.
38765 * config/nvptx/t-nvptx: Add build rules for it.
38766 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
38767 (extra_programs): Add mkoffload.
38768 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
38769 function.
38770 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
38771
38772 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
38773
38774 PR middle-end/64809
38775 * cfgexpand.c (reorder_operands): Skip debug gimples.
38776
38777 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
38778
38779 PR tree-optimization/64277
38780 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
38781 range info when possible to refine estimation.
38782
38783 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
38784
38785 PR tree-optimization/64718
38786 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
38787 be a 16bit unsigned integer when n->range is 16.
38788 (bswap_replace): Convert src to that type if necessary for all bswap
38789 sizes. Fix rotation right notation in nearby comment. Use bswap_type
38790 set in pass_optimize_bswap::execute ().
38791
38792 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
38793
38794 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
38795 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
38796 integer and floating point variants.
38797 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
38798
38799 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
38800
38801 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
38802 for all vector modes.
38803
38804 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38805
38806 PR bootstrap/64612
38807 * doc/sourcebuild.texi (comdat_group): Document.
38808
38809 2015-01-28 Terry Guo <terry.guo@arm.com>
38810
38811 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
38812
38813 2015-01-27 David Malcolm <dmalcolm@redhat.com>
38814
38815 * toplev.c (print_version): Add param "show_global_state", and
38816 only print GGC and plugin information if it is true.
38817 (init_asm_output): Pass in "true" for the new param when calling
38818 print_version.
38819 (process_options): Likewise.
38820 (toplev::main): Likewise.
38821 * toplev.h (print_version): Add new param to decl.
38822
38823 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38824
38825 PR ipa/60871
38826 PR ipa/64139
38827 * tree.c (lookup_binfo_at_offset): New function.
38828 (get_binfo_at_offset): Use it.
38829
38830 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38831
38832 PR ipa/64282
38833 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
38834 on vtable being vtable.
38835
38836 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
38837
38838 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
38839 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
38840 -mhotpatch= option.
38841 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
38842 -mno-hotpatch options. Change syntax of -mhotpatch= option.
38843 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
38844 Renamed.
38845 (s390_hotpatch_trampoline_halfwords_max): Renamed.
38846 (s390_hotpatch_hw_max): New name.
38847 (s390_hotpatch_trampoline_halfwords): Renamed.
38848 (s390_hotpatch_hw_before_label): New name.
38849 (get_hotpatch_attribute): Removed.
38850 (s390_hotpatch_hw_after_label): New name.
38851 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
38852 attribute.
38853 (s390_attribute_table): Ditto.
38854 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
38855 (s390_function_num_hotpatch_hw): New name.
38856 Remove special handling of inline functions and hotpatching.
38857 Return number of nops before and after the function label.
38858 (s390_can_inline_p): Removed.
38859 (s390_asm_output_function_label): Emit a configurable number of nops
38860 after the function label.
38861 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
38862 (TARGET_CAN_INLINE_P) Removed.
38863 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
38864
38865 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38866 Jiong Wang <jiong.wang@arm.com>
38867
38868 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
38869 of scratch reg.
38870 (cb<optab><mode>1): Likewise.
38871 * config/aarch64/iterators.md (bcond): New define_code_attr.
38872
38873 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38874
38875 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
38876 memory accesses.
38877
38878 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38879
38880 * config/s390/s390.c (s390_register_move_cost): Increase costs for
38881 FPR->GPR moves.
38882
38883 2015-01-27 Richard Biener <rguenther@suse.de>
38884
38885 * tree-vrp.c (update_value_range): Intersect the range with
38886 old recorded SSA name range information.
38887
38888 2015-01-27 Nick Clifton <nickc@redhat.com>
38889
38890 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
38891 BC, DE and HL registers directly, not via AX.
38892 When decrementing the stack pointer by a large amount, transfer SP
38893 into AX and perform the subtraction there.
38894 (rl78_expand_epilogue): Perform the inverse of the above
38895 enhancements.
38896
38897 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38898
38899 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
38900
38901 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38902 Yury Gribov <y.gribov@samsung.com>
38903
38904 PR ubsan/64741
38905 * ubsan.c (ubsan_source_location): Refactor code.
38906 (ubsan_type_descriptor): Update type size. Refactor code.
38907
38908 2015-01-27 Richard Biener <rguenther@suse.de>
38909
38910 PR tree-optimization/56273
38911 PR tree-optimization/59124
38912 PR tree-optimization/64277
38913 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
38914 from the first VRP pass.
38915
38916 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38917
38918 PR ipa/64776
38919 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
38920 handle the first argument in the same loop as all the other arguments.
38921
38922 PR rtl-optimization/61058
38923 * jump.c (cleanup_barriers): Update basic block boundaries
38924 if BLOCK_FOR_INSN is non-NULL on PREV.
38925
38926 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
38927
38928 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
38929 bounds narrowing, already instrumented calls and calls to
38930 not instrumentable functions.
38931
38932 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38933
38934 PR tree-optimization/64807
38935 * wide-int.cc (wi::divmod_internal): Clear
38936 b_dividend[dividend_blocks_needed].
38937
38938 2015-01-26 DJ Delorie <dj@redhat.com>
38939
38940 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
38941 volatile memory references.
38942
38943 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
38944
38945 PR target/49263
38946 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
38947 remove_insn.
38948 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
38949 shifts if it already fits into K08.
38950
38951 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38952
38953 PR ipa/64730
38954 * ipa-inline.c (inline_small_functions): Print "unknown" even
38955 if edge->call_stmt is non-NULL, but has builtins or unknown
38956 location.
38957
38958 PR middle-end/64421
38959 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
38960 with asterisk, skip the first character.
38961
38962 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38963
38964 PR target/64806
38965 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
38966 order change.
38967
38968 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
38969
38970 PR target/64795
38971 * config/i386/i386.md (*movdi_internal): Also check operand 0
38972 to determine TYPE_LEA operand.
38973 (*movsi_internal): Ditto.
38974
38975 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38976
38977 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
38978 OPTION_MASK_QUAD_MEMORY_ATOMIC.
38979
38980 2015-01-26 Renlin Li <renlin.li@arm.com>
38981
38982 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
38983 the comment.
38984 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
38985 for higher part.
38986
38987 2015-01-26 Richard Biener <rguenther@suse.de>
38988
38989 PR middle-end/64764
38990 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
38991 combining two BIT_AND_EXPR predicates.
38992
38993 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38994
38995 PR bootstrap/64754
38996 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
38997
38998 2015-01-26 Terry Guo <terry.guo@arm.com>
38999
39000 * config/arm/arm.c (arm_file_start): Update the assignment of
39001 Tag_ABI_HardFP_use.
39002
39003 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
39004
39005 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39006 pipeline model.
39007 config/arm/arm.md: Include the new Cortex-A57 model.
39008 (generic_sched): Don't use generic_sched when tuning for
39009 Cortex-A57.
39010
39011 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
39012 Uros Bizjak <ubizjak@gmail.com>
39013
39014 * config/i386/i386.c (get_builtin_code_for_version): Add
39015 support for BMI and BMI2 multiversion functions.
39016
39017 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39018
39019 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39020 (extract_bit_field): Likewise.
39021 (extract_low_bits): Likewise.
39022 (expand_mult): Likewise.
39023 (expand_mult_highpart_adjust): Likewise.
39024
39025 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
39026
39027 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39028 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39029 * config/i386/i386.c (processor_model): Add
39030 M_INTEL_COREI7_BROADWELL.
39031 (arch_names_table): Add "broadwell".
39032
39033 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
39034
39035 PR target/49263
39036 PR target/53987
39037 PR target/64345
39038 PR target/59533
39039 PR target/52933
39040 PR target/54236
39041 PR target/51244
39042 * config/sh/sh-protos.h
39043 (sh_extending_set_of_reg::can_use_as_unextended_reg,
39044 sh_extending_set_of_reg::use_as_unextended_reg,
39045 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39046 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39047 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39048 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39049 (sh_treg_insns): New class.
39050 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39051 (scope_counter): New class.
39052 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39053 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39054 sh_extending_set_of_reg::can_use_as_unextended_reg,
39055 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39056 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39057 sh_split_treg_set_expr): New functions.
39058 (addsubcosts): Handle treg_set_expr.
39059 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39060 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39061 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39062 (sh_insn_operands_modified_between_p): Make non-static.
39063 * config/sh/predicates.md (zero_extend_movu_operand): Allow
39064 simple_mem_operand in addition to displacement_mem_operand.
39065 (zero_extend_operand): Don't allow zero_extend_movu_operand.
39066 (treg_set_expr, treg_set_expr_not_const01,
39067 arith_reg_or_treg_set_expr): New predicates.
39068 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39069 arith_or_int_operand instead of logical_operand. Convert to
39070 insn_and_split. Try to optimize constant operand in splitter.
39071 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
39072 (*tstqi_t_zero): Delete.
39073 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39074 (tstsi_t_and_not): Delete.
39075 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39076 Convert to insn_and_split.
39077 (unnamed split, tstsi_t_zero_extract_xor,
39078 tstsi_t_zero_extract_subreg_xor_little,
39079 tstsi_t_zero_extract_subreg_xor_big): Delete.
39080 (*tstsi_t_shift_mask): New insn_and_split.
39081 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39082 to recombine with surrounding insns when splitting.
39083 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39084 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39085 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39086 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39087 (*cbranch_div0s: Delete.
39088 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39089 Try to recombine with surrounding insns when splitting. Add operand
39090 order variants.
39091 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39092 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39093 *addc_r_r_msb, *addc_2r_msb): Delete.
39094 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
39095 order variant.
39096 (*addc_negreg_t): New insn_and_split.
39097 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39098 Try to recombine with surrounding insns when splitting.
39099 Add operand order variants.
39100 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39101 insn_and_split patterns.
39102 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
39103 surrounding insns when splitting.
39104 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39105 (*rotcl): Likewise. Add zero_extract variant.
39106 (*ashrsi2_31): New insn_and_split.
39107 (*negc): Convert to insn_and_split. Use treg_set_expr.
39108 (*zero_extend<mode>si2_disp_mem): Update comment.
39109 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39110 condition.
39111 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
39112 with surrounding insns when splitting.
39113 (any_treg_expr_to_reg): New insn_and_split.
39114 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39115 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39116 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39117 *zero_extract_2): New single bit zero extract patterns.
39118 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39119 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39120 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39121 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39122 set destination.
39123 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39124 register_operand for set source.
39125
39126 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
39127
39128 * i386.opt (prefetch_sse): New targetsave.
39129 * i386.c (ix86_function_specific_save): Save prefetch_sse.
39130 (ix86_function_specific_restore): Restore prefetch_sse and initialize
39131 ix86_cost/ix86_tune_cost.
39132
39133 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39134
39135 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39136 Support the JIT by using 0 as the language type.
39137
39138 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
39139
39140 PR target/64317
39141 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
39142 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39143 (mark_regno_live, process_bb_lives): Pass new parameter value to
39144 make_hard_regno_born.
39145
39146 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39147
39148 PR rtl-optimization/63637
39149 PR rtl-optimization/60663
39150 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39151 if elt->cost is MAX_COST for ASM_OPERANDS.
39152 (find_sets_in_insn): Fix up comment typo.
39153 (cse_insn): Don't set src_volatile for all non-volatile
39154 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39155 or with "memory" clobber. Set elt->cost to MAX_COST
39156 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
39157 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39158
39159 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39160
39161 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39162 alternative 1.
39163
39164 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39165
39166 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39167 libgcc/config/i386/elf-lib.h.
39168
39169 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39170
39171 PR driver/64737
39172 * gcc.c (print_configuration): Don't print a blank line at the end
39173 here...
39174 (run_attempt): ... but here unstead.
39175
39176 PR middle-end/64734
39177 * omp-low.c (scan_sharing_clauses): Don't ignore
39178 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39179 on target data/update constructs.
39180
39181 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
39182
39183 PR target/50928
39184 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39185 (DEBUG_RELOAD): Removed define.
39186 (m32c_limit_reload_class): Enable traces with if DEBUG0.
39187 (m32c_function_arg): Added a type cast.
39188 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39189 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39190 * config/m32c/bitops.md (andqi3_16): Likewise.
39191 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39192 (push_a01_l): Likewise.
39193
39194 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39195
39196 PR jit/64721
39197 * main.c (main): Construct toplev instances with init_signals=true.
39198 * toplev.c (general_init): Add param "init_signals", and use it to
39199 conditionalize the calls to signal and host_hooks.extra_signals.
39200 (toplev::toplev): Add param "init_signals".
39201 (toplev::main): When invoking general_init, pass m_init_signals
39202 to control whether signal-handlers are installed.
39203 * toplev.h (toplev::toplev): Add param "init_signals".
39204 (toplev::m_init_signals): New field.
39205
39206 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39207
39208 PR jit/64722
39209 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39210 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39211 latter may be affected by the former (e.g. on i686).
39212
39213 2015-01-23 Martin Liska <mliska@suse.cz>
39214
39215 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39216 false positive during profiledbootstrap.
39217
39218 2015-01-23 Tom de Vries <tom@codesourcery.com>
39219
39220 PR libgomp/64672
39221 * lto-opts.c (lto_write_options): Output non-explicit conservative
39222 -fno-openacc.
39223 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39224 (append_compiler_options): Pass -fopenacc through.
39225
39226 2015-01-23 Tom de Vries <tom@codesourcery.com>
39227
39228 PR libgomp/64707
39229 * lto-opts.c (lto_write_options): Output non-explicit conservative
39230 -fno-openmp.
39231 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39232 (append_compiler_options): Pass -fopenmp through.
39233
39234 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39235
39236 PR debug/64511
39237 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39238 GTY markup.
39239
39240 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39241 * diagnostic.def (DK_ICE_NOBT): New kind.
39242 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39243 like DK_ICE, but never print backtrace.
39244 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39245 (internal_error_no_backtrace): New function.
39246 * gcc.c (execute): Use internal_error_no_backtrace instead of
39247 internal_error.
39248
39249 2015-01-22 Jeff Law <law@redhat.com>
39250
39251 PR target/52076
39252 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39253 improve code density for small immediate to memory case.
39254 (insv): Better handle bitfield assignments when the field is
39255 being set to all ones.
39256 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39257 operand predicate.
39258
39259 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39260 Jakub Jelinek <jakub@redhat.com>
39261
39262 PR middle-end/64729
39263 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39264 for !TARGET_LIBC_PROVIDES_SSP version and
39265 -fstack-protector-{all,strong,explicit} otherwise.
39266 * config/freebsd.h (LINK_SSP_SPEC): Handle
39267 -fstack-protector-{strong,explicit}.
39268
39269 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
39270 H.J. Lu <hongjiu.lu@intel.com>
39271
39272 PR ipa/64694
39273 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39274 heap.
39275
39276 2015-01-22 Wei Mi <wmi@google.com>
39277
39278 PR rtl-optimization/64557
39279 * dse.c (record_store): Call get_addr for mem_addr.
39280 (check_mem_read_rtx): Likewise.
39281
39282 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
39283
39284 * fold-const.c (const_binop): Add early return for non-tcc_binary.
39285
39286 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
39287
39288 * toplev.c (init_local_tick): Process the failure when read
39289 fails for random_seed.
39290
39291 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39292 'pretty_name' to avoid memory overflow.
39293
39294 2015-01-22 Richard Biener <rguenther@suse.de>
39295
39296 PR middle-end/64728
39297 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39298 abnormal coalescing on undefined SSA names.
39299
39300 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
39301
39302 PR target/64688
39303 PR target/64477
39304 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39305 for alternative 3.
39306 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39307
39308 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
39309
39310 PR middle-end/63325
39311 * fold-const.c (fold_checksum_tree): Don't include value of
39312 expr->decl_with_vis.symtab_node in the checksum.
39313
39314 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39315
39316 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39317
39318 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
39319
39320 PR driver/64690
39321 * gcc.c (insert_comments): New function.
39322 (try_generate_repro): Call it.
39323 (append_text): Removed.
39324
39325 2015-01-22 Richard Biener <rguenther@suse.de>
39326
39327 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39328 with IL incompatible options. Properly honor user optimize
39329 attributes.
39330
39331 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
39332
39333 PR rtl-optimization/64682
39334 * combine.c (distribute_notes): When moving a death note for
39335 a register that is set in the new I2, make sure to put it
39336 before that new I2.
39337
39338 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
39339
39340 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39341 not TARGET_DEFAULT.
39342
39343 2015-01-21 Jakub Jelinek <jakub@redhat.com>
39344
39345 PR debug/64511
39346 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39347 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39348 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39349
39350 PR sanitizer/64706
39351 * doc/invoke.texi (-fsanitize=vptr): Document.
39352
39353 PR rtl-optimization/62078
39354 * dse.c: Include cfgcleanup.h.
39355 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39356 anything call purge_all_dead_edges and cleanup_cfg at the end
39357 of the pass.
39358
39359 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
39360
39361 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39362 edges.
39363
39364 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
39365
39366 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39367 decl attribute.
39368
39369 2015-01-21 David Sherwood <david.sherwood@arm.com>
39370 Tejas Belagod <Tejas.Belagod@arm.com>
39371
39372 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39373 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39374 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39375 Removed.
39376
39377 2015-01-21 David Sherwood <david.sherwood@arm.com>
39378 Tejas Belagod <Tejas.Belagod@arm.com>
39379
39380 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39381 (aarch64_reverse_mask): New decls.
39382 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39383 (insn_count): New mode_attr.
39384 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39385 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39386 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39387 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39388 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39389 (aarch64_simd_st4): New patterns.
39390 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39391 (aarch64_reverse_mask): New functions.
39392
39393 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39394
39395 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39396 Declare.
39397 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39398 addressing modes for BE.
39399 (aarch64_print_operand): Add 'R' specifier.
39400 (aarch64_simd_disambiguate_copy): Delete.
39401 (aarch64_simd_emit_reg_reg_move): New function.
39402 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
39403 in define_splits for structural moves.
39404 (mov<mode>): Use less restrictive predicates.
39405 (*aarch64_mov<mode>): Simplify and only allow for LE.
39406 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
39407
39408 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39409
39410 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
39411
39412 2015-01-21 Richard Henderson <rth@redhat.com>
39413
39414 PR target/64669
39415 * ccmp.c (used_in_cond_stmt_p): Remove.
39416 (expand_ccmp_expr): Don't use it.
39417
39418 2015-01-21 Nick Clifton <nickc@redhat.com>
39419
39420 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
39421 PARALLELs.
39422
39423 2015-01-21 Richard Biener <rguenther@suse.de>
39424
39425 PR middle-end/64313
39426 * tree-core.h (builtin_info, builtin_info_type): Turn from
39427 an object with two arrays into an array of an object with
39428 decl and two flags, implicit_p and declared_p.
39429 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
39430 set_builtin_decl, set_builtin_decl_implicit_p,
39431 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
39432 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
39433 * builtins.c (builtin_info): Adjust.
39434 * gimplify.c (gimplify_addr_expr): References to builtins
39435 that have been declared by the user makes them eligible for
39436 use by the compiler. Call set_builtin_decl_implicit_p on them.
39437
39438 2015-01-20 Jeff Law <law@redhat.com>
39439
39440 PR target/59946
39441 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
39442 allow pc-relative addresses in operand predicates or constraints.
39443
39444 2015-01-21 Bin Cheng <bin.cheng@arm.com>
39445
39446 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
39447 neon on aarch32 processors for stringops.
39448
39449 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39450
39451 PR ipa/63576
39452 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
39453
39454 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39455
39456 PR lto/45375
39457 * ipa-inline.c: Include lto-streamer.h
39458 (report_inline_failed_reason): Output source file differences and
39459 flags on optimization/target node mismatch.
39460 (can_inline_edge_p): Consider caller to be the outer inline function;
39461 be less restrictive about matching opimize and optimize_size attributes.
39462 (inline_account_function_p): Break out from ...
39463 (inline_small_functions): ... here.
39464 * ipa-inline-transform.c (clone_inlined_nodes): Use
39465 inline_account_function_p.
39466 (inline_call): Use optimize attribution; use inline_account_function_p.
39467 (inline_transform): Use opt_for_fn.
39468 * ipa-inline.h (inline_account_function_p): Declare.
39469
39470 2015-01-20 Jakub Jelinek <jakub@redhat.com>
39471
39472 PR debug/64663
39473 * dwarf2out.c (decl_piece_node): Don't put bitsize into
39474 mode if bitsize <= 0.
39475 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
39476 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
39477 sizes and positions.
39478
39479 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
39480
39481 * config/nios2/nios2.c (nios2_asm_file_end): Implement
39482 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
39483 needed.
39484 (TARGET_ASM_FILE_END): Define.
39485
39486 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39487
39488 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
39489 (struct tune_params): Use the enum.
39490 * arm.c (arm_*_tune): Update.
39491 (arm_option_override): Update.
39492
39493 2015-01-20 Richard Biener <rguenther@suse.de>
39494
39495 PR ipa/64684
39496 * ipa-reference.c (add_static_var): Inline ...
39497 (analyze_function): ... here after splitting out from ...
39498 (is_proper_for_analysis): ... this.
39499
39500 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
39501
39502 PR target/64149
39503 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
39504 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
39505 replace the conditional with it's true branch.
39506 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
39507 (arm_lra_p): Remove.
39508
39509 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
39510
39511 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
39512
39513 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39514
39515 * config/tilegx/mul-tables.c: Move symtab.h include after
39516 coretypes.h include.
39517 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
39518 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
39519 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
39520 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
39521 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39522
39523 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
39524
39525 PR bootstrap/64676
39526 Revert:
39527 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39528
39529 PR rtl-optimization/64081
39530 * loop-iv.c (def_pred_latch_p): New function.
39531 (latch_dominating_def): Allow specific cases with non-single
39532 definitions.
39533 (iv_get_reaching_def): Likewise.
39534 (check_complex_exit_p): New function.
39535 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39536 with exits not executing on any iteration.
39537
39538 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39539
39540 PR lto/45375
39541 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
39542 to set branch cost.
39543
39544 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39545
39546 PR lto/45375
39547 * i386.c (gate): Check flag_expensive_optimizations and
39548 optimize_size.
39549 (ix86_option_override_internal): Drop optimize_size condition
39550 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
39551 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
39552 MASK_PREFER_AVX128.
39553 (ix86_avx256_split_vector_move_misalign,
39554 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
39555 * sse.md (all uses of TARGET_PREFER_AVX128): Add
39556 optimize_insn_for_speed_p check.
39557
39558 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
39559
39560 * config/mips/mips.h (FP_ASM_SPEC): New define.
39561 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
39562 instead.
39563
39564 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
39565
39566 PR target/53988
39567 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
39568 nullptr for insn when reaching the first insn.
39569 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
39570 (sh_insn_operands_modified_between_p): Add nullptr check.
39571 (sh_find_extending_set_of_reg): Fix log message. Don't accept
39572 sign extending mem load if the insn contains any UNSPEC or
39573 UNSPEC_VOLATILE.
39574
39575 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39576
39577 * params.def (inline-unit-growth): Drop to 15%.
39578 * invoke.texi (inline-unit-growth): Document change.
39579
39580 2015-01-19 Martin Liska <mliska@suse.cz>
39581
39582 PR ipa/64668
39583 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
39584 function for second argument of OBJ_TYPE_REF.
39585
39586 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39587
39588 PR ipa/64218
39589 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
39590 whether function is an alias.
39591
39592 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39593
39594 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
39595 cases.
39596
39597 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
39598
39599 PR rtl-optimization/64671
39600 * lra-remat.c (operand_to_remat): Don't consider jump and call
39601 insns.
39602
39603 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
39604
39605 PR target/59828
39606 * config/rs6000/default64.h: Include rs6000-cpus.def.
39607 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
39608 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
39609 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
39610 and POWER8.
39611 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
39612 POWER8.
39613 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
39614 pseudo-op to specify assembler dialect.
39615
39616 2015-01-19 Martin Liska <mliska@suse.cz>
39617
39618 PR ipa/64664
39619 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
39620 Handle safe potentially removed nodes during filtering.
39621
39622 2015-01-19 Martin Liska <mliska@suse.cz>
39623
39624 * doc/extend.texi (no_icf): Add new attribute description.
39625 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
39626 where the pass attempts to merge a function with no_icf attribute.
39627
39628 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39629
39630 PR target/64532
39631 * doc/md.texi (ARM Options): Document register constraints.
39632
39633 2015-01-19 Jiong Wang <jiong.wang@arm.com>
39634 Andrew Pinski <apinski@cavium.com>
39635
39636 PR target/64304
39637 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
39638 (ashl<mode>3): Don't expand if operands[2] is not constant.
39639
39640 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39641
39642 PR target/64448
39643 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
39644 Match xor-and-xor RTL pattern.
39645
39646 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39647
39648 PR rtl-optimization/64081
39649 * loop-iv.c (def_pred_latch_p): New function.
39650 (latch_dominating_def): Allow specific cases with non-single
39651 definitions.
39652 (iv_get_reaching_def): Likewise.
39653 (check_complex_exit_p): New function.
39654 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39655 with exits not executing on any iteration.
39656
39657 2015-01-19 Jakub Jelinek <jakub@redhat.com>
39658
39659 * common.opt (fgraphite): Fix a typo.
39660
39661 2015-01-19 Felix Yang <felix.yang@huawei.com>
39662
39663 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
39664 pattern.
39665 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
39666 uminp, smax_nanp, smin_nanp): New builtins.
39667 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
39668 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
39669 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
39670 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
39671 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
39672 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
39673 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
39674 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
39675 vpminnms_f32): Rewrite using builtin functions.
39676
39677 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
39678
39679 PR libgomp/64625
39680 * omp-low.c (offload_symbol_decl): Remove variable.
39681 (get_offload_symbol_decl): Remove function.
39682 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
39683 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
39684 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
39685 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
39686 BUILT_IN_GOACC_UPDATE don't pass it at all.
39687
39688 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39689
39690 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
39691 callers.
39692
39693 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39694
39695 * ipa-chkp.c (chkp_produce_thunks): Add early param
39696 to split thunks production into two passes. Keep
39697 'always_inline' function bodies after the first pass.
39698 (pass_data_ipa_chkp_early_produce_thunks): New.
39699 (pass_ipa_chkp_early_produce_thunks): New.
39700 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
39701 chkp_produce_thunks signature.
39702 (make_pass_ipa_chkp_early_produce_thunks): New.
39703 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
39704 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
39705 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
39706
39707 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39708
39709 * cgraph.c (cgraph_node::dump): Dump profile flags.
39710
39711 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
39712
39713 PR target/64652
39714 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
39715 reg appear first in the parallel.
39716
39717 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39718
39719 * ipa-reference.c (set_reference_optimization_summary,
39720 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
39721 disabled.
39722 (ignore_module_statics): New static var.
39723 (propagate_bits): If ipa-reference is disabled, do not look into local
39724 properties.
39725 (analyze_function): Disable analysis when ipa_reference is disabled.
39726 (generate_summary): Do not dump when reference is disabled;
39727 collect vars accessed from functions with ipa-reference disabled.
39728 (get_read_write_all_from_node): When ipa-reference is disabled, use the
39729 node flags.
39730 (gate): Enable for LTO.
39731 (ignore_edge_p): New function.
39732 (propagate): Skip functions w/o ipa-reference analysis.
39733 * optc-save-gen.awk: Handle optimize_debug correctly.
39734 * opth-gen.awk: Likewise.
39735 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
39736 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
39737 fira-share-save-slots, fira-share-spill-slots,
39738 fmodulo-sched-allow-regmoves, fpartial-inlining,
39739 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
39740 ftracer, ftree-parallelize-loops, fassociative-math,
39741 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
39742 Optimization
39743 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
39744 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
39745 Optimization.
39746 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
39747 Fix for IPA.
39748
39749 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39750
39751 PR ipa/64378
39752 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
39753 flag correctly.
39754 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
39755
39756 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
39757
39758 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
39759 Remove duplicate option listings.
39760
39761 2015-01-18 Felix Yang <felix.yang@huawei.com>
39762
39763 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
39764 (autofdo_source_profile::get_callsite_total_count,
39765 function_instance::get_function_instance_by_decl,
39766 string_table::get_index, string_table::get_index_by_decl,
39767 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
39768 Fix comment typos. Reformatting and minor code rearrangement.
39769
39770 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39771
39772 * config/rs6000/rs6000.md (probe_stack): Delete.
39773 (probe_stack_address): New.
39774
39775 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39776
39777 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
39778 to test for 32-bit ABIs, not !TARGET_POWERPC64.
39779
39780 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39781
39782 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
39783 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
39784 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
39785 snafu.
39786 (rs6000_libcall_value): Use the new function.
39787
39788 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
39789
39790 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
39791
39792 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
39793
39794 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
39795 implement a more precise life analysis for it during backward scan.
39796
39797 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
39798
39799 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
39800
39801 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
39802
39803 PR rtl-optimization/52773
39804 * calls.c (emit_library_call_value): When pushing arguments use
39805 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
39806 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
39807 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
39808
39809 2015-01-17 Jeff Law <law@redhat.com>
39810
39811 PR rtl-optimization/32790
39812 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
39813 not ZERO_EXTEND in SET_DESTs.
39814
39815 2015-01-17 Alan Modra <amodra@gmail.com>
39816
39817 * cprop.c (do_local_cprop): Revert last change.
39818
39819 2015-01-16 DJ Delorie <dj@redhat.com>
39820 Nick Clifton <nickc@redhat.com>
39821
39822 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
39823 (addhi3_real): Likewise. Fix [HL+0] syntax.
39824 (subqi3_real): Likewise.
39825 (subhi3_real): Likewise.
39826 (cbranchqi4_real): Likewise. Allow saddr,#imm.
39827 (cbranchhi4_real): Likewise.
39828 (cbranchhi4_real_inverted): Likewise.
39829 (cbranchsi4_real_lt): Likewise.
39830 (cbranchsi4_real_ge): Likewise.
39831 (cbranchsi4_real_ge): Likewise.
39832 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
39833 (sub<mode>3_virt): Likewise.
39834 (cbranchqi4_virt): Likewise.
39835 (cbranchhi4_virt): Likewise.
39836 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
39837 always use '[reg+imm]' even when imm is zero.
39838 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
39839 (rl78_general_operand): New.
39840 (rl78_nonimmediate_operand): New.
39841 (rl78_nonfar_operand): Use them.
39842 (rl78_nonfar_nonimm_operand): Likewise.
39843 (rl78_stack_based_mem): Fix.
39844 * config/rl78/constraints.md (Ibqi): New.
39845 (IBqi): New.
39846 (Wsa): New.
39847 (Wsf): New.
39848 (Cs1): Fix.
39849 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
39850 (iorqi3): Likewise.
39851 (xorqi3): Likewise.
39852 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
39853
39854 * config/rl78/constrains (Qs8): New constraint.
39855 * config/rl78/rl78.c (rl78_flags_already_set): New function.
39856 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
39857 * config/rl78/rl78-real.md (update_Z): New attribute.
39858 Update patterns to set it.
39859 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
39860 shorter compare and branch sequence can be used.
39861 (cbranchhi4_real): Likewise.
39862 (cbranchhi4_real_inverted): Likewise.
39863
39864 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
39865 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
39866 address space.
39867 * config/rl78/rl78.c (rl78_get_name_encoding): New.
39868 (rl78_option_override): Allow -mes0 only if C.
39869 (characterize_address): Support subregs of symbol_refs.
39870 (rl78_addr_space_address_mode): Move. Add __near.
39871 (rl78_far_p): Likewise.
39872 (rl78_addr_space_pointer_mode): Likewise.
39873 (rl78_as_legitimate_address): Likewise.
39874 (rl78_addr_space_subset_p): Likewise.
39875 (rl78_addr_space_convert): Likewise.
39876 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
39877 symbols with -mes0.
39878 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
39879 addressing.
39880 (rl78_alloc_physical_registers_op1): Change logic to prefer
39881 symbol[BC] addressing.
39882 (frodata_section): New.
39883 (rl78_asm_init_sections): Initialize it.
39884 (rl78_select_section): Put __far readonly symbols in .frodata.
39885 (rl78_make_type_far): New.
39886 (rl78_insert_attributes): Force all readonly symbols to be
39887 __far when -mes0.
39888 (rl78_asm_out_integer): New.
39889 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
39890 * config/rl78/rl78.opt (-mes0): New.
39891
39892 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
39893 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
39894 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
39895 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
39896 (rl78_saddr_p): New.
39897 (rl78_output_aligned_common): New.
39898 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
39899 (rl78_handle_saddr_attribute): New.
39900 (rl78_handle_naked_attribute): New.
39901 (rl78_attribute_table): Add saddr.
39902 (rl78_print_operand_1): Don't print '!' on saddr operands.
39903 (rl78_print_operand_1): Strip encodings.
39904 (rl78_sfr_p): New.
39905 (rl78_strip_name_encoding): New.
39906 (rl78_attrlist_to_encoding): New.
39907 (rl78_encode_section_info): New.
39908 (rl78_asm_init_sections): New.
39909 (rl78_select_section): New.
39910 (rl78_output_labelref): New.
39911 (rl78_output_aligned_common): New.
39912 (rl78_asm_out_integer): New.
39913 (rl78_asm_ctor_dtor): New.
39914 (rl78_asm_constructor): New.
39915 (rl78_asm_destructor): New.
39916
39917 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
39918 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
39919 (transcode_memory_rtx): Update.
39920 (rl78_expand_epilogue): Use A_REG instead of 0.
39921
39922 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39923
39924 * config/arm/arm-protos.h (struct tune_params): New field
39925 sched_autopref_queue_depth.
39926 * config/arm/arm.c (sched-int.h): Include header.
39927 (arm_first_cycle_multipass_dfa_lookahead_guard,)
39928 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
39929 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
39930 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
39931 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
39932 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
39933 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
39934 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
39935 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
39936 * config/arm/t-arm (arm.o): Update.
39937 * haifa-sched.c (update_insn_after_change): Update.
39938 (rank_for_schedule): Use auto-prefetcher model, if requested.
39939 (autopref_multipass_init): New static function.
39940 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
39941 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
39942 variable for debug dumps.
39943 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39944 (autopref_multipass_dfa_lookahead_guard): New global function that
39945 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39946 (init_h_i_d): Update.
39947 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
39948 * sched-int.h (enum autopref_multipass_data_status): New const enum.
39949 (autopref_multipass_data_): Structure for auto-prefetcher data.
39950 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
39951 (struct _haifa_insn_data:autopref_multipass_data): New field.
39952 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
39953 (autopref_multipass_dfa_lookahead_guard): Declare.
39954
39955 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39956
39957 * rtlanal.c (get_base_term): Handle SCRATCH.
39958
39959 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39960
39961 * config/aarch64/aarch64.c
39962 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
39963 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39964 * config/arm/arm.c
39965 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
39966 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39967
39968 2015-01-17 Alan Modra <amodra@gmail.com>
39969
39970 * cprop.c (do_local_cprop): Disallow replacement of fixed
39971 hard registers.
39972
39973 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39974
39975 PR target/62066
39976 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
39977 early return 0.
39978
39979 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
39980
39981 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
39982 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
39983
39984 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39985
39986 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
39987 * config/arm/thumb1.md: ... Here.
39988
39989 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39990
39991 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
39992 TImode for TARGET_32BIT.
39993
39994 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
39995
39996 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
39997 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
39998 as ...
39999 (rs6000_abi_word_mode): New function.
40000
40001 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40002
40003 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40004 instead of UNITS_PER_WORD to describe the size of stack slots.
40005
40006 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40007
40008 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40009 as rs6000_promote_function_mode. Move comment to there.
40010 (rs6000_promote_function_mode): New function.
40011
40012 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40013
40014 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40015 -mpowerpc64 is active.
40016
40017 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40018
40019 PR middle-end/64353
40020 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40021 virtuals on start.
40022
40023 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40024
40025 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40026 introduced in revision 219724.
40027
40028 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40029 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40030
40031 PR target/64263
40032 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40033 destination is not a GP reg.
40034 (*movdi_aarch64): Likewise.
40035
40036 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
40037
40038 PR target/64623
40039 * config/rs6000/default64.h: Revert ISA change.
40040
40041 2015-01-16 Richard Biener <rguenther@suse.de>
40042
40043 PR middle-end/64614
40044 * tree-ssa-uninit.c: Include tree-cfg.h.
40045 (MAX_SWITCH_CASES): New define.
40046 (convert_control_dep_chain_into_preds): Handle switch statements.
40047 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40048 (normalize_one_pred_1): Do not split bit-manipulations.
40049 Record (x & CST).
40050
40051 2015-01-16 Richard Biener <rguenther@suse.de>
40052
40053 PR tree-optimization/64568
40054 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40055 complex load rewriting for TARGET_MEM_REFs.
40056
40057 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
40058
40059 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40060
40061 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
40062
40063 PR target/64149
40064 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40065 variable.
40066 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40067 (aarch64_lra_p): Remove.
40068
40069 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40070
40071 PR target/64363
40072 * ipa-chkp.h (chkp_instrumentable_p): New.
40073 * ipa-chkp.c: Include tree-inline.h.
40074 (chkp_instrumentable_p): New.
40075 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40076 Fix processing of not instrumentable functions.
40077 (chkp_versioning): Use chkp_instrumentable_p. Warn about
40078 not instrumentable functions.
40079 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40080 chkp_instrumentable_p.
40081 * tree-inline.h (copy_forbidden): New.
40082 * tree-inline.c (copy_forbidden): Not static anymore.
40083
40084 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40085
40086 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40087 ptr1, ptr2 unused.
40088
40089 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40090
40091 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40092 type OP_OUT to OP_INOUT.
40093
40094 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40095
40096 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40097 (high x) y) to y if x and y have the same base.
40098
40099 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40100
40101 * config/arm/cortex-a57.md: New.
40102 * config/aarch64/aarch64.md: Include it.
40103 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40104 * config/aarch64/aarch64-tune.md: Regenerate.
40105
40106 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
40107
40108 PR target/64015
40109 * ccmp.c (expand_ccmp_next): New function.
40110 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40111 and compare insn sequence.
40112 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40113 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40114 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40115 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40116 (*ccmp_ior): Changed to ccmp_ior<mode>.
40117 (cmp<mode>): New pattern.
40118 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40119 parameters.
40120 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40121
40122 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
40123
40124 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40125 _mm256_bsrli_epi128): New.
40126 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40127
40128 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40129
40130 * expmed.c (store_bit_field_using_insv): Improve warning message.
40131 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40132
40133 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40134
40135 PR rtl-optimization/64011
40136 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40137 there is partial overflow.
40138
40139 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40140
40141 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40142 prototype.
40143 (nds32_expand_epilogue_v3pop): Likewise.
40144 * config/nds32/nds32.md (sibcall): Define this for sibling call
40145 optimization.
40146 (sibcall_register): Likewise.
40147 (sibcall_immediate): Likewise.
40148 (sibcall_value): Likewise.
40149 (sibcall_value_register): Likewise.
40150 (sibcall_value_immediate): Likewise.
40151 (sibcall_epilogue): Likewise.
40152 (epilogue): Pass false to indicate this is not a sibcall epilogue.
40153 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40154 (nds32_expand_epilogue_v3pop): Likewise.
40155
40156 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40157
40158 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40159 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40160 (return_internal): New.
40161 (return): Define this named pattern.
40162 (simple_return): Define this named pattern.
40163 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40164 pattern instead of unspec_volatile_func_return.
40165 (nds32_expand_epilogue_v3pop): Likewise.
40166 (nds32_can_use_return_insn): New function.
40167
40168 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40169
40170 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40171 * config/nds32/nds32.md (pop25return): New.
40172 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40173 pop25return pattern.
40174
40175 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40176
40177 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40178 -mforbid-fp-as-gp, and -mex9 options.
40179
40180 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40181
40182 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40183 remove -mgp-direct option.
40184
40185 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40186
40187 * doc/invoke.texi (--param early-inlining-insns): Update default value.
40188 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40189
40190 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40191
40192 * ipa-inline.c (inline_small_functions): Work around hints
40193 cache issue.
40194
40195 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
40196
40197 PR target/59710
40198 * doc/invoke.texi (Option Summary): Document new Nios II
40199 -mgpopt= syntax.
40200 (Nios II Options): Likewise.
40201 * config/nios2/nios2.opt: Add -mgpopt= option support.
40202 Modify existing -mgpopt and -mno-gpopt options to be aliases.
40203 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40204 * config/nios2/nios2.c (nios2_option_override): Adjust
40205 -mgpopt defaulting.
40206 (nios2_in_small_data_p): Return true for explicit small data
40207 sections even with -G0.
40208 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40209 option choices.
40210
40211 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40212
40213 PR ipa/64612
40214 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40215 of comdat locals.
40216 (inline_call): Fix removal of aliases.
40217
40218 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40219
40220 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40221 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40222 * opts.c (common_handle_option): Add -fsanitize=vptr.
40223 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40224 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40225 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40226 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40227 (ubsan_expand_vptr_ifn): New prototype.
40228 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40229 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40230 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40231 expand_LOOP_VECTORIZED): Make argument nameless, remove
40232 ATTRIBUTE_UNUSED.
40233 (expand_UBSAN_VPTR): New function.
40234 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40235 in fn spec.
40236 (UBSAN_VPTR): New internal function.
40237 * sanopt.c (tree_map_traits): Renamed to ...
40238 (sanopt_tree_map_traits): ... this.
40239 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40240 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40241 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
40242 (maybe_optimize_ubsan_vptr_ifn): New function.
40243 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40244 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
40245 -fsanitize=vptr.
40246 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40247 internal calls like pure functions for aliasing, even when they
40248 have other side-effects that prevent making them ECF_PURE.
40249 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40250 (ubsan_expand_vptr_ifn): New function.
40251
40252 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
40253
40254 PR rtl-optimization/64110
40255 * stmt.c (parse_output_constraint): Process '^' and '$'.
40256 (parse_input_constraint): Ditto.
40257 * lra-constraints.c (process_alt_operands): Process the new
40258 constraints.
40259 * ira-costs.c (record_reg_classes): Process the new constraint
40260 '^'.
40261 * genoutput.c (indep_constraints): Add '^' and '$'.
40262 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40263 * doc/md.texi: Add description of the new constraints.
40264
40265 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
40266 Bernd Schmidt <bernds@codesourcery.com>
40267 Cesar Philippidis <cesar@codesourcery.com>
40268 James Norris <jnorris@codesourcery.com>
40269 Tom de Vries <tom@codesourcery.com>
40270 Ilmir Usmanov <i.usmanov@samsung.com>
40271 Dmitry Bocharnikov <dmitry.b@samsung.com>
40272 Evgeny Gavrin <e.gavrin@samsung.com>
40273 Jakub Jelinek <jakub@redhat.com>
40274
40275 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40276 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40277 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40278 New function types.
40279 * builtins.c: Include "gomp-constants.h".
40280 (expand_builtin_acc_on_device): New function.
40281 (expand_builtin, is_inexpensive_builtin): Handle
40282 BUILT_IN_ACC_ON_DEVICE.
40283 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40284 New macros.
40285 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40286 flag_openmp.
40287 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40288 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40289 i386/intelmic-offload.h.
40290 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40291 to libgomp and its dependencies.
40292 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40293 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40294 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40295 * config/ia64/hpux.h (LIB_SPEC): Likewise.
40296 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40297 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40298 * doc/generic.texi: Update for OpenACC changes.
40299 * doc/gimple.texi: Likewise.
40300 * doc/invoke.texi: Likewise.
40301 * doc/sourcebuild.texi: Likewise.
40302 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40303 GF_OMP_FOR_KIND_OACC_LOOP.
40304 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40305 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40306 GF_OMP_TARGET_KIND_OACC_UPDATE,
40307 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40308 Dump more data.
40309 * gimple.c: Update comments for OpenACC changes.
40310 * gimple.def: Likewise.
40311 * gimple.h: Likewise.
40312 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40313 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40314 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40315 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40316 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40317 appropriate place.
40318 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40319 * gimplify.c: Include "gomp-constants.h".
40320 Update comments for OpenACC changes.
40321 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40322 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40323 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40324 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40325 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40326 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40327 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40328 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40329 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40330 OMP_CLAUSE_SEQ.
40331 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40332 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40333 OMP_CLAUSE_SET_MAP_KIND.
40334 (gimplify_oacc_cache): New function.
40335 (gimplify_omp_for): Handle OACC_LOOP.
40336 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40337 OACC_DATA.
40338 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40339 OACC_EXIT_DATA, OACC_UPDATE.
40340 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40341 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40342 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40343 (gimplify_body): Consider flag_openacc next to flag_openmp.
40344 * lto-streamer-out.c: Include "gomp-constants.h".
40345 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40346 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40347 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40348 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40349 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40350 (BUILT_IN_ACC_ON_DEVICE): New builtins.
40351 * omp-low.c: Include "gomp-constants.h".
40352 Update comments for OpenACC changes.
40353 (struct omp_context): Add reduction_map, gwv_below, gwv_this
40354 members.
40355 (extract_omp_for_data, use_pointer_for_field, install_var_field)
40356 (new_omp_context, delete_omp_context, scan_sharing_clauses)
40357 (create_omp_child_function, scan_omp_for, scan_omp_target)
40358 (check_omp_nesting_restrictions, lower_reduction_clauses)
40359 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40360 Update for OpenACC changes.
40361 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40362 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40363 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40364 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40365 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40366 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
40367 OMP_CLAUSE_MAP_*.
40368 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40369 Handle GF_OMP_FOR_KIND_OACC_LOOP.
40370 (expand_omp_target, lower_omp_target): Handle
40371 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40372 GF_OMP_TARGET_KIND_OACC_UPDATE,
40373 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40374 GF_OMP_TARGET_KIND_OACC_DATA.
40375 (pass_expand_omp::execute, execute_lower_omp)
40376 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40377 flag_openmp.
40378 (offload_symbol_decl): New variable.
40379 (oacc_get_reduction_array_id, oacc_max_threads)
40380 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40381 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40382 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40383 (oacc_gimple_assign, oacc_initialize_reduction_data)
40384 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40385 functions.
40386 (is_targetreg_ctx): Remove function.
40387 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40388 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40389 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40390 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40391 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40392 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40393 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40394 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40395 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40396 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40397 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40398 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40399 * tree-core.h: Update comments for OpenACC changes.
40400 (enum omp_clause_map_kind): Remove.
40401 (struct tree_omp_clause): Change type of map_kind member from enum
40402 omp_clause_map_kind to unsigned char.
40403 * tree-inline.c: Update comments for OpenACC changes.
40404 * tree-nested.c: Likewise. Include "gomp-constants.h".
40405 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
40406 (convert_tramp_reference_stmt, convert_gimple_call): Update for
40407 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40408 OMP_CLAUSE_SET_MAP_KIND.
40409 * tree-pretty-print.c: Include "gomp-constants.h".
40410 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
40411 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
40412 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
40413 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
40414 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40415 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
40416 instead of OMP_CLAUSE_MAP_*.
40417 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
40418 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
40419 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40420 * tree-streamer-in.c: Include "gomp-constants.h".
40421 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
40422 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
40423 * tree-streamer-out.c: Include "gomp-constants.h".
40424 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
40425 OMP_CLAUSE_MAP_*.
40426 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
40427 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
40428 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
40429 * tree.c (omp_clause_num_ops): Update accordingly.
40430 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
40431 Likewise.
40432 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
40433 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
40434 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
40435 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
40436 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
40437 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
40438 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
40439 (OMP_CLAUSE_SET_MAP_KIND): New macro.
40440 * varpool.c (varpool_node::get_create): Consider flag_openacc next
40441 to flag_openmp.
40442 * config/i386/intelmic-offload.h: New file.
40443 * config/nvptx/offload.h: Likewise.
40444
40445 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40446
40447 * explow.h: Remove duplicate contents.
40448 * dojump.h: Likewise.
40449
40450 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
40451
40452 * arm.c (arm_xgene_tune): Add default initializer for instruction
40453 fusion.
40454
40455 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40456
40457 PR ipa/64068
40458 PR ipa/64559
40459 * ipa.c (symbol_table::remove_unreachable_nodes):
40460 Do not put abstract origins into boundary.
40461
40462 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
40463
40464 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
40465 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
40466
40467 2015-01-15 Steve Ellcey <sellcey@mips.com>
40468
40469 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
40470 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
40471 builtins.def, and chkp-builtins.def.
40472
40473 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
40474
40475 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
40476 ISA 2.7 (POWER8).
40477
40478 2015-01-15 Richard Biener <rguenther@suse.de>
40479
40480 PR tree-optimization/61743
40481 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
40482 information on PHIs for some simple cases.
40483
40484 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40485
40486 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
40487 Include xgene1.md.
40488 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
40489 * config/arm/arm-cores.def (xgene1): New entry.
40490 * config/arm/arm-tables.opt: Regenerate.
40491 * config/arm/arm-tune.md: Regenerate.
40492 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
40493
40494 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40495
40496 * tree-if-conv.c: Include hash-map.h.
40497 (aggressive_if_conv): New variable.
40498 (fold_build_cond_expr): Add simplification of non-zero condition.
40499 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
40500 destination block is not always executed.
40501 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
40502 than two predecessors if AGGRESSIVE_IF_CONV is true.
40503 (if_convertible_stmt_p): Fix commentary.
40504 (all_preds_critical_p): New function.
40505 (has_pred_critical_p): New function.
40506 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
40507 BB can have more than two predecessors and all incoming edges can be
40508 critical.
40509 (predicate_bbs): Skip predication for loop exit block, use build2_loc
40510 to compute predicate for true edge.
40511 (find_phi_replacement_condition): Delete this function.
40512 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
40513 Allow interchange PHI arguments if EXTENDED is false.
40514 Change check that block containing reduction statement candidate
40515 is predecessor of phi-block since phi may have more than two arguments.
40516 (phi_args_hash_traits): New helper structure.
40517 (struct phi_args_hash_traits): New type.
40518 (phi_args_hash_traits::hash): New function.
40519 (phi_args_hash_traits::equal_keys): New function.
40520 (gen_phi_arg_condition): New function.
40521 (predicate_scalar_phi): Add handling of phi nodes with more than two
40522 arguments, delete COND and TRUE_BB arguments, insert body of
40523 find_phi_replacement_condition to predicate ordinary phi nodes.
40524 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
40525 delete call of find_phi_replacement_condition and invoke
40526 predicate_scalar_phi with two arguments.
40527 (insert_gimplified_predicates): Add assert that non-predicated block
40528 don't have statements to insert.
40529 (ifcvt_split_critical_edges): New function.
40530 (ifcvt_split_def_stmt): Likewise.
40531 (ifcvt_walk_pattern_tree): Likewise.
40532 (stmt_is_root_of_bool_pattern): Likewise.
40533 (ifcvt_repair_bool_pattern): Likewise.
40534 (ifcvt_local_dce): Likewise.
40535 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
40536 is copy of inner or outer loop force_vectorize field, invoke
40537 ifcvt_split_critical_edges, ifcvt_local_dce and
40538 ifcvt_repair_bool_pattern for aggressive if-conversion.
40539
40540 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
40541
40542 * config/aarch64/aarch64.md: Include xgene1.md.
40543 * config/aarch64/xgene1.md: New file.
40544
40545 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40546
40547 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
40548 xgene1 (APM XGene-1) core definition.
40549 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
40550 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
40551 * doc/invoke.texi: Document -mcpu=xgene1.
40552
40553 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40554
40555 * dojump.h: New header file.
40556 * explow.h: Likewise.
40557 * expr.h: Remove includes.
40558 Move expmed.c prototypes to expmed.h.
40559 Move dojump.c prototypes to dojump.h.
40560 Move alias.c prototypes to alias.h.
40561 Move explow.c prototypes to explow.h.
40562 Move calls.c prototypes to calls.h.
40563 Move emit-rtl.c prototypes to emit-rtl.h.
40564 Move varasm.c prototypes to varasm.h.
40565 Move stmt.c prototypes to stmt.h.
40566 (saved_pending_stack_adjust): Move to dojump.h.
40567 (adjust_address): Move to explow.h.
40568 (adjust_address_nv): Move to emit-rtl.h.
40569 (adjust_bitfield_address): Likewise.
40570 (adjust_bitfield_address_size): Likewise.
40571 (adjust_bitfield_address_nv): Likewise.
40572 (adjust_automodify_address_nv): Likewise.
40573 * explow.c (expr_size): Move to expr.c.
40574 (int_expr_size): Likewise.
40575 (tree_expr_size): Likewise.
40576 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40577 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40578 * genemit.c (main): Generate includes statistics.h, real.h,
40579 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
40580 stmt.h.
40581 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
40582 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
40583 explow.h, emit-rtl.h, stmt.h.
40584 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
40585 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
40586 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
40587 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
40588 emit-rtl.h, varasm.h, stmt.h.
40589 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
40590 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
40591 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
40592 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
40593 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40594 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
40595 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
40596 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
40597 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
40598 tm.h tree.h varasm.h vec.h wide-int.h.
40599 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40600 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40601 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
40602 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
40603 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
40604 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
40605 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
40606 * loop-iv.c: Likewise.
40607 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
40608 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
40609 statistics.h stmt.h tree.h varasm.h wide-int.h.
40610 * lra-constraints.c: Likewise.
40611 * lra-eliminations.c: Likewise.
40612 * lra-lives.c: Likewise.
40613 * lra-remat.c: Likewise.
40614 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40615 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
40616 statistics.h stmt.h tree.h varasm.h wide-int.h.
40617 * hw-doloop.c: Likewise.
40618 * ira-color.c: Likewise.
40619 * ira-emit.c: Likewise.
40620 * loop-doloop.c: Likewise.
40621 * loop-invariant.c: Likewise.
40622 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40623 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
40624 statistics.h stmt.h tree.h varasm.h wide-int.h.
40625 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
40626 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
40627 statistics.h stmt.h tree.h varasm.h wide-int.h.
40628 * combine-stack-adj.c: Likewise.
40629 * cse.c: Likewise.
40630 * ddg.c: Likewise.
40631 * ifcvt.c: Likewise.
40632 * ira-costs.c: Likewise.
40633 * jump.c: Likewise.
40634 * lra-coalesce.c: Likewise.
40635 * lra-spills.c: Likewise.
40636 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40637 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
40638 stmt.h varasm.h wide-int.h.
40639 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40640 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40641 varasm.h.
40642 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
40643 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
40644 statistics.h stmt.h varasm.h wide-int.h.
40645 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
40646 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
40647 varasm.h wide-int.h.
40648 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
40649 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40650 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
40651 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
40652 statistics.h stmt.h.
40653 * config/tilepro/tilepro.c: Likewise.
40654 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
40655 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
40656 * config/pdp11/pdp11.c: Likewise.
40657 * config/xtensa/xtensa.c: Likewise.
40658 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
40659 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40660 varasm.h.
40661 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40662 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40663 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
40664 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40665 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40666 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
40667 * rtl-chkp.c: Likewise.
40668 * tree-chkp-opt.c: Likewise.
40669 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
40670 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40671 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
40672 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40673 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40674 statistics.h stmt.h.
40675 * tree-vect-data-refs.c: Likewise.
40676 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
40677 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40678 rtl.h statistics.h stmt.h varasm.h.
40679 * internal-fn.c: Likewise.
40680 * ipa-icf-gimple.c: Likewise.
40681 * lto-section-out.c: Likewise.
40682 * tree-data-ref.c: Likewise.
40683 * tree-nested.c: Likewise.
40684 * tree-outof-ssa.c: Likewise.
40685 * tree-predcom.c: Likewise.
40686 * tree-pretty-print.c: Likewise.
40687 * tree-scalar-evolution.c: Likewise.
40688 * tree-ssa-strlen.c: Likewise.
40689 * tree-vect-loop.c: Likewise.
40690 * tree-vect-patterns.c: Likewise.
40691 * tree-vect-slp.c: Likewise.
40692 * tree-vect-stmts.c: Likewise.
40693 * tsan.c: Likewise.
40694 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40695 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
40696 stmt.h.
40697 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
40698 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40699 statistics.h stmt.h varasm.h.
40700 * loop-unroll.c: Likewise.
40701 * ubsan.c: Likewise.
40702 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
40703 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
40704 stmt.h varasm.h.
40705 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40706 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
40707 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
40708 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40709 statistics.h stmt.h.
40710 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
40711 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40712 statistics.h stmt.h varasm.h.
40713 * gimple-match-head.c: Likewise.
40714 * lto-cgraph.c: Likewise.
40715 * lto-section-in.c: Likewise.
40716 * lto-streamer-in.c: Likewise.
40717 * lto-streamer-out.c: Likewise.
40718 * tree-affine.c: Likewise.
40719 * tree-cfg.c: Likewise.
40720 * tree-cfgcleanup.c: Likewise.
40721 * tree-if-conv.c: Likewise.
40722 * tree-into-ssa.c: Likewise.
40723 * tree-ssa-alias.c: Likewise.
40724 * tree-ssa-copyrename.c: Likewise.
40725 * tree-ssa-dse.c: Likewise.
40726 * tree-ssa-forwprop.c: Likewise.
40727 * tree-ssa-live.c: Likewise.
40728 * tree-ssa-math-opts.c: Likewise.
40729 * tree-ssa-pre.c: Likewise.
40730 * tree-ssa-sccvn.c: Likewise.
40731 * tree-tailcall.c: Likewise.
40732 * tree-vect-generic.c: Likewise.
40733 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40734 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
40735 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40736 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
40737 * varasm.c: Likewise.
40738 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40739 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
40740 varasm.h.
40741 * init-regs.c: Likewise.
40742 * ira.c: Likewise.
40743 * omp-low.c: Likewise.
40744 * stack-ptr-mod.c: Likewise.
40745 * tree-ssa-reassoc.c: Likewise.
40746 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40747 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
40748 varasm.h.
40749 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40750 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
40751 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40752 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
40753 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40754 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
40755 * tree-ssa-phiopt.c: Likewise.
40756 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40757 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40758 * config/fr30/fr30.c: Likewise.
40759 * config/frv/frv.c: Likewise.
40760 * expr.c: Likewise.
40761 * final.c: Likewise.
40762 * optabs.c: Likewise.
40763 * passes.c: Likewise.
40764 * simplify-rtx.c: Likewise.
40765 * stmt.c: Likewise.
40766 * toplev.c: Likewise.
40767 * var-tracking.c: Likewise.
40768 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40769 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40770 * lower-subreg.c: Likewise.
40771 * postreload-gcse.c: Likewise.
40772 * ree.c: Likewise.
40773 * reginfo.c: Likewise.
40774 * store-motion.c: Likewise.
40775 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40776 fixed-value.h hashtab.h real.h stmt.h varasm.h.
40777 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40778 fixed-value.h hashtab.h statistics.h stmt.h.
40779 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40780 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40781 * except.c: Likewise.
40782 * explow.c: Likewise.
40783 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40784 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
40785 varasm.h.
40786 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40787 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
40788 * tree-ssa-structalias.c: Likewise.
40789 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40790 fixed-value.h insn-config.h real.h statistics.h.
40791 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40792 fixed-value.h insn-config.h real.h statistics.h stmt.h.
40793 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40794 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40795 * cfgbuild.c: Likewise.
40796 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40797 fixed-value.h real.h rtl.h statistics.h stmt.h.
40798 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40799 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40800 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40801 fixed-value.h real.h statistics.h stmt.h.
40802 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40803 fixed-value.h real.h statistics.h stmt.h varasm.h.
40804 * cprop.c: Likewise.
40805 * modulo-sched.c: Likewise.
40806 * postreload.c: Likewise.
40807 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40808 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
40809 statistics.h stmt.h varasm.h.
40810 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
40811 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40812 rtl.h statistics.h stmt.h varasm.h.
40813 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
40814 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
40815 varasm.h.
40816 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40817 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
40818 varasm.h.
40819 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
40820 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
40821 varasm.h.
40822 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
40823 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40824 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40825 function.h real.h statistics.h stmt.h varasm.h.
40826 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40827 insn-config.h real.h statistics.h stmt.h.
40828 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40829 statistics.h stmt.h.
40830 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
40831 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
40832 statistics.h stmt.h varasm.h.
40833 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
40834 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
40835 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40836 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
40837 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
40838 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40839 statistics.h stmt.h varasm.h.
40840 * ipa-polymorphic-call.c: Likewise.
40841 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
40842 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40843 statistics.h stmt.h.
40844 * config/c6x/c6x.c: Likewise.
40845 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
40846 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40847 statistics.h stmt.h varasm.h.
40848 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
40849 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
40850 stmt.h varasm.h.
40851 * ipa-split.c: Likewise.
40852 * tree-eh.c: Likewise.
40853 * tree-ssa-dce.c: Likewise.
40854 * tree-ssa-loop-niter.c: Likewise.
40855 * tree-vrp.c: Likewise.
40856 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
40857 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
40858 stmt.h.
40859 * config/nds32/nds32-fp-as-gp.c: Likewise.
40860 * config/nds32/nds32-intrinsic.c: Likewise.
40861 * config/nds32/nds32-isr.c: Likewise.
40862 * config/nds32/nds32-md-auxiliary.c: Likewise.
40863 * config/nds32/nds32-memory-manipulation.c: Likewise.
40864 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
40865 * config/nds32/nds32-predicates.c: Likewise.
40866 * config/nds32/nds32.c: Likewise.
40867 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
40868 fixed-value.h hashtab.h real.h statistics.h.
40869 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
40870 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40871 * config/arm/arm.c: Likewise.
40872 * config/avr/avr.c: Likewise.
40873 * config/bfin/bfin.c: Likewise.
40874 * config/h8300/h8300.c: Likewise.
40875 * config/i386/i386.c: Likewise.
40876 * config/ia64/ia64.c: Likewise.
40877 * config/iq2000/iq2000.c: Likewise.
40878 * config/m32c/m32c.c: Likewise.
40879 * config/m32r/m32r.c: Likewise.
40880 * config/m68k/m68k.c: Likewise.
40881 * config/mcore/mcore.c: Likewise.
40882 * config/mep/mep.c: Likewise.
40883 * config/mips/mips.c: Likewise.
40884 * config/mn10300/mn10300.c: Likewise.
40885 * config/moxie/moxie.c: Likewise.
40886 * config/pa/pa.c: Likewise.
40887 * config/rl78/rl78.c: Likewise.
40888 * config/rx/rx.c: Likewise.
40889 * config/s390/s390.c: Likewise.
40890 * config/sh/sh.c: Likewise.
40891 * config/sparc/sparc.c: Likewise.
40892 * config/spu/spu.c: Likewise.
40893 * config/stormy16/stormy16.c: Likewise.
40894 * config/v850/v850.c: Likewise.
40895 * config/vax/vax.c: Likewise.
40896 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
40897 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40898 * config/msp430/msp430.c: Likewise.
40899 * predict.c: Likewise.
40900 * value-prof.c: Likewise.
40901 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
40902 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
40903 * config/microblaze/microblaze.c: Likewise.
40904 * config/nios2/nios2.c: Likewise.
40905 * config/rs6000/rs6000.c: Likewise.
40906 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40907 insn-config.h real.h rtl.h statistics.h stmt.h.
40908 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40909 insn-config.h real.h statistics.h stmt.h.
40910 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
40911 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40912 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
40913 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40914 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
40915 fixed-value.h real.h statistics.h stmt.h.
40916 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
40917 fixed-value.h statistics.h stmt.h.
40918 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
40919 stmt.h.
40920
40921 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40922
40923 * gengtype.c (create_user_defined_type): Workaround
40924 -Wmaybe-uninitialized false positives.
40925 * cse.c (fold_rtx): Likewise.
40926 * loop-invariant.c (gain_for_invariant): Likewise.
40927
40928 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
40929
40930 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
40931 set the memory attributes in all cases but clear MEM_EXPR if need be.
40932
40933 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40934
40935 PR tree-optimization/64434
40936 * cfgexpand.c (reorder_operands): New function.
40937 (expand_gimple_basic_block): Insert call of reorder_operands if
40938 optimized is true.
40939
40940 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
40941
40942 * config/mips/micromips.md (*swp): Remove explicit parallel.
40943 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40944 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40945 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40946 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
40947 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
40948 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
40949 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
40950 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
40951 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
40952 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
40953 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
40954 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
40955 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
40956 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
40957 (mips_wrdsp): Likewise.
40958 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
40959 parallel.
40960 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
40961 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
40962 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
40963 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
40964 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
40965 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
40966 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
40967 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
40968 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
40969
40970 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40971
40972 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
40973 (mips_print_operand): Support 'y' to print exact log2 in decimal
40974 of a const_int.
40975 * config/mips/mips.h (ISA_HAS_LSA): New define.
40976 (ISA_HAS_DLSA): Likewise.
40977 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
40978 * config/mips/predicates.md (const_immlsa_operand): New predicate.
40979
40980 2015-01-15 Martin Liska <mliska@suse.cz>
40981
40982 PR target/64377
40983 * optc-save-gen.awk: Add support for array types.
40984
40985 2015-01-15 Richard Biener <rguenther@suse.de>
40986
40987 PR middle-end/64365
40988 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
40989 for MEM_REF access functions with the same base can never partially
40990 overlap.
40991
40992 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
40993
40994 * common.opt: New option -fstack-protector-explicit.
40995 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
40996 (stack_protect_decl_phase): Handle stack_protect attribute for
40997 explicit stack protection requests.
40998 (expand_used_vars): Similarly.
40999 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41000 * doc/extend.texi: Add documentation for "stack_protect" attribute.
41001 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41002
41003 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
41004
41005 PR target/53988
41006 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41007 reg-reg copies.
41008 (sh_extending_set_of_reg): New struct.
41009 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41010 sh_remove_reg_dead_or_unused_notes): New Declarations.
41011 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41012 sh_find_extending_set_of_reg, sh_split_tst_subregs,
41013 sh_extending_set_of_reg::use_as_extended_reg): New functions.
41014 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41015 convert to insn_and_split and use new function sh_split_tst_subregs.
41016
41017 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
41018
41019 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41020 option.
41021 (Optimization Options): Move -fuse-ld documentation to...
41022 (Link Options): ...here.
41023
41024 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41025
41026 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41027 offsets.
41028 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41029 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41030 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41031 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41032 instead of ZR for the memory operand of LL/SC.
41033 (compare_and_swap_12, sync_add<mode>): Likewise.
41034 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41035 (sync_new_<optab>_12, sync_nand_12): Likewise.
41036 (sync_old_nand_12, sync_new_nand_12): Likewise.
41037 (sync_sub<mode>, sync_old_add<mode>): Likewise.
41038 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41039 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41040 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41041 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41042 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41043 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41044 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41045 * doc/md.texi (ZC): Update description.
41046
41047 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41048
41049 * builtins.c (expand_builtin_atomic_exchange): Remove error when
41050 memory model is CONSUME.
41051 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41052 expand_builtin_atomic_store): Change invalid memory model errors to
41053 warnings.
41054 (expand_builtin_atomic_clear): Change invalid model errors to warnings
41055 and issue warning for CONSUME.
41056
41057 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
41058
41059 * lto-cgraph: Update function comments for
41060 lto_symtab_encoder_encode_*.
41061
41062 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41063
41064 * Makefile.in (site.exp): Do not set ENABLE_LTO.
41065
41066 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41067
41068 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41069 * lto-cgraph.c (select_what_to_stream): Remove argument, use
41070 lto_stream_offload_p instead.
41071 * lto-streamer.h (select_what_to_stream): Remove argument.
41072 * passes.c (ipa_write_summaries): Likewise.
41073 * tree-pass.h (ipa_write_summaries): Likewise.
41074
41075 2015-01-14 Richard Biener <rguenther@suse.de>
41076
41077 PR tree-optimization/59354
41078 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41079 groups larger than the slp group size as having gaps.
41080
41081 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41082
41083 PR middle-end/59448
41084 * builtins.c (get_memmodel): Promote consume to acquire always.
41085
41086 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41087
41088 PR target/64386
41089 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41090 V32HImode.
41091
41092 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41093
41094 PR target/64393
41095 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41096 Enable AVX512BW.
41097 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41098 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41099 AVX512VBMI, as it implies AVX512BW.
41100
41101 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41102
41103 PR target/64387
41104 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41105 (vec_unpacks_hi_v16sf): Ditto.
41106
41107 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41108
41109 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41110 is not available.
41111
41112 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41113
41114 * doc/invoke.texi (mapcs): Mention deprecation.
41115 (mapcs-frame): Likewise.
41116
41117 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
41118
41119 PR target/64453
41120 * config/arm/arm.c (callee_saved_reg_p): Define.
41121 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41122 register is callee saved instead of !call_used_regs[reg].
41123 (thumb1_compute_save_reg_mask): Likewise.
41124
41125 2015-01-14 Hale Wang <hale.wang@arm.com>
41126
41127 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41128 Cortex-M7.
41129
41130 2015-01-14 Richard Biener <rguenther@suse.de>
41131
41132 PR lto/64415
41133 * tree-inline.c (insert_debug_decl_map): Check destination
41134 function MAY_HAVE_DEBUG_STMTS.
41135 (insert_init_debug_bind): Likewise.
41136 (insert_init_stmt): Remove redundant check.
41137 (remap_gimple_stmt): Drop debug stmts if the destination
41138 function has var-tracking assignments disabled.
41139
41140 2015-01-14 Martin Liska <mliska@suse.cz>
41141
41142 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41143 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41144
41145 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41146
41147 PR target/64460
41148 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41149 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41150
41151 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41152
41153 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41154 level from an ARCH; do not inject the default.
41155 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41156 MIPS_ISA_LEVEL_SPEC.
41157 (MIPS_ISA_NAN2008_SPEC): Update comment.
41158 (BASE_DRIVER_SELF_SPECS): Likewise.
41159 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41160 MIPS_DEFAULT_ISA_LEVEL_SPEC.
41161 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41162 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41163 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41164
41165 2015-01-14 Richard Biener <rguenther@suse.de>
41166
41167 PR tree-optimization/64493
41168 PR tree-optimization/64495
41169 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41170 assign the proper vectorized PHI to the inner loop exit PHIs.
41171
41172 2015-01-14 Joey Ye <joey.ye@arm.com>
41173
41174 * config/arm/arm.c (arm_compute_save_reg_mask):
41175 Do not save lr in case of tail call.
41176 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41177
41178 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
41179
41180 * tree-vrp.c (check_array_ref): Emit more warnings
41181 for warn_array_bounds >= 2.
41182 * common.opt: New option -Warray-bounds=.
41183 * doc/invoke.texi: Document -Warray-bounds=.
41184
41185 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
41186
41187 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41188 (mforbid-fp-as-gp): Remove.
41189 (mex9): Remove.
41190 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41191 (nds32_symbol_load_store_p): Remove.
41192 (nds32_fp_as_gp_check_available): Clean up implementation.
41193 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41194 cases.
41195 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41196 fp-as-gp and ex9 cases.
41197
41198 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41199
41200 * tree-profile.c (init_ic_make_global_vars): Drop workaround
41201 for bintuils bug 14342.
41202 (init_ic_make_global_vars): Likewise.
41203 (gimple_init_edge_profiler): Likewise.
41204 (gimple_gen_ic_func_profiler): Likewise.
41205
41206 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
41207
41208 * ipa-inline.c (inline_small_functions): Swap the operands in
41209 enum.
41210
41211 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41212
41213 PR ipa/64481
41214 * ipa-inline-analysis.c (node_growth_cache): Remove.
41215 (initialize_growth_caches): Do not initialize it.
41216 (free_growth_caches): Do not free it.
41217 (do_estimate_growth): Rename to ...
41218 (estimate_growth): ... this one; drop growth cache code.
41219 (growth_likely_positive): Always go the heuristics way.
41220 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41221 (reset_edge_caches): Do not reset node growth.
41222 (heap_edge_removal_hook): Do not maintain cache.
41223 (inline_small_functions): Likewise; strenghten sanity check.
41224 (ipa_inline): Do not maintain caches.
41225 * ipa-inline.h (node_growth_cache): Remove.
41226 (do_estimate_growth): Remove to ...
41227 (estimate_growth): this one; remove inline version.
41228 (reset_node_growth_cache): Remove.
41229
41230 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41231
41232 PR ipa/64565
41233 * ipa-inline.c (inline_small_functions): Update callee keys after
41234 resolving speculation
41235 (inline_small_functions): Always check monotonicity of the queue.
41236
41237 2015-01-13 Marek Polacek <polacek@redhat.com>
41238
41239 PR middle-end/64391
41240 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41241
41242 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41243
41244 PR rtl-optimization/64286
41245 * ree.c (combine_reaching_defs): Move part of comment earlier,
41246 remove !SCALAR_INT_MODE_P check.
41247 (add_removable_extension): Don't add vector mode
41248 extensions if all uses of the source register aren't the same
41249 vector extensions.
41250
41251 2015-01-13 Renlin Li <renlin.li@arm.com>
41252
41253 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41254 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41255
41256 2015-01-13 Martin Liska <mliska@suse.cz>
41257
41258 * ipa-icf.c (sem_function::equals_private): Call new functions
41259 cl_target_option_print_diff and cl_optimization_print_diff.
41260 * optc-save-gen.awk (cl_target_option_print_diff): New function.
41261 (cl_optimization_print_diff): Likewise.
41262 * opth-gen.awk: Likewise.
41263
41264 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
41265
41266 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41267 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41268 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41269 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41270 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41271 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41272
41273 2015-01-13 Andrew Pinski <apinski@cavium.com>
41274
41275 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41276 instead of src mode.
41277
41278 2015-01-13 Richard Biener <rguenther@suse.de>
41279
41280 PR lto/64373
41281 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41282 DECL_CONTEXT.
41283
41284 2015-01-13 Andrew Pinski <apinski@cavium.com>
41285
41286 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41287 volatile mems.
41288 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41289
41290 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41291
41292 PR middle-end/63974
41293 * cfgexpand.c (expand_computed_goto): Don't call
41294 convert_memory_address here.
41295
41296 2015-01-13 Richard Biener <rguenther@suse.de>
41297
41298 PR tree-optimization/64406
41299 * tree-loop-distibution.c (pass_loop_distribution::execute):
41300 Reset the SCEV hashtable if we distributed anything.
41301
41302 2015-01-13 Richard Biener <rguenther@suse.de>
41303
41304 PR tree-optimization/64404
41305 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41306 SLP types for CSEd loads.
41307
41308 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
41309
41310 PR tree-optimization/64436
41311 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41312 merge of two symbolic numbers for a bitwise OR to ...
41313 (perform_symbolic_merge): This. Also fix computation of the range and
41314 end of the symbolic number corresponding to the result of a bitwise OR.
41315
41316 2015-01-13 Richard Biener <rguenther@suse.de>
41317
41318 PR tree-optimization/64568
41319 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41320 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41321
41322 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41323
41324 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41325 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41326
41327 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41328
41329 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41330 target-specific symbol_ref flag.
41331 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41332 resides in rodata section.
41333 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41334 (nds32_encode_section_info): New function.
41335
41336 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41337
41338 * config/nds32/nds32.md (call): Use pseudo instruction bal which
41339 clobbers TA_REGNUM if large code model is specified.
41340 (call_register): Likewise.
41341 (call_immediate): Likewise.
41342 (call_value): Likewise.
41343 (call_value_register): Likewise.
41344 (call_value_immediate): Likewise.
41345
41346 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41347
41348 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41349 (TARGET_CMODEL_MEDIUM): New macro.
41350 (TARGET_CMODEL_LARGE): New macro.
41351 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41352 code model setting in assembly code.
41353
41354 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41355
41356 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41357 Remove MASK_GP_DIRECT flag.
41358 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41359 one of the multilib default options.
41360 * config/nds32/nds32.opt (mgp-direct): Remove.
41361 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41362 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
41363
41364 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41365
41366 * config/nds32/nds32.opt (mcmodel): Add new option.
41367 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41368 to describe code model.
41369
41370 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
41371
41372 PR target/64479
41373 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41374
41375 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
41376
41377 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41378 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41379 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41380 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41381 __builtin_sh_set_fpscr.
41382
41383 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41384
41385 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41386 after a funtion name just to indicate it is a function.
41387 ([-fsanitize-undefined-trap-on-error]): Likewise.
41388 ([-fdbg-cnt=]): Likewise.
41389 ([-mmemcpy]): Likewise.
41390 ([-mflush-func]): Likewise.
41391 ([-msynci]): Likewise.
41392
41393 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41394
41395 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41396 example.
41397
41398 2015-01-12 Jakub Jelinek <jakub@redhat.com>
41399
41400 PR tree-optimization/64563
41401 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
41402 instead of != VR_VARYING.
41403
41404 PR target/64513
41405 * config/i386/i386.c (ix86_expand_prologue): Add
41406 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
41407
41408 PR tree-optimization/64454
41409 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
41410 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
41411 for signed or [0, op1 - 1] for unsigned modulo.
41412 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
41413 even if op1 does not satisfy integer_pow2p.
41414
41415 PR other/64370
41416 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
41417
41418 2015-01-12 Jeff Law <law@redhat.com>
41419
41420 PR target/64461
41421 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
41422 (trunchiqi2, truncsihi2): Similarly.
41423
41424 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
41425 rather than calling F.
41426
41427 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
41428
41429 * tsan.c (instrument_expr): Use force_gimple_operand.
41430 Use may_be_nonaddressable_p instead of is_gimple_addressable.
41431
41432 2015-01-12 Richard Biener <rguenther@suse.de>
41433
41434 PR tree-optimization/64530
41435 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
41436 back dr1.
41437
41438 2015-01-12 Richard Biener <rguenther@suse.de>
41439
41440 PR middle-end/64357
41441 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
41442 latches properly.
41443
41444 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41445
41446 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
41447 Cortex-A17 tuning parameters.
41448 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
41449
41450 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41451
41452 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
41453 * config/arm/arm.c (arm_macro_fusion_p): New function.
41454 (arm_macro_fusion_pair_p): Likewise.
41455 (TARGET_SCHED_MACRO_FUSION_P): Define.
41456 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
41457 (ARM_FUSE_NOTHING): Likewise.
41458 (ARM_FUSE_MOVW_MOVT): Likewise.
41459 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
41460 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
41461 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
41462 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
41463 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
41464 arm_cortex_a5_tune): Specify fuseable_ops value.
41465
41466 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
41467
41468 PR bootstrap/64561
41469 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
41470 test for PIE with copy reloc.
41471 * configure: Regenerated.
41472
41473 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41474
41475 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
41476 in gen_rtx_REG.
41477 (arm_tls_descseq_addr): Likewise.
41478 (arm_gen_movmemqi): Likewise.
41479 (arm_expand_epilogue_apcs_frame): Likewise.
41480 (arm_expand_epilogue): Likewise.
41481 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
41482 in gen_rtx_REG.
41483
41484 2015-01-12 Martin Liska <mliska@suse.cz>
41485
41486 PR ipa/64550
41487 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
41488 volatility for correct operands.
41489
41490 2015-01-12 Martin Liska <mliska@suse.cz>
41491
41492 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
41493 indication that a function is not leaf.
41494 (sem_function::compare_polymorphic_p): Likewise.
41495
41496 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41497
41498 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
41499 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
41500 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
41501 fold-const.h, tree-check.h.
41502
41503 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41504
41505 PR ipa/63967
41506 PR ipa/64425
41507 * ipa-inline.c (compute_uninlined_call_time,
41508 compute_inlined_call_time): Use counts for extra precision when
41509 needed possible.
41510 (big_speedup_p): Fix formating.
41511 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
41512 (relative_time_benefit): Remove.
41513 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
41514 merge guessed and read profile paths.
41515 (inline_small_functions): Count only !optimize_size functions into
41516 initial size; be more lax about sanity check when profile is used;
41517 be sure to update inlined function profile when profile is read.
41518
41519 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41520
41521 PR ipa/63470
41522 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
41523 cost when edge becomes direct.
41524 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
41525 is resolved or when introducing new speculation.
41526
41527 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
41528
41529 PR ipa/64551
41530 PR ipa/64552
41531 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
41532 '||' to fix typo issue.
41533
41534 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
41535 accept and return NULL.
41536
41537 2015-01-12 Martin Liska <mliska@suse.cz>
41538
41539 * cgraph.c (cgraph_edge::remove_callee): Move function to header
41540 file for being inlined.
41541 (cgraph_set_edge_callee): Delete.
41542 (cgraph_edge::redirect_callee): Move function to header file
41543 for being inlined.
41544 (cgraph_edge::make_direct): Use new function.
41545 (cgraph_edge::dump_edge_flags): New function created from
41546 static dump_edge_flags function.
41547 (cgraph_node::dump): Use new function.
41548 (cgraph_edge::verify_count_and_frequency): New function created
41549 from verify_edge_count_and_frequency.
41550 (cgraph_edge::verify_corresponds_to_fndecl): New function created
41551 from verify_edge_corresponds_to_fndecl.
41552 (verify_edge_corresponds_to_fndecl): Delete.
41553 (cgraph_node::verify_node): Use new function.
41554 * cgraph.h (cgraph_edge::set_callee): New function.
41555 (cgraph_edge::dump_edge_flags): Likewise.
41556 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
41557
41558 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
41559
41560 * ipa-utils.c (estimate_function_body_sizes): Do not
41561 free node params when called late with early=true.
41562
41563 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
41564
41565 * doc/md.texi (Instruction Patterns): Rewrite text for
41566 clarity.
41567 (Example): Likewise.
41568
41569 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
41570
41571 * doc/invoke.texi (Option Summary): Break long lines.
41572 [(-fdiagnostics-color)]: Put long literal in @smallexample
41573 instead of inline.
41574 [(-fsanitize-recover)]: Likewise.
41575 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
41576 [(-ffast-math)]: Likewise.
41577 [(--param max-inline-insns-recursive)]: Likewise.
41578 [(--param max-inline-recursive-depth)]: Likewise.
41579 [(-mno-text-section-literals)]: Likewise.
41580
41581 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
41582
41583 * doc/install.texi: Update for libgomp being renamed from "GNU
41584 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
41585 Runtime Library".
41586 * doc/sourcebuild.texi: Likewise.
41587
41588 2015-01-10 Anthony Green <green@moxielogic.com>
41589
41590 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
41591 mul.x availability for moxiebox configuration.
41592
41593 2015-01-09 Anthony Green <green@moxielogic.com>
41594
41595 * config/moxie/moxie.md: Tabify assembly output.
41596
41597 2015-01-09 Anthony Green <green@moxielogic.com>
41598
41599 * config/moxie/moxie.md (CC_REG): Correct register definition.
41600
41601 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
41602
41603 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
41604 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
41605 of log files.
41606
41607 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41608
41609 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
41610
41611 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
41612 Jakub Jelinek <jakub@redhat.com>
41613
41614 PR middle-end/64412
41615 * lto-streamer.h (lto_stream_offload_p): New declaration.
41616 * lto-streamer.c (lto_stream_offload_p): New variable.
41617 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
41618 at the same time as section_name_prefix.
41619 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
41620 if lto_stream_offload_p.
41621 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
41622 stream TREE_TARGET_OPTION if lto_stream_offload_p.
41623 (write_ts_function_decl_tree_pointers): Don't
41624 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
41625 * tree-streamer-in.c (unpack_value_fields): Don't stream
41626 TREE_TARGET_OPTION in if ACCEL_COMPILER.
41627 (lto_input_ts_function_decl_tree_pointers): Don't stream
41628 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
41629 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
41630 instead of section_name_prefix string comparisons.
41631
41632 2015-01-09 Jakub Jelinek <jakub@redhat.com>
41633
41634 PR rtl-optimization/64536
41635 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
41636 tablejumps.
41637
41638 2015-01-09 Michael Collison <michael.collison@linaro.org>
41639
41640 PR tree-optimization/64322
41641 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
41642 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
41643
41644 2015-01-09 Tom de Vries <tom@codesourcery.com>
41645
41646 PR rtl-optimization/64539
41647 * regcprop.c (kill_clobbered_values): Factor out of ...
41648 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
41649 instead of note_stores with kill_clobbered_value.
41650
41651 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41652
41653 * ginclude/unwind-arm-common.h: Revert previous commit.
41654
41655 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41656
41657 * config.gcc (arm*-*-freebsd*): New configuration.
41658 * config/arm/freebsd.h: New file.
41659 * config.host: Add extra components for arm*-*-freebsd*.
41660 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
41661 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
41662
41663 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41664
41665 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
41666 for -mcpu=e6500.
41667 * config/rs6000/t-rtems: Add e6500 multilibs.
41668
41669 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41670
41671 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
41672 MPC8540.
41673
41674 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41675
41676 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
41677 MULTILIB_EXCEPTIONS.
41678
41679 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41680
41681 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
41682 MULTILIB_EXCEPTIONS.
41683
41684 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41685
41686 * config/arm/t-rtems-eabi: Rename to...
41687 * config/arm/t-rtems: ...this.
41688 * config/arm/rtems-eabi.h: Rename to...
41689 * config/arm/rtems.h: ...this.
41690 * config.gcc (arm*-*-rtems*): Reflect changes above.
41691
41692 2015-01-09 Richard Biener <rguenther@suse.de>
41693
41694 PR tree-optimization/64410
41695 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
41696 on the LHS.
41697 (execute_update_addresses_taken): Deal with that.
41698 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
41699 loads/stores for complex variables.
41700
41701 2015-01-09 Martin Liska <mliska@suse.cz>
41702
41703 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
41704 name comparison.
41705 (func_checker::compare_memory_operand): New function.
41706 (func_checker::compare_operand): Split case to newly
41707 added functions.
41708 (func_checker::compare_cst_or_decl): New function.
41709 (func_checker::compare_gimple_call): Identify
41710 memory operands.
41711 (func_checker::compare_gimple_assign): Likewise.
41712 * ipa-icf-gimple.h: New function.
41713
41714 2015-01-09 Martin Liska <mliska@suse.cz>
41715
41716 PR ipa/64503
41717 * sreal.c (sreal::dump): Change unsigned format to signed for
41718 m_exp value.
41719 (sreal::to_double): Replace exp2 with scalbln.
41720
41721 2015-01-09 Martin Liska <mliska@suse.cz>
41722
41723 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
41724 * ipa-icf.c (sem_function::equals_private): Add support for target and
41725 (sem_item_optimizer::merge_classes): Remove redundant function
41726 optimization flags comparison.
41727 * tree.h (target_opts_for_fn): New function.
41728
41729 2015-01-09 Tom de Vries <tom@codesourcery.com>
41730
41731 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
41732
41733 2015-01-09 Kito Cheng <kito@0xlab.org>
41734
41735 PR rtl-optimization/64348
41736 * lra-constraints.c (split_reg): Fix caller-save store/restore
41737 instruction generation.
41738
41739 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
41740
41741 PR gcov-profile/61790
41742 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
41743 long long. Fallback to int64_t if host doesn't have long long and
41744 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
41745
41746 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41747
41748 PR tree-optimization/63989
41749 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
41750 from 1000 to 10000.
41751 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
41752 (get_stridx): If we don't have a record for certain SSA_NAME,
41753 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
41754 constant offset, call get_stridx_plus_constant.
41755 (get_stridx_plus_constant): New function.
41756 (zero_length_string): Don't use get_stridx here.
41757
41758 PR target/55023
41759 PR middle-end/64388
41760 * dse.c (struct insn_info): Mention frame_read set also
41761 before reload for tail calls on some targets.
41762 (scan_insn): Revert 2014-12-22 change. Set frame_read
41763 also before reload for tail calls if
41764 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
41765 instead of add_non_frame_wild_read for non-const/memset
41766 tail calls after reload.
41767
41768 2015-01-08 Jason Merrill <jason@redhat.com>
41769
41770 * ubsan.c (do_ubsan_in_current_function): New.
41771 (pass_ubsan::gate): Use it.
41772 * ubsan.h: Declare it.
41773 * convert.c (convert_to_integer): Use it.
41774
41775 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41776
41777 PR target/64338
41778 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
41779 compare_code when it is unconditionally overwritten afterwards.
41780 Use ix86_reverse_condition instead of reverse_condition. Don't
41781 change code if *reverse_condition* returned UNKNOWN and don't
41782 swap ct/cf and negate diff in that case.
41783
41784 2015-01-08 Mike Stump <mikestump@comcast.net>
41785
41786 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
41787 (pass_tsan_O0::gate): Likewise.
41788 * extend.texi (Function Attributes): Add no_sanitize_thread
41789 documentation.
41790
41791 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
41792
41793 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
41794 for registering builtins.
41795 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
41796 add -fopenmp to the argv_obstack used when invoking
41797 compile_for_target.
41798
41799 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
41800 add "-m32" or "-m64" to argv_obstack.
41801 (generate_host_descr_file): Likewise, when invoking host_compiler.
41802 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
41803 ld.
41804
41805 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41806
41807 * config/sh/sh-mem.cc: Use constant as second operand when emitting
41808 tstsi_t insns.
41809
41810 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41811
41812 PR target/55212
41813 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
41814 constant load if constant operand fits into I08.
41815
41816 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41817
41818 PR sanitizer/64336
41819 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
41820 and TREE_THIS_VOLATILE for MEM_REFs.
41821 (build5_stat): Fix up initialization of TREE_READONLY and
41822 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
41823
41824 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
41825
41826 PR target/64533
41827 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
41828 of r for the second alternative of the destination operand.
41829
41830 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
41831
41832 PR target/36557
41833 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
41834
41835 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41836
41837 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
41838 keywords.
41839 ([-fivar-visibility], [-fvisibility]): Likewise.
41840
41841 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41842
41843 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
41844 the file where @code, @command, etc is more appropriate.
41845
41846 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
41847
41848 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
41849 of -mrecip= documentation.
41850
41851 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
41852
41853 PR target/64505
41854 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
41855 correct reload handler if -m32 -mpowerpc64 is used.
41856
41857 2015-01-06 Tom de Vries <tom@codesourcery.com>
41858
41859 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
41860
41861 2015-01-08 Christian Bruel <christian.bruel@st.com>
41862
41863 PR target/64507
41864 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
41865
41866 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
41867
41868 PR tree-optimization/63259
41869 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
41870 if optab exists for 16bit byteswap.
41871
41872 2015-01-06 Jakub Jelinek <jakub@redhat.com>
41873
41874 * opts.c (common_handle_option): Add support for
41875 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
41876 * doc/invoke.texi: Document -fno-sanitize=all,
41877 -f{,no-}sanitize-recover=all. Document that
41878 -fsanitize=float-cast-overflow is not enabled
41879 by -fsanitize=undefined. Fix up documentation
41880 of -f{,no-}sanitize-recover.
41881
41882 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
41883
41884 * config.gcc: Add Visium support.
41885 * configure.ac: Likewise.
41886 * configure: Regenerate.
41887 * doc/extend.texi (interrupt attribute): Add Visium.
41888 * doc/invoke.texi: Document Visium options.
41889 * doc/install.texi: Document Visium target.
41890 * doc/md.texi: Document Visium constraints.
41891 * common/config/visium: New directory.
41892 * config/visium: Likewise.
41893
41894 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41895
41896 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
41897 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
41898
41899 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41900
41901 * combine.c (combine_validate_cost): Do not count the cost of a
41902 split I2 twice. Do not display it twice in the dump, either.
41903
41904 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41905
41906 Revert parts of r219199.
41907 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
41908 <inttypes.h>.
41909 ([-Wtraditional]): Restore markup on <limits.h>.
41910
41911 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
41912
41913 PR c++/31397
41914 * doc/invoke.texi: Document -Wsuggest-override.
41915
41916 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
41917
41918 PR rtl-optimization/64287
41919 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
41920 (process_options): Disable flag_ipa_ra if profiling.
41921
41922 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
41923
41924 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
41925
41926 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
41927
41928 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
41929 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
41930 put under #if TARGET_LOOPS guard.
41931
41932 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
41933
41934 * config/i386/i386.c (output_387_binary_op): Use std::swap.
41935
41936 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
41937
41938 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
41939 * rtl.h (refers_to_regno_p): Add overload.
41940 * cse.c: Use it.
41941 * bt-load.c: Likewise.
41942 * combine.c: Likewise.
41943 * df-scan.c: Likewise.
41944 * sched-deps.c: Likewise.
41945 * config/s390/s390.c: Likewise.
41946 * config/m32r/m32r.c: Likewise.
41947 * config/rs6000/spe.md: Likewise.
41948 * config/rs6000/rs6000.c: Likewise.
41949 * config/pa/pa.c: Likewise.
41950 * config/stormy16/stormy16.c: Likewise.
41951 * config/cris/cris.c: Likewise.
41952 * config/arc/arc.md: Likewise.
41953 * config/arc/arc.c: Likewise.
41954 * config/sh/sh.md: Likewise.
41955 * config/sh/sh.c: Likewise.
41956 * config/frv/frv.c: Likewise.
41957
41958 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41959
41960 PR sanitizer/64265
41961 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
41962 call as cleanup of the whole body.
41963 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
41964 * tsan.c (replace_func_exit): New function.
41965 (instrument_func_exit): Moved earlier.
41966 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
41967 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
41968 been found.
41969 (tsan_pass): Don't call instrument_func_exit.
41970 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
41971 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
41972 inlining.
41973
41974 PR sanitizer/64344
41975 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
41976 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
41977 it to libubsan handler instead of EXPR. Fold comparisons earlier,
41978 if the result is integer_zerop, return NULL_TREE.
41979 * convert.c (convert_to_integer): Pass expr as ARG.
41980
41981 PR tree-optimization/64465
41982 * tree-inline.c (redirect_all_calls): During inlining
41983 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
41984 changed the stmt to a non-throwing call.
41985
41986 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41987
41988 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
41989 etc markup throughout the file.
41990
41991 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
41992
41993 Enable experimental TSAN support for Ada.
41994 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
41995
41996 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41997
41998 PR tree-optimization/64494
41999 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42000 clear SSA_NAME_ANTI_RANGE_P flag.
42001
42002 2015-01-05 Marek Polacek <polacek@redhat.com>
42003
42004 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42005
42006 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42007
42008 Update copyright years.
42009
42010 * gcc.c (process_command): Update copyright notice dates.
42011 * gcov-dump.c: Ditto.
42012 * gcov.c: Ditto.
42013 * doc/cpp.texi: Bump @copying's copyright year.
42014 * doc/cppinternals.texi: Ditto.
42015 * doc/gcc.texi: Ditto.
42016 * doc/gccint.texi: Ditto.
42017 * doc/gcov.texi: Ditto.
42018 * doc/install.texi: Ditto.
42019 * doc/invoke.texi: Ditto.
42020
42021 * auto-profile.c, auto-profile.h: Fix up Copyright line.
42022
42023 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
42024
42025 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42026 verb tense, etc.
42027 ([-fvtable-verify], [-fvtv-debug]): Likewise.
42028 ([-Wabi]): Likewise.
42029 ([-fmessage-length]): Likewise.
42030 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42031 ([-Wno-discarded-qualifiers]): Likewise.
42032 ([-Wnodiscarded-array-qualifiers]): Likewise.
42033 ([-Wno-virtual-move-assign]): Likewise.
42034 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42035 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42036 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42037 ([-fsanitize-undefined-trap-on-error]): Likewise.
42038 ([-floop-interchange]): Likewise.
42039 ([-ftree-coalesce-inlined-vars]): Likewise.
42040 ([-fvect-cost-model]): Likewise.
42041 ([-flto]): Likewise.
42042 ([--param]): Likewise.
42043 (Spec Files): Likewise.
42044 ([-mstrict-align]): Likewise.
42045 ([-mfix-cortex-a53-835769]): Likewise.
42046 ([-march], [-mtune]): Likewise.
42047 ([-mpic-register]): Likewise.
42048 ([-munaligned-access]): Likewise.
42049 ([-msp8]): Likewise.
42050 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42051 (AVR Built-in Macros): Likewise.
42052 ([-mpreferred-stack-boundary]): Likewise.
42053 ([-mtune-crtl]): Likewise.
42054 ([-mashf]): Likewise.
42055 ([-mmcu=]): Likewise.
42056 ([-minrt]): Likewise.
42057 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42058 ([-mupper-regs]): Likewise.
42059 ([-matomic-model]): Likewise.
42060 ([-mdiv]): Likewise.
42061 ([-mzdcbranch]): Likewise.
42062 ([-mdisable-callt]): Likewise.
42063 ([-msoft-float]): Likewise.
42064 ([-m8byte-align]): Likewise.
42065 ([-fstack-reuse]): Likewise.
42066
42067 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42068
42069 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42070 Fix markup, light copy-editing.
42071 ([-fauto-profile]): Rewrite to fix formatting and content
42072 problems.
42073
42074 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42075
42076 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42077 Copy-edit description.
42078 ([-fisolate-erroneous-paths-attribute]): Likewise.
42079 * common.opt (fisolate-erroneous-paths-dereference):
42080 Copy-edit description.
42081 (fisolate-erroneous-paths-attribute): Likewise.
42082
42083 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42084
42085 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42086 tidy grammar.
42087
42088 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42089
42090 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42091 ([-fvtv-debug]): Likewise.
42092 ([-Wc++-compat]): Likewise.
42093 ([-Wc++11-compat]): Likewise.
42094 ([-Wc++14-compat]): Likewise.
42095 ([-Wno-sized-deallocation]): Likewise.
42096 ([-femit-class-debug-always]): Likewise.
42097 ([-femit-struct-debug-detailed]): Likewise.
42098 ([-fno-keep-inline-dllexport]): Likewise.
42099 ([-fira-algorithm]): Likewise.
42100 ([-fira-region]): Likewise.
42101 ([-flra-remat]): Likewise.
42102 ([-fipa-ra]): Likewise.
42103 ([-fhoist-adjacent-loads]): Likewise.
42104 ([-fisolate-erroneous-paths-dereference]): Likewise.
42105 ([-fisolate-erroneous-paths-attribute]): Likewise.
42106 ([-ftree-switch-conversion]): Likewise.
42107 ([-ftree-tail-merge]): Likewise.
42108 ([-ftree-loop-if-convert]): Likewise.
42109 ([-ftree-loop-if-convert-stores]): Likewise.
42110 ([-ftree-loop-distribution]): Likewise.
42111 ([-ftree-loop-distribute-patterns]): Likewise.
42112 ([-flto-compression-level]): Likewise.
42113 ([-flto-report]): Likewise.
42114 ([-flto-report-wpa]): Likewise.
42115 ([-fuse-linker-plugin]): Likewise.
42116 ([-mfix-cortex-a53-835769]): Likewise.
42117 ([-mno-fix-cortex-a53-835769]): Likewise.
42118 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42119 explicit listing; add a note to the discussion indicating they
42120 exist. Reorder table to group similar options. Add missing
42121 @opindex entries. Add @need commands throughout the table to
42122 allow it to be split across multiple pages.
42123 ([-m8bit-idiv]): Fix @opindex.
42124 ([-mavx256-split-unaligned-load]): Likewise.
42125 ([-mavx256-split-unaligned-store]): Likewise.
42126 ([-mstack-protector-guard]): Likewise.
42127 ([-mcpu=]): Likewise.
42128 ([-mcpu]): Likewise.
42129 ([-mpointer-size=]): Likewise.
42130
42131 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
42132
42133 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42134 instead of `m' constraint. Likewise for unnamed movb comparison
42135 patterns using reg_before_reload_operand predicate.
42136 * config/pa/predicates.md (reg_before_reload_operand): Tighten
42137 predicate to reject register index and LO_SUM DLT memory forms
42138 after reload.
42139
42140 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42141
42142 * doc/invoke.texi (Option Summary): Fix spelling of
42143 -fdevirtualize-at-ltrans.
42144 ([-fdevirtualize]): Fix markup.
42145 ([-fdevirtualize-speculatively]): Fix typo.
42146 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
42147 implementor-speaky.
42148 * common.opt (fdevirtualize-at-ltrans): Likewise.
42149 * ipa-devirt.c: Fix typos in comments throughout the file.
42150 (ipa_devirt): Fix typos in format strings for dump output.
42151
42152 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42153
42154 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42155 discussion of defaults, light copy-editing.
42156
42157 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42158
42159 * tsan.c (instrument_expr): corrected previous checkin.
42160
42161 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42162
42163 Instrument bit field and unaligned accesses for TSAN.
42164 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42165 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42166 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42167 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42168 unaligned memory regions.
42169
42170 2015-01-01 Anthony Green <green@moxielogic.com>
42171
42172 * config/moxie/predicates.md (moxie_general_movsrc_operand):
42173 Restrict move source register offsets to 16 bits.
42174 \f
42175 Copyright (C) 2015 Free Software Foundation, Inc.
42176
42177 Copying and distribution of this file, with or without modification,
42178 are permitted in any medium without royalty provided the copyright
42179 notice and this notice are preserved.