]> gcc.gnu.org Git - gcc.git/blob - gcc/ChangeLog
7d5e7aa21ee588e2f3e8c31af8731204f06d46b5
[gcc.git] / gcc / ChangeLog
1 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
2
3 * (cstore<mode>4_signed): New expander.
4 (cstore<mode>4): Call it.
5
6 2015-12-04 Jakub Jelinek <jakub@redhat.com>
7
8 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
9
10 PR tree-optimization/68680
11 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
12 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
13 by name.
14
15 PR tree-optimization/68671
16 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
17 blocks starting with the successor of first bb we've modified
18 and ending with last_bb call reset_flow_sensitive_info_in_bb.
19
20 2015-12-04 Jeff Law <law@redhat.com>
21
22 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
23 indicating if a gimple conditional was optimized to true/false.
24 (reassociate_bb): Bubble up return value from
25 maybe_optimize_range_tests.
26 (do_reassoc): Similarly, but for reassociate_bb.
27 (execute_reassoc): Return TODO_cleanup_cfg as needed.
28
29 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30
31 * config/aarch64/aarch64.c (aarch64_override_options_internal):
32 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
33 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
34 does not affect the assembler directives.
35
36 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
37
38 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
39 emit .machine and .machinemode to the top of the assembler file.
40 (TARGET_ASM_FILE_START): Provide target hook.
41 (s390_asm_output_machine_for_arch): Protect with
42 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
43
44 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
45
46 * config/s390/s390.opt (s390_arch_string): Remove.
47 (s390_tune_string): Likewise.
48 (s390_cost_pointer): Add Variable.
49 (s390_tune_flags): Add TargetVariable.
50 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
51 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
52 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
53 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
54 (mwarn-framesize=): Save option.
55 (mno-stack-guard, mno-stack-guard): New option.
56 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
57 (mwarn-framesize=): Convert to UInteger (negative values are rejected
58 now).
59 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
60 macros changeable through the GCC target pragma into a separate
61 function.
62 (s390_cpu_cpp_builtins): Likewise.
63 (s390_pragma_target_parse): New function, implement GCC target pragma
64 if enabled.
65 (s390_register_target_pragmas): Register s390_pragma_target_parse if
66 available.
67 * common/config/s390/s390-common.c (s390_handle_option):
68 Export.
69 Move setting s390_arch_flags to s390.c.
70 Remove s390_tune_flags.
71 Allow 0 as argument to -mstack-size (switch to default value).
72 Allow 0 as argument to -mstack-guard (switch off).
73 Remove now unnecessary explicit parsing code for -mwarn-framesize.
74 * config/s390/s390-protos.h (s390_handle_option): Export.
75 (s390_valid_target_attribute_tree): Export.
76 (s390_reset_previous_fndecl): Export.
77 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
78 and end of HTM and VX builtins.
79 (s390_asm_output_function_prefix): Declare hook.
80 (s390_asm_declare_function_size): Likewise.
81 * config/s390/s390-builtins.h (B_GROUP): Use macro.
82 * config/s390/s390-opts.h: Add comment about processor_type usage.
83 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
84 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
85 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
86 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
87 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
88 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
89 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
90 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
91 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
92 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
93 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
94 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
95 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
96 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
97 undefined.
98 (vec_all_nan): Rewrite as macro using statement expressions to avoid
99 that the vector keyword needs to be defined when including the file.
100 (vec_all_numeric): Likewise.
101 (vec_any_nan): Likewise.
102 (vec_any_numeric): Likewise.
103 * config/s390/s390.c (s390_previous_fndecl): New static variable.
104 (s390_set_current_function): New function.
105 (s390_cost): Wrapper macro to allow defining the cost table pointer in
106 the options file.
107 (processor_table): Table for march= and mtune= parsing.
108 (s390_init_builtins): Enable all builtins and types unconditionally.
109 (s390_expand_builtin): Generate an error message if builtin is not
110 supported by current options.
111 Correct an error message.
112 (s390_function_specific_restore): New function to set s390_cost.
113 (s390_asm_output_machine_for_arch): New function for emitting .machine
114 and .machinmode directives to the assembler file.
115 (s390_asm_output_function_prefix): Likewise.
116 (s390_asm_declare_function_size): Likewise.
117 (s390_asm_output_function_label): Add mdebug output for feature testing.
118 (s390_option_override): Move implementation into internal function.
119 (s390_option_override_internal): Likewise.
120 Implement option overriding based on current options.
121 (s390_valid_target_attribute_inner_p): New function implementing target
122 attribute logic.
123 (s390_valid_target_attribute_tree): Likewise.
124 (s390_valid_target_attribute_p): Likewise.
125 (s390_reset_previous_fndecl): Likewise.
126 (s390_set_current_function): Likewise.
127 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
128 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
129 (TARGET_OPTION_RESTORE): Likewise.
130 * doc/extend.texi: S390: Document target attribute and pragma.
131 * config.in: Regenerated.
132 * configure: Regenerated.
133 * configure.ac: S390: Check for .machinemode and .machine in gas.
134 S390: Check for architecture modifiers support in gas.
135
136 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
137
138 * c-family/c-common.c (c_common_attribute_table[]): Update max arguments
139 count for "simd" attribute.
140 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
141 * doc/extend.texi ("simd"): Describe new flags.
142
143 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
144
145 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
146 operand checked for alignment.
147
148 2015-12-04 Nathan Sidwell <nathan@acm.org>
149
150 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
151 emission too. Change 'no_arg_types' to 'prototyped'.
152 (write_fn_proto): Use write_one_arg for stdarg, static chain &
153 main.
154 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
155
156 2015-12-04 Richard Biener <rguenther@suse.de>
157
158 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
159 member and initialize it.
160 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
161 if necessary.
162 (sccvn_dom_walker::before_dom_children): If unreachable_dom
163 is set BB is not reachable either. Set unreachable_dom
164 if not set and BB is unreachable.
165
166 2015-12-04 Richard Biener <rguenther@suse.de>
167
168 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
169 query with GATHER_STATISTICS.
170
171 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
172
173 PR middle-end/65958
174 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
175 fields, add keep_stack and reorder them.
176 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
177 set it to false. Do not insert a stack save/restore pair if it has
178 been set to true by the gimplification of the statements.
179 Restore it to the saved value on exit if it is still false.
180 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
181 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
182 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
183 * doc/extend.texi (Variable Length): Document new behavior.
184 * doc/generic.texi (Blocks): Document new handling of VLAs.
185
186 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
187 Tristan Gingold <gingold@adacore.com>
188
189 PR middle-end/65958
190 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
191 Declare.
192 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
193 UNSPEC_PROBE_STACK_RANGE.
194 (blockage): New instruction.
195 (probe_stack_range_<PTR:mode>): Likewise.
196 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
197 function.
198 (aarch64_output_probe_stack_range): Likewise.
199 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
200 static builtin stack checking is enabled.
201 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
202 Define to 1.
203
204 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
205
206 PR target/68214
207 * config/arm/arm.md (*call_mem): Delete pattern.
208 (*call_value_mem): Likewise.
209 * config/arm/arm.c (output_call_mem): Delete.
210 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
211
212 2015-12-04 Bin Cheng <bin.cheng@arm.com>
213
214 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
215 aarch64_sync_memory_operand.
216
217 2015-12-04 Jakub Jelinek <jakub@redhat.com>
218
219 PR target/68655
220 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
221 (expand_vec_perm_1): Use it and recurse if everything else
222 failed. Use nd.perm instead of perm2.
223 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
224 instead of gen_lowpart for the target.
225 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
226 and recurse if everything else failed.
227
228 2015-12-04 Richard Biener <rguenther@suse.de>
229
230 PR middle-end/68636
231 * builtins.c (get_pointer_alignment_1): Take care of byte to
232 bit alignment computation overflow.
233
234 2015-12-04 Richard Biener <rguenther@suse.de>
235
236 PR middle-end/67438
237 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
238 a constant with single_use.
239
240 2015-12-04 Bin Cheng <bin.cheng@arm.com>
241 Jiong Wang <jiong.wang@arm.com>
242
243 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
244 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
245
246 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
247
248 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p)
249 Short circuit for !flag_strict_aliasing
250 (get_alias_set): Remove flag_strict_aliasing check.
251 (new_alias_set): Likewise.
252
253 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
254
255 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
256 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
257 (exynosm1_regmove_cost): Likewise.
258 (exynosm1_vector_cost): Likewise.
259 (exynosm1_tunings): Likewise.
260 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
261 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
262
263 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
264 Richard Biener <richard.guenther@gmail.com>
265
266 * cfgexpand.c (pass_expand::execute): Replace call to
267 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
268 * tree-ssa.c (delete_tree_ssa): Likewise.
269 * function.c (set_cfun): Call redirect_edge_var_map_empty.
270 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
271 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
272 (redirect_edge_var_map_empty): New.
273 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
274 (redirect_edge_var_map_empty): New.
275
276 2015-12-03 Jeff Law <law@redhat.com>
277
278 PR tree-optimization/68599
279 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
280 in call to loop_optimizer_init.
281 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
282 optimization to drop the assumptions/infinite notations if
283 the loop has a single exit.
284
285 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
286
287 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
288 the pattern cannot FAIL.
289 (vec_store_lanes@var{m}@var{n}): Likewise.
290 (maskload@var{m}@var{n}): Likewise.
291 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
292 in the name of the pattern.
293 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
294 floating-point mode and that all operands have that mode.
295 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
296 pattern cannot FAIL.
297 (sqrt@var{m}2): Document that mode m must be a scalar or vector
298 floating-point mode, that all operands have that mode, and that
299 the patterns cannot FAIL. Remove previous documentation referring
300 to @code{double} and @code{float}.
301 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
302 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
303 (copysign@var{m}3): Likewise.
304 (exp@var{m}2): Likewise. Explicitly state the base.
305 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
306 (btrunc@var{m}2, rint@var{m}2): Likewise.
307 (round@var{m}2): Likewise. Fix incorrect description of rounding
308 effect.
309 (ceil@var{m}2): As for round@var{m}2.
310 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
311 the instruction must not raise an inexact condition.
312 (scalb@var{m}3): Document previously-undocumented pattern
313 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
314 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
315 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
316 (significand@var{m}2): Likewise.
317 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
318 mode m and operand 0 is defined more freely. Document that @var{m}
319 can be a scalar or vector integer mode and that the pattern is not
320 allowed to FAIL.
321 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
322 (clrsb@var{m}2): Likewise, except that the description of the
323 mode was missing in this case.
324
325 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
326
327 * internal-fn.def (RSQRT): New function.
328 * optabs.def (rsqrt_optab): New optab.
329 * doc/md.texi (rsqrtM2): Document.
330 * target.def (builtin_reciprocal): Replace gcall argument with
331 a function decl. Restrict hook to machine functions.
332 * doc/tm.texi: Regenerate.
333 * targhooks.h (default_builtin_reciprocal): Update prototype.
334 * targhooks.c (default_builtin_reciprocal): Likewise.
335 * tree-ssa-math-opts.c: Include internal-fn.h.
336 (internal_fn_reciprocal): New function.
337 (pass_cse_reciprocals::execute): Call it, and build a call to an
338 internal function on success. Only call targetm.builtin_reciprocal
339 for machine functions.
340 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
341 second argument.
342 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
343 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
344 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
345 machine functions.
346 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
347 (aarch64_builtin_reciprocal): Replace gcall argument with a
348 function decl. Use use_rsqrt_p. Remove optimize_size check.
349 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
350 (aarch64_optab_supported_p): New function.
351 (TARGET_OPTAB_SUPPORTED_P): Define.
352 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
353 (rsqrt<mode>2): ...this.
354 * config/i386/i386.c (use_rsqrt_p): New function.
355 (ix86_builtin_reciprocal): Replace gcall argument with a
356 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
357 check. Only handle machine functions.
358 (ix86_optab_supported_p): Handle rsqrt_optab.
359 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
360 (rs6000_builtin_reciprocal): Replace gcall argument with a
361 function decl. Remove optimize_insn_for_size_p check.
362 Only handle machine functions.
363 (rs6000_optab_supported_p): New function.
364
365 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
366
367 PR target/68471
368 PR target/68472
369 * config/i386/i386.c (ix86_mitigate_rop): Don't call
370 compute_bb_for_insn again. Call df_insn_rescan_all.
371 * config/i386/i386.md (set_got_rex64): Override modrm_class.
372
373 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
374
375 2015-12-03 Nathan Sidwell <nathan@acm.org>
376
377 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
378 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
379 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
380 (nvptx_option_override): Set data ares for worker vars.
381 (nvptx_addr_space_from_sym): Delete.
382 (nvptx_encode_section_info): New.
383 (section_for_sym, section_for_decl): New.
384 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol
385 flags,
386 (nvptx_section_from_addr_space): Delete.
387 (nvptx_section_for_decl): Delete.
388 (nvptx_output_aligned, nvptx_declare_object_name,
389 nvptx_assemble_undefined_decl): Use section_for_decl, remove
390 unnecessary checks.
391 (nvptx_print_operand): Add 'D', adjust 'A'.
392 (nvptx_expand_worker_addr): Adjust unspec generation.
393 (TARGET_ENCODE_SECTION_INFO): Override.
394 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
395 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
396 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
397 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
398 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
399 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
400 (UNSPEC_TO_GENERIC): New.
401 (nvptx_register_or_symbolic_operand): Delete.
402 (cvt_code, cvt_name, cvt_str): Delete.
403 (convaddr_<cvt_name><mode> [P]): Delete.
404 (convaddr_<mode> [P]): New.
405
406 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
407
408 PR rtl-optimization/68624
409 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
410 blocks if they exist and simplify the logic choosing the order to emit
411 them in.
412
413 2015-12-03 Richard Biener <rguenther@suse.de>
414
415 PR tree-optimization/66051
416 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
417 on load group size. Do not pass in vectorization_factor.
418 (vect_transform_slp_perm_load): Do not require any permute support.
419 (vect_build_slp_tree): Do not pass in vectorization factor.
420 (vect_analyze_slp_instance): Do not compute vectorization
421 factor estimate. Use vector size instead of vectorization factor
422 estimate to split store groups for BB vectorization.
423
424 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
425
426 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
427 DECL as return value is allowed to have NULL bounds.
428
429 2015-12-03 Tom de Vries <tom@codesourcery.com>
430
431 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
432 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
433 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
434
435 2015-12-03 Richard Biener <rguenther@suse.de>
436
437 PR tree-optimization/67800
438 PR tree-optimization/68333
439 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
440 restriction to reduction contexts but allow SLP reductions as well.
441 (vect_recog_sad_pattern): Likewise.
442 (vect_recog_widen_sum_pattern): Likewise.
443
444 2015-12-03 Richard Biener <rguenther@suse.de>
445
446 PR tree-optimization/68639
447 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
448 belonging to different loops.
449 (vect_analyze_data_ref_accesses): Likewise.
450
451 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
452
453 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
454 Remove "prefix_extra".
455 (define_insn "vec_extract_hi_<mode>_mask"): New.
456 (define_insn "vec_extract_hi_<mode>"): Remove masking.
457
458 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
459
460 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
461 (propagate_pure_const): Use it; fix comments and optimize loops.
462
463 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
464
465 * ipa-pure-const.c (ignore_edge): Rename to ...
466 (ignore_edge_for_nothrow) ... this one; also ignore eges to
467 interposable functions or ones that can not throw.
468 (propagate_nothrow): Fix handling of availability.
469
470 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
471
472 PR ipa/68184
473 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
474
475 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
476 Sebastian Pop <s.pop@samsung.com>
477
478 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle isl_ast_op_zdiv_r.
479 (gcc_expression_from_isl_expr_op): Same.
480
481 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
482 Sebastian Pop <s.pop@samsung.com>
483
484 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
485 that insertion point is still in the region.
486
487 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
488 Sebastian Pop <s.pop@samsung.com>
489
490 PR tree-optimization/68550
491 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
492 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
493 statements.
494
495 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
496
497 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
498 * configure: Regenerate.
499 * config.in: Regenerate.
500 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
501 function.
502 (rs6000_output_function_prologue): Use it instead of checking
503 cfun->machine->r2_setup_needed. Use internal labels instead of
504 GNU as local label extension. Handle ELFv2 large code model.
505 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
506 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
507
508 2015-12-02 Jakub Jelinek <jakub@redhat.com>
509
510 PR target/68647
511 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
512 New functions.
513 (expand_unop): Use them.
514
515 2015-12-02 Marek Polacek <polacek@redhat.com>
516
517 PR c++/68653
518 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
519
520 2015-12-02 Nathan Sidwell <nathan@acm.org>
521
522 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
523 SHUFFLE defines.
524 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
525
526 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
527 Sebastian Pop <s.pop@samsung.com>
528
529 * graphite-dependences.c (scop_get_reads): Add extra dumps.
530 (scop_get_must_writes): Same.
531 (scop_get_may_writes): Same.
532 (compute_deps): Same.
533 * graphite-sese-to-poly.c (bounds_are_valid): New.
534 (pdr_add_data_dimensions): Call bounds_are_valid.
535
536 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
537 Sebastian Pop <s.pop@samsung.com>
538
539 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
540 * graphite-poly.c (apply_poly_transforms): Same.
541 * graphite.c (gate_graphite_transforms): Same.
542 * toplev.c (process_options): Same.
543
544 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
545
546 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
547 (mips_output_probe_stack_range): Rotate the loop and simplify.
548
549 2015-12-02 David Sherwood <david.sherwood@arm.com>
550
551 * config/aarch64/aarch64.md: New pattern.
552 * config/aarch64/aarch64-simd.md: Likewise.
553 * config/aarch64/iterators.md: New unspecs, iterators.
554
555 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
556
557 * dwarf2out.c (dwar2out_var_location): In addition to notes,
558 process indirect calls whose target is compile-time known.
559 Enhance pattern matching to get the SYMBOL_REF they embed.
560 (gen_subprogram_die): Handle such calls.
561 * final.c (final_scan_insn): For call instructions, invoke the
562 var_location debug hook only after the call has been emitted.
563
564 2015-12-02 Tom de Vries <tom@codesourcery.com>
565
566 * gimplify.c (enum gimplify_omp_var_data): Add enum value
567 GOVD_MAP_FORCE.
568 (oacc_default_clause): Fix default for scalars in oacc kernels.
569 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
570
571 2015-12-02 Tom de Vries <tom@codesourcery.com>
572
573 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
574 parameter base_pointers_restrict.
575 (omp_target_base_pointers_restrict_p): New function.
576 (scan_omp_target): Call scan_sharing_clauses with base_pointers_restrict
577 arg.
578
579 2015-12-02 Nathan Sidwell <nathan@acm.org>
580
581 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
582 (nvptx_underlying_object_mode): Delete.
583 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
584 (output_reg): New.
585 (nvptx_declare_function_name): Use output_reg. Remove punning
586 buffer.
587 (nvptx_output_mov_insn): New.
588 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
589 Use output_reg. Merge 't' and 'u' handling.
590 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
591 (struct machine_function): Remvoe punning_buffer_size.
592 (REGISTER_NAMES): Remove %punbuffer.
593 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
594 UNSPEC_CPLX_HIGHPART): Delete.
595 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
596 nvptx_output_mov_insn.
597 (*mov<mode>_insn [SDFM): Reorder constraints to match integer
598 moc. Use nvptx_output_mov_insn.
599 (highpartscsf2, set_highpartscsf2, lowpartscsf2,
600 set_lowpartscsf2): Delete.
601 (mov<mode> [SDCM]): Delete.
602
603 2015-12-02 Richard Biener <rguenther@suse.de>
604
605 * tree.h (tree_invariant_p): Declare.
606 * tree.c (tree_invariant_p): Export.
607 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
608 create SAVE_EXPRs but reject patterns if we would need to.
609
610 2015-12-02 Tom de Vries <tom@codesourcery.com>
611
612 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
613 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
614
615 >>>>>>> .r231221
616 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
617
618 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
619 (cstore<mode>4): Use it.
620
621 2015-12-02 Richard Biener <rguenther@suse.de>
622
623 PR tree-optimization/68625
624 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
625 cleanup_control_flow_bb.
626 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
627 on all BBs, then cleanup_tree_cfg_bb and finally iterate
628 over the worklist doing both.
629
630 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
631
632 PR tree-optimization/68432
633 * coretypes.h (optimization_type): New enum.
634 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
635 * doc/tm.texi: Regenerate.
636 * target.def (optab_supported_p): New hook.
637 * targhooks.h (default_optab_supported_p): Declare.
638 * targhooks.c (default_optab_supported_p): New function.
639 * predict.h (function_optimization_type): Declare.
640 (bb_optimization_type): Likewise.
641 * predict.c (function_optimization_type): New function.
642 (bb_optimization_type): Likewise.
643 * optabs-query.h (convert_optab_handler): Define an overload
644 that takes an optimization type.
645 (direct_optab_handler): Likewise.
646 * optabs-query.c (convert_optab_handler): Likewise.
647 (direct_optab_handler): Likewise.
648 * internal-fn.h (direct_internal_fn_supported_p): Take an
649 optimization_type argument.
650 * internal-fn.c (direct_optab_supported_p): Likewise.
651 (multi_vector_optab_supported_p): Likewise.
652 (direct_internal_fn_supported_p): Likewise.
653 * builtins.c (replacement_internal_fn): Update call to
654 direct_internal_fn_supported_p.
655 * gimple-match-head.c (build_call_internal): Likewise.
656 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
657 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
658 * tree.c (maybe_build_call_expr_loc): Likewise.
659 * config/i386/i386.c (ix86_optab_supported_p): New function.
660 (TARGET_OPTAB_SUPPORTED_P): Define.
661 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
662 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
663 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
664 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
665 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
666 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
667
668 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
669
670 * Makefile.in (GENSUPPORT_H): New macro.
671 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
672 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
673 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
674 (build/genconstants.o, build/genextract.o, build/genflags.o)
675 (build/gentarget-def.o): Use it.
676 (build/genemit.o): Likewise. Depend on internal-fn.def.
677 * genopinit.c: Move block comment to optabs.def.
678 (optab_tag, optab_def): Move to gensupport.h
679 (pattern): Likewise, renaming to optab_pattern.
680 (match_pattern): Move to gensupport.c
681 (gen_insn): Use find_optab.
682 (patterns, pattern_cmp): Replace pattern with optab_pattern.
683 (main): Likewise. Use num_optabs.
684 * optabs.def: Add comment that was previously in genopinit.c.
685 * gensupport.h (optab_tag): Moved from genopinit.c
686 (optab_def): Likewise, expanding commentary.
687 (optab_pattern): Likewise, after renaming from pattern.
688 (optabs, num_optabs, find_optab): Declare.
689 * gensupport.c (optabs): Moved from genopinit.c.
690 (num_optabs): New variable.
691 (match_pattern): Moved from genopinit.c.
692 (find_optab): New function, extracted from genopinit.c:gen_insn.
693 * genemit.c (nofail_optabs): New variable.
694 (emit_c_code): New function.
695 (gen_expand): Check whether the instruction is an optab that isn't
696 allowed to fail. Call emit_c_code.
697 (gen_split): Call emit_c_code here too.
698 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
699
700 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
701
702 * config/s390/predicates.md (const_mask_operand): New predicate.
703 * config/s390/s390-builtins.def: Set a smaller bitmask for a few builtins.
704 * config/s390/vector.md: Change predicate from immediate_operand
705 to either const_int_operand or const_mask_operand. Add special
706 insn conditions on patterns which have to exclude certain values.
707 * config/s390/vx-builtins.md: Likewise.
708
709 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
710
711 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
712 mode from DI to SI.
713
714 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
715
716 * config/s390/s390-builtin-types.def: New builtin types added.
717 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
718 * config/s390/s390.c (s390_expand_builtin): Always truncate
719 constants to the mode in the pattern.
720 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
721 respective builtin __builtin_s390_vec_splat_*.
722
723 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
724
725 * config/s390/s390-builtin-types.def: Sort builtin types.
726
727 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
728
729 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
730 condition for the RT flag.
731
732 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
733
734 * config/s390/constraints.md ("jKK"): New constraint.
735 * config/s390/s390.c (tm-constrs.h): Include for
736 satisfies_constraint_*.
737 (s390_legitimate_constant_p): Allow jKK constants. Use
738 satisfies_constraint_* also for the others.
739 (legitimate_reload_vector_constant_p): Likewise.
740 (print_operand): Allow h output modifier on vectors.
741 * config/s390/vector.md ("mov<mode>"): Add vrepi.
742
743 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
744
745 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
746 latter I->K.
747
748 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
749
750 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and
751 strvg.
752 ("bswaphi2"): New pattern.
753 New splitter for HI reg-reg bswap.
754
755 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
756
757 PR driver/68029
758 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
759 if it is the first parameter.
760
761 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
762
763 PR tree-optimization/68577
764 * tree-vect-stmts.c (simple_integer_narrowing): New function.
765 (vectorizable_call): Restrict internal function handling
766 to NONE and NARROW cases, using simple_integer_narrowing
767 to test for the latter. Add cost of narrowing operation
768 and insert it where necessary.
769
770 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
771
772 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
773 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
774 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
775
776 2015-12-01 Nathan Sidwell <nathan@acm.org>
777
778 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
779 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
780 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
781 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
782 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
783 (init_output_initializer): Call write_var_marker.
784 (nvptx_output_aligned_decl): New.
785 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
786
787 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
788
789 * c-common.c (parse_optimize_options): Do not silently ignore
790 -fstrict-aliasing changes.
791
792 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
793
794 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
795 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
796 stream TYPE_ALIAS_SET.
797 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
798 stream TYPE_ALIAS_SET.
799
800 2015-12-01 Nathan Sidwell <nathan@acm.org>
801
802 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
803 consider mode.
804
805 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
806
807 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
808 indirection for large and small code models.
809 (adjust_vperm): Likewise.
810
811 2015-12-01 Julian Brown <julian@codesourcery.com>
812 Cesar Philippidis <cesar@codesourcery.com>
813 James Norris <James_Norris@mentor.com>
814
815 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
816 support.
817 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
818 (is_gimple_omp_oacc): Add support for above.
819 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
820 (omp_notice_variable): Diagnose undefined implicit uses of
821 use_device variables in offloaded regions.
822 (gimplify_scan_omp_clauses): Add host_data, use_device
823 support. Diagnose undefined mapping of use_device variables in
824 OpenACC clauses.
825 (gimplify_omp_workshare): Add host_data support.
826 (gimplify_expr): Likewise.
827 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
828 * omp-low.c (lookup_decl_in_outer_ctx)
829 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
830 host_data regions.
831 (scan_sharing_clauses): Support use_device.
832 (check_omp_nesting_restrictions): Support host_data.
833 (expand_omp_target): Support host_data.
834 (lower_omp_target): Skip over outer host_data regions when looking
835 up decls. Support use_device.
836 (make_gimple_omp_edges): Support host_data.
837 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
838 clause.
839
840 2015-12-01 Marek Polacek <polacek@redhat.com>
841
842 PR middle-end/68582
843 * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
844 for VAR_DECLs.
845
846 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
847
848 PR tree-optimization/68474
849 * tree-call-cdce.c (use_internal_fn): Protect call to
850 gen_shrink_wrap_conditions.
851
852 2015-12-01 Christian Bruel <christian.bruel@st.com>
853
854 PR target/68617
855 * config/arm/arm.opt (unaligned_access): Save.
856 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
857 * config/arm/arm.c (arm_option_override): Move unaligned_access setting
858 (arm_option_override_internal): ... here.
859 * config/arm/arm.h (TARGET_32BIT_P): New macro.
860
861 2015-12-01 Richard Biener <rguenther@suse.de>
862
863 PR tree-optimization/68379
864 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
865 always base loads on the first used DR of a group.
866 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
867 Compute alignment of the first scalar element unconditionally.
868
869 2015-12-01 Richard Biener <rguenther@suse.de>
870
871 PR middle-end/68590
872 * genmatch.c (struct capture_info): Add match_use_count.
873 (capture_info::walk_match): Increment match_use_count.
874 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
875 replacements in a save_expr if they occur more often than
876 in the original expression.
877
878 2015-12-01 Richard Biener <rguenther@suse.de>
879
880 PR ipa/68470
881 * ipa-split.c (split_function): Handle main part not returning.
882
883 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
884
885 PR middle-end/68595
886 * tree-vect-stmts.c (vect_init_vector): Cast boolean
887 scalars to a proper value before building a vector.
888
889 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
890
891 * genattrtab.c (check_attr_test): Take an attr_desc instead of
892 an is_const flag. Put the file_location argument first.
893 Update recursive calls. Improve error messages.
894 (check_attr_value): Take a file location and use it instead
895 of attr->loc. Improve error messages. Update calls to
896 check_attr_test.
897 (check_defs): Update call to check_attr_value.
898 (make_canonical): Likewise.
899 (gen_attr): Likewise.
900 (main): Likewise.
901 (gen_insn_reserv): Update call to check_attr_test.
902
903 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
904
905 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
906
907 2015-12-01 Richard Biener <rguenther@suse.de>
908
909 PR middle-end/68590
910 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
911
912 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
913
914 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
915 odr_type_p): Move to ...
916 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
917 odr_type_p): here; miscro-optimize.
918
919 2015-12-01 Bin Cheng <bin.cheng@arm.com>
920
921 PR tree-optimization/68529
922 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
923 Compute no-overflow information for control iv.
924 (number_of_iterations_lt, number_of_iterations_le): Add new param.
925 (number_of_iterations_cond): Pass new argument to above functions.
926
927 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
928
929 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
930 inlining -fno-strict-aliasing into -fstrict-aliasing body.
931
932 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
933 Sebastian Pop <s.pop@samsung.com>
934
935 PR tree-optimization/68565
936 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
937 codegen_error. Fail when rhs of division operations is integer_zerop.
938 (ternary_op_to_tree): Early return on codegen_error.
939 (unary_op_to_tree): Same.
940 (nary_op_to_tree): Same.
941 (gcc_expression_from_isl_expr_op): Same.
942 (gcc_expression_from_isl_expression): Same.
943 (graphite_create_new_loop): On codegen_error continue generating
944 wrong code.
945 (graphite_create_new_loop_guard): Same.
946 (build_iv_mapping): Same.
947 (graphite_create_new_guard): Same.
948
949 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
950 Sebastian Pop <s.pop@samsung.com>
951
952 * graphite-isl-ast-to-gimple.c: Fix dump messages.
953 * graphite-scop-detection.c: Same.
954 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
955
956 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
957
958 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
959 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
960 (convert_local_omp_clauses): Likewise.
961
962 2015-11-30 Tom de Vries <tom@codesourcery.com>
963
964 PR tree-optimization/46032
965 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
966 factored out of ...
967 (find_func_aliases_for_call): ... here.
968 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
969 BUILT_IN_GOMP_PARALLEL.
970 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
971 function.
972
973 2015-11-30 Jakub Jelinek <jakub@redhat.com>
974
975 PR tree-optimization/68501
976 * target.def (builtin_reciprocal): Replace the 3 arguments with
977 a gcall * one, adjust description.
978 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
979 with a gcall * one.
980 * targhooks.c (default_builtin_reciprocal): Likewise.
981 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
982 targetm.builtin_reciprocal even on internal functions, adjust
983 the arguments and allow replacing an internal function with normal
984 built-in.
985 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
986 with a gcall * one. Handle internal fns too.
987 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
988 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
989 * doc/tm.texi (builtin_reciprocal): Document.
990
991 2015-11-30 Richard Biener <rguenther@suse.de>
992
993 PR tree-optimization/68592
994 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
995 on the pattern def sequence.
996
997 2015-11-30 Nathan Sidwell <nathan@acm.org>
998
999 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1000 (write_one_arg): Reorder parms, add 'sep' param.
1001 (nvptx_write_function_decl): Rename to ...
1002 (write_fn_proto): ... here. Do name replacement. Emit linaer
1003 comment marker. Deal with both decls and defns. Simplify argument
1004 formatting.
1005 (write_function_decl_and_comment): Delete.
1006 (write_func_decl_from_insn): Rename to ...
1007 (write_fn_proto_from_insn): ... here. Don't do name replacement.
1008 (nvptx_record_fndecl): Call write_fn_proto.
1009 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1010 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1011 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1012
1013 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
1014
1015 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1016 (define_insn "*k<logic><mode>"): Use new iterator.
1017
1018 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1019
1020 PR target/28115
1021 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1022 (sparc_adjust_cost): Add missing space.
1023
1024 2015-11-30 Richard Biener <rguenther@suse.de>
1025
1026 PR c/68162
1027 * dwarf2out.c (gen_type_die_with_usage): Keep variant types
1028 of arrays.
1029
1030 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1031
1032 * tree-if-conv.c (struct ifc_dr): Add new tree
1033 base_predicate field.
1034 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1035 base ref, DR pairs and store base_predicate for write type DRs.
1036 (ifcvt_memrefs_wont_trap): Guard checks with
1037 -ftree-loop-if-convert-stores flag.
1038
1039 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1040
1041 * cgraph.c (cgraph_node::make_local): No name is unique during
1042 incremental linking.
1043 * cgraph.h (can_be_discarded_p): Update comment; also common and
1044 WEAK in named sections can be discarded; when doing incremental
1045 link do not rely on resolution being the final one.
1046 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1047 When symbol can be discarded, do not rely on resolution info.
1048 * symtab.c (symtab_node::nonzero_address): Take into account that
1049 symbol can be discarded.
1050 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1051 definition correctly.
1052 (function_and_variable_visibility): Do not set unique_name when
1053 incrementally linking.
1054
1055 2015-11-29 Nathan Sidwell <nathan@acm.org>
1056
1057 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1058 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1059 (ctrap<mode>): Use const0_operand.
1060
1061 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1062
1063 * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
1064 dump
1065
1066 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
1067
1068 PR target/28115
1069 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1070 recog_memoized test for insn and check recog_memoized for dep_insn.
1071
1072 2015-11-28 Nathan Sidwell <nathan@acm.org>
1073
1074 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1075 (FRAME_POINTER_CFA_OFFSET): Define.
1076 (struct nvptx_args): Use 'tree' type.
1077 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1078
1079 2015-11-28 Tom de Vries <tom@codesourcery.com>
1080
1081 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1082
1083 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
1084
1085 * doc/invoke.texi (Option Summary): Use negative form of
1086 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1087 sort alphabetically and re-justify.
1088
1089 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
1090
1091 PR rtl-optimization/68536
1092 * lra.c (lra_emit_add): Add code for null base.
1093 * lra-constraints.c (curr_insn_transform): Skip operators for
1094 subreg reloads.
1095
1096 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1097
1098 Revert
1099 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1100
1101 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1102 multiple_sets.
1103 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1104 are not modified by the final modified insns in the basic blocks.
1105
1106 2015-11-27 Nathan Sidwell <nathan@acm.org>
1107
1108 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1109 Don't declare.
1110 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1111 (nvptx_maybe_convert_symbolic_operand): Simplify.
1112 (nvptx_addr_space_from_address): Delete.
1113 (nvptx_print_operand): Adjust 'A' case.
1114
1115 2015-11-27 Richard Biener <rguenther@suse.de>
1116
1117 PR tree-optimization/68559
1118 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1119 peeling for gap checks ...
1120 * tree-vect-stmts.c (vectorizable_load): ... here and relax
1121 for SLP.
1122 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1123 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1124
1125 2015-11-27 Nathan Sidwell <nathan@acm.org>
1126
1127 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
1128 declare.
1129 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1130 (nvptx_record_fndecl): Don't return value, remove force
1131 argument. Require fndecl.
1132 (nvptx_record_libfunc): New.
1133 (nvptx_record_needed_decl): Deteermine how to record decl here.
1134 (nvptx_maybe_record_fnsym): New.
1135 (nvptx_expand_call): Don't record libfuncs here,
1136 (nvptx_maybe_convert_symbolic_operand): Use
1137 nvptx_maye_record_fnsym.
1138 (nvptx_assemble_integer): Reimplement with single switch.
1139 (nvptx_output_call_insn): Register libfuncs here.
1140 (nvptx_file_end): Adjust nvptx_record_fndecl call.
1141 * config/nvptx/nvptx.md (expand_movdi): Don't call
1142 nvptx_record_needed_decl.
1143
1144 2015-11-27 Richard Biener <rguenther@suse.de>
1145
1146 PR tree-optimization/68553
1147 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1148 generation for 1:1 permutations.
1149 (vect_transform_slp_perm_load): Detect 1:1 permutations.
1150
1151 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
1152
1153 * gimple.h (nonbarrier_call_p): Declare.
1154 * gimple.c (nonbarrier_call_p): New function.
1155 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1156 Also increment call phase for ASMs with vdef and potential barrier
1157 calls.
1158
1159 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1160
1161 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1162 multiple_sets.
1163 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1164 are not modified by the final modified insns in the basic blocks.
1165
1166 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1167
1168 PR rtl-optimization/68506
1169 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1170 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
1171 blocks.
1172
1173 2015-11-27 Martin Liska <mliska@suse.cz>
1174
1175 PR c++/68312
1176 * vec.h (release_vec_vec): New function.
1177
1178 2015-11-27 Jakub Jelinek <jakub@redhat.com>
1179
1180 PR tree-optimization/68552
1181 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1182 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
1183 or whether v0 == v1.
1184
1185 2015-11-27 Martin Liska <mliska@suse.cz>
1186
1187 * tree-ssa-uninit.c: Fix whitespaces in the source file.
1188 The change is just automatical.
1189
1190 2015-11-27 Martin Liska <mliska@suse.cz>
1191
1192 * tree-chkp.c (chkp_make_static_bounds): Release buffer
1193 used for string.
1194
1195 2015-11-27 Martin Liska <mliska@suse.cz>
1196
1197 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1198 Do not release memory for comp_alias_ddrs.
1199 * tree-vect-loop.c (destroy_loop_vec_info): Release
1200 the memory for all loop_vec_info.
1201
1202 2015-11-27 Martin Liska <mliska@suse.cz>
1203
1204 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1205 of a local-scope vec.
1206 (struct final_warning_record): Use auto_vec instead
1207 of vec.
1208
1209 2015-11-27 Richard Biener <rguenther@suse.de>
1210
1211 PR tree-optimization/68553
1212 * tree-vect-slp.c (vect_get_mask_element): Remove.
1213 (vect_transform_slp_perm_load): Implement in a simpler way.
1214
1215 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
1216
1217 PR rtl-optimization/67753
1218 PR rtl-optimization/64164
1219 * function.c (assign_parm_setup_block): Right-shift
1220 upward-padded big-endian args when bypassing the stack slot.
1221
1222 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
1223
1224 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1225 `-mcompact-branches='.
1226 (MIPS Options): Likewise.
1227
1228 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1229
1230 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1231
1232 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
1233
1234 * doc/install.texi (Prerequisites): Increase ISL requirement to
1235 0.14 or 0.15.
1236
1237 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1238
1239 * config/aarch64/arm_neon.h
1240 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1241 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1242 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1243 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1244 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1245 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1246 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1247 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1248 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1249 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1250 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1251 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1252
1253 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1254
1255 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1256 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1257 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1258 (vqrdmlshq_s16, vqrdmlshq_s32): New.
1259
1260 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1261
1262 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1263 ARM_FEATURE_QRDMX.
1264
1265 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
1266
1267 PR debug/53927
1268 * tree-nested.c (finalize_nesting_tree_1): Append a field to
1269 hold the frame base address.
1270 * dwarf2out.c (gen_subprogram_die): Generate for
1271 DW_AT_static_link a location description that computes the value
1272 of this field.
1273
1274 2015-11-26 Tom de Vries <tom@codesourcery.com>
1275
1276 revert:
1277 2015-11-25 Tom de Vries <tom@codesourcery.com>
1278
1279 * cfgloop.c (find_single_latch): New function, factored out of ...
1280 (flow_loops_find): ... here.
1281 (verify_loop_structure): Improve verification of loop->latch.
1282 * cfgloop.h (find_single_latch): Declare.
1283 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1284
1285 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1286
1287 * config/aarch64/aarch64-simd-builtins.def:
1288 Add missing changes from r230962.
1289
1290 2015-11-26 Nathan Sidwell <nathan@acm.org>
1291
1292 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1293 arg with name. Don't deal with split regs. Tweak formatting.
1294 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1295 (nvptx_output_call_insn): Don't deal with split regs here.
1296
1297 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1298
1299 * config/aarch64/aarch64-simd-builtins.def
1300 (sqrdmlah, sqrdmlsh): New.
1301 (sqrdmlah_lane, sqrdmlsh_lane): New.
1302 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1303
1304 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1305
1306 * config/aarch64/aarch64-simd.md
1307 (aarch64_sqmovun<mode>): Fix some white-space.
1308 (aarch64_<sur>qmovun<mode>): Likewise.
1309 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1310 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1311 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1312 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1313 (UNSPEC_SQRDMLSH): New.
1314 (SQRDMLH_AS): New.
1315 (rdma_as): New.
1316
1317 2015-11-26 Richard Biener <rguenther@suse.de>
1318
1319 PR tree-optimization/66721
1320 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1321 iteration cost earlier. Re-do analysis without SLP when
1322 vectorization using SLP fails and without has a chance to succeed.
1323
1324 2015-11-26 Richard Biener <rguenther@suse.de>
1325
1326 * genmatch.c (dt_simplify::gen_1): For generic wrap all
1327 multi-result-use captures in a SAVE_EXPR.
1328
1329 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1330
1331 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1332 (TARGET_SIMD_RDMA): New.
1333
1334 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1335
1336 * combine.c (subst): Do not return clobber of zero in widening mult
1337 case. Just return x unchanged if it is a no-op substitution.
1338
1339 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
1340
1341 PR target/68416
1342 * config/i386/i386.h (enum reg_class): Add
1343 bounds registers to ALL_REGS.
1344
1345 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1346
1347 PR tree-optimization/68128
1348 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1349 * gimplify.c: Include gimple-walk.h.
1350 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1351 (omp_notice_variable): Set flags to n->value if n already
1352 exists in target region, but we need to jump to do_outer.
1353 (omp_shared_to_firstprivate_optimizable_decl_p,
1354 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1355 functions.
1356 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1357 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1358 not modified in the body. Call omp_mark_stores for outer
1359 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1360 in the body or on OMP_CLAUSE_LASTPRIVATE.
1361 (gimplify_adjust_omp_clauses): Add body argument, call
1362 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1363 Set OMP_CLAUSE_SHARED_READONLY
1364 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1365 not modified in the body. Call omp_mark_stores for outer
1366 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1367 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1368 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1369 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1370 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1371 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1372 * tree-nested.c (convert_nonlocal_omp_clauses,
1373 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1374 non-local vars or local vars referenced from nested routines.
1375 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1376 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
1377 TREE_READONLY, don't call use_pointer_for_field with non-NULL
1378 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1379
1380 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
1381
1382 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1383 about signed left shift stronger and clarify the cases when they're
1384 broken.
1385
1386 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1387 Bernd Schmidt <bschmidt@redhat.com>
1388
1389 PR rtl-optimization/67226
1390 * calls.c (store_one_arg): Take into account
1391 crtl->args.pretend_args_size when checking for overlap between
1392 arg->value and argblock + arg->locate.offset during sibcall
1393 optimization.
1394
1395 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
1396
1397 * config/aarch64/aarch64.md (cbranch<mode>4): Use
1398 aarch64_fp_compare_operand.
1399 (store_pairsf): Use aarch64_reg_or_fp_zero.
1400 (store_pairdf): Likewise.
1401 (cstore<mode>4): Use aarch64_fp_compare_operand.
1402 (cmov<mode>6): Likewise.
1403 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1404
1405 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
1406 Sebastian Pop <s.pop@samsung.com>
1407
1408 PR tree-optimization/68453
1409 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1410 not redirect edges already pointing to their destination.
1411 (translate_isl_ast_node_for): Split edges after loops to create
1412 basic blocks for close phi nodes. Save merge points at the end of
1413 a loop guard.
1414 (translate_isl_ast_node_if): Save merge points at the end of the
1415 if region.
1416 (add_close_phis_to_outer_loops): New.
1417 (add_close_phis_to_merge_points): New.
1418 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1419 (copy_bb_and_scalar_dependences): Do not split basic blocks on
1420 loop close phi locations.
1421
1422 2015-11-25 Jan Hubicka <jh@suse.cz>
1423
1424 * ipa-visibility.c (cgraph_externally_visible_p,
1425 varpool_node::externally_visible_p): When doing incremental linking,
1426 hidden symbols may be still used later.
1427 (update_visibility_by_resolution_info): Do not drop weak during
1428 incremental link.
1429 (function_and_variable_visibility): Fix formating.
1430 * flag-types.h (lto_linker_output): Declare.
1431 * common.opt 9flag_incremental_link): New flag.
1432
1433 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
1434
1435 * config/rs6000/constraints.md (wb constraint): New constraint for
1436 ISA 3.0 d-form scalar addressing.
1437
1438 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
1439 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
1440 Altivec registers. Add wb constraint for Altivec registers with
1441 D-form addressing. If we have ISA 3.0 d-form support, undo
1442 secondary reload support for using FPR registers if we want to do
1443 D-form addressing.
1444 (rs6000_debug_reg_global): Likewise.
1445 (rs6000_setup_reg_addr_masks): Likewise.
1446 (rs6000_init_hard_regno_mode_ok): Likewise.
1447 (rs6000_secondary_reload): Likewise.
1448 (rs6000_preferred_reload_class): Likewise.
1449 (rs6000_secondary_reload_class): Likewise.
1450
1451 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
1452 constraint.
1453
1454 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
1455 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
1456 (f32_lm2): Likewise.
1457 (f32_li2): Likewise.
1458 (f32_sr2): Likewise.
1459 (f32_sm2): Likewise.
1460 (f32_si2): Likewise.
1461 (f64_p9): Likewise.
1462 (extendsfdf2_fpr): Likewise.
1463 (mov<mode>_hardfloat): Likewise.
1464 (mov<mode>_hardfloat32): Likewise.
1465 (mov<mode>_hardfloat64): Likewise.
1466
1467 * doc/md.texi (RS/6000 constraints): Document wb constraint.
1468 Fixup we constraint documentation.
1469
1470 2015-11-25 Tom de Vries <tom@codesourcery.com>
1471
1472 * omp-low.c (pass_expand_omp_ssa::clone): New function.
1473 * passes.def: Add pass_oacc_kernels pass group.
1474 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
1475
1476 2015-11-25 Tom de Vries <tom@codesourcery.com>
1477
1478 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
1479 Declare.
1480 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
1481 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
1482 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
1483 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
1484
1485 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1486
1487 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
1488 TV_IPA_LTO_OUTPUT): New.
1489 * lto-compress.c: Include timevar.h
1490 (lto_end_compression, lto_end_uncompression): Add timers.
1491 * langhooks.c: Include timevar.h
1492 (lhd_append_data): Add timer.
1493
1494 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1495
1496 * varasm.c (default_elf_asm_output_limited_string,
1497 default_elf_asm_output_ascii): Replace fprintf by putc.
1498
1499 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
1500
1501 PR rtl-optimization/67954
1502 * lra-constraints.c (curr_insn_transform): Add check on scratch
1503 pseudo when change class to NO_REGS. Add an assert.
1504
1505 2015-11-25 Nathan Sidwell <nathan@acm.org>
1506
1507 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
1508 constraint is 'n'.
1509 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
1510 number.
1511 (nvptx_write_function_decl): Number args from 0.
1512 (nvptx_declare_function_name): Likewise.
1513 (nvptx_function_incoming_arg): Likewise.
1514 (nvptx_output_call_insn): Correct formatting.
1515
1516 2015-11-25 David Sherwood <david.sherwood@arm.com>
1517
1518 * optabs.def: Add new optabs fmax_optab/fmin_optab.
1519 * internal-fn.def: Add new fmax/fmin internal functions.
1520 * doc/md.texi: Add fmin and fmax patterns.
1521
1522 2015-11-25 Jason Merrill <jason@redhat.com>
1523
1524 PR c++/68385
1525 * tree.c (integer_zerop, integer_onep, integer_each_onep)
1526 (integer_all_onesp, integer_minus_onep, integer_pow2p)
1527 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
1528 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
1529
1530 2015-11-25 Richard Biener <rguenther@suse.de>
1531
1532 PR middle-end/68528
1533 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
1534 on stripped operands.
1535
1536 2015-11-25 Nathan Sidwell <nathan@acm.org>
1537
1538 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
1539 (nvptx_declare_function_name): Move assignments next to register
1540 declarations, and process params here.
1541
1542 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
1543
1544 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
1545 both the symbol and the "dot" symbol for function descriptors. Fix
1546 inversion for rename of symbols with dollar sign.
1547
1548 2015-11-25 Tom de Vries <tom@codesourcery.com>
1549
1550 * cfgloop.c (find_single_latch): New function, factored out of ...
1551 (flow_loops_find): ... here.
1552 (verify_loop_structure): Improve verification of loop->latch.
1553 * cfgloop.h (find_single_latch): Declare.
1554 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1555
1556 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1557
1558 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
1559 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
1560 (STARTFILE_SPEC): Use %(startfile_vtv).
1561 (ENDFILE_SPEC): Use %(endfile_vtv).
1562 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
1563 ENDFILE_VTV_SPEC.
1564
1565 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
1566
1567 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
1568
1569 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
1570 noce_can_store_speculate): Delete.
1571 (noce_process_if_block): Don't try to handle single MEM stores.
1572 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
1573 * alias.c (memory_must_be_modified_in_insn_p): Delete.
1574
1575 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1576
1577 PR rtl-optimization/68435
1578 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
1579 for conflicts between a, b and the set destinations.
1580
1581 2015-11-25 Richard Biener <rguenther@suse.de>
1582
1583 PR tree-optimization/68517
1584 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
1585 Properly handle zero-sized types.
1586
1587 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1588
1589 * ipa-inline-analysis.c: Include gimplify.h
1590 (set_cond_stmt_execution_predicate,
1591 set_switch_stmt_execution_predicate): Be sure to not leak locations
1592 to function body.
1593
1594 2015-11-25 Jakub Jelinek <jakub@redhat.com>
1595
1596 PR target/67089
1597 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
1598 match_uaddsub_overflow): New functions.
1599 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
1600
1601 2015-11-25 Richard Biener <rguenther@suse.de>
1602
1603 PR tree-optimization/68492
1604 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
1605 op from scalars after operand swapping.
1606
1607 2015-11-25 Richard Biener <rguenther@suse.de>
1608
1609 PR tree-optimization/68502
1610 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
1611 check that the step is a multiple of the type size.
1612
1613 2015-11-24 Michael Collison <michael.collison@linaro.org>
1614
1615 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
1616 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
1617 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
1618
1619 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
1620
1621 * frame-header-opt.c (gate): Check for optimize > 0.
1622 (has_inlined_assembly): New function.
1623 (needs_frame_header_p): Remove is_leaf_function check,
1624 add argument type check.
1625 (callees_functions_use_frame_header): Add is_leaf_function
1626 and has_inlined_assembly calls..
1627 (set_callers_may_not_allocate_frame): New function.
1628 (frame_header_opt): Add is_leaf_function call, add
1629 set_callers_may_not_allocate_frame call.
1630 * config/mips/mips.c (mips_compute_frame_info): Add check
1631 to see if callee saved regs can be put in frame header.
1632 (mips_expand_prologue): Add check to see if step1 is zero,
1633 fix cfa restores when using frame header to store regs.
1634 (mips_can_use_return_insn): Check to see if registers are
1635 stored in frame header.
1636 * config/mips/mips.h (machine_function): Add
1637 callers_may_not_allocate_frame and
1638 use_frame_header_for_callee_saved_regs fields.
1639
1640 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1641
1642 PR rtl-optimization/68520
1643 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
1644 its bit was already set in BB_WITH.
1645
1646 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1647
1648 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
1649 double check that type is main variant.
1650 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
1651 variant.
1652 (verify_type_variant): Verify that variants have no
1653 TYPE_ALIAS_SET_KNOWN_P set
1654 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
1655 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
1656 only for main variants; stream TYPE_ALIAS_SET as a bit.
1657 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
1658 accordingly.
1659
1660 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1661
1662 * tree.c (make_vector_type): Properly compute canonical type of the
1663 main variant.
1664 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
1665 a main variant.
1666
1667 2015-11-24 Nathan Sidwell <nathan@acm.org>
1668
1669 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
1670 VOIDmode, don't alter incoming mode.
1671 (nvptx_split_reg_p): Delete.
1672 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
1673 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
1674 maybe_split_mode calls.
1675 (nvptx_print_operand): Use maybe_split_mode.
1676
1677 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1678
1679 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
1680 only for types where LTO sets them.
1681 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
1682 (make_vector_type): Likewise.
1683 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
1684 * tree.h (canonical_type_used_p): New inline.
1685 * alias.c (get_alias_set): Handle structural equality for all
1686 types that pass canonical_type_used_p.
1687 (record_component_aliases): Look through all types with
1688 record_component_aliases for possible pointers; sanity check that
1689 the alias sets match.
1690
1691 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1692
1693 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
1694
1695 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1696
1697 * tree.c (free_node): New function.
1698 (type_hash_canon): Use it.
1699 * tree.h (free_node): Declare.
1700
1701 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
1702 Michael Meissner <meissner@linux.vnet.ibm.com>
1703
1704 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
1705 (Fv2): New mode attribute to be used when ISA 2.07 instructions
1706 are used on SF values, and ISA 2.06 instructions on DF values.
1707 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
1708 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
1709 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
1710 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
1711 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
1712 (fre<Fs>): Use <Fv2> instead of <Fv>.
1713 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
1714 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
1715 (xsrdpi<mode>): Add support for the lround function.
1716 (lround<mode>di2): Likewise.
1717 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1718 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1719 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1720 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1721
1722 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1723 Sebastian Pop <s.pop@samsung.com>
1724
1725 PR tree-optimization/67984
1726 * graphite-isl-ast-to-gimple.c (is_constant): New.
1727 (get_rename): Call is_constant.
1728 (get_new_name): Same.
1729
1730 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1731 Sebastian Pop <s.pop@samsung.com>
1732
1733 * graphite-dependences.c: Only include graphite.h.
1734 * graphite-isl-ast-to-gimple.c: Same.
1735 * graphite-optimize-isl.c: Same.
1736 * graphite-poly.c: Same.
1737 * graphite-scop-detection.c: Same.
1738 * graphite-sese-to-poly.c: Same.
1739 * graphite.c: Same.
1740 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
1741 * graphite-poly.h: Same.
1742 * graphite-scop-detection.h: Same.
1743 * graphite.h: New.
1744
1745 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
1746
1747 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
1748 DW_TAG_namespace for IMPORTED_DECL declarations. Call
1749 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
1750 function already takes care of checking what it can emit.
1751
1752 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1753
1754 * doc/invoke.texi (-fpic): Add the AArch64 limit.
1755 (-fPIC): Add AArch64.
1756
1757 2015-11-24 Tom de Vries <tom@codesourcery.com>
1758
1759 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
1760 (pass_lim::execute): Allow to run outside pass_tree_loop.
1761
1762 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
1763
1764 * config/aarch64/aarch64.md (add<mode>3):
1765 Block early expansion into 2 add instructions.
1766 (add<mode>3_pluslong): New pattern to combine complex
1767 immediates into 2 additions.
1768
1769 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1770
1771 PR target/66217
1772 PR target/67677
1773 PR target/68332
1774 * config/rs6000/predicates.md (and_operand): Check that the operand
1775 is a const_int before calling rs6000_is_valid_and_mask.
1776
1777 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1778
1779 * config/aarch64/aarch64.md (*condjump): Rename to...
1780 (condjump): ... This.
1781 (*compare_condjump<mode>): New define_insn_and_split.
1782 (*compare_cstore<mode>_insn): Likewise.
1783 (*cstore<mode>_insn): Rename to...
1784 (cstore<mode>_insn): ... This.
1785 * config/aarch64/iterators.md (CMP): Handle ne code.
1786 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
1787
1788 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
1789
1790 PR target/68497
1791 * config/i386/i386.c (output_387_binary_op): Fix assertion for
1792 -fno-checking case.
1793
1794 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1795
1796 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
1797 (val_ssa_equiv_hash_traits::remove): Likewise.
1798 (pass_uncprop::execute): Adjust.
1799
1800 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1801
1802 * hash-map-traits.h (simple_hashmap_traits ::remove): call
1803 destructors on values that are being removed.
1804 * mem-stats.h (hash_map): Pass type of values to
1805 simple_hashmap_traits.
1806 * tree-sra.c (sra_deinitialize): Remove work around for hash
1807 maps not destructing values.
1808 * genmatch.c (sinfo_hashmap_traits): Adjust.
1809 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
1810
1811 2015-11-24 Richard Biener <rguenther@suse.de>
1812 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1813
1814 PR middle-end/68375
1815 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
1816 bogus assertion.
1817
1818 2015-11-24 Jakub Jelinek <jakub@redhat.com>
1819
1820 PR target/68483
1821 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
1822 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
1823 returns false.
1824 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
1825 whenever first is nelt or above. Don't mask expected with
1826 2 * nelt - 1.
1827
1828 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
1829
1830 PR c/68337
1831 * gimple-fold.c: Include ipa-chkp.h.
1832 (gimple_fold_builtin_memory_op): Don't fold call if we
1833 are going to instrument it and it may copy pointers.
1834
1835 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
1836 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1837
1838 PR rtl-optimization/68194
1839 PR rtl-optimization/68328
1840 PR rtl-optimization/68185
1841 * ree.c (combine_reaching_defs): Reject copy_needed case if
1842 copies_list is not empty.
1843
1844 2015-11-24 Richard Biener <rguenther@suse.de>
1845
1846 PR middle-end/68221
1847 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
1848 use mem_ref_offset.
1849
1850 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1851
1852 PR rtl-optimization/68381
1853 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
1854 is poisoned.
1855
1856 2015-11-23 Nick Clifton <nickc@redhat.com>
1857 Jeff Law <law@redhat.com>
1858
1859 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
1860 the source/dest of the target extension require a different number of
1861 hard registers.
1862 (combine_set_extension): Remove #if 0 code.
1863
1864 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1865 Sebastian Pop <s.pop@samsung.com>
1866
1867 PR tree-optimization/68314
1868 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
1869 * graphite-poly.c (new_scop): Remove original_schedule.
1870 (free_scop): Same.
1871 * graphite-poly.h (struct scop): Same.
1872 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
1873 (build_pbb_scattering_polyhedrons): Add back.
1874 (build_scop_minimal_scattering): Remove.
1875 (build_scop_scattering): Add back.
1876 (build_scop_original_schedule): Remove.
1877 (build_poly_scop): Revert to only call build_scop_scattering.
1878
1879 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1880 Sebastian Pop <s.pop@samsung.com>
1881
1882 PR tree-optimization/68493
1883 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
1884 missing early return when codegen_error is set.
1885
1886 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1887 Sebastian Pop <s.pop@samsung.com>
1888
1889 PR tree-optimization/68279
1890 * graphite-poly.c (new_scop): Remove poly_scop_p.
1891 * graphite-poly.h (struct scop): Same.
1892 (build_poly_scop): Declare.
1893 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
1894 (cleanup_loop_iter_dom): New.
1895 (build_loop_iteration_domains): Early return when scev analysis fails.
1896 (create_pw_aff_from_tree): Same.
1897 (add_condition_to_pbb): Same.
1898 (add_conditions_to_domain): Same.
1899 (add_conditions_to_constraints): Same.
1900 (build_scop_iteration_domain): Same.
1901 (build_poly_scop): Same. Do not initialize poly_scop_p.
1902 * graphite-sese-to-poly.h: Remove.
1903 * graphite.c: Do not include graphite-sese-to-poly.h.
1904 (graphite_transform_loops): Stop before code generation when
1905 build_poly_scop fails.
1906 * sese.c (scalar_evolution_in_region): Add fixme note about scev
1907 analysis.
1908
1909 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
1910 Sebastian Pop <s.pop@samsung.com>
1911
1912 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1913 Remove call to update_ssa.
1914 * sese.c (sese_insert_phis_for_liveouts): Same.
1915
1916 2015-11-23 Marek Polacek <polacek@redhat.com>
1917
1918 PR tree-optimization/68455
1919 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
1920 extract_range_from_multiplicative_op_1 on symbolic ranges.
1921
1922 2015-11-23 Richard Henderson <rth@redhat.com>
1923
1924 * optabs.def (uaddv4_optab, usubv4_optab): New.
1925 * internal-fn.c (expand_addsub_overflow): Use them.
1926 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
1927
1928 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
1929 to reversed operands.
1930 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
1931 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
1932 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
1933 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
1934 (*add<SWI>3_cconly_overflow_2): New.
1935 (*add<SWI>3_cc_overflow_2): New.
1936 (*addsi3_zext_cc_overflow_2): New.
1937
1938 2015-11-23 Richard Biener <rguenther@suse.de>
1939
1940 PR tree-optimization/68465
1941 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
1942 Also record equalities from multiple predecessor blocks if
1943 only one non-backedge exists.
1944
1945 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1946
1947 PR target/68363
1948 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
1949 that are not INSN_P.
1950
1951 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
1952
1953 * config/aarch64/aarch64-builtins.c
1954 (aarch64_gimple_fold_builtin): Fold FMULX.
1955
1956 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
1957
1958 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
1959 * graphite-dependences.c: Define USES_ISL. Include ISL header files
1960 after GCC header files and before graphite header files.
1961 * graphite-dependences.c: Same.
1962 * graphite-isl-ast-to-gimple.c: Same.
1963 * graphite-optimize-isl.c: Same.
1964 * graphite-poly.c: Same.
1965 * graphite-scop-detection.c: Same.
1966 * graphite-sese-to-poly.c: Same.
1967 * graphite.c: Same.
1968
1969 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
1970 Jiong Wang <jiong.wang@arm.com>
1971
1972 PR tree-optimization/68317
1973 PR tree-optimization/68326
1974 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
1975 final min and max are not infinity.
1976
1977 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
1978 Richard Biener <rguenther@suse.de>
1979
1980 PR tree-optimization/68327
1981 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
1982 compute vectype for non-relevant mask producers.
1983 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
1984 relevance earlier.
1985
1986 2015-11-23 Tom de Vries <tom@codesourcery.com>
1987
1988 PR tree-optimization/68460
1989 * tree-parloops.c (gather_scalar_reductions): Also call
1990 free_stmt_vec_info_vec if simple_loop_info == NULL.
1991
1992 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
1993
1994 * opts.c (finish_options): Allow -fsanitize-recover=address for
1995 userspace sanitization.
1996 * asan.c (asan_expand_check_ifn): Redefine recover_p.
1997 * doc/invoke.texi (fsanitize-recover): Update documentation.
1998
1999 2015-11-23 Tom de Vries <tom@codesourcery.com>
2000
2001 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2002
2003 2015-11-23 Richard Biener <rguenther@suse.de>
2004
2005 PR tree-optimization/68445
2006 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2007 two different strides.
2008
2009 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
2010
2011 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2012 * config/s390/s390.c (s390_check_symref_alignment): Use new
2013 symref flags, early abort on wrong alignment
2014 (s390_secondary_reload): Use new symref flags.
2015 (s390_encode_section_info): Likewise.
2016 * config/s390/predicates.md: Likewise.
2017
2018 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2019
2020 PR target/68390
2021 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2022 for indirect function call.
2023
2024 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
2025
2026 * config/aarch64/aarch64-simd.md
2027 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2028 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2029 (*aarch64_mulx_elt_to_64v2df): Likewise.
2030 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2031 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2032 (vmulx_lane_f64): Likewise.
2033 (vmulxq_lane_f32): Refactored & moved.
2034 (vmulxq_lane_f64): Likewise.
2035 (vmulx_laneq_f32): New.
2036 (vmulx_laneq_f64): Likewise.
2037 (vmulxq_laneq_f32): Likewise.
2038 (vmulxq_laneq_f64): Likewise.
2039 (vmulxs_lane_f32): Likewise.
2040 (vmulxs_laneq_f32): Likewise.
2041 (vmulxd_lane_f64): Likewise.
2042 (vmulxd_laneq_f64): Likewise.
2043
2044 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
2045
2046 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2047 In LTO we do not compute TYPE_CANONICAL of pointers.
2048 (gimple_canonical_types_compatible_p): Improve coments; sanity check
2049 that pointers do not have canonical type that would make us believe
2050 they are different.
2051 * alias.c (get_alias_set): Do structural type equality on pointers;
2052 enable pointer path for LTO; also glob pointer to vector with pointer
2053 to vector element; glob pointers and references for LTO; do more strict
2054 sanity checking about build_pointer_type returning the canonical type
2055 which is also the main variant.
2056 (record_component_aliases): When component type is pointer and we
2057 do LTO; record void_type_node alias set.
2058
2059 2015-11-21 Nathan Sidwell <nathan@acm.org>
2060
2061 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2062
2063 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2064 leading blank line.
2065 (write_func_decl_from_insn): Likewise.
2066 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2067 (nvptx_file_end): Likewise.
2068 (nvptx_function_end): Undent output.
2069 (nvptx_expand_call): Fix formatting.
2070 (nvptx_output_call_insn): Indent output.
2071 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2072 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2073
2074 2015-11-21 Jakub Jelinek <jakub@redhat.com>
2075
2076 PR debug/66432
2077 * tree-inline.c (copy_debug_stmt): If
2078 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2079 in decl_debug_args, don't call remap_gimple_op_r on it.
2080
2081 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2082
2083 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2084 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2085 Check that all record types are complete.
2086 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2087 compare alias sets for types w/o alias sets.
2088
2089 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2090
2091 * config/sparc/sparc.md (umulxhi_vis): Move around.
2092 (*umulxhi_sp64): Likewise.
2093 (umulxhi_v8plus): Likewise.
2094 (xmulx_vis): Likewise.
2095 (*xmulx_sp64): Likewise.
2096 (xmulx_v8plus): Likewise.
2097 (xmulxhi_vis): Likewise.
2098 (*xmulxhi_sp64): Likewise.
2099 (xmulxhi_v8plus): Likewise.
2100
2101 2015-11-20 David Malcolm <dmalcolm@redhat.com>
2102
2103 PR 62314
2104 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2105 (class layout): Update comment
2106 (layout::print_any_fixits): New method.
2107 (layout::move_to_column): New method.
2108 (diagnostic_show_locus): Add call to layout.print_any_fixits.
2109
2110 2015-11-20 Jakub Jelinek <jakub@redhat.com>
2111
2112 PR middle-end/68221
2113 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2114 has non-zero bias, subtract it in integer type instead of
2115 pointer plus of negated bias.
2116
2117 PR middle-end/68339
2118 * omp-low.c (expand_simd_clones): Call node->get_body () before
2119 allocating stuff in GC.
2120
2121 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
2122
2123 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2124
2125 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
2126
2127 * config/aarch64/aarch64.md (predicated): Copy attribute from
2128 "arm.md".
2129 * config/arm/arm.md (predicated): Added description.
2130
2131 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2132
2133 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2134 for unaligned_access.
2135 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2136 from matching condition.
2137 (unaligned_loadhis): Likewise.
2138 (unaligned_loadhiu): Likewise.
2139 (unaligned_storesi): Likewise.
2140 (unaligned_storehi): Likewise.
2141
2142 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2143
2144 PR target/68149
2145 * config/arm/arm.md (unaligned_loaddi): Delete.
2146 (unaligned_storedi): Likewise.
2147 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2148 unaligned DImode memory ops. Instead perform two back-to-back
2149 unaligned SImode ops.
2150
2151 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
2152 James Norris <jnorris@codesourcery.com>
2153
2154 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2155 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2156
2157 2015-11-20 Alan Hayward <alan.hayward@arm.com>
2158
2159 PR tree-optimization/68413
2160 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2161 evolution base
2162 (vectorizable_reduction): Use cached base
2163
2164 2015-11-20 Tom de Vries <tom@codesourcery.com>
2165
2166 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2167 dump-file string.
2168 (try_create_reduction_list): Same. Fix typo in dump-file string.
2169
2170 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2171
2172 * doc/md.texi (Standard Names): Move entry for addptr3 around,
2173 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2174 glitch in entries for cbranch4 and jump.
2175
2176 2015-11-20 Tom de Vries <tom@codesourcery.com>
2177
2178 PR tree-optimization/68373
2179 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2180 of ...
2181 (scev_const_prop): ... here.
2182 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2183 * tree-parloops.c (try_create_reduction_list): Call
2184 final_value_replacement_loop.
2185
2186 2015-11-20 Bin Cheng <bin.cheng@arm.com>
2187
2188 PR tree-optimization/52272
2189 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2190 (struct iv_common_cand_hasher): New struct.
2191 (iv_common_cand_hasher::hash): New function.
2192 (iv_common_cand_hasher::equal): New function.
2193 (struct ivopts_data): New fields, iv_common_cand_tab and
2194 iv_common_cands.
2195 (tree_ssa_iv_optimize_init): Initialize above fields.
2196 (record_common_cand, common_cand_cmp): New functions.
2197 (add_iv_candidate_derived_from_uses): New function.
2198 (add_iv_candidate_for_use): Record iv_common_cands derived from
2199 iv use in hash table, instead of adding candidates directly.
2200 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2201 (record_important_candidates): Add important candidates to iv uses'
2202 related_cands. Always keep related_cands for future use.
2203 (try_add_cand_for): Use iv uses' related_cands.
2204 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2205 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2206
2207 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2208
2209 * config/s390/s390.md ("bswaphi2"): New pattern.
2210
2211 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
2212
2213 * config/s390/s390.md (GPR1_REGNUM): New constant.
2214 ("*trunc<BFP:mode><DFP_ALL:mode>2")
2215 ("*trunc<DFP_ALL:mode><BFP:mode>2")
2216 ("trunc<BFP:mode><DFP_ALL:mode>2")
2217 ("trunc<DFP_ALL:mode><BFP:mode>2")
2218 ("*extend<BFP:mode><DFP_ALL:mode>2")
2219 ("*extend<DFP_ALL:mode><BFP:mode>2")
2220 ("extend<BFP:mode><DFP_ALL:mode>2")
2221 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2222
2223 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2224 Sebastian Pop <s.pop@samsung.com>
2225
2226 PR tree-optimization/68428
2227 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2228 over basic blocks outside the scop.
2229
2230 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2231 Sebastian Pop <s.pop@samsung.com>
2232
2233 PR tree-optimization/68341
2234 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2235 gcc_unreachable and safely fail codegen.
2236 (copy_loop_close_phi_args): Do not insert merge phis in a basic
2237 block with loop phi nodes.
2238 (edge_for_new_close_phis): New.
2239 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2240
2241 2015-11-19 Nathan Sidwell <nathan@acm.org>
2242
2243 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2244 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2245 (nvptx_declare_objec_name): Likewise.
2246
2247 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2248
2249 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2250 (get_false_edge_from_guard_bb): Move...
2251 * sese.c (get_false_edge_from_guard_bb)
2252 (get_true_edge_from_guard_bb): ... here.
2253
2254 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
2255
2256 Revert
2257 2015-11-18 Alan Modra <amodra@gmail.com>
2258
2259 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2260 type-limits warning.
2261
2262
2263 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2264
2265 * tree.h (desired_pro_or_demotion_p): New function.
2266 * tree-vrp.c (simplify_cond_using_ranges): Call it.
2267
2268 2015-11-19 Michael Matz <matz@suse.de>
2269
2270 * fwprop.c (update_uses): Use flag_checking instead of
2271 gcc_checking_assert.
2272
2273 2015-11-19 David Malcolm <dmalcolm@redhat.com>
2274
2275 * doc/gty.texi (Support for inheritance): Fix missing
2276 parentheses in example.
2277
2278 2015-11-19 Marek Polacek <polacek@redhat.com>
2279
2280 PR tree-optimization/68431
2281 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2282
2283 2015-11-19 Nathan Sidwell <nathan@acm.org>
2284
2285 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2286 atomic_exchange<mode>): Input values can be immediates.
2287
2288 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2289
2290 PR lto/61313
2291 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2292 by the user.
2293 * configure: Regenerate.
2294
2295 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2296
2297 PR target/68408
2298 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2299 (DTORS_SECTION_ASM_OP): Likewise.
2300
2301 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2302
2303 PR rtl-optimization/68376
2304 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2305 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2306
2307 2015-11-19 Richard Biener <rguenther@suse.de>
2308
2309 PR middle-end/68117
2310 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2311 redirect_edge_var_map_destroy.
2312
2313 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2314
2315 PR target/67770
2316 * config/i386/i386.md (simple_return): Disable if
2317 ix86_static_chain_on_stack is true.
2318
2319 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
2320
2321 PR bootstrap/68393
2322 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2323 destinations.
2324
2325 2015-11-18 Jeff Law <law@redhat.com>
2326
2327 PR tree-optimization/68198
2328 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2329 between threading a multi-way branch and a thread path that contains
2330 a multi-way branch. Disallow the case where a path contains a
2331 multi-way branch and does not thread a multi-way branch.
2332 (thread_through_all_blocks): Update comment.
2333
2334 2015-11-18 Joseph Myers <joseph@codesourcery.com>
2335
2336 PR c/65083
2337 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2338 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2339 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2340 functions before defining as macros.
2341
2342 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2343
2344 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2345 (nvptx_record_offload_symbol): Remove code compensating for lack
2346 of default dimension handling.
2347 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2348
2349 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2350
2351 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2352 type to bool for early exit.
2353 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2354 in case of error.
2355 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2356 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2357 predecessor dominates the other.
2358 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2359 element is not found it returns -1.
2360 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2361 out early when codegen fails.
2362 (graphite_regenerate_ast_isl): Remove codegen region when pending
2363 phis could not be generated.
2364
2365 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2366
2367 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2368 semicolon.
2369 (class translate_isl_ast_to_gimple): Indentation.
2370 (translate_pending_phi_nodes): Comment.
2371 (add_parameters_to_ivs_params): Moved from sese.c inside class
2372 translate_isl_ast_to_gimple.
2373 (get_max_schedule_dimensions): Same.
2374 (generate_isl_context): Same.
2375 (extend_schedule): Same.
2376 (generate_isl_schedule): Same.
2377 (set_options): Same.
2378 (scop_to_isl_ast): Same.
2379 (is_valid_rename): Same.
2380 (get_rename): Same.
2381 (get_rename_from_scev): Same.
2382 (get_def_bb_for_const): Same.
2383 (get_new_name): Same.
2384 (collect_all_ssa_names): Same.
2385 (copy_loop_phi_args): Same.
2386 (copy_loop_phi_nodes): Same.
2387 (copy_loop_close_phi_args): Same.
2388 (copy_loop_close_phi_nodes): Same.
2389 (copy_cond_phi_args): Same.
2390 (copy_cond_phi_nodes): Same.
2391 (graphite_copy_stmts_from_block): Same.
2392 (copy_bb_and_scalar_dependences): Same.
2393 (add_phi_arg_for_new_expr): Same.
2394 (rename_uses): Same.
2395 (set_rename): Same.
2396 (set_rename_for_each_def): Same.
2397 (gsi_insert_earliest): Same.
2398 (rename_all_uses): Same.
2399 (codegen_error_p): Same.
2400 (print_isl_ast_node): Same.
2401 (translate_isl_ast_for_loop): Call function codegen_error_p.
2402 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2403 (translate_isl_ast_node_user): Make nb_loops const and release
2404 iv_map before exit.
2405 (get_true_edge_from_guard_bb): Move all free-functions early.
2406 (get_false_edge_from_guard_bb): Same.
2407 (bb_contains_loop_close_phi_nodes): Same.
2408 (bb_contains_loop_phi_nodes): Same.
2409 (is_loop_closed_ssa_use): Same.
2410 (number_of_phi_nodes): Same.
2411 (phi_uses_name): Same.
2412 (later_of_the_two): Same.
2413 (substitute_ssa_name):
2414 (get_edges): Same.
2415 (get_loc): Same.
2416 (get_loop_init_value): Same.
2417 (find_init_value): Same.
2418 (find_init_value_close_phi): Same.
2419 (ast_build_before_for): Same.
2420 (graphite_regenerate_ast_isl): Formatting changes.
2421 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2422 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2423 (set_rename): Same.
2424 (gsi_insert_earliest): Same.
2425 (collect_all_ssa_names): Same.
2426 (rename_all_uses): Same.
2427 (rename_uses): Same.
2428 (get_def_bb_for_const): Same.
2429 (copy_loop_phi_nodes): Same.
2430 (copy_loop_close_phi_args): Same.
2431 (copy_loop_close_phi_nodes): Same.
2432 (copy_cond_phi_args): Same.
2433 (copy_cond_phi_nodes): Same.
2434 (set_rename_for_each_def): Same.
2435 (graphite_copy_stmts_from_block): Same.
2436 (copy_bb_and_scalar_dependences): Same.
2437 (if_region_set_false_region): Same.
2438 (scev_analyzable_p): Same.
2439 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
2440
2441 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
2442
2443 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
2444 commit from r125920 for FreeBSD.
2445
2446 2015-11-18 Jason Merrill <jason@redhat.com>
2447
2448 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
2449 to be vecs of vecs.
2450 (add_finalizer): Split out from ggc_internal_alloc.
2451 (ggc_handle_finalizers): Run finalizers for the current depth.
2452 (init_ggc, ggc_pch_read): Reserve space for finalizers.
2453
2454 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
2455
2456 PR target/68410
2457 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
2458 from || expression.
2459
2460 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2461
2462 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
2463 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
2464 and atmega328pb.
2465 * doc/avr-mmcu.texi: Regenerate.
2466
2467 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2468
2469 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
2470 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
2471 (struct bb_sese): New struct.
2472 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
2473 (BB_GET_SESE, BB_SET_SESE): Define.
2474 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
2475 (nvptx_find_sese): New.
2476 (nvptx_neuter_pars): Find SESE regions when optimizing.
2477
2478 2015-11-18 Alan Modra <amodra@gmail.com>
2479
2480 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2481 type-limits warning.
2482
2483 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
2484
2485 PR bootstrap/68406
2486 * hash-set.h (hash_set::traverse): Expand Key typedef.
2487
2488 2015-11-18 Martin Liska <mliska@suse.cz>
2489
2490 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
2491 options struct.
2492
2493 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2494
2495 * config/nvptx/nvptx.c (global_lock_var): New.
2496 (nvptx_global_lock_addr): New.
2497 (nvptx_lockless_update): Recomment and adjust for clarity.
2498 (nvptx_lockfull_update): New.
2499 (nvptx_reduction_update): New.
2500 (nvptx_goacc_reduction_fini): Call it.
2501
2502 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
2503
2504 * regrename.h (struct du_head): Add target_data_1 and target_data_2
2505 fields.
2506 * regrename.c (create_new_chain): Clear entire struct after allocating.
2507
2508 * config/i386/i386.opt (mmitigate-rop): New option.
2509 * doc/invoke.texi (mmitigate-rop): Document.
2510 * config/i386/i386.c: Include "regrename.h".
2511 (ix86_rop_should_change_byte_p, reg_encoded_number,
2512 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
2513 static functions.
2514 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
2515 * config/i386/i386.md (attr "modrm_class"): New.
2516 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
2517 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
2518 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
2519
2520 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2521
2522 PR target/68405
2523 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
2524
2525 2015-11-18 Jakub Jelinek <jakub@redhat.com>
2526
2527 PR tree-optimization/68157
2528 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
2529 pow_stmt or mul_stmt from stmt's uid.
2530 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
2531
2532 2015-11-18 Martin Liska <mliska@suse.cz>
2533
2534 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
2535
2536 2015-11-18 Martin Liska <mliska@suse.cz>
2537
2538 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2539 Fix GNU coding style.
2540 (find_def_preds): Use auto_vec.
2541 (destroy_predicate_vecs): Change signature of the function.
2542 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
2543 new signature.
2544 (simplify_preds_4): Use destroy_predicate_vecs instread of
2545 just releasing preds vector.
2546 (normalize_preds): Likewise.
2547 (is_use_properly_guarded): Use new signature of
2548 destroy_predicate_vecs.
2549 (find_uninit_use): Likewise.
2550
2551 2015-11-18 Richard Biener <rguenther@suse.de>
2552
2553 PR tree-optimization/67790
2554 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
2555 IL rewrite for MINUS_EXPR reductions, rename back to ...
2556 (vect_is_simple_reduction): ... this, removing the wrapper.
2557 (vect_force_simple_reduction): Adjust.
2558 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
2559 reductions and make use if reduc_index in all places. For
2560 the final reduction of MINUS_EXPR use PLUS_EXPR.
2561
2562 2015-11-18 Alan Modra <amodra@gmail.com>
2563
2564 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
2565 to ld.
2566 * configure: Regenerate.
2567
2568 2015-11-17 Tom de Vries <tom@codesourcery.com>
2569
2570 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
2571
2572 2015-11-17 Tom de Vries <tom@codesourcery.com>
2573
2574 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
2575 uses of ssa_name with constant.
2576
2577 2015-11-17 Tom de Vries <tom@codesourcery.com>
2578
2579 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
2580 something changed.
2581
2582 2015-11-17 Tom de Vries <tom@codesourcery.com>
2583
2584 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
2585 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
2586 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
2587
2588 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
2589
2590 * regrename.c (regrename_find_superclass): New function, code moved
2591 from ...
2592 (rename_chains): ... here. Call it.
2593 * regrename.h (regrename_find_superclass): Declare.
2594
2595 * regrename.c (record_out_operands): Terminate earlyclobbered
2596 operands here.
2597
2598 PR target/66785
2599 * regrename.c (record_operand_use): Keep track of failed operands
2600 and stop appending if we see any.
2601 * regrename.h (struct operand_rr_info): Add a failed field and shrink
2602 n_chains to short.
2603
2604 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2605
2606 PR 48568
2607 * doc/extend.texi (Common Function Attributes) [visibility]:
2608 Add cross-references to matching variable and type attributes.
2609 (Common Variable Attributes) [visibility]: Add missing entry.
2610
2611 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2612
2613 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
2614 entries that map directly to optabs.
2615
2616 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2617
2618 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
2619 entries that map directly to optabs.
2620
2621 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2622
2623 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
2624 * internal-fn.c (direct_internal_fn_array): Update accordingly.
2625 * tree-vectorizer.h (vectorizable_function): Delete.
2626 * tree-vect-stmts.c: Include internal-fn.h.
2627 (vectorizable_internal_function): New function.
2628 (vectorizable_function): Inline into...
2629 (vectorizable_call): ...here. Explicitly reject calls that read
2630 from or write to memory. Try using an internal function before
2631 falling back on the old vectorizable_function behavior.
2632
2633 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2634
2635 * target.def (builtin_vectorized_function): Take a combined_fn (in
2636 the form of an unsigned int) rather than a function decl.
2637 (builtin_md_vectorized_function): New.
2638 * targhooks.h (default_builtin_vectorized_function): Replace the
2639 fndecl argument with an unsigned int.
2640 (default_builtin_md_vectorized_function): Declare.
2641 * targhooks.c (default_builtin_vectorized_function): Replace the
2642 fndecl argument with an unsigned int.
2643 (default_builtin_md_vectorized_function): New function.
2644 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
2645 New hook.
2646 * doc/tm.texi: Regenerate.
2647 * tree-vect-stmts.c (vectorizable_function): Update call to
2648 builtin_vectorized_function, also passing internal functions.
2649 Call builtin_md_vectorized_function for target-specific builtins.
2650 * config/aarch64/aarch64-protos.h
2651 (aarch64_builtin_vectorized_function): Replace fndecl argument
2652 with an unsigned int.
2653 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
2654 (aarch64_builtin_vectorized_function): Update after above changes.
2655 Use CASE_CFN_*.
2656 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
2657 fndecl argument with an unsigned int.
2658 * config/arm/arm-builtins.c: Include case-cfn-macros.h
2659 (arm_builtin_vectorized_function): Update after above changes.
2660 Use CASE_CFN_*.
2661 * config/i386/i386.c: Include case-cfn-macros.h
2662 (ix86_veclib_handler): Take a combined_fn rather than a
2663 built_in_function.
2664 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
2665 mathfn_built_in rather than calling builtin_decl_implicit directly.
2666 (ix86_builtin_vectorized_function) Update after above changes.
2667 Use CASE_CFN_*.
2668 * config/rs6000/rs6000.c: Include case-cfn-macros.h
2669 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
2670 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
2671 than calling builtin_decl_implicit directly.
2672 (rs6000_builtin_vectorized_function): Update after above changes.
2673 Use CASE_CFN_*. Move BUILT_IN_MD to...
2674 (rs6000_builtin_md_vectorized_function): ...this new function.
2675 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
2676
2677 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2678
2679 * tree-vect-patterns.c: Include internal-fn.h.
2680 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
2681
2682 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2683
2684 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
2685 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
2686
2687 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2688
2689 * builtins.c (expand_errno_check, expand_builtin_mathfn)
2690 (expand_builtin_mathfn_2): Delete.
2691 (expand_builtin): Remove handling of functions with
2692 internal function equivalents.
2693 * internal-fn.def (SET_EDOM): New internal function.
2694 * internal-fn.h (set_edom_supported_p): Declare.
2695 * internal-fn.c (expand_SET_EDOM): New function.
2696 (set_edom_supported_p): Likewise.
2697 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
2698 Rewrite comment at head of file.
2699 (is_call_dce_candidate): Rename to...
2700 (can_test_argument_range): ...this. Don't check gimple_call_lhs
2701 or gimple_call_builtin_p here.
2702 (edom_only_function): New function.
2703 (shrink_wrap_one_built_in_call_with_conds): New function, split out
2704 from...
2705 (shrink_wrap_one_built_in_call): ...here.
2706 (can_use_internal_fn, use_internal_fn): New functions.
2707 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
2708 for calls that have an lhs.
2709 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
2710 (pass_call_cdce::execute): Skip blocks that are optimized for size.
2711 Check gimple_call_builtin_p here. Use can_use_internal_fn for
2712 calls with an lhs.
2713 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
2714 at -O and above.
2715
2716 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2717
2718 * builtins.h (called_as_built_in): Declare.
2719 * builtins.c (called_as_built_in): Make external.
2720 * internal-fn.h (expand_internal_call): Define a variant that
2721 specifies the internal function explicitly.
2722 * internal-fn.c (expand_load_lanes_optab_fn)
2723 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
2724 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
2725 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
2726 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
2727 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
2728 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
2729 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
2730 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
2731 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
2732 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
2733 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
2734 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
2735 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
2736 argument.
2737 (internal_fn_expanders): Update prototype.
2738 (expand_internal_call): Define a variant that specifies the
2739 internal function explicitly. Use it to implement the previous
2740 interface.
2741 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
2742 functions as calls to internal functions.
2743
2744 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2745
2746 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
2747 (generated_files): Likewise.
2748 (s-cfn-operators, cfn-operators.pd): New rules.
2749 (s-match): Depend on cfn-operators.pd.
2750 * gencfn-macros.c: Expand comment to describe -o behavior.
2751 (print_define_operator_list): New function.
2752 (main): Accept -o. Call print_define_operator_list.
2753 * genmatch.c (main): Add the current directory to the include path.
2754 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
2755 instead.
2756
2757 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2758
2759 * doc/match-and-simplify.texi: Document the "null" identifier.
2760 * genmatch.c (id_base::NULL_ID): New kind.
2761 (null_id): New variable.
2762 (get_operator): Add a parameter that says whether null identifiers
2763 are allowed.
2764 (contains_id): New function.
2765 (lower_for): Skip substitutions that would have a null_id in
2766 either the match or the result.
2767 (parser::parse_for): Allow the null identifier to be used.
2768 (parser::parse_operator_list): Likewise.
2769 (main): Initialize null_id.
2770
2771 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2772
2773 * match.pd: Use HYPOT and COS rather than hypot and cos.
2774 Use CASE_CFN_* macros. Guard log/exp folds with
2775 SCALAR_FLOAT_TYPE_P.
2776 * genmatch.c (internal_fn): New enum.
2777 (fn_id::fn): Change to an unsigned int.
2778 (fn_id::fn_id): Accept internal_fn too.
2779 (add_builtin): Rename to...
2780 (add_function): ...this and turn into a template.
2781 (get_operator): Only try one variation if the original name fails.
2782 Only add _EXPR if the original name was all lower case.
2783 Try converting internal and built-in function names to their
2784 CFN equivalents.
2785 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
2786 (dt_simplify::gen_1): Likewise.
2787 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
2788 and get_call_combined_fn for generic.
2789 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
2790 (decision_tree::gen): Likewise.
2791 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
2792 Use add_function rather than add_builtin. Register internal
2793 functions too.
2794 * generic-match-head.c: Include case-cfn-macros.h.
2795 * gimple-fold.c (replace_stmt_with_simplification): Use
2796 gimple_call_combined_fn to test whether we can keep an
2797 existing call.
2798 * gimple-match.h (code_helper): Replace built_in_function
2799 with combined_fn.
2800 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
2801 and case-fn-macros.h.
2802 (gimple_resimplify1): Use fold_const_call.
2803 (gimple_resimplify2, gimple_resimplify3): Likewise.
2804 (build_call_internal, build_call): New functions.
2805 (maybe_push_res_to_seq): Use them.
2806 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
2807 rather than a built-in function.
2808 * tree.h (build_call_expr_internal_loc): Declare.
2809 (maybe_build_call_expr_loc): Likewise.
2810 * tree.c (build_call_expr_internal_loc_array): New function.
2811 (maybe_build_call_expr_loc): Likewise.
2812
2813 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2814
2815 * builtins.h (mathfn_built_in): Add a variant that takes
2816 a combined_fn.
2817 * builtins.c: Include case-cfn-macros.h.
2818 (CASE_MATHFN): Use CASE_CFN_*.
2819 (CASE_MATHFN_REENT): Use CFN_ codes.
2820 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
2821 argument with a combined_fn.
2822 (mathfn_built_in): Add a variant that takes a combined_fn.
2823 (expand_builtin_int_roundingfn_2): Update callers accordingly.
2824 (fold_builtin_sincos, fold_builtin_classify): Likewise.
2825
2826 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2827
2828 * tree-vect-patterns.c: Include case-cfn-macros.h.
2829 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
2830
2831 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2832
2833 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
2834 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
2835 (pass_cse_sincos::execute): Likewise.
2836
2837 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2838
2839 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
2840 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
2841 (decrement_power, acceptable_pow_call): Likewise.
2842 (attempt_builtin_copysign): Likewise.
2843
2844 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2845
2846 * tree-vrp.c: Include case-cfn-macros.h.
2847 (extract_range_basic): Switch on combined_fn rather than handling
2848 built-in functions and internal functions separately.
2849
2850 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2851
2852 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
2853 than a built_in_function.
2854 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2855 a function decl.
2856 (integer_valued_real_call_p): Likewise.
2857 * fold-const.c: Include case-cfn-macros.h
2858 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
2859 (negate_expr_p): Update accordingly.
2860 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
2861 a function decl.
2862 (integer_valued_real_call_p): Likewise.
2863 (tree_invalid_nonnegative_warnv_p): Update accordingly.
2864 (integer_valued_real_p): Likewise.
2865 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
2866 to tree_call_nonnegative_warnv_p.
2867 (gimple_call_integer_valued_real_p): Likewise
2868 integer_valued_real_call_p.
2869 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
2870 (backprop::process_builtin_call_use): Extend to combined_fn.
2871 (strip_sign_op_1): Likewise.
2872 (backprop::process_use): Don't check for built-in calls here.
2873 (backprop::execute): Likewise.
2874 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
2875
2876 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2877
2878 * fold-const-call.h (fold_const_call): Replace built_in_function
2879 arguments with combined_fn arguments.
2880 * fold-const-call.c: Include case-cfn-macros.h.
2881 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
2882 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
2883 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
2884 built_in_function arguments with combined_fn arguments.
2885 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
2886 (fold_builtin_3): Update calls to fold_const_call.
2887
2888 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2889
2890 * Makefile.in (HASH_TABLE_H): Add GGC_H.
2891 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
2892 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
2893 (build/gencfn-macros$(build_exeext): New rules.
2894 (genprogerr): Add cfn-macros.
2895 * hash-set.h (hash_set): Use the traits value_type as the key.
2896 * gencfn-macros.c: New file.
2897
2898 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2899
2900 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
2901 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
2902 * builtins.c (associated_internal_fn): Handle them.
2903
2904 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2905
2906 * builtins.h (associated_internal_fn): Declare.
2907 (replacement_internal_fn): Likewise.
2908 * builtins.c: Include internal-fn.h
2909 (associated_internal_fn, replacement_internal_fn): New functions.
2910 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
2911 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
2912 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
2913 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
2914 (LDEXP): New functions.
2915 * internal-fn.c: Include recog.h.
2916 (unary_direct, binary_direct): New macros.
2917 (expand_direct_optab_fn): New function.
2918 (expand_unary_optab_fn): New macro.
2919 (expand_binary_optab_fn): Likewise.
2920 (direct_unary_optab_supported_p): Likewise.
2921 (direct_binary_optab_supported_p): Likewise.
2922
2923 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2924
2925 * coretypes.h (tree_pair): New type.
2926 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
2927 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
2928 * internal-fn.h (direct_internal_fn_info): New structure.
2929 (direct_internal_fn_array): Declare.
2930 (direct_internal_fn_p, direct_internal_fn): New functions.
2931 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
2932 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
2933 (mask_store_direct, store_lanes_direct): New macros.
2934 (direct_internal_fn_array) New array.
2935 (get_multi_vector_move): Return the optab handler without asserting
2936 that it is available.
2937 (expand_LOAD_LANES): Rename to...
2938 (expand_load_lanes_optab_fn): ...this and add an optab argument.
2939 (expand_STORE_LANES): Rename to...
2940 (expand_store_lanes_optab_fn): ...this and add an optab argument.
2941 (expand_MASK_LOAD): Rename to...
2942 (expand_mask_load_optab_fn): ...this and add an optab argument.
2943 (expand_MASK_STORE): Rename to...
2944 (expand_mask_store_optab_fn): ...this and add an optab argument.
2945 (direct_internal_fn_types, direct_optab_supported_p)
2946 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
2947 (direct_internal_fn_supported_p): New functions.
2948 (direct_mask_load_optab_supported_p): New macro.
2949 (direct_load_lanes_optab_supported_p): Likewise.
2950 (direct_mask_store_optab_supported_p): Likewise.
2951 (direct_store_lanes_optab_supported_p): Likewise.
2952
2953 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2954
2955 * tree-core.h (internal_fn): Move immediately after the definition
2956 of built_in_function.
2957 (combined_fn): New enum.
2958 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
2959 (internal_fn_p, as_internal_fn): New functions.
2960 (get_call_combined_fn, combined_fn_name): Declare.
2961 * tree.c (get_call_combined_fn): New function.
2962 (combined_fn_name): Likewise.
2963 * gimple.h (gimple_call_combined_fn): Declare.
2964 * gimple.c (gimple_call_combined_fn): New function.
2965
2966 2015-11-17 Martin Sebor <msebor@redhat.com>
2967
2968 PR c++/68308
2969 * cp/init.c (build_new_1): Check for expression constness
2970 the right way.
2971
2972 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2973
2974 PR target/53587
2975 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
2976 option list.
2977 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
2978 discussion of the Microsoft structure layout details here from
2979 its former home in extend.texi.
2980 * doc/extend.texi (x86 Variable Attributes): Replace detailed
2981 discussion with pointer to its new location. Add cross-reference
2982 to corresponding type attributes.
2983 (x86 Type Attributes): Add cross-references to command-line options
2984 and variable attributes.
2985
2986 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
2987
2988 PR middle-end/68134
2989 * targhooks.c (default_get_mask_mode): Filter out
2990 scalar modes returned by mode_for_vector.
2991
2992 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2993
2994 PR target/68143
2995 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
2996 offset from dstbase and use it appropriately in
2997 adjust_automodify_address.
2998 (arm_block_set_aligned_vect): Likewise.
2999
3000 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
3001
3002 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3003 (MULTILIB_DIRNAMES): Adjust accordingly.
3004
3005 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
3006
3007 * config/aarch64/aarch64-cores.def (cortex-a35): New.
3008 * config/aarch64/aarch64.c (cortexa35_tunings): New.
3009 * config/aarch64/aarch64-tune.md: Regenerate.
3010 * doc/invoke.texi (-mcpu): Add Cortex-A35
3011
3012 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
3013
3014 PR target/68263
3015 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3016 to 32 for IAMCU.
3017 * config/i386/sse.md (*mov<mode>_internal): Always enable
3018 AVX and SSE unaligned moves for IAMCU.
3019
3020 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3021
3022 * tree-if-conv.c: Include varasm.h
3023 (ref_DR_map): Define.
3024 (baseref_DR_map): Like wise
3025 (struct ifc_dr): Add new tree predicate field.
3026 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3027 (memrefs_read_or_written_unconditionally): Remove.
3028 (write_memrefs_written_at_least_once): Remove.
3029 (ifcvt_memrefs_wont_trap): Use hash maps to query
3030 unconditional read/written information.
3031 (if_convertible_loop_p_1): Initialize hash maps and predicates
3032 before hashing data references and delete hashmaps at the end.
3033
3034 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3035
3036 PR 56036
3037 * doc/invoke.texi (Optimize Options): Move @end table to the right
3038 place.
3039
3040 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
3041
3042 PR 65129
3043 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3044 return value.
3045
3046 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
3047
3048 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3049 128-bit types, just types that fit in a single vector.
3050 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3051
3052 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
3053
3054 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3055 in the user documentation.
3056 (define_peephole2, define_split): Similarly.
3057
3058 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3059
3060 * lto-streamer-out.c (write_global_references): Adjust integer type.
3061 (lto_output_decl_state_refs): Likewise.
3062
3063 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3064
3065 * config/arm/arm-cores.def (cortex-a35): New.
3066 * config/arm/arm.c (arm_cortex_a35_tune): New.
3067 * config/arm/arm-tables.opt: Regenerate.
3068 * config/arm/arm-tune.md: Regenerate.
3069 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3070 * config/arm/t-aprofile: Likewise.
3071 * doc/invoke.texi (-mcpu): Likewise.
3072
3073 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
3074
3075 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3076 and qdf24xx and xgene1 to match -march=armv8-a.
3077
3078 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3079
3080 PR rtl-optimization/68330
3081 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3082 of LSHIFTRT by a non-zero constant integer.
3083
3084 2015-11-16 Richard Biener <rguenther@suse.de>
3085
3086 PR tree-optimization/68306
3087 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3088 bogus copying from verify_data_ref_alignment and use continue
3089 instead of return.
3090
3091 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
3092 Kaz Kojima <kkojima@gcc.gnu.org>
3093
3094 PR target/68277
3095 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3096 operands[2].
3097 (*addsi3): Add another insn_and_split variant for reload.
3098
3099 2015-11-16 Richard Biener <rguenther@suse.de>
3100
3101 PR middle-end/68117
3102 * cfgexpand.c (pass_expand::execute): Destroy the edge
3103 redirection var map before setting RTL CFG hooks.
3104
3105 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
3106
3107 * config/i386/sse.md (reduc_splus_v8df): Rename to...
3108 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3109
3110 (reduc_splus_v4df): Rename to...
3111 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3112
3113 (reduc_splus_v2df): Rename to...
3114 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3115
3116 (reduc_splus_v16sf): Rename to...
3117 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3118
3119 (reduc_splus_v8sf): Rename to...
3120 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3121
3122 (reduc_splus_v4sf): Rename to...
3123 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3124
3125 (reduc_<code>_<mode>, all 3 variants): Rename each to...
3126 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3127
3128 (reduc_umin_v8hf): Rename to...
3129 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3130
3131 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3132
3133 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3134 without additional conditions.
3135 * doc/extend.texi (@item simd): New.
3136
3137 2015-11-16 Tom de Vries <tom@codesourcery.com>
3138
3139 * passes.c (first_pass_instance): Remove variable.
3140 (execute_todo): Remove setting of first_pass_instance.
3141 * tree-pass.h (first_pass_instance): Remove declaration.
3142
3143 2015-11-16 Tom de Vries <tom@codesourcery.com>
3144
3145 * passes.def: Add arg to pass_ccp pass instantiation.
3146 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
3147 instead of first_pass_instance.
3148 (do_ssa_ccp): Add and handle param nonzero_p.
3149 (pass_ccp::pass_ccp): Initialize nonzero_p.
3150 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
3151 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3152 (pass_ccp::nonzero_p): New private member.
3153
3154 2015-11-16 Tom de Vries <tom@codesourcery.com>
3155
3156 * passes.def: Add arg to pass_object_sizes pass instantiation.
3157 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3158 insert_min_max_p.
3159 (pass_object_sizes::set_pass_param): New member function. Set
3160 insert_min_max_p.
3161 (pass_object_sizes::insert_min_max_p): New private member.
3162 (pass_object_sizes::execute): Use insert_min_max_p instead of
3163 first_pass_instance.
3164
3165 2015-11-16 Tom de Vries <tom@codesourcery.com>
3166
3167 * passes.def: Add arg to pass_dominator pass instantiation.
3168 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3169 of comment.
3170 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3171 may_peel_loop_headers_p.
3172 (pass_dominator::set_pass_param): New member function. Set
3173 may_peel_loop_headers_p.
3174 (pass_dominator::may_peel_loop_headers_p): New private member.
3175 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3176 first_pass_instance.
3177
3178 2015-11-16 Tom de Vries <tom@codesourcery.com>
3179
3180 * passes.def: Add arg to pass_reassoc pass instantiation.
3181 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3182 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3183 of first_pass_instance.
3184 (execute_reassoc): Add and handle insert_powi_p parameter.
3185 (pass_reassoc::insert_powi_p): New private member.
3186 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3187 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
3188 (pass_reassoc::execute): Call execute_reassoc with extra arg.
3189
3190 2015-11-16 Tom de Vries <tom@codesourcery.com>
3191
3192 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3193 * gen-pass-instances.awk (handle_line): Same.
3194 * pass_manager.h (class pass_manager): Define and undefine
3195 NEXT_PASS_WITH_ARG.
3196 * passes.c (opt_pass::set_pass_param): New function.
3197 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3198 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3199 * tree-pass.h (gimple_opt::set_pass_param): Declare.
3200 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3201 warn_array_bounds_p parameter.
3202 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3203 (pass_vrp::set_pass_param): New function.
3204 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3205 (pass_vrp::warn_array_bounds_p): New private member.
3206
3207 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3208
3209 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3210 (output_probe_stack_range): Rotate the loop and simplify.
3211
3212 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3213
3214 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3215 (output_probe_stack_range): Rotate the loop and simplify.
3216
3217 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3218
3219 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3220 an lea instruction when possible.
3221 (output_adjust_stack_and_probe): Rotate the loop and simplify.
3222 (ix86_emit_probe_stack_range): Adjust.
3223 (output_probe_stack_range): Rotate the loop and simplify.
3224
3225 2015-11-16 Christian Bruel <christian.bruel@st.com>
3226
3227 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3228 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3229 with appropriate pragma GCC target.
3230
3231 2015-11-16 Christian Bruel <christian.bruel@st.com>
3232
3233 PR target/65837
3234 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3235 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3236
3237 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3238
3239 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3240 (cortexa57_tunings): Use it.
3241
3242 2015-11-16 Christian Bruel <christian.bruel@st.com>
3243
3244 PR target/65837
3245 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3246 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3247 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3248 undefine __ARM_FP.
3249 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3250 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3251 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3252 * doc/extend.texi (-mfpu=): Describe attribute.
3253
3254 2015-11-16 Christian Bruel <christian.bruel@st.com>
3255
3256 PR target/65837
3257 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3258 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3259 arm_init_neon_builtins.
3260 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3261 (arm_init_neon_builtins_internal)
3262 (arm_init_crypto_builtins_internal):
3263 Test and set neon_set_p, neon_crypto_set_p.
3264 (neon_set_p, neon_crypto_set_p): New static booleans.
3265
3266 2015-11-16 Christian Bruel <christian.bruel@st.com>
3267
3268 PR target/65837
3269 * config/arm/arm.c (arm_fpu_desc): Remove.
3270 (all_fpus): Make global.
3271 (arm_option_override): Use FPU TARGET accessors.
3272 (arm_declare_function_name): Likewise.
3273 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3274 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3275 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3276 (TARGET_NEON): Likewise.
3277 (all_fpus): Declare extern.
3278 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3279 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3280
3281 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3282
3283 PR middle-end/68366
3284 * sdbout.c: Include emit-rtl.h and function.h.
3285
3286 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
3287
3288 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3289 Remove support for FreeBSD 5 and earlier.
3290
3291 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3292
3293 * configure: Regenerate.
3294 * configure.ac: Always define ENABLE_OFFLOADING.
3295 * cgraph.c (cgraph_node::create): Adjust.
3296 * gcc.c (process_command): Likewise.
3297 * omp-low.c (create_omp_child_function): Likewise.
3298 (expand_omp_target): Likewise.
3299 * varpool.c (varpool_node::get_create): Likewise.
3300
3301 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3302
3303 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3304 * df-scan.c (df_get_exit_block_use_set): Adjust.
3305 * except.c (expand_eh_return): Likewise.
3306
3307 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3308
3309 * config/i386/i386.h (TARGET_PECOFF): Remove define.
3310 * defaults.h (TARGET_PECOFF): New default definition.
3311 * varasm.c (handle_vtv_comdat_section): Adjust.
3312
3313 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3314
3315 * defaults.h: New definition of SDB_DEBUGGING_INFO.
3316 * doc/tm.texi: Regenerate.
3317 * doc/tm.texi.in: Adjust.
3318 * final.c (rest_of_clean_state): Remove check if
3319 SDB_DEBUGGING_INFO is defined.
3320 * function.c (number_blocks): Likewise.
3321 * output.h: Likewise.
3322 * sdbout.c: Likewise.
3323 * toplev.c (process_options): Likewise.
3324
3325 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3326
3327 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3328 (enum sdb_masks): Likewise.
3329 * sdbout.c (plain_type_1): Likewise.
3330 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3331
3332 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3333
3334 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3335 internal calls - 0 if ordered simd and 1 for ordered threads simd.
3336 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3337 argument is 1, replace it with GOMP_ordered_* call instead of removing
3338 it.
3339
3340 2015-11-13 Rich Felker <dalias@libc.org>
3341
3342 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3343 address loading hack for FDPIC targets.
3344
3345 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
3346 Jeff Law <law@redhat.com>
3347
3348 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3349 * common.opt (-fsplit-paths): New flag controlling path splitting.
3350 * doc/invoke.texi (fsplit-paths): Document.
3351 * opts.c (default_options_table): Add -fsplit-paths to -O2.
3352 * passes.def: Add split_paths pass.
3353 * timevar.def (TV_SPLIT_PATHS): New timevar.
3354 * tracer.c: Include "tracer.h"
3355 (ignore_bb_p): No longer static.
3356 (transform_duplicate): New function, broken out of tail_duplicate.
3357 (tail_duplicate): Use transform_duplicate.
3358 * tracer.h (ignore_bb_p): Declare
3359 (transform_duplicate): Likewise.
3360 * tree-pass.h (make_pass_split_paths): Declare.
3361 * gimple-ssa-split-paths.c: New file.
3362
3363 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3364 Marek Polacek <polacek@redhat.com>
3365 Jason Merrill <jason@redhat.com>
3366
3367 * convert.c (maybe_fold_build1_loc): New.
3368 (maybe_fold_build2_loc): New.
3369 (convert_to_pointer_1): Split out from convert_to_pointer.
3370 (convert_to_pointer_nofold): New.
3371 (convert_to_real_1): Split out from convert_to_real.
3372 (convert_to_real_nofold): New.
3373 (convert_to_integer_1): Split out from convert_to_integer.
3374 (convert_to_integer_nofold): New.
3375 (convert_to_complex_1): Split out from convert_to_complex.
3376 (convert_to_complex_nofold): New.
3377 * convert.h: Declare new functions.
3378 * tree-complex.c (create_one_component_var): Break up line to
3379 avoid sequence point issues.
3380
3381 2015-11-13 Jason Merrill <jason@redhat.com>
3382
3383 * fold-const.c (fold_convert_const): Fold changing cv-quals on
3384 VECTOR_CST.
3385
3386 * hash-map.h (hash_map::empty): New.
3387
3388 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3389
3390 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3391 (oacc_loop_fixed_partitions): Correct return type to bool.
3392 (oacc_loop_auto_partitions): New.
3393 (oacc_loop_partition): Take mask argument, call
3394 oacc_loop_auto_partitions.
3395 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3396
3397 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3398
3399 * config/rs6000/constraints.md (we constraint): New constraint for
3400 64-bit power9 vector support.
3401 (wL constraint): New constraint for the element in a vector that
3402 can be addressed by the MFVSRLD instruction.
3403
3404 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3405 declaration.
3406 (convert_int_to_float128): Likewise.
3407 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3408 hardware support for IEEE 128-bit floating point.
3409 (rs6000_expand_float128_convert): Likewise.
3410 (convert_float128_to_int): Likewise.
3411 (convert_int_to_float128): Likewise.
3412
3413 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3414 ISA 3.0 hardware IEEE 128-bit floating point.
3415 (UNSPEC_IEEE128_MOVE): Likewise.
3416 (UNSPEC_IEEE128_CONVERT): Likewise.
3417 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3418 (Ff): Add support for DImode.
3419 (Fv): Likewise.
3420 (any_fix code iterator): New and updated iterators for IEEE
3421 128-bit floating point hardware support.
3422 (any_float code iterator): Likewise.
3423 (s code attribute): Likewise.
3424 (su code attribute): Likewise.
3425 (az code attribute): Likewise.
3426 (uns code attribute): Likewise.
3427 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
3428 floating point hardware support.
3429 (abs<mode>2, FLOAT128 iterator): Likewise.
3430 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
3431 floating point hardware.
3432 (sub<mode>3, IEEE128 iterator): Likewise.
3433 (mul<mode>3, IEEE128 iterator): Likewise.
3434 (div<mode>3, IEEE128 iterator): Likewise.
3435 (copysign<mode>3, IEEE128 iterator): Likewise.
3436 (sqrt<mode>2, IEEE128 iterator): Likewise.
3437 (neg<mode>2, IEEE128 iterator): Likewise.
3438 (abs<mode>2, IEEE128 iterator): Likewise.
3439 (nabs<mode>2, IEEE128 iterator): Likewise.
3440 (fma<mode>4_hw, IEEE128 iterator): Likewise.
3441 (fms<mode>4_hw, IEEE128 iterator): Likewise.
3442 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
3443 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
3444 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
3445 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
3446 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
3447 (fix_fixuns code attribute): Likewise.
3448 (float_floatuns code attribute): Likewise.
3449 (fix<uns>_<mode>si2_hw): Likewise.
3450 (fix<uns>_<mode>di2_hw): Likewise.
3451 (float<uns>_<mode>si2_hw): Likewise.
3452 (float<uns>_<mode>di2_hw): Likewise.
3453 (xscvqp<su>wz_<mode>): Likewise.
3454 (xscvqp<su>dz_<mode>): Likewise.
3455 (xscv<su>dqp_<mode): Likewise.
3456 (ieee128_mfvsrd): Likewise.
3457 (ieee128_mfvsrwz): Likewise.
3458 (ieee128_mtvsrw): Likewise.
3459 (ieee128_mtvsrd): Likewise.
3460 (trunc<mode>df2_odd): Likewise.
3461 (cmp<mode>_h): Likewise.
3462 (128-bit GPR splitters): Don't split a 128-bit move that is a
3463 direct move between GPR and vector registers using ISA 3.0 direct
3464 move instructions.
3465 (maddld4): Add support for the ISA 3.0 integer multiply-add
3466 instruction.
3467
3468 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
3469 debugging.
3470 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
3471 constraint. Disable the VSX<->GPR direct move helpers if we have
3472 the MFVSRLD and MTVSRDD instructions.
3473 (rs6000_secondary_reload_simple_move): Add support for doing
3474 vector direct moves directly without additional scratch registers
3475 if we have ISA 3.0 instructions.
3476 (rs6000_secondary_reload_direct_move): Update comments.
3477 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
3478 instructions.
3479
3480 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
3481 direct move instructions.
3482 (vsx_movti_64bit): Likewise.
3483 (vsx_extract_<mode>): Likewise.
3484
3485 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
3486 macros for ISA 3.0 direct move instructions.
3487 (TARGET_DIRECT_MOVE_128): Likewise.
3488 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
3489 instruction.
3490
3491 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
3492 constraints. Update wa documentation to say not to use %x<n> on
3493 instructions that only take Altivec registers.
3494
3495 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3496
3497 * Makefile.in (OBJS): Add gcc-rich-location.o.
3498 * diagnostic.c (diagnostic_append_note): Pass line_table to
3499 rich_location ctor.
3500 (emit_diagnostic): Likewise.
3501 (inform): Likewise.
3502 (inform_n): Likewise.
3503 (warning): Likewise.
3504 (warning_at): Likewise.
3505 (warning_n): Likewise.
3506 (pedwarn): Likewise.
3507 (permerror): Likewise.
3508 (error): Likewise.
3509 (error_n): Likewise.
3510 (error_at): Likewise.
3511 (sorry): Likewise.
3512 (fatal_error): Likewise.
3513 (internal_error): Likewise.
3514 (internal_error_no_backtrace): Likewise.
3515 (source_range::debug): Likewise.
3516 * gcc-rich-location.c: New file.
3517 * gcc-rich-location.h: New file.
3518 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
3519 (warning_at): Likewise.
3520 * gimple.h (gimple_set_block): Use set_block function.
3521 * input.c (dump_line_table_statistics): Dump stats on how many
3522 ranges were optimized vs how many needed ad-hoc table.
3523 (write_digit_row): Add "map" param; use its range_bits
3524 to calculate the per-character offset.
3525 (dump_location_info): Print the range and column bits for each
3526 ordinary map. Use the range bits to calculate the per-character
3527 offset. Pass the map as a new param to the various calls to
3528 write_digit_row. Eliminate uses of
3529 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
3530 * print-tree.c (print_node): Print any source range information.
3531 * rtl-error.c (diagnostic_for_asm): Likewise.
3532 * toplev.c (general_init): Initialize line_table's
3533 default_range_bits.
3534 * tree-cfg.c (move_block_to_fn): Likewise.
3535 (move_block_to_fn): Likewise.
3536 * tree-inline.c (copy_phis_for_bb): Likewise.
3537 * tree.c (tree_set_block): Likewise.
3538 (get_pure_location): New function.
3539 (set_source_range): New functions.
3540 (set_block): New function.
3541 (set_source_range): New functions.
3542 * tree.h (CAN_HAVE_RANGE_P): New.
3543 (EXPR_LOCATION_RANGE): New.
3544 (EXPR_HAS_RANGE): New.
3545 (get_expr_source_range): New inline function.
3546 (DECL_LOCATION_RANGE): New.
3547 (set_source_range): New decls.
3548 (get_decl_source_range): New inline function.
3549
3550 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
3551
3552 PR tree-optimization/67682
3553 * tree-vect-slp.c (vect_split_slp_store_group): New.
3554 (vect_analyze_slp_instance): During basic block SLP, recurse on
3555 subgroups if vect_build_slp_tree fails after 1st vector.
3556
3557 2015-11-13 Christian Bruel <christian.bruel@st.com>
3558
3559 PR target/65837
3560 * config/arm/arm.c (arm_option_override): Move NEON check...
3561 (arm_option_check_internal): here
3562 (arm_file_start): Move .fpu print...
3563 (arm_declare_function_name): here
3564 (arm_option_print): Dump current fpu name.
3565 * config/arm/arm.opt (arm_fpu_index): Mark Save.
3566
3567 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
3568 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3569
3570 * combine.c (subst): Don't substitute or simplify when
3571 handling register-wise widening multiply.
3572 (force_to_mode): Likewise.
3573
3574 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
3575
3576 PR tree-optimization/68264
3577 * tree-call-cdce.c (gen_one_condition): Update commentary.
3578 (gen_conditions_for_pow_int_base): Invert the sense of the tests
3579 passed to gen_one_condition.
3580 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
3581 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
3582 using EDGE_FALSE_VALUE for edges to the call block and
3583 EDGE_TRUE_VALUE for the others.
3584
3585 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3586
3587 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
3588 complex types.
3589
3590 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3591
3592 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
3593
3594 2015-11-13 Tom de Vries <tom@codesourcery.com>
3595
3596 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
3597 len_of_prefix.
3598
3599 2015-11-13 Tom de Vries <tom@codesourcery.com>
3600
3601 * gen-pass-instances.awk (handle_line): Add args_str variable.
3602
3603 2015-11-13 Martin Liska <mliska@suse.cz>
3604
3605 * graphite-poly.c (free_scop): Release scop->drs vector.
3606 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
3607 Release dom vector.
3608 (try_generate_gimple_bb): Use vNULL as a default initialization
3609 for vectors.
3610
3611 2015-11-13 Martin Liska <mliska@suse.cz>
3612
3613 PR ipa/68311
3614 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
3615 Replace array initialization (using a variable post-increment)
3616 that possible triggers multiple unsequenced modifications
3617 with a pair of pushes to a vector.
3618
3619 2015-11-13 Richard Biener <rguenther@suse.de>
3620
3621 PR tree-optimization/68306
3622 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
3623 loop related checks ...
3624 (vect_verify_datarefs_alignment): ... here.
3625 (vect_slp_analyze_and_verify_node_alignment): Compute and
3626 verify alignment of the single DR that it matters.
3627 * tree-vect-stmts.c (vectorizable_store): Add an assert.
3628 (vectorizable_load): Add a comment.
3629 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
3630 for determining load cost.
3631
3632 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3633
3634 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
3635 mix of boolean and integer vectors in a single statement.
3636 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
3637 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
3638 determine constant type.
3639 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
3640 for loop invariants.
3641
3642 2015-11-13 Alan Hayward <alan.hayward@arm.com>
3643
3644 PR tree-optimization/66558
3645 * tree-vect-loop.c (is_integer_induction):Add.
3646 (vectorizable_reduction): Add integer induction checks.
3647
3648 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
3649
3650 Revert [ARM] Remove neon-testgen.ml and generated tests.
3651
3652 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3653
3654 [ARM] Remove neon-testgen.ml and generated tests.
3655
3656 * config/arm/neon-testgen.ml: Remove.
3657
3658 2015-11-13 Richard Biener <rguenther@suse.de>
3659
3660 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
3661 Signal fatal failure if early checks fail.
3662 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
3663 do not bother testing further vector sizes.
3664
3665 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
3666
3667 * config/i386/predicates.md (misaligned_operand): Return true if
3668 operand is aligned to less than its natural alignmnet.
3669
3670 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3671
3672 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
3673 (vec_cmpu@var{m}@var{n}): New item.
3674 (vcond@var{m}@var{n}): Specify comparison is signed.
3675 (vcondu@var{m}@var{n}): New item.
3676 (vcond_mask_@var{m}@var{n}): New item.
3677 (maskload@var{m}@var{n}): New item.
3678 (maskstore@var{m}@var{n}): New item.
3679
3680 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3681
3682 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3683 types of stored value and storage are compatible.
3684
3685 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
3686
3687 * gcc.c (POST_LINK_SPEC): Define if not already defined.
3688 (LINK_COMMAND_SPEC): Use post_link.
3689 (post_link_spec): New, initialize to POST_LINK_SPEC.
3690 (post_link): Initialize new static spec.
3691 * doc/tm.texi.in (POST_LINK_SPEC): Document.
3692 * doc/tm.texi: Regenerated.
3693
3694 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3695
3696 PR driver/67613
3697 * Makefile.in (GCC_OBJS): Add spellcheck.o.
3698 (OBJS): Add spellcheck-tree.o.
3699 * gcc.c: Include "spellcheck.h".
3700 (suggest_option): New function.
3701 (driver::handle_unrecognized_options): Call suggest_option to
3702 provide a hint about misspelled options.
3703 * spellcheck.c: Update file comment.
3704 (levenshtein_distance): Convert 4-param implementation from static
3705 to extern scope. Remove note about unit tests from leading
3706 comment for const char * implementation. Move tree
3707 implementation to...
3708 * spellcheck-tree.c: New file.
3709 * spellcheck.h (levenshtein_distance): Add 4-param decl.
3710
3711 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3712
3713 * Makefile.in (OBJS): Add spellcheck.o.
3714 * spellcheck.c: New file.
3715 * spellcheck.h: New file.
3716
3717 2015-11-13 James Bowman <james.bowman@ftdichip.com>
3718
3719 * config/ft32/ft32.md (*sne): New insn pattern.
3720
3721 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
3722
3723 * cprop.c (is_too_expensive): Remove.
3724 (gcse.h): Include.
3725 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
3726 is_too_expensive.
3727 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
3728 * gcse.c (is_too_expensive): Rename to ...
3729 (gcse_or_cprop_is_too_expensive): ... this.
3730 Expand warning to add required size of max-gcse-memory.
3731 (one_pre_gcse_pass): Use it.
3732 (one_code_hoisting_pass): Use it.
3733 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
3734
3735 2015-11-12 James Norris <jnorris@codesourcery.com>
3736 Joseph Myers <joseph@codesourcery.com>
3737
3738 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
3739 GF_OMP_TARGET_KIND_OACC_DECLARE.
3740 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
3741 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3742 * gimplify.c (oacc_declare_returns): New.
3743 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
3744 (device_resident_p): New function.
3745 (oacc_default_clause): Handle device_resident clause.
3746 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
3747 (gimplify_expr): Handle OACC_DECLARE.
3748 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
3749 * omp-low.c (expand_omp_target): Handle
3750 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
3751 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
3752 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
3753 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
3754 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3755 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
3756 GOMP_MAP_DEVICE_RESIDENT.
3757
3758 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3759
3760 [ARM] Remove neon-testgen.ml and generated tests.
3761
3762 * config/arm/neon-testgen.ml: Remove.
3763
3764 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
3765
3766 * config/aarch64/aarch64-cores.def (qdf24xx): New.
3767 * config/aarch64/aarch64-tune.md: Regenerated.
3768 * config/arm/arm-cores.def (qdf24xx): New.
3769 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
3770 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
3771 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
3772 (ARM Options/-mtune): Likewise.
3773
3774 2015-11-12 Martin Liska <mliska@suse.cz>
3775
3776 * config/i386/i386.c (ix86_valid_target_attribute_p):
3777 Finalize options at the of the function.
3778 * gcc.c (driver_get_configure_time_options): Call newly
3779 introduced init_opts_obstack.
3780 * lto-wrapper.c (main): Likewise.
3781 * opts.c (init_opts_obstack): New function.
3782 (init_options_struct): Call newly introduced init_opts_obstack.
3783 * opts.h (init_options_struct): Declare.
3784
3785 2015-11-12 Martin Liska <mliska@suse.cz>
3786
3787 PR ipa/68035
3788 * ipa-icf.c (void sem_item::set_hash): New function.
3789 (sem_function::get_hash): Use renamed m_hash member variable.
3790 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
3791 (sem_item::update_hash_by_local_refs): Likewise.
3792 (sem_variable::get_hash): Use renamed m_hash member variable.
3793 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
3794 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
3795 (sem_item_optimizer::build_graph): As the hash value of an item
3796 is lazy initialized, force the calculation.
3797 * ipa-icf.h (set_hash): Declare new function and rename hash member
3798 variable to m_hash.
3799
3800 2015-11-12 Richard Biener <rguenther@suse.de>
3801
3802 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
3803 Rename to vect_slp_analyze_instance_dependence.
3804 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3805 Remove WAR special-case.
3806 (vect_slp_analyze_node_dependences): Instead add more specific
3807 code here, not relying on other instances being vectorized.
3808 (vect_slp_analyze_instance_dependence): Adjust accordingly.
3809 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
3810 vertical space in dump files.
3811 (vect_print_slp_tree): Likewise.
3812 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
3813 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
3814 not vectorized stmts until after dependence analysis removed
3815 instances. Merge alignment and dependence checks.
3816 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
3817 flag on all stmts.
3818
3819 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
3820
3821 * config/aarch64/aarch64-protos.h (tune_params): Add new members
3822 "max_case_values" and "cache_line_size".
3823 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
3824 function.
3825 (aarch64_override_options_internal): Tune heuristics based on new
3826 members in "tune_params".
3827 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
3828
3829 2015-11-12 Richard Biener <rguenther@suse.de>
3830
3831 PR tree-optimization/68306
3832 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
3833 relevant and vectorizable checks here.
3834 (vect_verify_datarefs_alignment): Add relevant check here.
3835
3836 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
3837
3838 * gimplify.c (oacc_default_clause): New.
3839 (omp_notice_variable): Call it.
3840
3841 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3842
3843 PR tree-optimization/68305
3844 * tree-vect-slp.c (vect_get_constant_vectors): Support
3845 COND_EXPR with SSA_NAME as a condition.
3846
3847 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3848
3849 * config/visium/visium-protos.h (notice_update_cc): Delete.
3850 (print_operand): Likewise.
3851 (print_operand_address): Likewise.
3852
3853 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3854
3855 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
3856 FUNCTION_VALUE_REGNO_P): Remove.
3857 * config/alpha/alpha-protos.h (function_value): Remove.
3858 * config/alpha/alpha.c (function_value): Rename to...
3859 (alpha_function_value_1): ... this. Make static.
3860 (alpha_function_value, alpha_libcall_value,
3861 alpha_function_value_regno_p): New functions.
3862 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3863 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3864
3865 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3866
3867 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3868 * config/alpha/alpha.c (alpha_memory_latency): Make static.
3869 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
3870 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3871
3872 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
3873
3874 PR target/67265
3875 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
3876 assertion on the CFA register.
3877
3878 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
3879
3880 * expr.c (do_store_flag): Expand vector comparison as
3881 VEC_COND_EXPR if vector comparison is not supported by target.
3882
3883 2015-11-12 Renlin Li <renlin.li@arm.com>
3884
3885 * config/arm/arm.md (addsi3_compare_op2): Make the order of
3886 assembly pattern consistent with constraint order.
3887
3888 2015-11-12 Tom de Vries <tom@codesourcery.com>
3889
3890 * gen-pass-instances.awk (handle_line): Simplify match regexp.
3891
3892 2015-11-12 Tom de Vries <tom@codesourcery.com>
3893
3894 * gen-pass-instances.awk (handle_line): Simplify init of
3895 postfix_starts_at.
3896
3897 2015-11-12 Tom de Vries <tom@codesourcery.com>
3898
3899 * gen-pass-instances.awk (handle_line): Rename var where to
3900 call_starts_at.
3901
3902 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
3903
3904 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
3905 do not expand to rtl.
3906
3907 2015-11-12 Richard Biener <rguenther@suse.de>
3908
3909 PR tree-optimization/58497
3910 * tree-vect-generic.c: Include gimplify.h.
3911 (tree_vec_extract): Lookup constant/constructor DEFs.
3912 (do_cond): Unshare cond.
3913
3914 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
3915
3916 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
3917 combined insn if the alignment of vector mode memory operand
3918 is less than ssememalign.
3919
3920 2015-11-12 Tom de Vries <tom@codesourcery.com>
3921
3922 * gen-pass-instances.awk (handle_line): Print parentheses and
3923 pass_name explicitly.
3924
3925 2015-11-12 Tom de Vries <tom@codesourcery.com>
3926
3927 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
3928 and postfix vars.
3929
3930 2015-11-12 Tom de Vries <tom@codesourcery.com>
3931
3932 * gen-pass-instances.awk (handle_line): Add comments.
3933
3934 2015-11-12 Tom de Vries <tom@codesourcery.com>
3935
3936 * gen-pass-instances.awk (handle_line): Rename len_of_end to
3937 len_of_close.
3938
3939 2015-11-12 Tom de Vries <tom@codesourcery.com>
3940
3941 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
3942
3943 2015-11-12 Tom de Vries <tom@codesourcery.com>
3944
3945 * gen-pass-instances.awk (handle_line): Restructure using early-out.
3946
3947 2015-11-12 Tom de Vries <tom@codesourcery.com>
3948
3949 * gen-pass-instances.awk (handle_line): Unify semicolon use.
3950
3951 2015-11-12 Tom de Vries <tom@codesourcery.com>
3952
3953 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
3954
3955 2015-11-12 Tom de Vries <tom@codesourcery.com>
3956
3957 * gen-pass-instances.awk: Add emacs indent setting.
3958
3959 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3960
3961 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
3962 to match.pd.
3963 Move Convert A/(B/C) to (A/B)*C to match.pd.
3964 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
3965 Move Optimize (X & (-A)) / A where A is a power of 2, to
3966 X >> log2(A) to match.pd.
3967
3968 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
3969 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
3970 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
3971 New simplifier.
3972 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
3973
3974 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
3975
3976 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
3977 variable.
3978 (neon_vst2_lane<mode>): Likewise.
3979 (neon_vld3_lane<mode>): Likewise.
3980 (neon_vst3_lane<mode>): Likewise.
3981 (neon_vld4_lane<mode>): Likewise.
3982 (neon_vst4_lane<mode>): Likewise.
3983
3984 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
3985 Sebastian Pop <s.pop@samsung.com>
3986
3987 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3988 New member codegen_error
3989 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
3990 early return.
3991 (translate_isl_ast_node_user): Early return in case of error.
3992 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3993 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
3994 (add_parameters_to_ivs_params): Remove macro.
3995 (graphite_regenerate_ast_isl): Add if_region pointer to region.
3996 * graphite-poly.c (new_poly_dr): Remove macro.
3997 (print_pdr): Same.
3998 (new_gimple_poly_bb): Same.
3999 (free_gimple_poly_bb): Same.
4000 (print_scop_params): Same.
4001 * graphite-poly.h (struct poly_dr): Same.
4002 (struct poly_bb): Add new_bb.
4003 (gbb_from_bb): Remove dead code.
4004 (pbb_from_bb): Same.
4005 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4006 (parameter_index_in_region): Same.
4007 (find_scop_parameters): Same.
4008 (build_cross_bb_scalars_def): New.
4009 (build_cross_bb_scalars_use): New.
4010 (graphite_find_cross_bb_scalar_vars): New
4011 (try_generate_gimple_bb): Reads and Writes.
4012 (build_alias_set): Move.
4013 (gather_bbs::before_dom_children): Gather bbs visited.
4014 (build_scops): call build_alias_set.
4015 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4016 (remove_simple_copy_phi): Delete.
4017 (remove_invariant_phi): Delete.
4018 (simple_copy_phi_p): Delete.
4019 (reduction_phi_p): Delete.
4020 (isl_id_for_dr): Remove unused param.
4021 (parameter_index_in_region_1): Remove macro usage.
4022 (set_scop_parameter_dim): Same.
4023 (add_param_constraints): Same.
4024 (add_conditions_to_constraints): Same
4025 (build_scop_iteration_domain): Same.
4026 (pdr_add_alias_set): Comment.
4027 (add_scalar_version_numbers): New.
4028 (build_poly_dr): ISL id.
4029 (build_scop_drs): Move.
4030 (build_poly_sr_1): Same.
4031 (insert_stmts): Remove.
4032 (build_poly_sr): New.
4033 (new_pbb_from_pbb): Delete.
4034 (insert_out_of_ssa_copy_on_edge): Delete.
4035 (create_zero_dim_array): Delete.
4036 (scalar_close_phi_node_p): Delete.
4037 (propagate_expr_outside_region): Delete.
4038 (rewrite_close_phi_out_of_ssa): Delete.
4039 (rewrite_phi_out_of_ssa): Delete.
4040 (rewrite_degenerate_phi): Delete.
4041 (rewrite_reductions_out_of_ssa): Delete.
4042 (rewrite_cross_bb_scalar_dependence): Delete.
4043 (handle_scalar_deps_crossing_scop_limits):
4044 (rewrite_cross_bb_scalar_deps): Delete.
4045 (build_poly_scop): Remove calls to out-of-ssa functions.
4046 * graphite.c (graphite_transform_loops): Early return in case of
4047 codegen error.
4048 * sese.c (debug_rename_map_1): Delete.
4049 (debug_rename_map): Delete.
4050 (sese_record_loop): Remove macro.
4051 (build_sese_loop_nests): Same.
4052 (new_sese_info): Same.
4053 (free_sese_info): Same.
4054 (sese_insert_phis_for_liveouts):
4055 (is_loop_closed_ssa_use): New.
4056 (number_of_phi_nodes): New.
4057 (bb_contains_loop_close_phi_nodes): New.
4058 (bb_contains_loop_phi_nodes): New.
4059 (phi_uses_name): New.
4060 (is_valid_rename):
4061 (get_rename): Add old_bb and loop_phi for more precise matching of
4062 exprs.
4063 (set_rename): Pass region.
4064 (later_of_the_two): New.
4065 (gsi_insert_earliest): New.
4066 (collect_all_ssa_names): New.
4067 (substitute_ssa_name): New.
4068 (rename_all_uses): New.
4069 (get_rename_from_scev): New.
4070 (rename_uses): Pass old_bb for more precise matching of exprs.
4071 (get_def_bb_for_const): New.
4072 (get_new_name): New.
4073 (get_loc): New.
4074 (get_edges): New.
4075 (copy_loop_phi_args): New.
4076 (copy_loop_phi_nodes): New.
4077 (get_loop_init_value): New.
4078 (find_init_value): New.
4079 (find_init_value_close_phi): New.
4080 (copy_loop_close_phi_args): New.
4081 (copy_loop_close_phi_nodes): New.
4082 (add_phi_arg_for_new_expr): New.
4083 (copy_cond_phi_args): New.
4084 (copy_cond_phi_nodes): New.
4085 (copy_phi_nodes): New.
4086 (should_copy_to_new_region): New.
4087 (set_rename_for_each_def): New.
4088 (graphite_copy_stmts_from_block): Early return in case of error.
4089 (copy_bb_and_scalar_dependences): Same.
4090 * sese.h (vec_find): New.
4091 (SESE_PARAMS): Delete.
4092 (SESE_LOOPS): Delete.
4093 (SESE_LOOP_NEST): Delete.
4094 (sese_contains_loop): Remove macro usage.
4095 (sese_nb_params): Same.
4096 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4097
4098 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4099
4100 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4101 isl_union_map_add_map on every pbb->schedule.
4102
4103 2015-11-11 Tom de Vries <tom@codesourcery.com>
4104
4105 * tree-parloops.c (create_parallel_loop): Return void.
4106
4107 2015-11-11 Tom de Vries <tom@codesourcery.com>
4108
4109 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4110 block only when needed.
4111
4112 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
4113
4114 * config/alpha/alpha-protos.h (print_operand): Remove.
4115 (print_operand_address): Remove.
4116 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4117 (PRINT_OPERAND_ADDRESS): Remove.
4118 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4119 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4120 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4121 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4122 (print_operand_address): Rename to...
4123 (alpha_print_operand_address): ...this and make static.
4124 (print_operand): Rename to...
4125 (alpha_print_operand): ...this and make static.
4126 (alpha_print_operand_punct_valid_p): New static function.
4127
4128 2015-11-11 Richard Biener <rguenther@suse.de>
4129
4130 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4131 Declare.
4132 (vect_analyze_data_refs_alignment): Make loop vect specific.
4133 (vect_verify_datarefs_alignment): Likewise.
4134 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4135 Add missing continue.
4136 (vect_compute_data_ref_alignment): Export.
4137 (vect_compute_data_refs_alignment): Merge into...
4138 (vect_analyze_data_refs_alignment): ... this.
4139 (verify_data_ref_alignment): Split out from ...
4140 (vect_verify_datarefs_alignment): ... here.
4141 (vect_slp_analyze_and_verify_node_alignment): New function.
4142 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4143 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4144 misplaced checks on alignment.
4145 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
4146 alignment analysis after SLP discovery and do it per instance.
4147 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4148 bother to re-try using different vector sizes.
4149
4150 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
4151 Cesar Philippidis <cesar@codesourcery.com>
4152
4153 * gimplify.c (enum omp_region_type): Add ORT_ACC,
4154 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
4155 (gimple_add_tmp_var): Add ORT_ACC checks.
4156 (gimplify_var_or_parm_decl): Likewise.
4157 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4158 (omp_add_variable): Look in outer contexts for openacc and allow
4159 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4160 (omp_notice_variable, omp_is_private, omp_check_private): Add
4161 ORT_ACC checks.
4162 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4163 Permit private openacc reductions.
4164 (gimplify_oacc_cache): Specify ORT_ACC.
4165 (gimplify_omp_workshare): Adjust OpenACC region types.
4166 (gimplify_omp_target_update): Likewise.
4167 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4168 (lower-rec_input_clauses): Don't handle openacc firstprivate
4169 references here.
4170 (lower_omp_target): Emit initializers for openacc firstprivate vars.
4171
4172 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
4173
4174 PR target/67265
4175 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4176 frame pointer for stack checking if non-call exceptions aren't used.
4177 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4178
4179 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
4180
4181 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4182 [LA]SHIFTRT.
4183
4184 2015-11-11 Martin Liska <mliska@suse.cz>
4185 Richard Biener <rguenther@suse.de>
4186
4187 PR rtl-optimization/68287
4188 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4189 number of elements.
4190
4191 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
4192
4193 * config/mips/mips.c (mips_breakable_sequence_p): New function.
4194 (mips_break_sequence): New function.
4195 (mips_reorg_process_insns): Use them. Use compact branches in selected
4196 situations.
4197
4198 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
4199
4200 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4201
4202 2015-11-11 Jiong Wang <jiong.wang@arm.com>
4203 Jim Wilson <wilson@gcc.gnu.org>
4204
4205 PR target/67305
4206 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4207 be true and eliminable registers mentioned.
4208
4209 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
4210
4211 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4212 options.
4213 * config/arc/arc-opts.h: Add ARCv2 CPUs.
4214 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4215 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4216 situation, and store instructions with large offsets.
4217 (arc_secondary_reload_conv): New function.
4218 (arc_init): Add ARCv2 options.
4219 (arc_conditional_register_usage): Select the proper register usage
4220 for ARCv2 processors.
4221 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4222 architecture.
4223 (arc_compute_function_type): Likewise.
4224 (arc_print_operand): Handle new ARCv2 punctuation characters.
4225 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4226 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4227 function.
4228 (arc_reorg, arc_hazard): Use it.
4229 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4230 (ASM_SPEC): Add ARCv2 options.
4231 (TARGET_NORM): ARC HS has norm instructions by default.
4232 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4233 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4234 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4235 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4236 Likewise.
4237 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4238 (TARGET_LP_WR_INTERLOCK): Likewise.
4239 * config/arc/arc.md
4240 (commutative_binary_mult_comparison_result_used, movsicc_insn)
4241 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4242 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4243 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4244 Use it for ARCv2.
4245 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4246 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4247 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4248 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4249 (extzvsi): New pattern.
4250 * config/arc/arc.opt: New ARCv2 options.
4251 * config/arc/arcEM.md: New file.
4252 * config/arc/arcHS.md: Likewise.
4253 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4254 values.
4255 (Cm2): A signed 9-bit integer constant constraint.
4256 (C62): An unsigned 6-bit integer constant constraint.
4257 (C16): A signed 16-bit integer constant constraint.
4258 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4259 (short_const_int_operand): New predicate.
4260 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4261 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4262 -mcode-density and -mdiv-rem.
4263
4264 2015-11-11 Julia Koval <julia.koval@intel.com>
4265
4266 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4267
4268 2015-11-11 Julia Koval <julia.koval@intel.com>
4269
4270 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4271
4272 2015-11-11 Martin Liska <mliska@suse.cz>
4273
4274 * gimple-ssa-strength-reduction.c (create_phi_basis):
4275 Use auto_vec.
4276 * passes.c (release_dump_file_name): New function.
4277 (pass_init_dump_file): Used from this function.
4278 (pass_fini_dump_file): Likewise.
4279 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4280 * var-tracking.c (vt_initialize): Use pool_allocator.
4281
4282 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
4283 Jiong Wang <jiong.wang@arm.com>
4284
4285 PR tree-optimization/68234
4286 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4287 node which estimiated to be VR_VARYING initially.
4288
4289 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
4290
4291 * regname.c (scan_rtx_reg): Check the matching number of consecutive
4292 registers when tying chains.
4293 (build_def_use): Move terminated_this_insn earlier in the function.
4294
4295 2015-11-10 Mike Frysinger <vapier@gentoo.org>
4296
4297 * configure.ac: Use = with test and not ==.
4298 * configure: Regenerated.
4299
4300 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
4301
4302 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4303 machine asserts. Update defines for 64 bit.
4304
4305 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4306
4307 PR target/63870
4308 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4309 lane number.
4310 (neon_vst1_lane<mode>): Likewise.
4311 (neon_vld2_lane<mode>): Likewise.
4312 (neon_vst2_lane<mode>): Likewise.
4313 (neon_vld3_lane<mode>): Likewise.
4314 (neon_vst3_lane<mode>): Likewise.
4315 (neon_vld4_lane<mode>): Likewise.
4316 (neon_vst4_lane<mode>): Likewise.
4317
4318 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4319
4320 PR target/63870
4321 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4322 qualifier_struct_load_store_lane_index.
4323 (arm_storestruct_lane_qualifiers) Likewise.
4324 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4325 big-endian.
4326 (neon_vst1_lane<mode>) Likewise.
4327 (neon_vld2_lane<mode>) Likewise.
4328 (neon_vst2_lane<mode>) Likewise.
4329 (neon_vld3_lane<mode>) Likewise.
4330 (neon_vst3_lane<mode>) Likewise.
4331 (neon_vld4_lane<mode>) Likewise.
4332 (neon_vst4_lane<mode>) Likewise.
4333
4334 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4335
4336 PR target/63870
4337 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4338 qualifier_struct_load_store_lane_index.
4339 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4340 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4341 argument qualifiers.
4342 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4343 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4344
4345 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
4346
4347 * config/nvptx/nvptx.opt (moptimize): New flag.
4348 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4349 default.
4350 (nvptx_optimize_inner): New.
4351 (nvptx_process_pars): Call it when optimizing.
4352 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4353
4354 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4355
4356 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4357 Remove redundant code.
4358
4359 2015-11-10 Jeff Law <law@redhat.com>
4360
4361 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4362 call to output_address.
4363 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4364 Add unnamed machine_mode argument.
4365
4366 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4367
4368 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4369 default to 64-bit.
4370
4371 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4372
4373 * config/i386/i386.md (*movabs<mode>_1): Add explicit
4374 size directives for -masm=intel.
4375 (*movabs<mode>_2): Ditto.
4376
4377 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4378
4379 * config/i386/i386.c (ix86_print_operand): Remove dead code that
4380 tried to avoid (%rip) for call operands.
4381
4382 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4383
4384 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4385 argument. Do not use RIP relative addressing when no_rip is set.
4386 (ix86_print_operand): Update call to ix86_print_operand_address_as.
4387 (ix86_print_operand_address): Ditto.
4388 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4389 absolute movabs operand 0. Add square braces for -masm=intel.
4390 (*movabs<mode>_2): Ditto for operand 1.
4391
4392 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4393
4394 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4395 combine_vcvtf2i pattern.
4396
4397 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4398
4399 * config/arm/arm.c (neon_valid_immediate): Remove integer
4400 CONST_DOUBLE handling. It should never occur.
4401
4402 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
4403
4404 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4405 (ATOMIC_LDOP): Likewise.
4406 (atomic_ldop): Likewise.
4407 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4408 (ATOMIC_LDOP): Likewise.
4409 (atomic_ldop): Likewise.
4410
4411 2015-11-10 Martin Liska <mliska@suse.cz>
4412
4413 * alloc-pool.h (allocate_raw): New function.
4414 (operator new (size_t, object_allocator<T> &a)): Use the
4415 function instead of object_allocator::allocate).
4416
4417 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4418
4419 * config/i386/sse.md (HALFMASKMODE): New attribute.
4420 (DOUBLEMASKMODE): New attribute.
4421 (vec_pack_trunc_qi): New.
4422 (vec_pack_trunc_<mode>): New.
4423 (vec_unpacks_lo_hi): New.
4424 (vec_unpacks_lo_si): New.
4425 (vec_unpacks_lo_di): New.
4426 (vec_unpacks_hi_hi): New.
4427 (vec_unpacks_hi_<mode>): New.
4428
4429 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4430
4431 * optabs.c (expand_binop_directly): Allow scalar mode for
4432 vec_pack_trunc_optab.
4433 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4434 boolean vector producers from pattern sequence when computing VF.
4435 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
4436 vect_recog_mask_conversion_pattern.
4437 (search_type_for_mask): Choose the smallest
4438 type if different size types are mixed.
4439 (build_mask_conversion): New.
4440 (vect_recog_mask_conversion_pattern): New.
4441 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
4442 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
4443 load with pattern.
4444 (vectorizable_conversion): Support boolean vectors.
4445 (free_stmt_vec_info): Allow patterns for statements with no lhs.
4446 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
4447
4448 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4449
4450 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
4451 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
4452 Cast mask to FP mode if required.
4453 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
4454 (vcond_mask_<mode><avx512fmaskmodelower>): New.
4455 (vcond_mask_<mode><sseintvecmodelower>): New.
4456 (vcond_mask_<mode><sseintvecmodelower>): New.
4457 (vcond_mask_v2div2di): New.
4458 (vcond_mask_<mode><sseintvecmodelower>): New.
4459 (vcond_mask_<mode><sseintvecmodelower>): New.
4460
4461 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4462
4463 * optabs-query.h (get_vcond_mask_icode): New.
4464 * optabs-tree.c (expand_vec_cond_expr_p): Use
4465 get_vcond_mask_icode for VEC_COND_EXPR with mask.
4466 * optabs.c (expand_vec_cond_mask_expr): New.
4467 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
4468 * optabs.def (vcond_mask_optab): New.
4469 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
4470 generate redundant comparison for COND_EXPR.
4471 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
4472 as a condition.
4473 (vectorizable_condition): Likewise.
4474 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
4475 cond_exp with no embedded comparison.
4476 (vect_build_slp_tree_1): Likewise.
4477
4478 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4479
4480 * config/i386/sse.md (maskload<mode>): Rename to ...
4481 (maskload<mode><sseintvecmodelower>): ... this.
4482 (maskstore<mode>): Rename to ...
4483 (maskstore<mode><sseintvecmodelower>): ... this.
4484 (maskload<mode><avx512fmaskmodelower>): New.
4485 (maskstore<mode><avx512fmaskmodelower>): New.
4486
4487 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4488
4489 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
4490 (expand_MASK_STORE): Adjust to maskstore optab changes.
4491 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
4492 Adjust to maskload, maskstore optab changes.
4493 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
4494 * optabs.def (maskload_optab): Transform into convert optab.
4495 (maskstore_optab): Likewise.
4496 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
4497 can_vec_mask_load_store_p signature change.
4498 (predicate_mem_writes): Use boolean mask.
4499 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
4500 can_vec_mask_load_store_p signature change. Allow invariant masks.
4501 (vectorizable_operation): Ignore type precision for boolean vectors.
4502
4503 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4504
4505 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
4506 (const_vector_mask_from_tree): New.
4507 (const_vector_from_tree): Use const_vector_mask_from_tree
4508 for boolean vectors.
4509 * optabs-query.h (get_vec_cmp_icode): New.
4510 * optabs-tree.c (expand_vec_cmp_expr_p): New.
4511 * optabs-tree.h (expand_vec_cmp_expr_p): New.
4512 * optabs.c (vector_compare_rtx): Add OPNO arg.
4513 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
4514 (expand_vec_cmp_expr): New.
4515 * optabs.def (vec_cmp_optab): New.
4516 (vec_cmpu_optab): New.
4517 * optabs.h (expand_vec_cmp_expr): New.
4518 * tree-vect-generic.c (expand_vector_comparison): Add vector
4519 comparison optabs check.
4520 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
4521 operations for VF. Add mask type computation.
4522 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
4523 (vectorizable_comparison): New.
4524 (vect_analyze_stmt): Add vectorizable_comparison.
4525 (vect_transform_stmt): Likewise.
4526 (vect_init_vector): Support boolean vector invariants.
4527 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4528 (vectorizable_condition): Directly provide vectype for invariants
4529 used in comparison.
4530 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
4531 (enum vect_var_kind): Add vect_mask_var.
4532 (enum stmt_vec_info_type): Add comparison_vec_info_type.
4533 (vectorizable_comparison): New.
4534 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4535 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
4536 (vect_create_destination_var): Likewise.
4537 * tree-vect-patterns.c (check_bool_pattern): Check fails
4538 if we can vectorize comparison directly.
4539 (search_type_for_mask): New.
4540 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
4541 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
4542 comparison statements.
4543 (vect_get_constant_vectors): Support boolean vector constants.
4544 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
4545 (ix86_expand_int_vec_cmp): New.
4546 (ix86_expand_fp_vec_cmp): New.
4547 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
4548 op_true and op_false.
4549 (ix86_int_cmp_code_to_pcmp_immediate): New.
4550 (ix86_fp_cmp_code_to_pcmp_immediate): New.
4551 (ix86_cmp_code_to_pcmp_immediate): New.
4552 (ix86_expand_mask_vec_cmp): New.
4553 (ix86_expand_fp_vec_cmp): New.
4554 (ix86_expand_int_sse_cmp): New.
4555 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
4556 (ix86_expand_int_vec_cmp): New.
4557 (ix86_get_mask_mode): New.
4558 (TARGET_VECTORIZE_GET_MASK_MODE): New.
4559 * config/i386/sse.md (avx512fmaskmodelower): New.
4560 (vec_cmp<mode><avx512fmaskmodelower>): New.
4561 (vec_cmp<mode><sseintvecmodelower>): New.
4562 (vec_cmpv2div2di): New.
4563 (vec_cmpu<mode><avx512fmaskmodelower>): New.
4564 (vec_cmpu<mode><sseintvecmodelower>): New.
4565 (vec_cmpuv2div2di): New.
4566
4567 2015-11-10 Richard Biener <rguenther@suse.de>
4568
4569 PR tree-optimization/68240
4570 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
4571 properly.
4572 (visit_phi): For PHIs with just a single executable edge
4573 take its value directly.
4574 (expressions_equal_p): Handle VN_TOP properly.
4575
4576 2015-11-10 Richard Biener <rguenther@suse.de>
4577
4578 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4579 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
4580 conservatively.
4581
4582 2015-11-10 Richard Biener <rguenther@suse.de>
4583
4584 PR tree-optimization/56118
4585 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
4586 cost favor vectorized version.
4587
4588 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4589
4590 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
4591 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
4592 (neg_not_op): New code attribute.
4593
4594 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4595
4596 * ifcvt.c (noce_try_inverse_constants): New function.
4597 (noce_process_if_block): Call it.
4598 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
4599 * optabs.def (negcc_optab, notcc_optab): Declare.
4600 * optabs.c (emit_conditional_neg_or_complement): New function.
4601 * doc/tm.texi (Standard Names): Document negcc, notcc names.
4602
4603 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4604
4605 PR rtl-optimization/68236
4606 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
4607 if insn_queue doesn't exist.
4608 (haifa_sched_finish): Reset insn_queue to NULL.
4609
4610 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
4611
4612 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
4613 (build_def_use): Initialize terminated_this_insn.
4614 (find_best_rename_reg): Pick and check register from the tied chain.
4615 (regrename_do_replace): Mark head as renamed.
4616 (struct du_head *terminated_this_insn). New static variable.
4617 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
4618 * regrename.h (struct du_head): Add tied_chain, renamed members.
4619
4620 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4621
4622 PR bootstrap/68256
4623 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
4624 Return false.
4625
4626 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4627
4628 PR target/57845
4629 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
4630 not promote the mode for aggregate types.
4631
4632 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4633
4634 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
4635 * omp-low.c (build_oacc_routine_dims): New.
4636
4637 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4638
4639 * config/rs6000/constraints.md (wF constraint): New constraints
4640 for power9/toc fusion.
4641 (wG constraint): Likewise.
4642
4643 * config/rs6000/predicates.md (u6bit_cint_operand): New
4644 predicate, recognize 0..63.
4645 (upper16_cint_operand): New predicate for power9 and toc fusion.
4646 (fpr_reg_operand): Likewise.
4647 (toc_fusion_or_p9_reg_operand): Likewise.
4648 (toc_fusion_mem_raw): Likewise.
4649 (toc_fusion_mem_wrapped): Likewise.
4650 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
4651 address range.
4652 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
4653 instead.
4654 (fusion_addis_mem_combo_load): Add support for power9 fusion of
4655 floating point loads, floating point stores, and gpr stores.
4656 (fusion_addis_mem_combo_store): Likewise.
4657 (fusion_offsettable_mem_operand): Likewise.
4658
4659 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
4660 (emit_fusion_load_store): Likewise.
4661 (fusion_p9_p): Likewise.
4662 (expand_fusion_p9_load): Likewise.
4663 (expand_fusion_p9_store): Likewise.
4664 (emit_fusion_p9_load): Likewise.
4665 (emit_fusion_p9_store): Likewise.
4666 (fusion_wrap_memory_address): Likewise.
4667
4668 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
4669 elements for power9 fusion.
4670 (rs6000_debug_print_mode): Rework debug information to print more
4671 information about fusion.
4672 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
4673 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
4674 offsettable memory address.
4675 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
4676 (emit_fusion_gpr_load): Move most of the code from
4677 emit_fusion_gpr_load into emit_fusion-addis that handles both
4678 power8 and power9 fusion.
4679 (emit_fusion_addis): Likewise.
4680 (emit_fusion_load_store): Likewise.
4681 (fusion_wrap_memory_address): Add support for TOC fusion.
4682 (fusion_split_address): Likewise.
4683 (fusion_p9_p): Add support for power9 fusion.
4684 (expand_fusion_p9_load): Likewise.
4685 (expand_fusion_p9_store): Likewise.
4686 (emit_fusion_p9_load): Likewise.
4687 (emit_fusion_p9_store): Likewise.
4688
4689 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
4690 new instructions in ISA 3.0.
4691 (TARGET_CTZ): Likewise.
4692 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
4693 (TARGET_TOC_FUSION_FP): Likewise.
4694
4695 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
4696 fusion unspecs.
4697 (UNSPEC_FUSION_ADDIS): Likewise.
4698 (QHSI mode iterator): New iterator for power9 fusion.
4699 (GPR_FUSION): Likewise.
4700 (FPR_FUSION): Likewise.
4701 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
4702 (umod<mode>3): Likewise.
4703 (divmod peephole): Likewise.
4704 (udivmod peephole): Likewise.
4705 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
4706 instructions.
4707 (ctz<mode>2_h): Likewise.
4708 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
4709 (ashdi3_extswsli_dot): Likewise.
4710 (ashdi3_extswsli_dot2): Likewise.
4711 (power9 fusion splitter): New power9/toc fusion support.
4712 (toc_fusionload_<mode>): Likewise.
4713 (toc_fusionload_di): Likewise.
4714 (fusion_gpr_load_<mode>): Update predicate function.
4715 (power9 fusion peephole2s): New power9/toc fusion support.
4716 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4717 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
4718 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4719 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4720 (fusion_p9_<mode>_constant): Likewise.
4721
4722 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
4723
4724 * optabs.c (prepare_libcall_arg): New function.
4725 (expand_fixed_convert): Add call to prepare_libcall_arg.
4726
4727 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
4728
4729 * sched-int.h (dump_rgn_dependencies_dot): Declare
4730 * sched-rgn.c (dump_rgn_dependencies_dot): New function
4731 * print-rtl.h (print_insn): Add prototype
4732
4733 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
4734 * common.opt (-fsched-verbose): Set default value to 1.
4735 * invoke.texi (-fsched-verbose): Update the option's description.
4736
4737 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4738
4739 * config/visium/visium.h (PRINT_OPERAND): Delete.
4740 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4741 (PRINT_OPERAND_ADDRESS): Likewise.
4742 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
4743 to...
4744 (visium_print_operand_punct_valid_p): ...this. New function.
4745 (TARGET_PRINT_OPERAND): Define to...
4746 (print_operand): Rename to...
4747 (visium_print_operand): ...this.
4748 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
4749 (visium_output_address): Rename to...
4750 (visium_print_operand_address): ...this.
4751 (print_operand_address): Delete.
4752
4753 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4754
4755 PR middle-end/68259
4756 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
4757 Check that the type of the first operand is an aggregate type.
4758
4759 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4760
4761 * omp-low.c: Fix some OpenACC comment typos.
4762 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
4763 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
4764 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
4765
4766 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
4767
4768 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
4769
4770 2015-11-09 Jeff Law <law@redhat.com>
4771
4772 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
4773 being in gimple/ssa form. Remove redundant check for SSA_NAME.
4774 Fix comment typo.
4775
4776 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4777 Peter Bergner <bergner@vnet.ibm.com>
4778
4779 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
4780 ISA 3.0 (power9).
4781 (-mpower9-vector): Likewise.
4782 (-mpower9-dform): Likewise.
4783 (-mpower9-minmax): Likewise.
4784 (-mtoc-fusion): Likewise.
4785 (-mmodulo): Likewise.
4786 (-mfloat128-hardware): Likewise.
4787
4788 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
4789 mask for ISA 3.0 (power9).
4790 (POWERPC_MASKS): Add new ISA 3.0 switches.
4791 (power9 cpu): Add power9 cpu.
4792
4793 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
4794 (ASM_CPU_SPEC): Likewise.
4795 (EXTRA_SPECS): Likewise.
4796
4797 * config/rs6000/rs6000-opts.h (enum processor_type): Add
4798 PROCESSOR_POWER9.
4799
4800 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
4801 (rs6000_debug_reg_global): Add support for power9 fusion.
4802 (rs6000_setup_reg_addr_masks): Cache mode size.
4803 (rs6000_option_override_internal): Until real power9 tuning is
4804 added, use -mtune=power8 for -mcpu=power9.
4805 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
4806 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
4807 of Altivec registers.
4808 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
4809 (rs6000_loop_align): Add support for power9 cpu.
4810 (rs6000_file_start): Likewise.
4811 (rs6000_adjust_cost): Likewise.
4812 (rs6000_issue_rate): Likewise.
4813 (insn_must_be_first_in_group): Likewise.
4814 (insn_must_be_last_in_group): Likewise.
4815 (force_new_group): Likewise.
4816 (rs6000_register_move_cost): Likewise.
4817 (rs6000_opt_masks): Likewise.
4818
4819 * config/rs6000/rs6000.md (cpu attribute): Add power9.
4820 * config/rs6000/rs6000-tables.opt: Regenerate.
4821
4822 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4823 _ARCH_PWR9 if power9 support is available.
4824
4825 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
4826 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
4827
4828 * configure.ac: Determine if the assembler supports the ISA 3.0
4829 instructions.
4830 * config.in (HAVE_AS_POWER9): Likewise.
4831 * configure: Regenerate.
4832
4833 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
4834 switches.
4835
4836 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4837
4838 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
4839 Remove integer CONST_DOUBLE handling. It should never occur.
4840
4841 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4842
4843 PR target/68129
4844 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
4845 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
4846 Delete VOIDmode case. Assert that mode is not VOIDmode.
4847 * config/aarch64/predicates.md (const0_operand): Remove const_double
4848 match.
4849
4850 2015-11-09 Martin Liska <mliska@suse.cz>
4851
4852 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
4853 body_info release function.
4854 * ipa-prop.c (ipa_release_body_info): New function.
4855 (ipa_analyze_node): Call the function.
4856 (ipa_node_params::~ipa_node_params): Release known_csts.
4857 * ipa-prop.h (ipa_release_body_info): Declare.
4858
4859 2015-11-09 Martin Liska <mliska@suse.cz>
4860
4861 * gcc.c (record_temp_file): Release name string.
4862 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
4863 * lra-lives.c (free_live_range_list): Utilize
4864 lra_live_range_pool for allocation and deallocation.
4865 (create_live_range): Likewise.
4866 (copy_live_range): Likewise.
4867 (lra_merge_live_ranges): Likewise.
4868 (remove_some_program_points_and_update_live_ranges): Likewise.
4869 (lra_create_live_ranges_1): Release point_freq_vec that can
4870 be not freed from previous iteration of the function.
4871 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
4872 * tree-sra.c (sra_deinitialize): Release all vectors in
4873 base_access_vec.
4874 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
4875 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
4876 Release edge_info for a removed edge.
4877 (thread_through_all_blocks): Free region vector.
4878 * tree-ssa.h (free_dom_edge_info): Declare function extern.
4879
4880 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
4881
4882 * optabs.c (expand_vec_cond_expr): Always get sign from type.
4883 * tree.c (wide_int_to_tree): Support negative values for boolean.
4884 (build_nonstandard_boolean_type): Use signed type for booleans.
4885
4886 2015-11-09 Richard Biener <rguenther@suse.de>
4887
4888 PR tree-optimization/68248
4889 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
4890
4891 2015-11-09 Richard Biener <rguenther@suse.de>
4892
4893 PR tree-optimization/56118
4894 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
4895 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
4896 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
4897 function.
4898 (vect_slp_analyze_data_ref_dependences): Instead of computing
4899 all dependences of the region DRs just analyze the code motions
4900 SLP vectorization will perform. Remove SLP instances that
4901 cannot have their store/load motions applied.
4902 (vect_analyze_data_refs): Allow DRs without a vectype
4903 in BB vectorization.
4904
4905 2015-11-09 Julian Brown <julian@codesourcery.com>
4906
4907 * final.c (output_asm_insn): Pass VOIDmode to output_address.
4908 (output_address): Add MODE argument. Pass to print_operand_address
4909 hook.
4910 * targhooks.c (default_print_operand_address): Add MODE argument.
4911 * targhooks.h (default_print_operand_address): Update prototype.
4912 * output.h (output_address): Update prototype.
4913 * target.def (print_operand_address): Add MODE argument.
4914 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
4915 output_address.
4916 (print_operand): Pass access mode to output_address.
4917 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
4918 argument.
4919 (mcore_print_operand): Update calls to mcore_print_operand_address.
4920 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
4921 output_address.
4922 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
4923 output_address.
4924 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
4925 global.
4926 (tilegx_print_operand): Don't set above global. Update calls to
4927 output_address.
4928 (tilegx_print_operand_address): Add MODE argument. Use instead of
4929 output_memory_reference_mode global.
4930 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
4931 (frv_print_operand): Pass mode to frv_print_operand_address calls.
4932 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
4933 output_address.
4934 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
4935 (cris_print_operand): Pass mode to output_address calls.
4936 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
4937 * config/aarch64/aarch64.h (aarch64_print_operand)
4938 (aarch64_print_operand_address): Remove prototypes.
4939 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
4940 global.
4941 (aarch64_print_operand): Make static. Update calls to output_address.
4942 (aarch64_print_operand_address): Add MODE argument. Use instead of
4943 aarch64_memory_reference_mode global.
4944 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
4945 hooks.
4946 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
4947 Delete macro definitions.
4948 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
4949 * config/xtensa/xtensa.c (print_operand): Pass mode in
4950 output_address calls.
4951 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
4952 argument.
4953 (h83000_print_operand): Update calls to h8300_print_operand_address
4954 and output_address.
4955 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
4956 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
4957 global.
4958 (tilepro_print_operand): Pass mode to output_address.
4959 (tilepro_print_operand_address): Add MODE argument. Use instead of
4960 output_memory_reference_mode.
4961 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
4962 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
4963 to output_address calls.
4964 (nvptx_print_operand_address): Add MODE argument.
4965 * config/alpha/alpha.c (print_operand): Pass mode argument in
4966 output_address calls.
4967 * config/m68k/m68k.c (print_operand): Pass mode argument in
4968 output_address call.
4969 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
4970 (avr_print_operand): Update calls to avr_print_operand_address.
4971 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
4972 argument. Update calls to output_address.
4973 (sparc_print_operand): Pass mode to output_address.
4974 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
4975 argument.
4976 (iq2000_print_operand): Pass mode in output_address calls.
4977 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
4978 MODE argument.
4979 (xstormy16_print_operand): Pass mode to
4980 xstormy16_print_operand_address calls.
4981 * config/mips/mips.c (mips_print_operand): Update calls to
4982 output_address.
4983 (mips_print_operand_address): Add MODE argument.
4984 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
4985 to output_address.
4986 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
4987 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
4988 output_address.
4989 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
4990 (rx_print_operand): Update calls to output_address,
4991 rx_print_operand_address.
4992 * config/nds32/nds32.c (nds32_print_operand): Update calls to
4993 output_address.
4994 (nds32_print_operand_address): Add MODE argument.
4995 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
4996 output_address calls.
4997 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
4998 output_address call.
4999 (c6x_print_address_operand): Update calls to output_address.
5000 (c6x_print_operand_address): Pass mode to above.
5001 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5002 (v850_print_operand): Pass mode to v850_print_operand_address,
5003 output_address.
5004 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5005 (mmix_print_operand): Pass mode in output_address calls.
5006 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5007 (sh_print_operand): Pass mem mode to output_address,
5008 sh_print_operand_address.
5009 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5010 (cr16_print_operand): Pass mode to output_address,
5011 cr16_print_operand_address.
5012 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5013 output_address.
5014 * config/microblaze/microblaze.c (print_operand): Pass mode to
5015 output_address.
5016 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5017 output_address.
5018 (nios2_print_operand_address): Add MODE argument. Update call to
5019 nios2_print_operand_address.
5020 * config/s390/s390.c (print_operand): Pass mode to output_address.
5021 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5022 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5023 output_address.
5024 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5025 Use instead of output_memory_reference_mode.
5026 (output_memory_reference_mode): Delete global.
5027 (arm_print_operand): Pass mem mode to output_address.
5028 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5029 (m32r_print_operand): Pass mode to output_address.
5030 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5031 argument.
5032 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5033 * config/i386/i386.c (ix86_print_operand): Pass mode to
5034 output_address calls.
5035 (ix86_print_operand_address): Add MODE argument.
5036
5037 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5038
5039 PR middle-end/68251
5040 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5041 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5042 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5043 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5044
5045 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5046
5047 PR rtl-optimization/67749
5048 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5049 case before emitting the two blocks. Instead modify the register
5050 in the corresponding final insn of the basic block.
5051
5052 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5053
5054 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5055 assembler syntax.
5056 Support Solaris ld.
5057 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5058
5059 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5060 HAVE_INITFINI_ARRAY_SUPPORT.
5061 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5062
5063 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5064 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5065 Don't check HAVE_AS_SPARC_NOBITS.
5066 Heed SECTION_NOTYPE.
5067
5068 * configure: Regenerate.
5069 * config.in: Regenerate.
5070
5071 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5072
5073 PR middle-end/68253
5074 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5075
5076 2015-11-09 Richard Henderson <rth@redhat.com>
5077
5078 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5079 __SEG_GS, __SEG_TLS.
5080 (ix86_register_pragmas): Register address spaces __seg_fs,
5081 __seg_gs, __seg_tls.
5082 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5083 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5084 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5085 * config/i386/i386.c (ix86_decompose_address): Likewise.
5086 (ix86_legitimate_address_p): Likewise.
5087 (memory_address_length): Likewise. Check mem address space too.
5088 (ix86_print_operand): Use ix86_print_operand_address_as.
5089 (ix86_print_operand_address_as): Rename from
5090 ix86_print_operand_address, add new addr_space_t parameter.
5091 Validate that either the parameter or the ix86_address segment
5092 is default address space. Handle ADDR_SPACE_SEG_TLS.
5093 (ix86_print_operand_address): New.
5094 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5095 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5096 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5097 (ix86_addr_space_zero_address_valid): New.
5098 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5099 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5100 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5101 * config/i386/predicates.md (address_no_seg_operand): Likewise.
5102 (vsib_address_operand): Likewise.
5103 (address_mpx_no_base_operand): Likewise.
5104 (address_mpx_no_index_operand): Likewise.
5105 * doc/extend.texi (x86 Named Address Spaces): New section.
5106
5107 * config/i386/i386.c (ix86_check_no_addr_space): New.
5108 (decide_alg): Add have_as parameter.
5109 (alg_usable_p): Likewise; disable rep algorithms if set.
5110 (ix86_expand_set_or_movmem): Notice if either MEM has a
5111 non-default address space.
5112 (ix86_expand_strlen): Likewise.
5113 * config/i386/i386.md (strmov, strset): Likewise.
5114 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5115 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5116 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5117 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5118 *cmpstrnqi_1, *strlenqi_1): Likewise.
5119
5120 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5121 (*movabs<mode>_2): Likewise.
5122
5123 * dwarf2out.c (modified_type_die): Pass the address space number
5124 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5125 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5126 * targhooks.c (default_addr_space_debug): New.
5127 * targhooks.h (default_addr_space_debug): Declare.
5128 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5129 * doc/tm.texi: Rebuild.
5130
5131 * gimple.c (check_loadstore): Return false when 0 is a valid address.
5132 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5133 null when 0 is valid in the source address space.
5134 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5135 * targhooks.c (default_addr_space_zero_address_valid): New.
5136 * targhooks.h (default_addr_space_zero_address_valid): Declare.
5137 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5138 * doc/tm.texi: Rebuild.
5139
5140 * cselib.c (add_mem_for_addr): Compare address spaces when
5141 matching memories.
5142 (cselib_lookup_mem): Likewise.
5143 * fold-const.c (operand_equal_p): Check address spaces of
5144 pointer types before checking integer constants.
5145
5146 PR tree-opt/66768
5147 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5148 the correct type for the base.
5149
5150 2015-11-09 Jeff Law <law@redhat.com>
5151
5152 * tree-into-ssa.c (names_to_release): No longer static.
5153 * tree-into-ssa.h (names_to_release): Declare.
5154 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5155 (release_free_names_and_compact_live_names): New function extracted
5156 from pass_release_ssa_names::execute.
5157 (pass_release_ssa_names::execute): Use it.
5158
5159 2015-11-09 Alan Modra <amodra@gmail.com>
5160
5161 * gensupport.c (add_mnemonic_string): Make len param a size_t.
5162 (gen_mnemonic_setattr): Make "size" var a size_t. Use
5163 obstack_blank_fast to shrink obstack. Cast obstack_next_free
5164 return value.
5165
5166 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5167
5168 PR rtl-optimization/68182
5169 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5170 branch with only one successor just like unconditional branches.
5171
5172 2015-11-08 Jeff Law <law@redhat.com>
5173
5174 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5175 non-FSM path has no edges marked with EDGE_DFS_BACK.
5176 (ssa_redirect_edges): No longer call mark_loop_for_removal.
5177 (thread_single_edge, def_split_header_continue_p): Remove.
5178 (bb_ends_with_multiway_branch): Likewise.
5179 (thread_through_loop_header): Remove cases of threading from
5180 latch through the header. Simplify knowing we won't thread
5181 the latch.
5182 (thread_through_all_blocks): Simplify knowing that only the FSM
5183 threader needs to handle backedges.
5184
5185 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
5186
5187 * doc/extend.texi (type attributes): Document scalar_storage_order.
5188 (Structure-Packing Pragmas): Rename into...
5189 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
5190 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5191 (Warnings): Document -Wno-scalar-storage-order.
5192 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5193 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5194 extract_bit_field and store_bit_field.
5195 (initialize_argument_information): Adjust call to store_expr.
5196 (load_register_parameters): Adjust call to extract_bit_field.
5197 * expmed.c (check_reverse_storage_order_support): New function.
5198 (check_reverse_float_storage_order_support): Likewise.
5199 (flip_storage_order): Likewise.
5200 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
5201 of the value if it is true. Pass REVERSE to recursive call after
5202 adjusting the target offset.
5203 Do not use extraction or movstrict instruction if REVERSE is true.
5204 Pass REVERSE to store_fixed_bit_field.
5205 (store_bit_field): Add REVERSE parameter and pass to it to above.
5206 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5207 store_split_bit_field and store_fixed_bit_field_1.
5208 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5209 order of the value if it is true and adjust the target offset.
5210 (store_split_bit_field): Add REVERSE parameter and pass it to
5211 store_fixed_bit_field. Adjust the target offset if it is true.
5212 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
5213 of the value if it is true. Pass REVERSE to recursive call after
5214 adjusting the target offset.
5215 Do not use extraction or subreg instruction if REVERSE is true.
5216 Pass REVERSE to extract_fixed_bit_field.
5217 (extract_bit_field): Add REVERSE parameter and pass to it to above.
5218 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5219 extract_split_bit_field and extract_fixed_bit_field_1.
5220 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5221 order of the value if it is true and adjust the target offset.
5222 (extract_split_bit_field): Add REVERSE parameter and pass it to
5223 extract_fixed_bit_field. Adjust the target offset if it is true.
5224 * expmed.h (flip_storage_order): Declare.
5225 (store_bit_field): Adjust prototype.
5226 (extract_bit_field): Likewise.
5227 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5228 (emit_group_store): Adjust call to store_bit_field.
5229 (copy_blkmode_from_reg): Likewise.
5230 (copy_blkmode_to_reg): Likewise.
5231 (write_complex_part): Likewise.
5232 (read_complex_part): Likewise.
5233 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
5234 that it isn't true if the target is a register.
5235 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5236 and flip the storage order of the value.
5237 <BIT_IOR_EXPR>: Flip the storage order of the value.
5238 (get_bit_range): Adjust call to get_inner_reference.
5239 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5240 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
5241 with reverse storage order.
5242 (store_expr_with_bounds): Add REVERSE parameter and pass it to
5243 recursive calls and call to store_bit_field. Force the value into a
5244 register if it is true and then flip the storage order of the value.
5245 (store_expr): Add REVERSE parameter and pass it to above.
5246 (categorize_ctor_elements_1): Adjust call to
5247 initializer_constant_valid_p.
5248 (store_constructor_field): Add REVERSE parameter and pass it to
5249 recursive calls and call to store_field.
5250 (store_constructor): Add REVERSE parameter and pass it to calls to
5251 store_constructor_field and store_expr. Set it to true for an
5252 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5253 (store_field): Add REVERSE parameter and pass it to recursive calls
5254 and calls to store_expr and store_bit_field. Temporarily flip the
5255 storage order of the value with record type and integral mode and
5256 adjust the shift if it is true.
5257 (get_inner_reference): Add PREVERSEP parameter and set it to true
5258 upon encoutering a reference with reverse storage order.
5259 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5260 (expand_constructor): Adjust call to store_constructor.
5261 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5262 of the union type to store_expr in the MEM case and assert that it
5263 isn't set in the REG case. Adjust call to store_field.
5264 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5265 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5266 get_inner_reference and extract_bit_field. Temporarily flip the
5267 storage order of the value with record type and integral mode and
5268 adjust the shift if it is true. Flip the storage order of the value
5269 at the end if it is true.
5270 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5271 get_inner_reference. Do not fetch an inner reference if it is true.
5272 * expr.h (store_expr_with_bounds): Ajust prototype.
5273 (store_expr): Likewise.
5274 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5275 REF_REVERSE_STORAGE_ORDER on the reference according to it.
5276 (optimize_bit_field_compare): Deal with reverse storage order.
5277 Adjust calls to get_inner_reference and make_bit_field_ref.
5278 (decode_field_reference): Add PREVERSEP parameter and adjust call to
5279 get_inner_reference.
5280 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
5281 to decode_field_reference and make_bit_field_ref.
5282 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5283 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5284 (fold_comparison): Adjust call to get_inner_reference.
5285 (split_address_to_core_and_offset): Adjust call to
5286 get_inner_reference.
5287 * gimple-expr.c (useless_type_conversion_p): Return false for array
5288 types with different TYPE_REVERSE_STORAGE_ORDER flag.
5289 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5290 REF_REVERSE_STORAGE_ORDER flag.
5291 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5292 * output.h (assemble_real): Adjust prototype.
5293 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5294 * stor-layout.c (finish_record_layout): Propagate the
5295 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5296 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5297 (TYPE_SATURATING): Adjust.
5298 (REF_REVERSE_STORAGE_ORDER): Document.
5299 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5300 set it to true upon encoutering a reference with reverse storage order.
5301 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5302 * tree-inline.c (remap_gimple_op_r): Propagate the
5303 REF_REVERSE_STORAGE_ORDER flag.
5304 (copy_tree_body_r): Likewise.
5305 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5306 store_expr.
5307 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5308 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5309 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5310 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5311 REF_REVERSE_STORAGE_ORDER flag.
5312 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5313 (gimple_canonical_types_compatible_p): Likewise.
5314 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5315 (TYPE_SATURATING): Adjust.
5316 (REF_REVERSE_STORAGE_ORDER): New flag.
5317 (reverse_storage_order_for_component_p): New inline predicate.
5318 (storage_order_barrier_p): Likewise.
5319 (get_inner_reference): Adjust prototype.
5320 * varasm.c: Include expmed.h.
5321 (assemble_variable_contents): Adjust call to output_constant.
5322 (assemble_real): Add REVERSE parameter. Flip the storage
5323 order of the value if REVERSE is true.
5324 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5325 (assemble_constant_contents): Adjust call to output_constant.
5326 (output_constant_pool_2): Adjust call to assemble_real.
5327 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5328 TYPE_REVERSE_STORAGE_ORDER.
5329 (initializer_constant_valid_p): Add REVERSE parameter.
5330 (output_constant): Add REVERSE parameter.
5331 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5332 <REAL_TYPE>: Adjust call to assemble_real.
5333 <COMPLEX_TYPE>: Pass it to recursive calls.
5334 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
5335 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
5336 (struct oc_local_state): Add REVERSE field.
5337 (output_constructor_array_range): Adjust calls to output_constant.
5338 (output_constructor_regular_field): Likewise.
5339 (output_constructor_bitfield): Adjust call to output_constructor.
5340 Flip the storage order of the value if REVERSE is true.
5341 (output_constructor): Add REVERSE parameter. Set it to true for an
5342 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
5343 output_constructor_bitfield.
5344 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5345 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5346 * builtins.c (get_object_alignment_2): Likewise.
5347 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5348 and get_ref_base_and_extent.
5349 * dbxout.c (dbxout_expand_expr): Likewise.
5350 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5351 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5352 (loc_list_from_tree): Likewise.
5353 (fortran_common): Likewise.
5354 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5355 get_ref_base_and_extent.
5356 (get_base_constructor): Likewise.
5357 (fold_const_aggregate_ref_1): Likewise.
5358 * gimple-laddress.c (pass_laddress::execute): Adjust call to
5359 get_inner_reference.
5360 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5361 get_inner_reference and bail out on reverse storage order.
5362 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5363 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5364 build_ref_for_offset.
5365 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5366 get_ref_base_and_extent.
5367 (ipa_polymorphic_call_context): Likewise.
5368 (extr_type_from_vtbl_ptr_store): Likewise.
5369 (check_stmt_for_type_change): Likewise.
5370 (get_dynamic_type): Likewise.
5371 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5372 get_ref_base_and_extent.
5373 (compute_complex_assign_jump_func): Likewise.
5374 (get_ancestor_addr_info): Likewise.
5375 (compute_known_type_jump_func): Likewise.
5376 (determine_known_aggregate_parts): Likewise.
5377 (ipa_get_adjustment_candidate): Likewise.
5378 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5379 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5380 (build_ref_for_offset): Adjust prototype.
5381 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5382 get_inner_reference.
5383 * tree-affine.c (tree_to_aff_combination): Adjust call to
5384 get_inner_reference.
5385 (get_inner_reference_aff): Likewise.
5386 * tree-data-ref.c (split_constant_offset_1): Likewise.
5387 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
5388 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5389 get_inner_reference.
5390 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5391 (dump_access): Print new fields.
5392 (create_access): Adjust call to get_ref_base_and_extent and set the
5393 REVERSE flag according to the result.
5394 (completely_scalarize_record): Set the REVERSE flag.
5395 (scalarize_elem): Add REVERSE parameter.
5396 (build_access_from_expr_1): Preserve storage order barriers.
5397 (build_accesses_from_assign): Likewise.
5398 (build_ref_for_offset): Add REVERSE parameter and set the
5399 REF_REVERSE_STORAGE_ORDER flag accordingly.
5400 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5401 the REF_REVERSE_STORAGE_ORDER flag if there are components.
5402 (analyze_access_subtree): Likewise.
5403 (create_artificial_child_access): Set the REVERSE flag.
5404 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5405 (turn_representatives_into_adjustments): Propagate REVERSE flag.
5406 (ipa_sra_check_caller): Adjust call to get_inner_reference.
5407 * tree-ssa-alias.c (ao_ref_base): Adjust call to
5408 get_ref_base_and_extent.
5409 (aliasing_component_refs_p): Likewise.
5410 (stmt_kills_ref_p_1): Likewise.
5411 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5412 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5413 Return true if reverse storage order.
5414 <BIT_FIELD_REF>: Likewise.
5415 <COMPONENT_REF>: Likewise.
5416 <ARRAY_REF>: Likewise.
5417 <ARRAY_RANGE_REF>: Likewise.
5418 (split_address_cost): Likewise. Bail out if reverse storage order.
5419 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5420 get_inner_reference. Bail out if reverse storage order.
5421 (bswap_replace): Adjust call to get_inner_reference.
5422 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5423 the REF_REVERSE_STORAGE_ORDER flag.
5424 <BIT_FIELD_REF>: Likewise.
5425 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
5426 barriers.
5427 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
5428 to the REF_REVERSE_STORAGE_ORDER flag.
5429 <BIT_FIELD_REF>: Likewise.
5430 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
5431 (contains_storage_order_barrier_p): New predicate.
5432 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
5433 Punt on storage order barriers if necessary.
5434 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
5435 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
5436 call to get_ref_base_and_extent.
5437 (do_structure_copy): Likewise.
5438 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
5439 get_inner_reference.
5440 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
5441 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
5442 * ubsan.c (instrument_bool_enum_load): Likewise.
5443 (instrument_object_size): Likewise.
5444 * var-tracking.c (track_expr_p): Adjust call to
5445 get_ref_base_and_extent.
5446 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
5447 get_inner_reference.
5448 * config/s390/s390.c (s390_expand_atomic): Adjust call to
5449 store_bit_field.
5450 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
5451 extract_bit_field.
5452 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5453
5454 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
5455
5456 * config/sparc/sparc.opt (mfix-at697f): Add final period.
5457
5458 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5459
5460 PR rtl-optimization/67864
5461 * common/config/i386/i386-common.c (ix86_option_optimization_table)
5462 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
5463 at -Os and up.
5464
5465 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5466
5467 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
5468 internal functions.
5469
5470 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5471
5472 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
5473 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
5474
5475 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5476
5477 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
5478 * internal-fn.c: Don't undef it here.
5479 * tree-core.h: Likewise.
5480
5481 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5482
5483 * builtins.c (fold_builtin_nan): Delete.
5484 (fold_builtin_memcmp): Remove case where both arguments are constant.
5485 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5486 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
5487 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
5488 * fold-const-call.c: Include fold-const.h.
5489 (host_size_t_cst_p): New function.
5490 (build_cmp_result, fold_const_builtin_nan): Likewise.
5491 (fold_const_call_1): New function, split out from...
5492 (fold_const_call): ...here (for all three interfaces). Handle
5493 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
5494
5495 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5496
5497 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
5498 (fold_builtin_1): Don't call them.
5499 * fold-const-call.c: Include tm.h.
5500 (fold_const_call_ss): New variant for integer-to-integer folds.
5501 (fold_const_call): Call it.
5502
5503 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5504
5505 * builtins.c (fold_builtin_classify): Move constant cases to...
5506 * fold-const-call.c (fold_const_call_ss): ...here.
5507
5508 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5509
5510 * builtins.h (c_getstr): Move to...
5511 * fold-const.h (c_getstr): ...here.
5512 * builtins.c (c_getstr): Move to...
5513 * fold-const.c (c_getstr): ...here.
5514
5515 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5516
5517 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
5518 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
5519
5520 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5521
5522 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
5523 the dominance info; free it if we can't.
5524 (pass_call_cdce::execute): Don't free the dominance info here.
5525
5526 2015-11-06 Jeff Law <law@redhat.com>
5527
5528 * tree-ssa-threadedge.c (dummy_simplify): Remove.
5529 (thread_around_empty_blocks): Remove backedge_seen_p argument.
5530 If we thread to a backedge, then return false. Update recursive
5531 call to eliminate backedge_seen_p argument.
5532 (thread_through_normal_block): Remove backedge_seen_p argument.
5533 Remove backedge_seen_p argument from calls to
5534 thread_around_empty_blocks. Remove checks on backedge_seen_p.
5535 If we thread to a backedge, then return 0.
5536 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
5537 pass it to thread_through_normal_block or thread_through_empty_blocks.
5538 For joiner handling, if we see a backedge, do not try normal
5539 threading.
5540
5541 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5542
5543 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
5544 * graphite-poly.c (new_scop): Initialize original_schedule.
5545 (free_scop): Free original_schedule.
5546 * graphite-poly.h (struct scop): Add field original_schedule.
5547 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
5548 (build_poly_scop): Call build_scop_original_schedule.
5549
5550 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5551
5552 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5553 (build_pbb_minimal_scattering_polyhedrons): New.
5554 (build_scop_scattering): Remove.
5555 (build_scop_minimal_scattering): New.
5556 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
5557 (build_poly_scop): Call build_scop_minimal_scattering.
5558
5559 2015-11-06 Jeff Law <law@redhat.com>
5560
5561 * cfg-flags.def (IGNORE): New edge flag.
5562 * tree-vrp.c (identify_jump_threads): Mark and clear edges
5563 scheduled for removal with EDGE_IGNORE around call into
5564 jump threader. Do no thread across edges with EDGE_IGNORE,
5565 but do allow threading across those with EDGE_DFS_BACK.
5566
5567 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
5568
5569 * doc/md.texi (multi-alternative constraints): Don't document
5570 alternatives inherently tied to reload for the user documentation.
5571
5572 2015-11-06 Michael Collison <michael.collison@linaro.org>
5573 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5574
5575 Revert:
5576 2015-08-01 Michael Collison <michael.collison@linaro.org
5577 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5578
5579 * config/arm/arm.md (*arm_smin_cmp): New pattern.
5580 (*arm_umin_cmp): Likewise.
5581
5582 2015-11-06 Jakub Jelinek <jakub@redhat.com>
5583
5584 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
5585 * omp-low.c (check_omp_nesting_restrictions): Update for the
5586 various new OpenMP 4.5 nesting restrictions, clarified
5587 nesting glossary, closely nested region relationship clarified
5588 to mean explicit or implicit parallel regions (target/teams),
5589 use %</%> or %qs where appropriate.
5590
5591 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5592 Sebastian Pop <s.pop@samsung.com>
5593
5594 * graphite-scop-detection.c (loop_is_valid_scop): Call
5595 optimize_loop_nest_for_speed_p.
5596
5597 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5598 Sebastian Pop <s.pop@samsung.com>
5599
5600 * graphite-optimize-isl.c (optimize_isl): Call
5601 isl_options_set_schedule_maximize_band_depth.
5602
5603 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5604 Sebastian Pop <s.pop@samsung.com>
5605
5606 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
5607 and exit edges should not be a part of irreducible loop.
5608 (scop_detection::can_represent_loop_1): Loops should not be
5609 irreducible.
5610 (scop_detection::harmful_stmt_in_region): All the basic block
5611 should belong to reducible loops.
5612
5613 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
5614
5615 * config/aarch64/aarch64-simd-builtins.def: Update builtins
5616 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
5617 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
5618 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
5619 (aarch64_tbx4v8qi): Rename to...
5620 aarch64_tbx4<mode>): ... this.
5621 (aarch64_qtbl3<mode>): New pattern.
5622 (aarch64_qtbx3<mode>): New pattern.
5623 (aarch64_qtbl4<mode>): New pattern.
5624 (aarch64_qtbx4<mode>): New pattern.
5625 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
5626 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
5627 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
5628 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
5629 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
5630 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
5631 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
5632 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
5633 functions.
5634
5635 2015-11-06 Mike Stump <mikestump@comcast.net>
5636
5637 PR debug/66728
5638 * dwarf2out.c (get_full_len): Return a value based upon the actual
5639 precision needed for the value.
5640 (add_const_value_attribute): Use a maximal wide-int for
5641 CONST_WIDE_INTs, not VOIDmode.
5642 (output_die): Don't ever output NULL with printf.
5643
5644 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
5645 BLKmode nor VOIDmode values.
5646
5647 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5648
5649 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
5650 and "range2".
5651 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
5652 * diagnostic-core.h (warning_at_rich_loc): New declaration.
5653 (error_at_rich_loc): New declaration.
5654 (permerror_at_rich_loc): New declaration.
5655 (inform_at_rich_loc): New declaration.
5656 * diagnostic-show-locus.c (adjust_line): Delete.
5657 (struct point_state): New struct.
5658 (class colorizer): New class.
5659 (class layout_point): New class.
5660 (class layout_range): New class.
5661 (struct line_bounds): New.
5662 (class layout): New class.
5663 (colorizer::colorizer): New ctor.
5664 (colorizer::~colorizer): New dtor.
5665 (layout::layout): New ctor.
5666 (layout::print_source_line): New method.
5667 (layout::print_annotation_line): New method.
5668 (layout::get_state_at_point): New method.
5669 (layout::get_x_bound_for_row): New method.
5670 (diagnostic_show_locus): Reimplement in terms of class layout.
5671 (diagnostic_print_caret_line): Delete.
5672 * diagnostic.c (diagnostic_initialize): Replace
5673 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
5674 (diagnostic_set_info_translated): Convert param from location_t
5675 to rich_location *. Eliminate calls to set_location on the
5676 message in favor of storing the rich_location ptr there.
5677 (diagnostic_set_info): Convert param from location_t to
5678 rich_location *.
5679 (diagnostic_build_prefix): Break out array into...
5680 (diagnostic_kind_color): New variable.
5681 (diagnostic_get_color_for_kind): New function.
5682 (diagnostic_report_diagnostic): Colorize the option_text
5683 using the color for the severity.
5684 (diagnostic_append_note): Update for change in signature of
5685 diagnostic_set_info.
5686 (diagnostic_append_note_at_rich_loc): New function.
5687 (emit_diagnostic): Update for change in signature of
5688 diagnostic_set_info.
5689 (inform): Likewise.
5690 (inform_at_rich_loc): New function.
5691 (inform_n): Update for change in signature of diagnostic_set_info.
5692 (warning): Likewise.
5693 (warning_at): Likewise.
5694 (warning_at_rich_loc): New function.
5695 (warning_n): Update for change in signature of diagnostic_set_info.
5696 (pedwarn): Likewise.
5697 (permerror): Likewise.
5698 (permerror_at_rich_loc): New function.
5699 (error): Update for change in signature of diagnostic_set_info.
5700 (error_n): Likewise.
5701 (error_at): Likewise.
5702 (error_at_rich_loc): New function.
5703 (sorry): Update for change in signature of diagnostic_set_info.
5704 (fatal_error): Likewise.
5705 (internal_error): Likewise.
5706 (internal_error_no_backtrace): Likewise.
5707 (source_range::debug): New function.
5708 * diagnostic.h (struct diagnostic_info): Eliminate field
5709 "override_column". Add field "richloc".
5710 (struct diagnostic_context): Add field "colorize_source_p".
5711 (diagnostic_override_column): Delete.
5712 (diagnostic_set_info): Convert param from location_t to
5713 rich_location *.
5714 (diagnostic_set_info_translated): Likewise.
5715 (diagnostic_append_note_at_rich_loc): New function.
5716 (diagnostic_num_locations): New function.
5717 (diagnostic_expand_location): Get the location from the
5718 rich_location.
5719 (diagnostic_print_caret_line): Delete.
5720 (diagnostic_get_color_for_kind): New declaration.
5721 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
5722 (error_cb): Update for change in signature of "error" callback.
5723 (fatal_at): Likewise.
5724 (warning_at): Likewise.
5725 * input.c (linemap_client_expand_location_to_spelling_point): New.
5726 * pretty-print.c (text_info::set_range): New method.
5727 (text_info::get_location): New method.
5728 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
5729 (struct text_info): Eliminate "locations" array in favor of
5730 "m_richloc", a rich_location *.
5731 (textinfo::set_location): Add a "caret_p" param, and reimplement
5732 in terms of a call to set_range.
5733 (textinfo::get_location): Eliminate inline implementation in favor of
5734 an out-of-line reimplementation.
5735 (textinfo::set_range): New method.
5736 * rtl-error.c (diagnostic_for_asm): Update for change in signature
5737 of diagnostic_set_info.
5738 * tree-diagnostic.c (default_tree_printer): Update for new
5739 "caret_p" param for textinfo::set_location.
5740 * tree-pretty-print.c (percent_K_format): Likewise.
5741
5742 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5743
5744 Properly apply.
5745 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5746 * config/aarch64/aarch64.c
5747 (aarch64_can_use_per_function_literal_pools_p): New.
5748 (aarch64_use_blocks_for_constant_p): Adjust declaration
5749 and use aarch64_can_use_function_literal_pools_p.
5750 (aarch64_select_rtx_section): Update.
5751
5752 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5753
5754 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
5755 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
5756 (arm_output_multireg_pop): Likewise.
5757 (output_move_double): Likewise.
5758 (output_move_quad): Likewise.
5759 (output_return_instruction): Likewise.
5760 (arm_print_operand): Remove support for %( and %. print modifiers.
5761 (arm_output_shift): Make unified asm.
5762 (arm_declare_function_name): Likewise.
5763 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
5764 (ASM_APP_OFF): Adjust.
5765 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
5766 (ASM_OUTPUT_REG_POP): Likewise.
5767 * config/arm/arm.md: Adjust uses of %., %(, %)
5768 * config/arm/sync.md: Likewise.
5769 * config/arm/thumb2.md: Likewise.
5770 * config/arm/ldmstm.md: Regenerate.
5771 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
5772 * doc/invoke.texi (masm-unified-syntax): Update documentation.
5773
5774 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5775
5776 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
5777
5778 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5779
5780 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
5781 add OEP_MATCH_SIDE_EFFECTS.
5782 * fold-const.c (operand_equal_p): Update documentation; handle
5783 OEP_MATCH_SIDE_EFFECTS.
5784 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
5785 OEP_MATCH_SIDE_EFFECTS.
5786
5787 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
5788 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5789
5790 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
5791 * config/aarch64/aarch64-protos.h: Declare.
5792 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
5793 frsqrts.
5794 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
5795 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
5796 code when applicable.
5797 * config/aarch64/aarch64.md: Added enum entries.
5798 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
5799
5800 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5801
5802 PR ipa/68057
5803 PR ipa/68220
5804 * ipa-polymorphic-call.c
5805 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
5806 issue when offset is out of range.
5807 (contains_type_p): Fix out of range check, clear dynamic flag.
5808
5809 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
5810
5811 * config.gcc (e6500): Fix cpu_is_64bit typo.
5812
5813 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
5814
5815 * tree-sra.c (completely_scalarize): Properly handle negative array
5816 indices using offset_int.
5817
5818 2015-11-06 Richard Biener <rguenther@suse.de>
5819
5820 * alloc-pool.h (object_allocator::allocate): Default-initialize
5821 object.
5822
5823 2015-11-06 Richard Biener <rguenther@suse.de>
5824
5825 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
5826 * lra.c (init_reg_info): Truncate copy_vec instead of
5827 re-allocating a new one and leaking the old.
5828 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
5829 bb_infos vec.
5830 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
5831 * postreload-gcse.c (free_mem): Free modify_mem_list and
5832 canon_modify_mem_list.
5833
5834 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
5835
5836 PR tree-optimization/68145
5837 * tree-vect-stmts.c (vectorizable_operation): Fix
5838 determination for booleans.
5839
5840 2015-11-06 Tom de Vries <tom@codesourcery.com>
5841
5842 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
5843 cond_jump, instead of split after last nondebug insn before cond_jump.
5844 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
5845 returning.
5846
5847 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5848
5849 PR target/68088
5850 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
5851 subregs from accumulator and make sure it's a register.
5852
5853 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
5854
5855 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
5856 low part to scalar.
5857 (reduc_uplus_<mode>): Remove.
5858 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
5859 loongson_extract_lo_<mode>.
5860 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
5861 reduc_smax_<mode>, reduc_smax_<mode>, use vec
5862 loongson_extract_lo_<mode>.
5863 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
5864
5865 2015-11-06 Richard Biener <rguenther@suse.de>
5866
5867 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
5868 members.
5869 (vect_stmt_in_region_p): Declare.
5870 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
5871 (destroy_bb_vec_info): Likewise.
5872 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
5873 (vect_get_and_check_slp_defs): Likewise.
5874 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
5875 (vect_slp_bb): Likewise.
5876 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
5877 in terms of vect_stmt_in_region_p.
5878 (vect_pattern_recog): Iterate over the BB region.
5879 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
5880 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
5881 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
5882 * config/i386/i386.c: Include gimple-iterator.h.
5883 * config/aarch64/aarch64.c: Likewise.
5884
5885 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
5886
5887 PR rtl-optimization/67753
5888 PR rtl-optimization/64164
5889 * function.c (assign_parm_setup_block): Avoid allocating a
5890 stack slot if we don't have an ABI-reserved one. Emit the
5891 copy to target_reg in the conversion seq if the copy from
5892 entry_parm is in it too. Don't use the conversion seq to copy
5893 a PARALLEL to a REG or a CONCAT.
5894
5895 2015-11-06 Richard Biener <rguenther@suse.de>
5896
5897 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
5898 equal_keys.
5899
5900 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
5901 Thomas Schwinge <thomas@codesourcery.com>
5902 James Norris <jnorris@codesourcery.com>
5903
5904
5905 * gimplify.c (gimplify_scan_omp_clauses): Add support for
5906 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
5907 (gimplify_adjust_omp_clauses): Likewise.
5908 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
5909 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
5910 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
5911 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
5912 (omp_clause_code_name): Likewise.
5913 (walk_tree_1): Handle OMP_CLAUSE_TILE.
5914 * tree.h (OMP_TILE_LIST): New macro.
5915
5916 2015-11-05 Martin Sebor <msebor@redhat.com>
5917
5918 PR c++/67942
5919 * doc/invoke.texi (-Wplacement-new): Document new option.
5920
5921 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
5922
5923 PR tree-optimization/65963
5924 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
5925 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
5926
5927 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
5928
5929 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
5930 (noce_convert_multiple_sets): Likewise.
5931 (noce_process_if_block): Call them.
5932
5933 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
5934
5935 * gimple-fold.c: Include omp-low.h.
5936 (fold_internal_goacc_dim): New.
5937 (gimple_fold_call): Call it.
5938
5939 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5940 Ilya Verbin <ilya.verbin@intel.com>
5941
5942 * builtin-types.def
5943 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
5944 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
5945 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
5946 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
5947 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
5948 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
5949 (struct cgraph_simd_clone_arg): Adjust comment.
5950 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
5951 to GOMP_target_ext. Add num_teams and thread_limit arguments.
5952 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
5953 to GOMP_target_data_ext.
5954 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
5955 to GOMP_target_update_ext.
5956 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
5957 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
5958 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
5959 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
5960 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
5961 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
5962 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
5963 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
5964 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
5965 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
5966 * tree-core.h (enum omp_clause_schedule_kind): Add
5967 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
5968 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
5969 OMP_CLAUSE_SCHEDULE_LAST value.
5970 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
5971 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
5972 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
5973 OMP_FOR_CHECK. Remove comment.
5974 * tree-pretty-print.c (dump_omp_clause): Handle
5975 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
5976 Simplify. Print schedule clause modifiers.
5977 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
5978 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
5979 cases.
5980 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
5981 (omp_default_clause): Tweak for
5982 private/firstprivate/is_device_ptr variables on target
5983 construct and use_device_ptr on target data.
5984 (omp_check_private): Likewise.
5985 (omp_notice_variable): For references check whether what it refers
5986 to has mappable type, rather than the reference itself.
5987 (omp_is_private): Diagnose linear iteration variables on non-simd
5988 constructs.
5989 (omp_no_lastprivate): Return true only for Fortran.
5990 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
5991 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
5992 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
5993 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
5994 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
5995 lastprivate and linear when combined with distribute. Gimplify
5996 variable low-bound for array reduction. Look through
5997 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
5998 reductions.
5999 (gimplify_adjust_omp_clauses_1): For implicit references to
6000 variables with reference type and when not ref to scalar or
6001 ref to pointer, map what they refer to using tofrom and
6002 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6003 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6004 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6005 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
6006 Diagnose the same var on both firstprivate and lastprivate on
6007 distribute construct.
6008 (gimplify_omp_for): Fix up handling of predetermined
6009 lastprivate or linear iter vars when combined with distribute.
6010 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6011 functions.
6012 (gimplify_omp_workshare): Call optimize_target_teams.
6013 * omp-low.c (struct omp_region): Add sched_modifiers field.
6014 (struct omp_for_data): Likewise.
6015 (omp_any_child_fn_dumped): New variable.
6016 (extract_omp_for_data): Fill in sched_modifiers, and mask out
6017 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6018 from sched_kind.
6019 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6020 bits of OMP_CLAUSE_SCHED_KIND.
6021 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6022 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
6023 for array section reductions.
6024 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6025 for distribute parallel for, if there are lastprivate clauses on the
6026 for.
6027 (lower_rec_input_clauses): Handle non-zero low-bound on array
6028 section reductions.
6029 (lower_reduction_clauses): Likewise.
6030 (lower_send_clauses): Look through POINTER_PLUS_EXPR
6031 for array section reductions.
6032 (expand_parallel_call): Use nonmonotonic entrypoints for
6033 nonmonotonic: dynamic/guided.
6034 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6035 child_fn if current_function_decl has assembler name set, but child_fn
6036 does not. Dump the header and IL of the child function when not in SSA
6037 form.
6038 (expand_omp_target): Likewise. Pass num_teams and thread_limit
6039 arguments to BUILT_IN_GOMP_TARGET.
6040 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6041 Initialize the extra _looptemp_ clause to fd->loop.n2.
6042 (expand_omp_for): Use nonmonotonic entrypoints for
6043 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
6044 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
6045 again if we have dumped any child functions.
6046 (lower_omp_for_lastprivate): Determine the right count variable
6047 for distribute simd, or distribute parallel for{, simd}.
6048 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6049 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
6050 support.
6051 (simd_clone_clauses_extract): Handle variable step
6052 for references and arguments passed by reference.
6053 (simd_clone_mangle): Mangle ref/uval/val variable steps.
6054 (simd_clone_adjust_argument_types): Handle
6055 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6056 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6057 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6058 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6059 (simd_clone_linear_addend): New function.
6060 (simd_clone_adjust): Handle variable step like similarly
6061 to constant step, use simd_clone_linear_addend to determine
6062 the actual step at runtime.
6063
6064 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6065
6066 * target.def (goacc.dim_limit): New hook.
6067 * targhooks.h (default_goacc_dim_limit): Declare.
6068 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6069 * doc/tm.texi: Rebuilt.
6070 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6071 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6072 (default_goacc_dim_limit): New.
6073 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6074 (nvptx_goacc_dim_limit) New.
6075 (TARGET_GOACC_DIM_LIMIT): Override.
6076 * tree-vrp.c: Include omp-low.h, target.h.
6077 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6078 IFN_GOACC_DIM_POS.
6079
6080 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6081
6082 * tree-vect-generic.c (do_compare): Use -1 for true
6083 result instead of 1.
6084
6085 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6086
6087 * config/aarch64/aarch64.c
6088 (aarch64_can_use_per_function_literal_pools_p): New.
6089 (aarch64_use_blocks_for_constant_p): Adjust declaration
6090 and use aarch64_can_use_function_literal_pools_p.
6091 (aarch64_select_rtx_section): Update.
6092
6093 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6094
6095 * targhooks.c (default_get_mask_mode): Use BLKmode in
6096 case target doesn't support required vector mode.
6097 * stor-layout.c (layout_type); Check for BLKmode.
6098
6099 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6100 Sebastian Pop <s.pop@samsung.com>
6101
6102 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6103 Remove use of parameter_rename_map.
6104 (copy_def): Remove.
6105 (copy_internal_parameters): Remove.
6106 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6107 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6108 (free_sese_info): Do not free parameter_rename_map.
6109 (set_rename): Do not use parameter_rename_map.
6110 (rename_uses): Update call to set_rename.
6111 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6112 * sese.h (parameter_rename_map_t): Remove.
6113 (struct sese_info_t): Remove field parameter_rename_map.
6114
6115 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6116 Sebastian Pop <s.pop@samsung.com>
6117
6118 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6119 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6120 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6121 anonymous namespace.
6122 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6123 (isl_id_for_pbb): Use a buffer of size 10.
6124 (isl_id_for_ssa_name): Same.
6125 * sese.c (set_rename): Add more dumps.
6126
6127 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6128
6129 * omp-low.c (struct omp_context): Remove reduction_map field.
6130 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6131 (new_omp_context, delete_omp_context, scan_omp_target): Remove
6132 reduction_map handling.
6133 (lower_omp_target): Remove obsolete openacc reduction handling.
6134
6135 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6136
6137 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6138
6139 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6140 Cesar Philippidis <cesar@codesourcery.com>
6141
6142 * config/nvptx/nvptx.c: Include gimple headers.
6143 (worker_red_size, worker_red_align, worker_red_name,
6144 worker_red_sym): New.
6145 (nvptx_option_override): Initialize worker reduction buffer.
6146 (nvptx_file_end): Write out worker reduction buffer var.
6147 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6148 nvptx_expand_cmp_swap): New builtin expanders.
6149 (enum nvptx_builtins): New.
6150 (nvptx_builtin_decls): New.
6151 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6152 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6153 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6154 nvptx_lockless_update): New helpers.
6155 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6156 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6157 (nvptx_goacc_reduction): New.
6158 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6159 TARGET_BUILTIN_DECL): Override.
6160 (TARGET_GOACC_REDUCTION): Override.
6161
6162 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6163 Cesar Philippidis <cesar@codesourcery.com>
6164
6165 * internal-fn.def (GOACC_REDUCTION): New.
6166 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6167 * internal-fn.c (expand_GOACC_REDUCTION): New.
6168 * target.def (goacc.reduction): New OpenACC hook.
6169 * targhooks.h (default_goacc_reduction): Declare.
6170 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6171 * doc/tm.texi: Rebuilt.
6172 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6173 scan_sharing_clauses): Remove oacc reduction handling here.
6174 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6175 (oacc_lower_reduction_var_helper): Delete.
6176 (lower_oacc_reductions): New.
6177 (lower_reduction_clauses): Don't handle OpenACC reductions here.
6178 (lower_oacc_head_tail): Call lower_oacc_reductions.
6179 (oacc_gimple_assign, oacc_init_reduction_array,
6180 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6181 oacc_process_reduction_data): Delete.
6182 (lower_omp_target): Remove old OpenACC reduction handling. Insert
6183 dummy OpenACC gang reduction for reductions at outer level.
6184 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6185 (default_goacc_reduction): New.
6186 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6187
6188 2015-11-04 Martin Liska <mliska@suse.cz>
6189
6190 * cgraphunit.c (cgraph_node::expand_thunk): Call
6191 allocate_struct_function before init_function_start.
6192 (cgraph_node::expand): Use push_cfun and pop_cfun.
6193 * config/i386/i386.c (ix86_code_end): Call
6194 allocate_struct_function before init_function_start.
6195 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6196 * function.c (init_function_start): Move preamble to all
6197 callers.
6198 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6199 (execute_one_pass): Handle newly added TODO_discard_function.
6200 (execute_pass_list_1): Terminate if cfun equals to NULL.
6201 (execute_pass_list): Do not push and pop cfun, expect that
6202 cfun is set.
6203 * tree-pass.h (TODO_discard_function): Define.
6204
6205 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
6206
6207 * cfganal.c (inverted_post_order_compute): Remove conditional
6208 compilation, use flag_checking.
6209 * config.in: Regenerate.
6210 * configure: Regenerate.
6211 * configure.ac: Remove ENABLE_CHECKING.
6212 * genconditions.c: Do not #undef ENABLE_CHECKING.
6213 * sese.h (bb_in_region): Comment out broken check.
6214 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6215 conditional compilation, use flag_checking.
6216
6217 2015-11-04 Tom de Vries <tom@codesourcery.com>
6218
6219 PR tree-optimization/67742
6220 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6221 field.
6222 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6223 (create_variable_info_for_1): Add and handle handle_param parameter.
6224 Add restrict handling.
6225 (create_variable_info_for): Call create_variable_info_for_1 with extra
6226 arg.
6227 (make_param_constraints): Drop restrict_name parameter. Ignore
6228 vi->only_restrict_pointers.
6229 (intra_create_variable_infos): Call create_variable_info_for_1 with
6230 extra arg. Remove restrict handling. Call make_param_constraints with
6231 one fewer arg.
6232
6233 2015-11-04 Tom de Vries <tom@codesourcery.com>
6234
6235 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6236 variable.
6237
6238 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6239
6240 * config/arm/coff.h: Remove.
6241
6242 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
6243
6244 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6245 check for aggregate types and beef up comment for mode check.
6246
6247 2015-11-03 Richard Biener <rguenther@suse.de>
6248
6249 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6250 data references here.
6251 * tree-vect-loop.c: Include cgraph.h.
6252 (vect_analyze_loop_2): Collect data references here.
6253 * tree-vect-slp.c (find_bb_location): Inline ...
6254 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
6255 Factor in vect_slp_transform_bb.
6256 (vect_slp_transform_bb): Removed.
6257 (vect_slp_analyze_bb_1): Collect data references here.
6258 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6259 vect_slp_bb.
6260 * tree-vectorizer.h (vect_slp_bb): Declare.
6261 (vect_slp_analyze_bb): Remove.
6262 (vect_slp_transform_bb): Remove.
6263 (find_bb_location): Remove.
6264 (vect_analyze_data_refs): Remove stmt count reference parameter.
6265
6266 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
6267
6268 * multiple_target.c (create_dispatcher_calls): Add target check
6269 on ifunc.
6270 (create_target_clone): Change assembler name for versioned declarations.
6271
6272 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
6273 Chung-Lin Tang <cltang@codesourcery.com>
6274
6275 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6276 * omp-low.c (check_omp_nesting_restrictions): Allow
6277 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6278 contexts.
6279
6280 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
6281
6282 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6283 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6284 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6285 builtin.
6286 (vmulxq_f32): Likewise.
6287 (vmulx_f64): New.
6288 (vmulxq_f64): Rewrite to call fmulx builtin.
6289 (vmulxs_f32): Likewise.
6290 (vmulxd_f64): Likewise.
6291 (vmulx_lane_f32): Remove.
6292 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6293
6294 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
6295
6296 * config/aarch64/aarch64.md (*movhf_aarch64): Use
6297 aarch64_reg_or_fp_zero for second operand.
6298
6299 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
6300
6301 * gimple-expr.c: Include hash-set.h and rtl.h.
6302 (mark_addressable_queue): New var.
6303 (mark_addressable): Factor actual marking into...
6304 (mark_addressable_1): ... this. Queue it up during expand.
6305 (mark_addressable_2): New.
6306 (flush_mark_addressable_queue): New.
6307 * gimple-expr.h (flush_mark_addressable_queue): Declare.
6308 * cfgexpand.c: Include gimple-expr.h.
6309 (pass_expand::execute): Flush mark_addressable queue.
6310
6311 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
6312
6313 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6314 bb_no_side_effects_p tests...
6315 (tree_ssa_ifcombine_bb): ... here.
6316
6317 PR tree-optimization/68083
6318 * tree-ssa-ifcombine.c: Include tree-ssa.h.
6319 (bb_no_side_effects_p): Test for undefined uses too.
6320 * tree-ssa.c (gimple_uses_undefined_value_p): New.
6321 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6322
6323 2015-11-02 Jeff Law <law@redhat.com>
6324
6325 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6326 cases where the loop latch edge is in the middle of an FSM path.
6327
6328 2015-11-03 Tom de Vries <tom@codesourcery.com>
6329
6330 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6331 (make_param_constraints): ... this. Add and handle restrict_name
6332 parameter. Handle is_full_var case.
6333 (intra_create_variable_infos): Use make_param_constraints.
6334
6335 2015-11-03 Tom de Vries <tom@codesourcery.com>
6336
6337 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6338 make_copy_constraint call with make_constraint_from call.
6339
6340 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
6341
6342 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6343 PIE executables.
6344
6345 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
6346
6347 * builtins.h (fold_fma): Move to fold-const-call.h.
6348 * builtins.c: Include fold-const-call.h.
6349 (mathfn_built_in_2): New function, split out from...
6350 (mathfn_built_in_1): ...here.
6351 (do_real_to_int_conversion, fold_const_builtin_pow)
6352 (fold_const_builtin_logb, fold_const_builtin_significand)
6353 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6354 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6355 (fold_builtin_sincos): Use fold_const_call to handle constants.
6356 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6357 checks for ERROR_MARK. Use fold_const_call to handle constant
6358 folds for math functions.
6359 (fold_fma): Move to fold-const-call.c.
6360 * fold-const.c: Include fold-const-call.h.
6361 * Makefile.in (OBJS): Add fold-const-call.o.
6362 (PLUGIN_HEADERS): Add fold-const-call.h.
6363 * realmpfr.h (real_from_mpfr): Allow the format to be specified
6364 directly.
6365 * realmpfr.c (real_from_mpfr): Likewise.
6366 * fold-const-call.h, fold-const-call.c: New files.
6367
6368 2015-11-02 Julian Brown <julian@codesourcery.com>
6369
6370 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6371 brackets and semicolon.
6372
6373 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
6374
6375 Revert:
6376 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6377
6378 PR tree-optimization/65963
6379 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6380 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6381
6382 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
6383
6384 PR middle-end/68166
6385 * fold-const.c: Include "md5.h".
6386
6387 2015-11-01 Jeff Law <law@redhat.com>
6388
6389 * vmsdbgout.c: Revert unused header file reduction patch.
6390
6391 * config/mcore/mcore.c: Include regs.h.
6392
6393 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6394
6395 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6396
6397 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6398
6399 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6400 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6401 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6402
6403 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
6404
6405 * ggc-common.c: Restore needed header for checking=release.
6406
6407 2015-10-31 Tom de Vries <tom@codesourcery.com>
6408
6409 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6410
6411 2015-10-31 Tom de Vries <tom@codesourcery.com>
6412
6413 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6414 existing varinfo for arguments.
6415
6416 2015-10-31 Tom de Vries <tom@codesourcery.com>
6417
6418 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6419 create_function_info_for. Dump constraints generated during
6420 create_function_info_for. Move intra_create_variable_infos call and
6421 function-return-values-escape bit to ...
6422 (create_function_info_for): ... here, and merge
6423 intra_create_variable_infos call with argument loop. Add and handle
6424 nonlocal_p parameter.
6425
6426 2015-10-31 Tom de Vries <tom@codesourcery.com>
6427
6428 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
6429 updating is alap, and seperated from preceding code. Make sure
6430 insert_vi_for_tree is seperated from surrounding code.
6431
6432 2015-10-31 Tom de Vries <tom@codesourcery.com>
6433
6434 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
6435
6436 2015-10-30 Jeff Law <law@redhat.com>
6437 Nathan Sidwell <nathan@acm.org>
6438
6439 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
6440 args.
6441 (MOVE_MAX): Set to 8.
6442
6443 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
6444
6445 * cgraph.c: Include context.h for offloading.
6446 * varpool.c: Include context.h and omp-low.h.
6447
6448 2015-10-30 Anatoly Sokolov <aesok@post.ru>
6449
6450 * rtl.h (contains_symbol_ref_p): Declare.
6451 (SYMBOL_REF_P): Define.
6452 * rtlanal.c (contains_symbol_ref_p: New function.
6453 * lra-constraints.c (contains_symbol_ref_p): Remove.
6454 * var-tracking.c (contains_symbol_ref): Remove.
6455 (track_expr_p): Use contains_symbol_ref_p instead of
6456 contains_symbol_ref.
6457
6458 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6459
6460 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
6461 * fold-const.c (get_array_ctor_element_at_index): New.
6462 (fold): Remove binary-search through CONSTRUCTOR, call previous.
6463
6464 * fold-const.h (get_array_ctor_element_at_index): New.
6465
6466 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
6467
6468 * Makefile.in (OBJS): Add multiple_target.o.
6469 * attrib.c (make_attribute): Moved from config/i386/i386.c
6470 * config/i386/i386.c (make_attribute): Deleted.
6471 * multiple_target.c (create_dispatcher_calls): New.
6472 (get_attr_len): Ditto.
6473 (get_attr_str): Ditto.
6474 (separate_attrs): Ditto.
6475 (is_valid_asm_symbol): Ditto.
6476 (create_new_asm_name): Ditto.
6477 (create_target_clone): Ditto.
6478 (expand_target_clones): Ditto.
6479 (ipa_target_clone): Ditto.
6480 (ipa_dispatcher_calls): Ditto.
6481 * passes.def (pass_target_clone): Two new ipa passes.
6482 * tree-pass.h (make_pass_target_clone): Ditto.
6483 * doc/extend.texi (target_clones): New attribute description.
6484
6485 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
6486
6487 PR rtl-optimization/68106
6488 * lra-remat.c (input_regno_present_p): Process hard regs
6489 explicitly present in machine description insns.
6490 (call_used_input_regno_present_p): Ditto.
6491 (calculate_gen_cands): Ditto.
6492 (do_remat): Ditto.
6493
6494 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
6495
6496 * config/arm/neon-testgen.ml: Fix comment typo.
6497
6498 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6499
6500 * rtlanal.c (reg_set_p): Expand function comment.
6501
6502 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
6503
6504 * alias.c: Remove unused headers.
6505 * asan.c: Likewise.
6506 * attribs.c: Likewise.
6507 * auto-inc-dec.c: Likewise.
6508 * auto-profile.c: Likewise.
6509 * bb-reorder.c: Likewise.
6510 * bitmap.c: Likewise.
6511 * bt-load.c: Likewise.
6512 * builtins.c: Likewise.
6513 * caller-save.c: Likewise.
6514 * calls.c: Likewise.
6515 * ccmp.c: Likewise.
6516 * cfg.c: Likewise.
6517 * cfganal.c: Likewise.
6518 * cfgbuild.c: Likewise.
6519 * cfgcleanup.c: Likewise.
6520 * cfgexpand.c: Likewise.
6521 * cfghooks.c: Likewise.
6522 * cfgloop.c: Likewise.
6523 * cfgloopanal.c: Likewise.
6524 * cfgloopmanip.c: Likewise.
6525 * cfgrtl.c: Likewise.
6526 * cgraph.c: Likewise.
6527 * cgraphbuild.c: Likewise.
6528 * cgraphclones.c: Likewise.
6529 * cgraphunit.c: Likewise.
6530 * cilk-common.c: Likewise.
6531 * combine-stack-adj.c: Likewise.
6532 * combine.c: Likewise.
6533 * compare-elim.c: Likewise.
6534 * convert.c: Likewise.
6535 * coverage.c: Likewise.
6536 * cppbuiltin.c: Likewise.
6537 * cprop.c: Likewise.
6538 * cse.c: Likewise.
6539 * cselib.c: Likewise.
6540 * data-streamer-in.c: Likewise.
6541 * data-streamer-out.c: Likewise.
6542 * data-streamer.c: Likewise.
6543 * dbxout.c: Likewise.
6544 * dce.c: Likewise.
6545 * ddg.c: Likewise.
6546 * debug.c: Likewise.
6547 * df-core.c: Likewise.
6548 * df-problems.c: Likewise.
6549 * df-scan.c: Likewise.
6550 * dfp.c: Likewise.
6551 * dojump.c: Likewise.
6552 * dominance.c: Likewise.
6553 * domwalk.c: Likewise.
6554 * double-int.c: Likewise.
6555 * dse.c: Likewise.
6556 * dumpfile.c: Likewise.
6557 * dwarf2asm.c: Likewise.
6558 * dwarf2cfi.c: Likewise.
6559 * dwarf2out.c: Likewise.
6560 * emit-rtl.c: Likewise.
6561 * except.c: Likewise.
6562 * explow.c: Likewise.
6563 * expmed.c: Likewise.
6564 * expr.c: Likewise.
6565 * final.c: Likewise.
6566 * fixed-value.c: Likewise.
6567 * fold-const.c: Likewise.
6568 * function.c: Likewise.
6569 * fwprop.c: Likewise.
6570 * gcse.c: Likewise.
6571 * generic-match-head.c: Likewise.
6572 * ggc-common.c: Likewise.
6573 * gimple-builder.c: Likewise.
6574 * gimple-expr.c: Likewise.
6575 * gimple-fold.c: Likewise.
6576 * gimple-iterator.c: Likewise.
6577 * gimple-low.c: Likewise.
6578 * gimple-match-head.c: Likewise.
6579 * gimple-pretty-print.c: Likewise.
6580 * gimple-ssa-isolate-paths.c: Likewise.
6581 * gimple-ssa-strength-reduction.c: Likewise.
6582 * gimple-streamer-in.c: Likewise.
6583 * gimple-streamer-out.c: Likewise.
6584 * gimple-walk.c: Likewise.
6585 * gimple.c: Likewise.
6586 * gimplify-me.c: Likewise.
6587 * gimplify.c: Likewise.
6588 * godump.c: Likewise.
6589 * graph.c: Likewise.
6590 * graphds.c: Likewise.
6591 * haifa-sched.c: Likewise.
6592 * hw-doloop.c: Likewise.
6593 * ifcvt.c: Likewise.
6594 * init-regs.c: Likewise.
6595 * internal-fn.c: Likewise.
6596 * ipa-chkp.c: Likewise.
6597 * ipa-comdats.c: Likewise.
6598 * ipa-cp.c: Likewise.
6599 * ipa-devirt.c: Likewise.
6600 * ipa-icf-gimple.c: Likewise.
6601 * ipa-icf.c: Likewise.
6602 * ipa-inline-analysis.c: Likewise.
6603 * ipa-inline-transform.c: Likewise.
6604 * ipa-inline.c: Likewise.
6605 * ipa-polymorphic-call.c: Likewise.
6606 * ipa-profile.c: Likewise.
6607 * ipa-prop.c: Likewise.
6608 * ipa-pure-const.c: Likewise.
6609 * ipa-ref.c: Likewise.
6610 * ipa-reference.c: Likewise.
6611 * ipa-split.c: Likewise.
6612 * ipa-utils.c: Likewise.
6613 * ipa-visibility.c: Likewise.
6614 * ipa.c: Likewise.
6615 * ira-build.c: Likewise.
6616 * ira-color.c: Likewise.
6617 * ira-conflicts.c: Likewise.
6618 * ira-costs.c: Likewise.
6619 * ira-emit.c: Likewise.
6620 * ira-lives.c: Likewise.
6621 * ira.c: Likewise.
6622 * jump.c: Likewise.
6623 * langhooks.c: Likewise.
6624 * lcm.c: Likewise.
6625 * lists.c: Likewise.
6626 * loop-doloop.c: Likewise.
6627 * loop-init.c: Likewise.
6628 * loop-invariant.c: Likewise.
6629 * loop-iv.c: Likewise.
6630 * loop-unroll.c: Likewise.
6631 * lower-subreg.c: Likewise.
6632 * lra-assigns.c: Likewise.
6633 * lra-coalesce.c: Likewise.
6634 * lra-constraints.c: Likewise.
6635 * lra-eliminations.c: Likewise.
6636 * lra-lives.c: Likewise.
6637 * lra-remat.c: Likewise.
6638 * lra-spills.c: Likewise.
6639 * lra.c: Likewise.
6640 * lto-cgraph.c: Likewise.
6641 * lto-compress.c: Likewise.
6642 * lto-opts.c: Likewise.
6643 * lto-section-in.c: Likewise.
6644 * lto-section-out.c: Likewise.
6645 * lto-streamer-in.c: Likewise.
6646 * lto-streamer-out.c: Likewise.
6647 * lto-streamer.c: Likewise.
6648 * mcf.c: Likewise.
6649 * mode-switching.c: Likewise.
6650 * modulo-sched.c: Likewise.
6651 * optabs.c: Likewise.
6652 * opts-global.c: Likewise.
6653 * passes.c: Likewise.
6654 * plugin.c: Likewise.
6655 * postreload-gcse.c: Likewise.
6656 * postreload.c: Likewise.
6657 * predict.c: Likewise.
6658 * print-tree.c: Likewise.
6659 * profile.c: Likewise.
6660 * real.c: Likewise.
6661 * realmpfr.c: Likewise.
6662 * recog.c: Likewise.
6663 * ree.c: Likewise.
6664 * reg-stack.c: Likewise.
6665 * regcprop.c: Likewise.
6666 * reginfo.c: Likewise.
6667 * regrename.c: Likewise.
6668 * regstat.c: Likewise.
6669 * reload.c: Likewise.
6670 * reload1.c: Likewise.
6671 * reorg.c: Likewise.
6672 * resource.c: Likewise.
6673 * rtl-chkp.c: Likewise.
6674 * rtl-error.c: Likewise.
6675 * rtlanal.c: Likewise.
6676 * rtlhooks.c: Likewise.
6677 * sanopt.c: Likewise.
6678 * sched-deps.c: Likewise.
6679 * sched-ebb.c: Likewise.
6680 * sched-rgn.c: Likewise.
6681 * sdbout.c: Likewise.
6682 * sel-sched-dump.c: Likewise.
6683 * sel-sched-ir.c: Likewise.
6684 * sel-sched.c: Likewise.
6685 * sese.c: Likewise.
6686 * shrink-wrap.c: Likewise.
6687 * simplify-rtx.c: Likewise.
6688 * stack-ptr-mod.c: Likewise.
6689 * statistics.c: Likewise.
6690 * stmt.c: Likewise.
6691 * stor-layout.c: Likewise.
6692 * store-motion.c: Likewise.
6693 * stringpool.c: Likewise.
6694 * symtab.c: Likewise.
6695 * target-globals.c: Likewise.
6696 * targhooks.c: Likewise.
6697 * toplev.c: Likewise.
6698 * tracer.c: Likewise.
6699 * trans-mem.c: Likewise.
6700 * tree-affine.c: Likewise.
6701 * tree-call-cdce.c: Likewise.
6702 * tree-cfg.c: Likewise.
6703 * tree-cfgcleanup.c: Likewise.
6704 * tree-chkp-opt.c: Likewise.
6705 * tree-chkp.c: Likewise.
6706 * tree-chrec.c: Likewise.
6707 * tree-complex.c: Likewise.
6708 * tree-data-ref.c: Likewise.
6709 * tree-dfa.c: Likewise.
6710 * tree-diagnostic.c: Likewise.
6711 * tree-dump.c: Likewise.
6712 * tree-eh.c: Likewise.
6713 * tree-emutls.c: Likewise.
6714 * tree-if-conv.c: Likewise.
6715 * tree-inline.c: Likewise.
6716 * tree-into-ssa.c: Likewise.
6717 * tree-iterator.c: Likewise.
6718 * tree-loop-distribution.c: Likewise.
6719 * tree-nested.c: Likewise.
6720 * tree-nrv.c: Likewise.
6721 * tree-object-size.c: Likewise.
6722 * tree-outof-ssa.c: Likewise.
6723 * tree-parloops.c: Likewise.
6724 * tree-phinodes.c: Likewise.
6725 * tree-predcom.c: Likewise.
6726 * tree-pretty-print.c: Likewise.
6727 * tree-profile.c: Likewise.
6728 * tree-scalar-evolution.c: Likewise.
6729 * tree-sra.c: Likewise.
6730 * tree-ssa-address.c: Likewise.
6731 * tree-ssa-alias.c: Likewise.
6732 * tree-ssa-ccp.c: Likewise.
6733 * tree-ssa-coalesce.c: Likewise.
6734 * tree-ssa-copy.c: Likewise.
6735 * tree-ssa-dce.c: Likewise.
6736 * tree-ssa-dse.c: Likewise.
6737 * tree-ssa-forwprop.c: Likewise.
6738 * tree-ssa-ifcombine.c: Likewise.
6739 * tree-ssa-live.c: Likewise.
6740 * tree-ssa-loop-ch.c: Likewise.
6741 * tree-ssa-loop-im.c: Likewise.
6742 * tree-ssa-loop-ivcanon.c: Likewise.
6743 * tree-ssa-loop-ivopts.c: Likewise.
6744 * tree-ssa-loop-manip.c: Likewise.
6745 * tree-ssa-loop-niter.c: Likewise.
6746 * tree-ssa-loop-prefetch.c: Likewise.
6747 * tree-ssa-loop-unswitch.c: Likewise.
6748 * tree-ssa-loop.c: Likewise.
6749 * tree-ssa-math-opts.c: Likewise.
6750 * tree-ssa-operands.c: Likewise.
6751 * tree-ssa-phiopt.c: Likewise.
6752 * tree-ssa-phiprop.c: Likewise.
6753 * tree-ssa-pre.c: Likewise.
6754 * tree-ssa-propagate.c: Likewise.
6755 * tree-ssa-reassoc.c: Likewise.
6756 * tree-ssa-scopedtables.c: Likewise.
6757 * tree-ssa-sink.c: Likewise.
6758 * tree-ssa-strlen.c: Likewise.
6759 * tree-ssa-structalias.c: Likewise.
6760 * tree-ssa-tail-merge.c: Likewise.
6761 * tree-ssa-ter.c: Likewise.
6762 * tree-ssa-threadupdate.c: Likewise.
6763 * tree-ssa-uncprop.c: Likewise.
6764 * tree-ssa-uninit.c: Likewise.
6765 * tree-ssa.c: Likewise.
6766 * tree-ssanames.c: Likewise.
6767 * tree-stdarg.c: Likewise.
6768 * tree-streamer-in.c: Likewise.
6769 * tree-streamer-out.c: Likewise.
6770 * tree-streamer.c: Likewise.
6771 * tree-switch-conversion.c: Likewise.
6772 * tree-tailcall.c: Likewise.
6773 * tree-vect-data-refs.c: Likewise.
6774 * tree-vect-generic.c: Likewise.
6775 * tree-vect-loop-manip.c: Likewise.
6776 * tree-vect-loop.c: Likewise.
6777 * tree-vect-patterns.c: Likewise.
6778 * tree-vect-slp.c: Likewise.
6779 * tree-vect-stmts.c: Likewise.
6780 * tree-vectorizer.c: Likewise.
6781 * tree-vrp.c: Likewise.
6782 * tree.c: Likewise.
6783 * tsan.c: Likewise.
6784 * ubsan.c: Likewise.
6785 * value-prof.c: Likewise.
6786 * var-tracking.c: Likewise.
6787 * varasm.c: Likewise.
6788 * varpool.c: Likewise.
6789 * vmsdbgout.c: Likewise.
6790 * vtable-verify.c: Likewise.
6791 * web.c: Likewise.
6792 * wide-int-print.cc: Likewise.
6793 * wide-int.cc: Likewise.
6794 * xcoffout.c: Likewise.
6795
6796 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
6797
6798 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
6799 between pass numbering and execution order.
6800
6801 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6802
6803 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
6804 check for dependencies.
6805
6806 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6807
6808 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
6809 CDI_DOMINATORS.
6810
6811 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6812
6813 * real.h (format_helper): New.
6814 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
6815 (real_from_target, real_nan, real_2expN, real_value_truncate)
6816 (significand_size, real_from_string2, exact_real_inverse)
6817 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
6818 (real_round, real_isinteger, real_from_integer): Replace
6819 machine_mode arguments with format_helper arguments.
6820 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
6821 (real_from_integer, real_nan, real_2expN, real_convert)
6822 (real_value_truncate, exact_real_truncate, real_to_target)
6823 (real_from_target, significand_size, real_powi, real_trunc)
6824 (real_floor, real_ceil, real_round, real_isinteger): Replace
6825 machine_mode arguments with format_helper arguments.
6826 (real_to_target_fmt, real_from_target_fmt): Delete.
6827 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
6828 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
6829 argument with real_format.
6830 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
6831
6832 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6833
6834 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
6835 (fixed_to_decimal, fixed_convert_from_real)
6836 (real_convert_from_fixed): Fix mode arguments to real_2expN.
6837
6838 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
6839
6840 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
6841 SCALAR_FLOAT_MODE_P.
6842
6843 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6844
6845 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
6846 (completely_scalarize): Comment zero-length arrays.
6847 (get_access_replacement): Correct comment re. precondition.
6848
6849 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6850
6851 * config/i386/i386.c (get_builtin_code_for_version): Set priority
6852 for PROCESSOR_ZNVER1.
6853 (enum processor_model): Add M_AMDFAM17H_znver1.
6854 (struct arch_names_table): Likewise.
6855 * doc/extend.texi: ADD znver1.
6856
6857 2015-10-30 Richard Biener <rguenther@suse.de>
6858
6859 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
6860 fold () on single RHSs. Allow CONSTRUCTORS with trailing
6861 zeros to be folded to VECTOR_CSTs.
6862 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
6863 * fold-const.c (fold): Use build_vector_from_ctor.
6864
6865 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
6866
6867 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
6868 "mov %0.h[0], %1.h[0] to "neon_move".
6869 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
6870 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
6871 "mov_imm".
6872 (*cmovsi_insn_uxtw): Likewise.
6873
6874 2015-10-30 Tom de Vries <tom@codesourcery.com>
6875
6876 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
6877 unsigned, and initialize, and use initial value instead of hardcoded
6878 constant. Add generic constraints dumping section. Don't dump global
6879 initializers constraints dumping section if empty. Don't update
6880 variable from if unused.
6881
6882 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
6883
6884 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
6885 flag_checking and/or CHECKING_P to eliminate conditional compilation
6886 on ENABLE_CHECKING.
6887 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
6888 * config/bfin/bfin.c (hwloop_optimize): Likewise.
6889 * config/i386/i386.c (ix86_print_operand_address): Likewise.
6890 (output_387_binary_op): Likewise.
6891 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
6892 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
6893 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
6894 Likewise.
6895 * config/rs6000/rs6000.h: Likewise.
6896 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6897
6898 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
6899
6900 * config/sh/sh.opt (mfdpic): Add missing period.
6901
6902 2015-08-29 Anatoly Sokolov <aesok@post.ru>
6903
6904 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6905 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
6906 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6907 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
6908 mcore_base_register_rtx_p, mcore_legitimate_index_p,
6909 mcore_legitimate_address_p): New functions.
6910 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
6911
6912 2015-10-29 Jeff Law <law@redhat.com>
6913
6914 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
6915 method.
6916 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
6917 * tree-ssa-threadedge.c
6918 (record_temporary_equivalences_from_stmts_at_dest): Remove
6919 backedge_seen argument and associated code which invalidated
6920 equivalences based on the value of that argument.
6921 (thread_through_normal_block): Corresponding changes.
6922
6923 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6924
6925 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
6926 function earlier in the file.
6927 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
6928 df_regs_ever_live_p.
6929
6930 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
6931
6932 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
6933 by ignoring it.
6934
6935 2015-10-29 Richard Henderson <rth@redhat.com>
6936
6937 PR target/68124
6938 PR rtl-opt/67609
6939 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6940 sse check to the exact conditions of PR 67609.
6941
6942 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
6943
6944 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
6945 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
6946 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
6947 of the traditional names that TFmode uses for handling IEEE
6948 extended double. If -mfloat128, add KFmode functions for all of
6949 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
6950 make TFmode use the same emulation functions as KFmode.
6951 (init_float128_ibm): Likewise.
6952 (init_float128_ieee): Likewise.
6953 (rs6000_generate_compare): For IEEE 128-bit floating point
6954 comparisons, call the unordered comparison function instead of the
6955 ordered comparison function.
6956 (rs6000_expand_float128_convert): Deal with operands that are
6957 memory operands. Restructure the code to use a switch statement on
6958 the mode. Add support for TFmode defaulting to either IBM extended
6959 double or IEEE 128-bit floating point. If the underlying types are
6960 the same, use a move instead of a conversion function.
6961 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
6962 use for IEEE 128-bit floating point constants with -mfloat128.
6963 (rs6000_c_mode_for_suffix): Likewise.
6964 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
6965 128-bit floating point with IBM extended double floating point.
6966 (rs6000_invalid_binary_op): Likewise.
6967 (rs6000_gen_le_vsx_permute): On little endian systems generate a
6968 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
6969 types that can go in vector registers.
6970 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
6971 point types that can go in vector registers on little endian
6972 PowerPC systems.
6973 (mark_swaps_for_removal): Likewise.
6974 (rs6000_analyze_swaps): Likewise.
6975 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
6976
6977 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
6978 rework IEEE 128-bit floating point insns to deal with TFmode being
6979 either IBM extended double or IEEE 128-bit floating point.
6980 (IFKF): Likewise.
6981 (IBM128): Update iterator to add condition that the mode is IBM
6982 extended double.
6983 (IEEE128): New iterator for IEEE 128-bit floating point.
6984 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
6985 (FLOAT128): Likewise.
6986 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
6987 iterator.
6988 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
6989 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
6990 instead of hard coding TFmode or KFmode.
6991 (negtf2_internal): Likewise.
6992 (neg<mode>2_internal): Likewise.
6993 (abs<mode>2): Likewise.
6994 (abstf2_internal): Likewise.
6995 (abs<mode>2_internal): Likewise.
6996 (ieee_128bit_neg<mode>2): Likewise.
6997 (ieee_128bit_neg<mode>2_internal): Likewise.
6998 (ieee_128bit_abs<mode>2): Likewise.
6999 (ieee_128bit_abs<mode>2_internal): Likewise.
7000 (ieee_128bit_nabs<mode>2): Likewise.
7001 (ieee_128bit_nabs<mode>2_internal): Likewise.
7002 (extendiftf2): Add explicit conversions between 128-bit floating
7003 point types. Drop the old conversions that had become unwieldy.
7004 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7005 (extendifkf2): Likewise.
7006 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7007 (extendtfkf2): Likewise.
7008 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7009 (trunciftf2): Likewise.
7010 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7011 (truncifkf2): Likewise.
7012 (float<SDI:mode><IFKF:mode>2): Likewise.
7013 (trunckftf2): Likewise.
7014 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7015 (trunctfif2): Likewise.
7016 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7017 (extenddftf2): Rework 128-bit floating point conversions to
7018 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7019 KFmode expanders into one function.
7020 (extenddf<mode>2): Likewise.
7021 (extenddftf2_fprs): Likewise.
7022 (extenddf<mode>2_fprs): Likewise.
7023 (extenddftf2_vsx): Likewise.
7024 (extenddf<mode>2_vsx): Likewise.
7025 (extendsftf2): Likewise.
7026 (extendsf<mode>2): Likewise.
7027 (trunctfdf2): Likewise.
7028 (trunc<mode>df2): Likewise.
7029 (trunctfdf2_internal1): Likewise.
7030 (trunc<mode>df2_internal1): Likewise.
7031 (trunctfdf2_internal2): Likewise.
7032 (trunc<mode>df2_internal2): Likewise.
7033 (trunctfsf2): Likewise.
7034 (trunc<mode>sf2): Likewise.
7035 (trunctfsf2_fprs): Likewise.
7036 (trunc<mode>sf2_fprs): Likewise.
7037 (floatsit2f): Likewise.
7038 (floatsi<mode>2): Likewise.
7039 (fix_trunc_helper): Likewise.
7040 (fix_trunc_helper<mode>): Likewise.
7041 (fix_trunctfsi2): Likewise.
7042 (fix_trunc<mode>si2): Likewise.
7043 (fix_trunctfsi2_fprs): Likewise.
7044 (fix_trunc<mode>si2_fprs): Likewise.
7045 (fix_trunctfsi2_internal): Likewise.
7046 (fix_trunc<mode>si2_internal): Likewise.
7047 (fix_trunctfdi2): Likewise.
7048 (fix_trunc<mode>di2): Likewise.
7049 (fixuns_trunctf<mode>2): Likewise.
7050 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7051 (floatditf2): Likewise.
7052 (floatdi<mode>2): Likewise.
7053 (floatuns<mode>tf2): Likewise.
7054 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7055 (cmptf_internal1): Use a mode iterator to add support for both
7056 types (IFmode, TFmode) that support IBM extended double.
7057 (cmp<mode>_internal1): Likewise.
7058 (cmptf_internal2): Likewise.
7059 (cmp<mode>_internal2): Likewise.
7060
7061 * doc/extend.texi (Floating Types): Document __ibm128 and
7062 __float128 on PowerPC.
7063
7064 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7065 -mfloat128 and -mno-float128.
7066
7067 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7068
7069 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7070 floating point modes that can go in vector registers.
7071 (MODES_TIEABLE_P): Move tests for vector modes before tests for
7072 scalar floating point, so that IEEE 128-bit floating point that
7073 can go in vector registers bind with vectors and not FP.
7074 (struct rs6000_args): Add libcall field.
7075
7076 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7077 and -mfloat128-software switches. Replace them with a binary
7078 -mfloat128 switch.
7079 (-mfloat128): Likewise.
7080
7081 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7082 128-bit floating point types in GPRs, even if the appropriate
7083 option enabling the type was not used.
7084 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7085 debugging.
7086 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7087 pre-decrement on IEEE 128-bit floating point values.
7088 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7089 is IEEE 128-bit floating point.
7090 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7091 128-bit floating point types that can go in vector registers.
7092 (rs6000_option_override_internal): Change -mfloat128-none and
7093 -mfloat128-software to -mfloat128, and move code to be near other
7094 VSX option handling.
7095 (rs6000_option_override_internal): Disable -mfloat128 if we don't
7096 have the Altivec ABI.
7097 (rs6000_init_builtins): Don't make TFmode use either IFmode or
7098 KFmode floating point nodes. Instead, have three separate nodes.
7099 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7100 eventually moving the long double default to IEEE 128-bit floating
7101 point.
7102 (rs6000_opt_masks): Add -mfloat128.
7103 (struct rs6000_opt_var): Fix typo in comment.
7104 (init_cumulative_args): Initialize libcall field in
7105 CUMULATIVE_ARGS.
7106 (rs6000_function_arg): Treat library functions as if they had
7107 prototypes to prevent IEEE 128-bit support functions from passing
7108 arguments in both GPRs and vector registers.
7109 (rs6000_arg_partial_bytes): Likewise.
7110
7111 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7112 an option that can be turned on via -mcpu=<xxx>.
7113
7114 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7115 longer used.
7116
7117 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7118 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7119 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7120 double is IBM extended double.
7121
7122 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7123 SUBREGs.
7124
7125 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7126
7127 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7128 * genconditions.c: Define CHECKING_P in the generated code.
7129 * genextract.c: Use flag_checking in insn_extract.
7130 * gengtype.c (main): Remove conditional compilation.
7131 * gengtype.h: Likewise.
7132
7133 2015-10-29 Jeff Law <law@redhat.com>
7134
7135 PR tree-optimization/67892
7136 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7137 in comment.
7138 (thread_through_normal_block): If we have seen a backedge, then
7139 do nothing. No longer call find_jump_threads_backwards here.
7140 (thread_across_edge): Use find_jump_threads_backwards to find
7141 jump threads if the old style threader was not successful.
7142 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7143 gsi_last_nondebug_bb. Return NULL if the block does not end
7144 with a control statement.
7145 (find_jump_threads_backwards): Setup code moved here from
7146 tree-ssa-threadedge.c::thread_through_normal_block. Accept
7147 single edge argument instead of name & block.
7148 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7149 prototype.
7150
7151 2015-10-29 Tom de Vries <tom@codesourcery.com>
7152
7153 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7154 types.
7155
7156 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7157
7158 * omp-low.c (lower_omp_target): Remove unreachable code & merge
7159 ifs.
7160
7161 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
7162
7163 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7164
7165 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7166
7167 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7168 guard_bb0 and use guard_bb throughout.
7169
7170 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7171
7172 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7173 unnecessary label.
7174
7175 2015-10-29 Richard Biener <rguenther@suse.de>
7176
7177 PR middle-end/68142
7178 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7179 overflow.
7180
7181 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
7182
7183 * alias.c: Reorder #include statements and remove duplicates.
7184 * asan.c: Likewise.
7185 * attribs.c: Likewise.
7186 * auto-inc-dec.c: Likewise.
7187 * auto-profile.c: Likewise.
7188 * bb-reorder.c: Likewise.
7189 * bt-load.c: Likewise.
7190 * builtins.c: Likewise.
7191 * caller-save.c: Likewise.
7192 * calls.c: Likewise.
7193 * ccmp.c: Likewise.
7194 * cfg.c: Likewise.
7195 * cfganal.c: Likewise.
7196 * cfgbuild.c: Likewise.
7197 * cfgcleanup.c: Likewise.
7198 * cfgexpand.c: Likewise.
7199 * cfghooks.c: Likewise.
7200 * cfgloop.c: Likewise.
7201 * cfgloopanal.c: Likewise.
7202 * cfgloopmanip.c: Likewise.
7203 * cfgrtl.c: Likewise.
7204 * cgraph.c: Likewise.
7205 * cgraphbuild.c: Likewise.
7206 * cgraphclones.c: Likewise.
7207 * cgraphunit.c: Likewise.
7208 * cilk-common.c: Likewise.
7209 * combine-stack-adj.c: Likewise.
7210 * combine.c: Likewise.
7211 * compare-elim.c: Likewise.
7212 * convert.c: Likewise.
7213 * coverage.c: Likewise.
7214 * cppbuiltin.c: Likewise.
7215 * cprop.c: Likewise.
7216 * cse.c: Likewise.
7217 * cselib.c: Likewise.
7218 * data-streamer-in.c: Likewise.
7219 * data-streamer-out.c: Likewise.
7220 * data-streamer.c: Likewise.
7221 * dbxout.c: Likewise.
7222 * dce.c: Likewise.
7223 * ddg.c: Likewise.
7224 * debug.c: Likewise.
7225 * df-core.c: Likewise.
7226 * df-problems.c: Likewise.
7227 * df-scan.c: Likewise.
7228 * dfp.c: Likewise.
7229 * dojump.c: Likewise.
7230 * dominance.c: Likewise.
7231 * double-int.c: Likewise.
7232 * dse.c: Likewise.
7233 * dumpfile.c: Likewise.
7234 * dwarf2asm.c: Likewise.
7235 * dwarf2cfi.c: Likewise.
7236 * dwarf2out.c: Likewise.
7237 * emit-rtl.c: Likewise.
7238 * except.c: Likewise.
7239 * explow.c: Likewise.
7240 * expmed.c: Likewise.
7241 * expr.c: Likewise.
7242 * final.c: Likewise.
7243 * fixed-value.c: Likewise.
7244 * fold-const.c: Likewise.
7245 * function.c: Likewise.
7246 * fwprop.c: Likewise.
7247 * gcse.c: Likewise.
7248 * generic-match-head.c: Likewise.
7249 * ggc-common.c: Likewise.
7250 * gimple-builder.c: Likewise.
7251 * gimple-expr.c: Likewise.
7252 * gimple-fold.c: Likewise.
7253 * gimple-iterator.c: Likewise.
7254 * gimple-low.c: Likewise.
7255 * gimple-match-head.c: Likewise.
7256 * gimple-pretty-print.c: Likewise.
7257 * gimple-ssa-isolate-paths.c: Likewise.
7258 * gimple-ssa-strength-reduction.c: Likewise.
7259 * gimple-streamer-in.c: Likewise.
7260 * gimple-streamer-out.c: Likewise.
7261 * gimple-walk.c: Likewise.
7262 * gimple.c: Likewise.
7263 * gimplify-me.c: Likewise.
7264 * gimplify.c: Likewise.
7265 * godump.c: Likewise.
7266 * graph.c: Likewise.
7267 * graphite-poly.c: Likewise.
7268 * haifa-sched.c: Likewise.
7269 * hw-doloop.c: Likewise.
7270 * ifcvt.c: Likewise.
7271 * incpath.c: Likewise.
7272 * init-regs.c: Likewise.
7273 * internal-fn.c: Likewise.
7274 * ipa-chkp.c: Likewise.
7275 * ipa-comdats.c: Likewise.
7276 * ipa-cp.c: Likewise.
7277 * ipa-devirt.c: Likewise.
7278 * ipa-icf-gimple.c: Likewise.
7279 * ipa-icf.c: Likewise.
7280 * ipa-inline-analysis.c: Likewise.
7281 * ipa-inline-transform.c: Likewise.
7282 * ipa-inline.c: Likewise.
7283 * ipa-polymorphic-call.c: Likewise.
7284 * ipa-profile.c: Likewise.
7285 * ipa-prop.c: Likewise.
7286 * ipa-pure-const.c: Likewise.
7287 * ipa-ref.c: Likewise.
7288 * ipa-reference.c: Likewise.
7289 * ipa-split.c: Likewise.
7290 * ipa-utils.c: Likewise.
7291 * ipa-visibility.c: Likewise.
7292 * ipa.c: Likewise.
7293 * ira-build.c: Likewise.
7294 * ira-color.c: Likewise.
7295 * ira-conflicts.c: Likewise.
7296 * ira-costs.c: Likewise.
7297 * ira-emit.c: Likewise.
7298 * ira-lives.c: Likewise.
7299 * ira.c: Likewise.
7300 * jump.c: Likewise.
7301 * langhooks.c: Likewise.
7302 * lcm.c: Likewise.
7303 * lists.c: Likewise.
7304 * loop-doloop.c: Likewise.
7305 * loop-init.c: Likewise.
7306 * loop-invariant.c: Likewise.
7307 * loop-iv.c: Likewise.
7308 * loop-unroll.c: Likewise.
7309 * lower-subreg.c: Likewise.
7310 * lra-assigns.c: Likewise.
7311 * lra-coalesce.c: Likewise.
7312 * lra-constraints.c: Likewise.
7313 * lra-eliminations.c: Likewise.
7314 * lra-lives.c: Likewise.
7315 * lra-remat.c: Likewise.
7316 * lra-spills.c: Likewise.
7317 * lra.c: Likewise.
7318 * lto-cgraph.c: Likewise.
7319 * lto-compress.c: Likewise.
7320 * lto-opts.c: Likewise.
7321 * lto-section-in.c: Likewise.
7322 * lto-section-out.c: Likewise.
7323 * lto-streamer-in.c: Likewise.
7324 * lto-streamer-out.c: Likewise.
7325 * lto-streamer.c: Likewise.
7326 * mode-switching.c: Likewise.
7327 * modulo-sched.c: Likewise.
7328 * omp-low.c: Likewise.
7329 * optabs.c: Likewise.
7330 * opts-global.c: Likewise.
7331 * passes.c: Likewise.
7332 * plugin.c: Likewise.
7333 * postreload-gcse.c: Likewise.
7334 * postreload.c: Likewise.
7335 * predict.c: Likewise.
7336 * print-tree.c: Likewise.
7337 * profile.c: Likewise.
7338 * real.c: Likewise.
7339 * realmpfr.c: Likewise.
7340 * recog.c: Likewise.
7341 * ree.c: Likewise.
7342 * reg-stack.c: Likewise.
7343 * regcprop.c: Likewise.
7344 * reginfo.c: Likewise.
7345 * regrename.c: Likewise.
7346 * regstat.c: Likewise.
7347 * reload.c: Likewise.
7348 * reload1.c: Likewise.
7349 * reorg.c: Likewise.
7350 * resource.c: Likewise.
7351 * rtl-chkp.c: Likewise.
7352 * rtl-error.c: Likewise.
7353 * rtlanal.c: Likewise.
7354 * rtlhooks.c: Likewise.
7355 * sanopt.c: Likewise.
7356 * sched-deps.c: Likewise.
7357 * sched-ebb.c: Likewise.
7358 * sched-rgn.c: Likewise.
7359 * sese.c: Likewise.
7360 * shrink-wrap.c: Likewise.
7361 * simplify-rtx.c: Likewise.
7362 * stack-ptr-mod.c: Likewise.
7363 * statistics.c: Likewise.
7364 * stmt.c: Likewise.
7365 * stor-layout.c: Likewise.
7366 * store-motion.c: Likewise.
7367 * stringpool.c: Likewise.
7368 * symtab.c: Likewise.
7369 * target-globals.c: Likewise.
7370 * targhooks.c: Likewise.
7371 * toplev.c: Likewise.
7372 * tracer.c: Likewise.
7373 * trans-mem.c: Likewise.
7374 * tree-affine.c: Likewise.
7375 * tree-call-cdce.c: Likewise.
7376 * tree-cfg.c: Likewise.
7377 * tree-cfgcleanup.c: Likewise.
7378 * tree-chkp-opt.c: Likewise.
7379 * tree-chkp.c: Likewise.
7380 * tree-chrec.c: Likewise.
7381 * tree-complex.c: Likewise.
7382 * tree-data-ref.c: Likewise.
7383 * tree-dfa.c: Likewise.
7384 * tree-diagnostic.c: Likewise.
7385 * tree-dump.c: Likewise.
7386 * tree-eh.c: Likewise.
7387 * tree-emutls.c: Likewise.
7388 * tree-if-conv.c: Likewise.
7389 * tree-inline.c: Likewise.
7390 * tree-into-ssa.c: Likewise.
7391 * tree-iterator.c: Likewise.
7392 * tree-loop-distribution.c: Likewise.
7393 * tree-nested.c: Likewise.
7394 * tree-nrv.c: Likewise.
7395 * tree-object-size.c: Likewise.
7396 * tree-outof-ssa.c: Likewise.
7397 * tree-parloops.c: Likewise.
7398 * tree-phinodes.c: Likewise.
7399 * tree-predcom.c: Likewise.
7400 * tree-pretty-print.c: Likewise.
7401 * tree-profile.c: Likewise.
7402 * tree-scalar-evolution.c: Likewise.
7403 * tree-sra.c: Likewise.
7404 * tree-ssa-address.c: Likewise.
7405 * tree-ssa-alias.c: Likewise.
7406 * tree-ssa-ccp.c: Likewise.
7407 * tree-ssa-coalesce.c: Likewise.
7408 * tree-ssa-copy.c: Likewise.
7409 * tree-ssa-dce.c: Likewise.
7410 * tree-ssa-dom.c: Likewise.
7411 * tree-ssa-dse.c: Likewise.
7412 * tree-ssa-forwprop.c: Likewise.
7413 * tree-ssa-ifcombine.c: Likewise.
7414 * tree-ssa-live.c: Likewise.
7415 * tree-ssa-loop-ch.c: Likewise.
7416 * tree-ssa-loop-im.c: Likewise.
7417 * tree-ssa-loop-ivcanon.c: Likewise.
7418 * tree-ssa-loop-ivopts.c: Likewise.
7419 * tree-ssa-loop-manip.c: Likewise.
7420 * tree-ssa-loop-niter.c: Likewise.
7421 * tree-ssa-loop-prefetch.c: Likewise.
7422 * tree-ssa-loop-unswitch.c: Likewise.
7423 * tree-ssa-loop.c: Likewise.
7424 * tree-ssa-math-opts.c: Likewise.
7425 * tree-ssa-operands.c: Likewise.
7426 * tree-ssa-phiopt.c: Likewise.
7427 * tree-ssa-phiprop.c: Likewise.
7428 * tree-ssa-pre.c: Likewise.
7429 * tree-ssa-propagate.c: Likewise.
7430 * tree-ssa-reassoc.c: Likewise.
7431 * tree-ssa-sccvn.c: Likewise.
7432 * tree-ssa-scopedtables.c: Likewise.
7433 * tree-ssa-sink.c: Likewise.
7434 * tree-ssa-strlen.c: Likewise.
7435 * tree-ssa-structalias.c: Likewise.
7436 * tree-ssa-tail-merge.c: Likewise.
7437 * tree-ssa-ter.c: Likewise.
7438 * tree-ssa-threadedge.c: Likewise.
7439 * tree-ssa-threadupdate.c: Likewise.
7440 * tree-ssa-uncprop.c: Likewise.
7441 * tree-ssa-uninit.c: Likewise.
7442 * tree-ssa.c: Likewise.
7443 * tree-ssanames.c: Likewise.
7444 * tree-stdarg.c: Likewise.
7445 * tree-streamer-in.c: Likewise.
7446 * tree-streamer-out.c: Likewise.
7447 * tree-streamer.c: Likewise.
7448 * tree-switch-conversion.c: Likewise.
7449 * tree-tailcall.c: Likewise.
7450 * tree-vect-data-refs.c: Likewise.
7451 * tree-vect-generic.c: Likewise.
7452 * tree-vect-loop-manip.c: Likewise.
7453 * tree-vect-loop.c: Likewise.
7454 * tree-vect-patterns.c: Likewise.
7455 * tree-vect-slp.c: Likewise.
7456 * tree-vect-stmts.c: Likewise.
7457 * tree-vectorizer.c: Likewise.
7458 * tree-vrp.c: Likewise.
7459 * tree.c: Likewise.
7460 * tsan.c: Likewise.
7461 * ubsan.c: Likewise.
7462 * value-prof.c: Likewise.
7463 * var-tracking.c: Likewise.
7464 * varasm.c: Likewise.
7465 * varpool.c: Likewise.
7466 * vtable-verify.c: Likewise.
7467 * web.c: Likewise.
7468 * wide-int-print.cc: Likewise.
7469 * wide-int.cc: Likewise.
7470 * xcoffout.c: Likewise.
7471
7472 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
7473
7474 * Makefile.in (NO_PIE_CFLAGS): New.
7475 (NO_PIE_FLAG): Likewise.
7476 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7477 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7478 (BUILD_NO_PIE_CFLAGS): Likewise.
7479 (BUILD_NO_PIE_FLAG): Likewise.
7480 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
7481 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
7482 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
7483 $(BUILD_NO_PIE_CFLAGS).
7484 (BUILD_CXXFLAGS): Likewise.
7485 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
7486 $(BUILD_NO_PIE_FLAG).
7487 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
7488 (BUILD_NO_PIE_FLAG): Likewise.
7489 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7490 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7491 * configure: Regenerated.
7492
7493 2015-10-29 Richard Biener <rguenther@suse.de>
7494
7495 PR middle-end/56956
7496 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
7497 unsigned conditonal negation to ABS_EXPR.
7498
7499 2015-10-29 Richard Biener <rguenther@suse.de>
7500
7501 * gimple-match-head.c (gimple_simplify): Remove premature checking
7502 of builtin_decl_implicit of function calls we simplify.
7503
7504 2015-10-29 Bin Cheng <bin.cheng@arm.com>
7505
7506 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
7507 (get_computation_cost_at): Ditto.
7508 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
7509 and inv_expr_id.
7510
7511 2015-10-28 Tom de Vries <tom@codesourcery.com>
7512
7513 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
7514 superfluous code.
7515
7516 2015-10-28 Jason Merrill <jason@redhat.com>
7517
7518 * Makefile.in (TAGS): Include libcpp and libiberty.
7519
7520 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7521
7522 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
7523 (extract_omp_for_data): Remove OpenACC special handling of
7524 chunking.
7525
7526 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
7527 (struct parallel): Update comment.
7528 (nvptx_reorg): Likewise.
7529 (nvptx_neuter): Cleanup whitespace.
7530
7531 2015-10-28 Richard Henderson <rth@redhat.com>
7532
7533 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
7534
7535 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7536
7537 PR target/67839
7538 * config/avr/predicates.md (low_io_address_operand): Don't
7539 consider MODE when computing upper bound.
7540 (io_address_operand): Likewise.
7541
7542 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
7543
7544 * fold-const.c (operand_equal_p): Do not verify that types are
7545 compatible for MEM_REFs.
7546
7547 2015-10-28 Richard Biener <rguenther@suse.de>
7548
7549 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
7550 in simplifying VEC_COND_EXPR conditions.
7551
7552 2015-10-28 Tom de Vries <tom@codesourcery.com>
7553
7554 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
7555 into vi_next of a full_var.
7556
7557 2015-10-28 Tom de Vries <tom@codesourcery.com>
7558
7559 * tree-ssa-structalias.c (new_var_info, make_heapvar)
7560 (make_constraint_from_restrict, make_constraint_from_global_restrict)
7561 (create_function_info_for, create_variable_info_for_1)
7562 (create_variable_info_for): Add and handle add_id parameter.
7563 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
7564 (init_base_vars): Add extra argument to calls to new_var_info.
7565 (get_vi_for_tree): Add extra argument to call to
7566 create_variable_info_for.
7567 (process_constraint, do_deref, process_all_all_constraints): Add extra
7568 argument to calls to new_scalar_tmp_constraint_exp.
7569 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
7570 argument to calls to make_heapvar.
7571 (make_restrict_var_constraints): Add extra argument to call to
7572 make_constraint_from_global_restrict.
7573 (intra_create_variable_infos): Add extra argument to call to
7574 create_variable_info_for_1.
7575 (ipa_pta_execute): Add extra argument to call to
7576 create_function_info_for.
7577
7578 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7579
7580 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
7581 (sibcall_value): Likewise.
7582
7583 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7584
7585 * config/nvptx/nvptx.h (struct machine_function): Add
7586 axis_predicate.
7587 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
7588 nvptx_expand_oacc_join): Declare.
7589 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
7590 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
7591 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
7592 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
7593 UNSPECV_JOINING, UNSPECV_JOIN): New.
7594 (BITS, BITD): New mode iterators.
7595 (br_true_uni, br_false_uni): New.
7596 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
7597 (oacc_dim_size, oacc_dim_pos): New.
7598 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
7599 (oacc_fork, oacc_join): New.
7600 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
7601 (worker_load<mode>, worker_store<mode>): New.
7602 (nvptx_barsync): New.
7603 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
7604 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
7605 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
7606 worker_bcast_sym): New.
7607 (nvptx_option_override): Initialize worker broadcast buffer.
7608 (nvptx_emit_forking, nvptx_emit_joining): New.
7609 (nvptx_init_axis_predicate): New.
7610 (nvptx_declare_function_name): Init axis predicates.
7611 (nvptx_expand_call): Add fork/join markers around routine call.
7612 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
7613 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
7614 (nvptx_gen_vcast): New.
7615 (struct wcast_data_t): New.
7616 (enum propagate_mask): New.
7617 (nvptx_gen_wcast): New.
7618 (nvptx_print_operand): Add 'S' case.
7619 (struct parallel): New.
7620 (parallel::parallel, parallel::~parallel): New.
7621 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
7622 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
7623 nvptx_find_par, nvptx_discover_pars): New.
7624 (nvptx_propagate): New.
7625 (vprop_gen, nvptx_vpropagate): New.
7626 (wprop_gen, nvptx_wpropagate): New.
7627 (nvptx_wsync): New.
7628 (nvptx_single, nvptx_skip_par): New.
7629 (nvptx_process_pars, nvptx_neuter_pars): New.
7630 (ntptx_reorg): Split blocks, generate parallel structure, apply
7631 neutering.
7632 (nvptx_cannot_copy_insn_p): New.
7633 (nvptx_file_end): Emit worker broadcast decl.
7634 (nvptx_goacc_fork_join): New.
7635 (TARGET_CANNOT_COPY_INSN_P): Override.
7636 (TARGET_GOACC_FORK_JOIN): Override.
7637
7638 2015-10-28 Richard Biener <rguenther@suse.de>
7639
7640 * fold-const.c (negate_expr_p): Adjust the division case to
7641 properly avoid introducing undefined overflow.
7642 (fold_negate_expr): Likewise.
7643
7644 2015-10-28 Richard Biener <rguenther@suse.de>
7645
7646 PR tree-optimization/65962
7647 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7648 Avoid creating loop carried dependences also for outer loops
7649 of the loop a use to replace is in.
7650
7651 2015-10-28 Richard Biener <rguenther@suse.de>
7652
7653 * common.opt (fchecking): New flag controlling flag_checking.
7654 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
7655 * timevar.c (timer::print): Adjust output.
7656 * doc/invoke.texi (fchecking): Document.
7657
7658 2015-10-28 Richard Biener <rguenther@suse.de>
7659
7660 PR middle-end/68067
7661 * fold-const.c (negate_expr_p): We cannot negate plus or minus
7662 if overflow is not wrapping. Likewise multiplication unless
7663 one operand is constant and not power of two.
7664 (fold_negate_expr): Adjust accordingly.
7665
7666 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7667
7668 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
7669 fields.
7670 (is_oacc_parallel, is_oacc_kernels): New.
7671 (enclosing_target_ctx): May return NULL.
7672 (ctx_in_oacc_kernels_region): New.
7673 (check_oacc_kernel_gwv): New.
7674 (oacc_loop_or_target_p): Delete.
7675 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
7676 operands. Strip reductions fro kernels.
7677 (scan_omp_target): Don't calculate gwv mask.
7678 (lower_oacc_head_mark, lower_oacc_loop_marker,
7679 lower_oacc_head_tail): New.
7680 (struct oacc_collapse): New.
7681 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
7682 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7683 Remove OpenACC handling.
7684 (expand_oacc_for): New.
7685 (expand_omp_for): Call expand_oacc_for.
7686 (lower_omp_for): Call lower_oacc_head_tail.
7687
7688 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
7689
7690 * attribs.c (check_attribute_tables): New function, broken out from...
7691 (init_attributes): Use it.
7692 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
7693 gcc_checking_assert and checking_* functions to eliminate
7694 ENABLE_CHECKING conditionals.
7695 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
7696 (pass_expand::execute): Likewise.
7697 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
7698 * cgraphunit.c (mark_functions_to_output): Likewise.
7699 (cgraph_node::expand_thunk): Likewise.
7700 (symbol_table::compile): Likewise.
7701 * ddg.c (add_cross_iteration_register_deps): Likewise.
7702 (create_ddg_all_sccs): Likewise.
7703 * df-core.c (df_finish_pass, df_analyze): Likewise.
7704 * diagnostic-core.h: Likewise.
7705 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
7706 * dominance.c (calculate_dominance_info): Likewise.
7707 * dwarf2out.c (add_AT_die_ref): Likewise.
7708 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
7709 (loc_list_from_tree, gen_lexical_block_die): Likewise.
7710 gen_type_die_with_usage, gen_type_die): Likewise.
7711 (dwarf2out_decl): Likewise.
7712 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
7713 * except.c (duplicate_eh_regions): Likewise.
7714 * fwprop.c (register_active_defs, update_df_init): Likewise.
7715 (fwprop_init, fwprop_done): Likewise.
7716 (update_uses): Likewise.
7717 * ggc-page.c (ggc_grow): Likewise.
7718 * gimplify.c (gimplify_body): Likewise.
7719 (gimplify_hasher::equal): Likewise.
7720 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
7721 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
7722 Likewise.
7723 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
7724 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
7725 * hash-table.h (::find_empty_slot_for_expand): Likewise.
7726 * ifcvt.c (if_convert): Likewise.
7727 * ipa-cp.c (ipcp_propagate_stage): Likewise.
7728 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
7729 (odr_type_p, odr_types_equivalent_p): Likewise.
7730 (add_type_duplicate, get_odr_type): Likewise.
7731 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7732 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7733 (sem_item_optimizer::verify_classes): Likewise.
7734 (sem_item_optimizer::traverse_congruence_split): Likewise.
7735 (sem_item_optimizer::checking_verify_classes): New.
7736 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
7737 method.
7738 * cfgrtl.c (commit_edge_insertions): Likewise.
7739 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
7740 (rtl_flow_call_edges_add): Likewise.
7741 * cgraph.c (symbol_table::create_edge): Likewise.
7742 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7743 * cgraph.h (symtab_node): Likewise.
7744 (symtab_node::checking_verify_symtab_nodes): Define.
7745 (cgraph_node::checking_verify_cgraph_nodes): Define.
7746 * cfghooks.h (checking_verify_flow_info): Define.
7747 * cfgloop.h (checking_verify_loop_structure): Define.
7748 * dominance.h (checking_verify_dominators): Define.
7749 * et-forest.c: Fix comment.
7750 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
7751 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7752 ENABLE_CHECKING conditionals.
7753 * ipa-inline-transform.c (save_inline_function_body): Likewise.
7754 * ipa-inline.c (inline_small_functions): Likewise.
7755 (early_inliner): Likewise.
7756 * ipa-inline.h (estimate_edge_growth): Likewise.
7757 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7758 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7759 (ipa_single_use): Likewise.
7760 * ira-int.h: Likewise.
7761 * ira.c (ira): Likewise.
7762 * loop-doloop.c (doloop_optimize_loops): Likewise.
7763 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
7764 * loop-invariant.c (move_loop_invariants): Likewise.
7765 * lra-assigns.c (lra_assign): Likewise.
7766 * lra-constraints.c (lra_constraints): Likewise.
7767 * lra-eliminations.c (lra_eliminate): Likewise.
7768 * lra-int.h (struct lra_reg): Likewise.
7769 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7770 (lra_create_live_ranges_1): Likewise.
7771 * lra-remat.c (create_remat_bb_data): Likewise.
7772 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
7773 (lra): Likewise.
7774 (check_rtl): Always define. Remove incorrect guard around
7775 extract_constrain_insn call.
7776 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
7777 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7778 ENABLE_CHECKING conditionals.
7779 * lto-streamer-out.c (DFS::DFS): Likewise.
7780 (lto_output): Likewise.
7781 * lto-streamer.c (lto_streamer_init): Likewise.
7782 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
7783 expand_omp_target, execute_expand_omp): Likewise.
7784 (lower_omp_target): Likewise.
7785 * passes.c (execute_function_todo): Likewise.
7786 (execute_todo, execute_one_pass): Likewise.
7787 (verify_curr_properties): Always define.
7788 * predict.c (tree_estimate_probability: Use flag_checking,
7789 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7790 ENABLE_CHECKING conditionals.
7791 (propagate_freq): Likewise.
7792 * pretty-print.c (pp_format): Likewise.
7793 * real.c (real_to_decimal_for_mode): Likewise.
7794 * recog.c (split_all_insns): Likewise.
7795 * regcprop.c (kill_value_one_regno): Likewise.
7796 (copy_value): Likewise.
7797 (validate_value_data): Define unconditionally.
7798 * reload.c: Fix comment.
7799 * timevar.c: Include options.h
7800 * tree-ssa.h (checking_verify_ssa): Define.
7801 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
7802 * sched-deps.c (CHECK): Remove unused macro.
7803 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
7804 gcc_checking_assert and checking_* functions to eliminate
7805 ENABLE_CHECKING conditionals.
7806 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
7807 * sel-sched.c (struct moveop_static_params): Likewise.
7808 (find_best_reg_for_expr, move_cond_jump): Likewise.
7809 (move_op_orig_expr_not_found): Likewise.
7810 (code_motion_process_successors, move_op): Likewise.
7811 * ssa-iterators.h (first_readonly_imm_use): Likewise.
7812 (next_readonly_imm_use): Likewise.
7813 * store-motion.c (compute_store_table): Likewise.
7814 * symbol-summary.h (function_summary::function_summary): Likewise.
7815 * target.h (cumulative_args_t): Likewise.
7816 (get_cumulative_args, pack_cumulative_args): Likewise.
7817 * timevar.c: (timer::print): Likewise.
7818 * trans-mem.c (ipa_tm_execute): Likewise.
7819 * tree-cfg.c (move_stmt_op): Likewise.
7820 (move_sese_region_to_fn): Likewise.
7821 (gimple_flow_call_edges_add): Likewise.
7822 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
7823 Likewise.
7824 * tree-eh.c (remove_unreachable_handlers): Likewise.
7825 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
7826 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
7827 * tree-into-ssa.c (update_ssa): Likewise.
7828 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
7829 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
7830 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
7831 * tree-predcom.c (suitable_component_p): Likewise.
7832 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
7833 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
7834 * tree-ssa-live.c (verify_live_on_entry): Likewise.
7835 * tree-ssa-live.h (register_ssa_partition): Likewise.
7836 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
7837 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
7838 (tree_transform_and_unroll_loop): Likewise.
7839 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7840 * tree-ssa-operands.c (get_expr_operands): Likewise.
7841 * tree-ssa-propagate.c (replace_exp_1): Likewise.
7842 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
7843 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7844 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
7845 * tree-ssanames.c (release_ssa_name_fn): Likewise.
7846 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
7847 * tree-vect-loop-manip.c
7848 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7849 (slpeel_checking_verify_cfg_after_peeling): Likewise.
7850 (vect_do_peeling_for_loop_bound): Likewise.
7851 (vect_do_peeling_for_alignment): Likewise.
7852 * tree-vrp.c (supports_overflow_infinity): Likewise.
7853 (set_value_range): Likewise.
7854 * tree.c (free_lang_data_in_cgraph): Likewise.
7855 * value-prof.c (gimple_remove_histogram_value): Likewise.
7856 (free_hist): Likewise.
7857 * var-tracking.c (canonicalize_values_star): Likewise.
7858 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
7859
7860 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7861
7862 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
7863 IFN_GOACC_LOOP): New.
7864 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
7865 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
7866 IFN_UNIQUE_OACC_TAIL_MARK.
7867 (enum ifn_goacc_loop_kind): New.
7868 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
7869 IFN_UNIQUE_OACC_JOIN cases.
7870 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
7871 (expand_GOACC_LOOP): New.
7872 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
7873 * omp-low.c: Include gimple-pretty-print.h.
7874 (struct oacc_loop): New.
7875 (enum oacc_loop_flags): New.
7876 (oacc_thread_numbers): New.
7877 (oacc_xform_loop): New.
7878 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
7879 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
7880 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
7881 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
7882 oacc_loop_discovery): New.
7883 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
7884 oacc_loop_process): New.
7885 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
7886 (execute_oacc_device_lower): Discover & process loops. Process
7887 internal fns.
7888 * target.def (goacc.fork_join): Change sense of hook, clarify
7889 documentation.
7890 * doc/tm.texi: Regenerated.
7891
7892 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7893
7894 * target-insns.def (oacc_fork, oacc_join): Define.
7895 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
7896 (goacc.fork_join): New GOACC hook.
7897 * targhooks.h (default_goacc_fork_join): Declare.
7898 * omp-low.c (default_goacc_forkjoin): New.
7899 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
7900 * doc/tm.texi: Regenerate.
7901
7902 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7903
7904 * omp-low.c (oacc_init_rediction_array): New.
7905 (oacc_initialize_reduction_data): Initialize array.
7906
7907 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7908
7909 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
7910
7911 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7912
7913 * internal-fn.c (expand_UNIQUE): New.
7914 * internal-fn.h (enum ifn_unique_kind): New.
7915 * internal-fn.def (IFN_UNIQUE): New.
7916 * target-insns.def (unique): Define.
7917 * gimple.h (gimple_call_internal_unique_p): New.
7918 * gimple.c (gimple_call_same_target_p): Check internal fn
7919 uniqueness.
7920 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
7921 * tree-ssa-threadedge.c
7922 (record_temporary_equivalences_from_stmts): Likewise.
7923 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
7924
7925 2015-10-27 Richard Henderson <rth@redhat.com>
7926
7927 PR rtl-opt/67609
7928 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
7929 narrowing subregs on SSE and MMX registers.
7930 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
7931 appear to be sub-words of multi-register pseudos must be rejected.
7932 * doc/tm.texi: Regenerate.
7933
7934 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7935
7936 PR target/68102
7937 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
7938 operands[0] is a reg before taking its REGNO in split condition.
7939 (*movdi_aarch64): Likewise.
7940
7941 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7942
7943 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
7944 Handle floating point inner modes properly.
7945
7946 2015-10-27 Alan Hayward <alan.hayward@arm.com>
7947
7948 * tree-vect-looop.c
7949 (vectorizable_live_operation): Change iterator.
7950
7951 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7952 Aditya Kumar <aditya.k7@samsung.com>
7953
7954 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
7955 function to schedule based on isl_schedule_node.
7956 (get_schedule_map_st): New schedule optimizer based on
7957 isl_schedule_node.
7958 (scop_get_domains): New. Return the isl_union_set containing the
7959 domains of all the pbbs.
7960 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
7961
7962 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
7963
7964 PR target/67215
7965 * calls.c (prepare_call_address): Don't handle -fno-plt here.
7966 * config/i386/i386.c (ix86_expand_call): Generate indirect call
7967 via GOT for -fno-plt. Support indirect call via GOT for x32.
7968 * config/i386/predicates.md (sibcall_memory_operand): Allow
7969 GOT memory operand.
7970
7971 2015-10-27 Richard Biener <rguenther@suse.de>
7972
7973 PR tree-optimization/68104
7974 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
7975 strided access check ...
7976 (vect_compute_data_refs_alignment): ... here.
7977
7978 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
7979 Joseph Myers <joseph@codesourcery.com>
7980 Mark Shinwell <shinwell@codesourcery.com>
7981 Andrew Stubbs <ams@codesourcery.com>
7982 Rich Felker <dalias@libc.org>
7983
7984 * config.gcc: Handle --enable-fdpic.
7985 * config/sh/constraints.md (Ccl): New constraint.
7986 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
7987 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
7988 __SH_FDPIC__.
7989 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
7990 library functions.
7991 * config/sh/sh-protos.h (function_symbol_result): New struct.
7992 (function_symbol): Return function_symbol_result.
7993 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
7994 declarations.
7995 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
7996 target hook.
7997 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
7998 (sh_option_override): Force -fPIC if FDPIC is in effect.
7999 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8000 UNSPEC_GOTOFFFUNCDESC cases.
8001 (prepare_move_operands): Use FDPIC initial GOT register for
8002 TLS-related GOT access; inhibit cross-section address offset constants
8003 for FDPIC.
8004 (sh_assemble_integer): New function.
8005 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8006 PC-relative call sites.
8007 (expand_ashiftrt): Adapt invocation of function_symbol.
8008 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8009 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8010 UNSPEC_GOTOFFFUNCDESC.
8011 (legitimize_pic_address): Resolve function symbols to function
8012 descriptors for FDPIC. Do not use GOT-relative addressing for local
8013 data that may be read-only on FDPIC.
8014 (sh_emit_storesi, sh_emit_storehi): New functions.
8015 (sh_trampoline_init): Generate FDPIC trampolines.
8016 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8017 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8018 (sh_output_mi_thunk): Generate FDPIC call.
8019 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
8020 FDPIC, generate call site labels to use PC-relative addressing rather
8021 than GOT-relative addressing.
8022 (sh_conditional_register_usage): Make PIC register fixed and call used
8023 when FDPIC is in effect.
8024 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8025 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8026 sh_get_fdpic_reg_initial_val): New functions.
8027 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8028 Handle -mfdpic.
8029 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8030 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8031 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8032 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8033 FDPIC_SELF_SPECS.
8034 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8035 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8036 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8037 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8038 constants.
8039 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8040 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8041 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8042 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8043 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8044 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8045 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8046 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8047 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8048 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8049 block_move_real, block_lump_real, block_move_real_i4,
8050 block_lump_real_i4): Add support for FDPIC calls.
8051 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8052 call_value_pop): Adjust for new function_symbol signature.
8053 * config/sh/sh.opt (-mfdpic): New option.
8054 * doc/install.texi (Options specification): Document --enable-fdpic.
8055 * doc/invoke.texi (SH Options): Document -mfdpic.
8056
8057
8058 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8059
8060 PR tree-optimization/65963
8061 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8062 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8063
8064 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8065
8066 PR target/67929
8067 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8068 * config/arm/constraints.md (Dp): Update callsite.
8069 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8070
8071 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8072
8073 * builtins.c (fold_builtin_load_exponent): Rename to...
8074 (fold_const_builtin_load_exponent): ...this and only handle
8075 constant arguments.
8076 (fold_builtin_2): Update accordingly.
8077 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8078
8079 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8080
8081 * builtins.c (fold_builtin_logb): Rename to...
8082 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8083 (fold_builtin_significand): Rename to...
8084 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8085 (fold_builtin_1): Update accordingly.
8086
8087 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8088
8089 * builtins.c (fold_builtin_fmin_fmax): Delete.
8090 (fold_builtin_2): Handle constant fmin and fmax arguments here.
8091 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8092
8093 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
8094
8095 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8096 for register extension into sign and zero register extension.
8097 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8098 for sign and zero register extension.
8099 (cortexa57_addrcost_table): Likewise.
8100 (xgene1_addrcost_table): Likewise.
8101
8102 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8103
8104 * fold-const.c (fold_minmax): Delete.
8105 (fold_binary_loc): Don't call it.
8106 * match.pd: Add rules previously handled by fold_minmax.
8107
8108 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8109
8110 * builtins.c (fold_builtin_fma): Remove constant handling.
8111 (fold_builtin_3): Handle constant fma arguments here.
8112
8113 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8114
8115 * builtins.c (fold_builtin_fabs): Remove constant handling.
8116 (fold_builtin_abs): Likewise.
8117
8118 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8119
8120 * builtins.c (fold_builtin_copysign): Delete.
8121 (fold_builtin_2): Handle constant copysign arguments here.
8122 * match.pd: Add rules previously handled by fold_builtin_copysign.
8123
8124 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8125
8126 * builtins.c (fold_builtin_signbit): Delete.
8127 (fold_builtin_2): Handle constant signbit arguments here.
8128 * match.pd: Add rules previously handled by fold_builtin_signbit.
8129
8130 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8131
8132 * match.pd: Handle sqrt(x) cmp 0 specially.
8133
8134 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
8135
8136 * tree-vect-generic.c (expand_vector_operations_1): Check
8137 optab type before using it.
8138
8139 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8140
8141 * config/aarch64/aarch64-protos.h
8142 (struct tune_params): Add autoprefetcher_model field.
8143 * config/aarch64/aarch64.c: Include params.h
8144 (generic_tunings): Specify autoprefetcher_model value.
8145 (cortexa53_tunings): Likewise.
8146 (cortexa57_tunings): Likewise.
8147 (cortexa72_tunings): Likewise.
8148 (thunderx_tunings): Likewise.
8149 (xgene1_tunings): Likewise.
8150 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8151 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8152 (aarch64_override_options_internal): Set
8153 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8154
8155 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8156
8157 * builtins.c (fold_builtin_exponent): Delete.
8158 (fold_builtin_2): Handle constant expN arguments here.
8159 * match.pd: Fold expN(logN(x)) -> x.
8160
8161 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8162
8163 * builtins.c (fold_builtin_powi): Delete.
8164 (fold_builtin_2): Handle constant powi arguments here.
8165 * match.pd: Add rules previously handled by fold_builtin_powi.
8166
8167 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8168
8169 * builtins.c (fold_builtin_pow): Delete in favor of...
8170 (fold_const_builtin_pow): ...this new function. Only handle constant
8171 arguments.
8172 (fold_builtin_2): Update accordingly.
8173 * match.pd: Add rules previously handled by fold_builtin_pow.
8174
8175 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8176
8177 * builtins.c (fold_builtin_hypot): Delete.
8178 (fold_builtin_2): Handle constant hypot arguments here.
8179 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
8180 hypot(x, x) to fabs(x)*sqrt(2).
8181
8182 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8183
8184 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8185 instead of make_ssa_name if not yet in SSA form.
8186
8187 2015-10-27 Richard Biener <rguenther@suse.de>
8188
8189 * cfg.c (free_edge): Add function argument and use it instead of cfun.
8190 (clear_edges): Likewise.
8191 * cfg.h (clear_edges): Adjust prototype.
8192 * cfgexpand.c (pass_expand::execute): Adjust.
8193 * cfgloop.c (release_recorded_exits): Add function argument and use
8194 it instead of cfun.
8195 * cfgloop.h (release_recorded_exits): Adjust prototype.
8196 (loops_state_satisfies_p): Add overload with function argument.
8197 (loops_state_set): Likewise.
8198 (loops_state_clear): Likewise.
8199 (struct loop_iterator): Add function argument to constructor
8200 and iterator and use it instead of cfun.
8201 (FOR_EACH_LOOP_FN): New macro.
8202 (loop_optimizer_finalize): Add overload with function argument.
8203 * loop-init.c (loop_optimizer_init): Adjust.
8204 (fix_loop_structure): Likewise.
8205 (loop_optimizer_finaliz): Add function argument and use it
8206 instead of cfun.
8207 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8208 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8209 * cgraph.c (release_function_body): Do not push/pop cfun.
8210 * final.c (rest_of_clean_state): Adjust.
8211 * graphite.c (graphite_finalize): Likewise.
8212 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8213 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8214 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8215 (tree_unroll_loops_completely): Likewise.
8216 (pass_complete_unrolli::execute): Likewise.
8217 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8218 Add function argument and use it instead of cfun.
8219 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8220 Adjust prototype.
8221 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8222 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8223 instead of cfun.
8224 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8225 * tree-ssanames.c (fini_ssanames): Add function argument and use it
8226 instead of cfun.
8227 * tree-ssanames.c (fini_ssanames): Adjust prototype.
8228 * tree-vrp.c (execute_vrp): Adjust.
8229 * value-prof.c (free_histograms): Add function argument and use it
8230 instead of cfun.
8231 * value-prof.h (free_histograms): Adjust prototype.
8232
8233 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
8234
8235 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8236 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8237 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
8238
8239 2015-10-27 Tom de Vries <tom@codesourcery.com>
8240
8241 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8242 field_type.
8243
8244 2015-10-27 Bin Cheng <bin.cheng@arm.com>
8245
8246 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8247 (inv_can_prop_to_addr_use): New function.
8248 (record_use): Call can_prop_to_addr_uses, set the new field.
8249 (get_inv_cost): Count cost if inv can't be propagated into its
8250 address uses.
8251
8252 2015-10-26 Doug Evans <dje@google.com>
8253
8254 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8255
8256 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
8257
8258 * match.pd (fold_widened_comparison): Apply simplifications to all
8259 integral types.
8260
8261 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
8262
8263 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8264 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8265 * doc/tm.texi: Regenerated.
8266 * reorg.c (dbr_schedule): Use new hook.
8267 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8268
8269 2015-10-26 Jeff Law <law@redhat.com>
8270
8271 PR tree-optimization/68013
8272 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8273 Make sure the first block in the path is in VISITED_BBs.
8274
8275 2015-10-26 Richard Biener <rguenther@suse.de>
8276 Dominik Vogt <vogt@linux.vnet.ibm.com>
8277
8278 PR middle-end/67443
8279 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8280 Properly prune ref->ref for accesses outside of ref.
8281
8282 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8283
8284 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8285 new statements to be inserted if inplace. Allow calls to have
8286 nonempty sequences.
8287
8288 2015-10-26 Richard Biener <rguenther@suse.de>
8289
8290 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8291 (do_valueize): New function.
8292 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8293 replace_uses_by.
8294 * tree-ssa-threadedge.c: Remove builtins.h include, include
8295 gimple-fold.h
8296 (fold_assignment_stmt): Remove.
8297 (threadedge_valueize): New function.
8298 (record_temporary_equivalences_from_stmts): Use
8299 gimple_fold_stmt_to_constant_1, note additional cleanup
8300 opportunities.
8301
8302 2015-10-26 Richard Biener <rguenther@suse.de>
8303
8304 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8305 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8306
8307 2015-10-26 Alan Hayward <alan.hayward@arm.com>
8308
8309 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8310 VEC_COND_EXPR types.
8311
8312 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8313
8314 * auto-inc-dec.c (insert_move_insn_before): Delete.
8315 (attempt_change): Remember to cost the simple move in the
8316 FORM_PRE_ADD and FORM_POST_ADD cases.
8317
8318 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
8319
8320 PR target/68091
8321 * config/sh/sh.c (sh_vector_mode_supported_p): Use
8322 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8323
8324 2015-10-26 Tom de Vries <tom@codesourcery.com>
8325
8326 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8327 factored out of ...
8328 (intra_create_variable_infos): ... here.
8329
8330 2015-10-26 Tom de Vries <tom@codesourcery.com>
8331
8332 * tree-ssa-structalias.c (intra_create_variable_infos): Add
8333 restrict_pointer_p and recursive_restrict_p variables.
8334
8335 2015-10-26 Tom de Vries <tom@codesourcery.com>
8336
8337 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8338 get_vi_for_tree call.
8339
8340 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8341
8342 PR middle-end/67989
8343 * optabs.c (expand_atomic_compare_and_swap): Handle case when
8344 ptarget_oval or ptarget_bool are const0_rtx.
8345
8346 2015-10-26 Christian Bruel <christian.bruel@st.com>
8347
8348 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8349 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8350 * cp/method.c (implicitly_declare_fn): Likewise.
8351 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8352 * java/class.c (add_method_1): Likewise.
8353
8354 2015-10-26 Richard Biener <rguenther@suse.de>
8355
8356 * alloc-pool.h (base_pool_allocator): Use placement new.
8357 (base_pool_allocator::remove): Likewise. Compute size outside of
8358 flag_checking.
8359
8360 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8361
8362 * builtins.c (do_real_to_int_conversion): New function.
8363 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8364 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8365 arguments here.
8366 * match.pd: Add rules previously handled by fold_fixed_mathfn
8367 and fold_builtin_int_roundingfn.
8368
8369 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8370
8371 * match.pd: Use macros to define built-in operator lists.
8372
8373 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
8374 Richard Biener <rguenther@suse.de>
8375
8376 * genmatch.c (dt_simplify::gen): Skip captures that are
8377 part of the result.
8378 (parser::parse_expr): Allow captures in results too.
8379 * builtins.c (fold_builtin_cexp): Delete.
8380 (fold_builtin_1): Handle constant cexp arguments here.
8381 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8382
8383 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
8384
8385 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8386 conditional compilation.
8387 (base_pool_allocator::remove): Use flag_checking.
8388
8389 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
8390
8391 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8392
8393 PR middle-end/68079
8394 * dojump.c (do_compare_and_jump): Canonicalize both function and
8395 method types.
8396
8397 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
8398
8399 PR target/68084
8400 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8401 for =@ccae.
8402
8403 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8404
8405 PR ipa/pr67600
8406 * ipa-polymorphic-call.c
8407 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8408 instance offset with offset of outer type.
8409
8410 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8411
8412 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8413
8414 2015-10-23 Caroline Tice <cmtice@google.com>
8415
8416 (from Richard Biener
8417 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
8418 call to iterative_hash_host_wide_int.
8419
8420 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8421
8422 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8423 Define as yes.
8424
8425 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8426
8427 * tree-vect-generic.c (expand_vector_operations_1): Check
8428 optab exists before use it.
8429
8430 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8431
8432 * tree-vect-generic.c (expand_vector_condition): Avoid
8433 uninitialized variable warning.
8434
8435 2015-10-23 Jeff Law <law@redhat.com>
8436
8437 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
8438 here. Instead...
8439 (execute_todo): Call it here.
8440 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
8441 statistics
8442 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
8443
8444 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8445 Szabolcs Nagy <szabolcs.nagy@arm.com>
8446
8447 * config.gcc (enable_secureplt): Add *-linux*-musl*.
8448
8449 2015-10-23 Jeff Law <law@redhat.com>
8450
8451 PR tree-optimization/67830
8452 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8453 Explicitly verify the mask has no bits outside the type of
8454 the innermost operands.
8455
8456 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8457 Szabolcs Nagy <szabolcs.nagy@arm.com>
8458
8459 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8460 (MUSL_DYNAMIC_LINKER64): Define.
8461 (GNU_USER_DYNAMIC_LINKER32): Update.
8462 (GNU_USER_DYNAMIC_LINKER64): Update.
8463 (CHOOSE_DYNAMIC_LINKER): Update.
8464
8465 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
8466 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
8467 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8468 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8469 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8470 (CHOOSE_DYNAMIC_LINKER): Update.
8471 (INCLUDE_DEFAULTS): Redefine.
8472
8473 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
8474
8475 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8476
8477 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
8478 comparing addresses.
8479
8480 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8481
8482 * fold-const.c (operand_equal_p): Handle matching of vector
8483 constructors.
8484
8485 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8486
8487 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
8488
8489 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
8490 Andrew Pinski <apinski@cavium.com>
8491
8492 PR rtl-optimization/67736
8493 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
8494 of gen_lowpart.
8495
8496 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8497
8498 PR middle-end/68066
8499 * tree.c (build_truth_vector_type): Support BLK mode
8500 returned for boolean vector.
8501
8502 2015-10-23 Alan Hayward <alan.hayward@arm.com>
8503
8504 PR tree-optimization/65947
8505 * tree-vect-loop.c
8506 (vect_is_simple_reduction_1): Find condition reductions.
8507 (vect_model_reduction_cost): Add condition reduction costs.
8508 (get_initial_def_for_reduction): Add condition reduction initial var.
8509 (vect_create_epilog_for_reduction): Add condition reduction epilog.
8510 (vectorizable_reduction): Condition reduction support.
8511 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
8512 * doc/sourcebuild.texi (Vector-specific attributes): Document
8513 vect_max_reduc
8514
8515 2015-10-23 Richard Biener <rguenther@suse.de>
8516
8517 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
8518 and builtins.def.
8519
8520 2015-10-23 Richard Biener <rguenther@suse.de>
8521 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8522
8523 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
8524 into (A ^ B) - B to match.pd
8525 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
8526
8527 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
8528 New simplifier.
8529 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
8530 New simplifier.
8531 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
8532 New simplifier.
8533 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
8534 New simplifier.
8535 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
8536 INTEGER_CST@1)): New simplifier.
8537
8538 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
8539
8540 * builtins.c (integer_valued_real_p): Move to fold-const.c.
8541 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
8542 (fold_builtin_ceil, fold_builtin_round): Delete.
8543 (fold_builtin_1): Handle constant trunc, floor, ceil and round
8544 arguments here.
8545 * convert.c (convert_to_real): Remove narrowing of rounding
8546 functions.
8547 * fold-const.h (integer_valued_real_unary_p)
8548 (integer_valued_real_binary_p, integer_valued_real_call_p)
8549 (integer_valued_real_single_p, integer_valued_real_p): Declare.
8550 * fold-const.c (tree_single_nonnegative_warnv_p): Move
8551 name_registered_for_update_p check to SSA_NAME case statement.
8552 Don't call tree_simple_nonnegative_warnv_p for SSA names.
8553 (integer_valued_real_unary_p, integer_valued_real_binary_p)
8554 (integer_valued_real_call_p, integer_valued_real_single_p)
8555 (integer_valued_real_invalid_p): New functions.
8556 (integer_valued_real_p): Move from fold-const.c and rework
8557 to call the functions above. Handle SSA names.
8558 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
8559 * gimple-fold.c (gimple_assign_integer_valued_real_p)
8560 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
8561 (gimple_stmt_integer_valued_real_p): New functions.
8562 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
8563 Fold f(x)->x for the same f if x is known to be integer-valued.
8564 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
8565 the result. Canonicalize floor(x) as trunc(x) if x is
8566 nonnegative.
8567
8568 2015-10-23 Tom de Vries <tom@codesourcery.com>
8569
8570 * tree-ssa-structalias.c (intra_create_variable_infos): Use
8571 make_constraint_from.
8572
8573 2015-10-23 Tom de Vries <tom@codesourcery.com>
8574
8575 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
8576 setting of is_full_var in case of a single field.
8577
8578 2015-10-22 Martin Sebor <msebor@redhat.com>
8579
8580 PR driver/68043
8581 * config/i386/i386.opt: Add missing periods to the ends of sentences.
8582 * config/msp430/msp430.opt: Same.
8583
8584 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8585
8586 * doc/extend.exp (Global Register Variables): Rewrite.
8587
8588 2015-10-22 Jeff Law <law@redhat.com>
8589
8590 * genattrtab.c (main): If we do not have any annul-true or annul-false
8591 slots, then write out a dummy eligible_for_annul_true or
8592 eligible_for_annul_false as needed.
8593
8594 2015-10-22 Nick Clifton <nickc@redhat.com>
8595
8596 * config/msp430/msp430.opt: Add -msilicon-errata and
8597 -msilicon-errata-warn.
8598 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
8599 assembler.
8600 * doc/invoke.texi: Document new options.
8601
8602 2015-10-22 Richard Biener <rguenther@suse.de>
8603
8604 PR tree-optimization/58497
8605 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
8606 (expand_vector_operations_1): Use it. Lower operations on
8607 all uniform vectors to scalar operations if the HW supports it.
8608
8609 2015-10-22 Richard Biener <rguenther@suse.de>
8610
8611 PR tree-optimization/19049
8612 PR tree-optimization/65962
8613 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
8614 to strided accesses if single-element interleaving doesn't work.
8615
8616 2015-10-22 Richard Biener <rguenther@suse.de>
8617
8618 PR middle-end/68046
8619 PR middle-end/61893
8620 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
8621 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
8622 (expand_unop): Likewise.
8623
8624 2015-10-22 Richard Biener <rguenther@suse.de>
8625
8626 * fold-const.c (fold_addr_of_array_ref_difference): Properly
8627 convert operands before folding a MINUS_EXPR.
8628 (fold_binary_loc): Move simplification of MINUS_EXPR on
8629 converted POINTER_PLUS_EXPRs ...
8630 * match.pd: ... here.
8631
8632 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
8633
8634 * builtins.c (fold_builtin_tan): Delete.
8635 (fold_builtin_1): Handle constant tan arguments here.
8636 * match.pd: Simplify (tan (atan x)) to x.
8637
8638 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
8639
8640 * builtins.c (fold_builtin_cproj): Delete.
8641 (fold_builtin_1): Handle constant arguments here.
8642 (build_complex_cproj): Move and rename to...
8643 * tree.c: (build_complex_inf): ...this.
8644 * tree.h (build_complex_inf): Declare.
8645 * match.pd: Fold cproj(x)->x if x has no infinity.
8646 Use build_complex_inf for existing cproj rules.
8647
8648 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8649
8650 PR target/68015
8651 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
8652 already have a comparison result.
8653
8654 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8655
8656 PR target/63304
8657 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
8658 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
8659 (aarch64_classify_address): Likewise.
8660 (aarch64_secondary_reload): Likewise.
8661 (aarch64_override_options_after_change_1): Adjust.
8662 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8663 Use aarch64_nopcrelative_literal_loads.
8664 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8665 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
8666 Declare.
8667
8668 2015-10-21 Martin Sebor <msebor@redhat.com>
8669
8670 PR driver/68043
8671 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
8672 (print_filtered_help): Reference aliased option's name and encourage
8673 readers to use it in preference to the alias if the former is not
8674 documented. Mention when using an option is diagnosed.
8675 * gcc.c (display_help): End each sentence with a period.
8676
8677 * common.opt: End each sentence that describes an option with
8678 a period.
8679 * config/aarch64/aarch64.opt: Same.
8680 * config/alpha/alpha.opt: Same.
8681 * config/arc/arc.opt: Same.
8682 * config/arm/arm.opt: Same.
8683 * config/avr/avr.opt: Same.
8684 * config/bfin/bfin.opt: Same.
8685 * config/c6x/c6x.opt: Same.
8686 * config/cr16/cr16.opt: Same.
8687 * config/cris/cris.opt: Same.
8688 * config/cris/linux.opt: Same.
8689 * config/darwin.opt: Same.
8690 * config/epiphany/epiphany.opt: Same.
8691 * config/fr30/fr30.opt: Same.
8692 * config/frv/frv.opt: Same.
8693 * config/ft32/ft32.opt: Same.
8694 * config/g.opt: Same.
8695 * config/h8300/h8300.opt: Same.
8696 * config/i386/cygming.opt: Same.
8697 * config/i386/djgpp.opt: Same.
8698 * config/i386/i386.opt: Same.
8699 * config/i386/interix.opt: Same.
8700 * config/i386/mingw-w64.opt: Same.
8701 * config/i386/mingw.opt: Same.
8702 * config/ia64/ia64.opt: Same.
8703 * config/ia64/ilp32.opt: Same.
8704 * config/iq2000/iq2000.opt: Same.
8705 * config/linux.opt: Same.
8706 * config/lm32/lm32.opt: Same.
8707 * config/lynx.opt: Same.
8708 * config/m32c/m32c.opt: Same.
8709 * config/m32r/m32r.opt: Same.
8710 * config/m68k/ieee.opt: Same.
8711 * config/m68k/m68k.opt: Same.
8712 * config/mcore/mcore.opt: Same.
8713 * config/mep/mep.opt: Same.
8714 * config/microblaze/microblaze.opt: Same.
8715 * config/mips/mips.opt: Same.
8716 * config/mmix/mmix.opt: Same.
8717 * config/mn10300/mn10300.opt: Same.
8718 * config/moxie/moxie.opt: Same.
8719 * config/msp430/msp430.opt: Same.
8720 * config/nios2/elf.opt: Same.
8721 * config/nios2/nios2.opt: Same.
8722 * config/nvptx/nvptx.opt: Same.
8723 * config/pa/pa-hpux.opt: Same.
8724 * config/pa/pa-hpux1010.opt: Same.
8725 * config/pa/pa-hpux1111.opt: Same.
8726 * config/pa/pa-hpux1131.opt: Same.
8727 * config/pa/pa.opt: Same.
8728 * config/pa/pa64-hpux.opt: Same.
8729 * config/pdp11/pdp11.opt: Same.
8730 * config/rl78/rl78.opt: Same.
8731 * config/rs6000/476.opt: Same.
8732 * config/rs6000/aix64.opt: Same.
8733 * config/rs6000/darwin.opt: Same.
8734 * config/rs6000/linux64.opt: Same.
8735 * config/rs6000/rs6000.opt: Same.
8736 * config/rs6000/sysv4.opt: Same.
8737 * config/s390/s390.opt: Same.
8738 * config/s390/tpf.opt: Same.
8739 * config/sh/sh.opt: Same.
8740 * config/sol2.opt: Same.
8741 * config/sparc/long-double-switch.opt: Same.
8742 * config/sparc/sparc.opt: Same.
8743 * config/spu/spu.opt: Same.
8744 * config/stormy16/stormy16.opt: Same.
8745 * config/tilegx/tilegx.opt: Same.
8746 * config/tilepro/tilepro.opt: Same.
8747 * config/v850/v850.opt: Same.
8748 * config/vax/vax.opt: Same.
8749 * config/visium/visium.opt: Same.
8750 * config/vms/vms.opt: Same.
8751 * config/vxworks.opt: Same.
8752 * config/xtensa/xtensa.opt: Same.
8753
8754 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8755 Sebastian Pop <s.pop@samsung.com>
8756
8757 * graphite-scop-detection.c (parameter_index_in_region): Update call to
8758 invariant_in_sese_p_rec.
8759 * graphite-sese-to-poly.c (extract_affine): Same.
8760 * sese.c (invariant_in_sese_p_rec): Pass in an extra
8761 parameter has_vdefs.
8762 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
8763 variable depends on virtual definitions in the current region.
8764 * sese.h (invariant_in_sese_p_rec): Update declaration.
8765
8766 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8767 Sebastian Pop <s.pop@samsung.com>
8768
8769 * graphite-scop-detection.c (build_scops): Do not handle scops
8770 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
8771 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
8772
8773 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
8774
8775 * config.in: Regenerate.
8776 * configure: Regenerate.
8777 * configure.ac (CHECKING_P): Define.
8778 * system.h: Use CHECKING_P.
8779
8780 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8781
8782 PR ipa/67056
8783 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
8784 is negative we don't know the type.
8785 (check_stmt_for_type_change): Skip constructors of non-polymorphic
8786 types as those won't help devirutalization.
8787
8788 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8789
8790 * fold-const.c (operand_equal_p): Add code matching empty constructors.
8791
8792 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
8793
8794 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
8795 comments.
8796 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
8797 Add comments on sign of the result.
8798 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
8799 Recurse on operand #1 instead of operand #0.
8800 <CEIL_MOD_EXPR>: Do not recurse.
8801 <ROUND_MOD_EXPR>: Likewise.
8802
8803 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8804
8805 * cfgrtl.c (pass_free_cfg::execute): Adjust.
8806 * final.c (dbr_sequence_length): Always define.
8807 (shorten_branches): Adjust.
8808 * genattr-common.c (main): Always define DELAY_SLOTS.
8809 * genattr.c (main): Unconditionally declare functions and define
8810 macros related to delay slots.
8811 * genattrtab.c (write_eligible_delay): Adjust.
8812 (main): Always write out delay slot functions.
8813 * opts.c (default_options_table): Adjust.
8814 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
8815 (redirect_with_delay_list_safe_p): Likewise.
8816 (fill_simple_delay_slots): Likewise.
8817 (fill_slots_from_thread): Likewise.
8818 (make_return_insns): Likewise.
8819 (dbr_schedule): Likewise.
8820 (rest_of_handle_delay_slots): Likewise.
8821 (pass_delay_slots::gate): Likewise.
8822 * toplev.c (process_options): Likewise.
8823
8824 2015-10-21 Richard Henderson <rth@redhat.com>
8825
8826 * targhooks.c (default_addr_space_pointer_mode): Remove check
8827 for generic address space.
8828 (default_addr_space_address_mode): Likewise.
8829 (default_addr_space_valid_pointer_mode): Likewise.
8830 (default_addr_space_legitimate_address_p): Likewise.
8831 (default_addr_space_legitimize_address): Likewise.
8832 * target.def (addr_space.pointer_mode): Update documentation
8833 of default behavior.
8834 (addr_space.address_mode): Likewise.
8835 * tm.texi: Update.
8836
8837 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
8838 address spaces.
8839
8840 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8841
8842 * builtins.c (fold_builtin_cabs): Delete.
8843 (fold_builtin_1): Update accordingly. Handle constant arguments here.
8844 * match.pd: Add rules previously handled by fold_builtin_cabs.
8845
8846 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8847
8848 * fold-const.h (fold_strip_sign_ops): Delete.
8849 * fold-const.c (fold_strip_sign_ops): Likewise.
8850 (fold_unary_loc, fold_binary_loc): Remove calls to it.
8851 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
8852 (fold_builtin_ccos): Delete.
8853 (fold_builtin_pow): Don't call fold_strip_sign_ops.
8854 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
8855 Remove fndecl argument.
8856 (fold_builtin_1): Update calls accordingly. Handle constant
8857 cos, cosh, ccos and ccosh here.
8858
8859 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
8860
8861 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
8862 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
8863 * common.opt (fssa-backprop): New option.
8864 * fold-const.h (negate_mathfn_p): Declare.
8865 * fold-const.c (negate_mathfn_p): Make public.
8866 * timevar.def (TV_TREE_BACKPROP): New.
8867 * tree-pass.h (make_pass_backprop): Declare.
8868 * passes.def (pass_backprop): Add.
8869 * gimple-ssa-backprop.c: New file.
8870
8871 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8872 Sebastian Pop <s.pop@samsung.com>
8873
8874 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
8875 Do not call create_empty_if_region_on_edge when cond_expr is true.
8876 (translate_isl_ast_node_for): Check whether a guard has been generated.
8877
8878 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8879
8880 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
8881 (operator=): Removed.
8882 (dr_info): Make alias_set number the last argument with default
8883 value of invalid_alias_set.
8884 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
8885 of dr_info.
8886 (rewrite_reductions_out_of_ssa): Iterate only through the
8887 basic blocks which are inside region.
8888 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
8889 * sese.h (struct sese_l): Removed assignment operator.
8890 (split_region_for_bb): Removed dead code.
8891
8892 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8893
8894 * graphite-poly.h (struct dr_info): Removed conversion constructor.
8895 (struct scop): Renamed scop::region to scop::scop_info
8896 (scop_set_region): Same.
8897 (SCOP_REGION): Removed
8898 (SCOP_CONTEXT): Removed.
8899 (POLY_SCOP_P): Removed.
8900 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
8901 Rename scop->region to scop->scop_info.
8902 (add_parameters_to_ivs_params): Same.
8903 (graphite_regenerate_ast_isl): Same.
8904 * graphite-poly.c (new_scop): Same.
8905 (free_scop): Same.
8906 (print_scop_params): Same.
8907 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
8908 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
8909 (dot_all_scops_1): Rename scop->region to scop->scop_info.
8910 (scop_detection::nb_pbbs_in_loops): Same.
8911 (find_scop_parameters): Same.
8912 (try_generate_gimple_bb): Same.
8913 (gather_bbs::before_dom_children): Same.
8914 (gather_bbs::after_dom_children): Same.
8915 (build_scops): Same.
8916 * graphite-sese-to-poly.c (build_scop_scattering): Same.
8917 (extract_affine_chrec): Same.
8918 (extract_affine): Same.
8919 (set_scop_parameter_dim): Same.
8920 (build_loop_iteration_domains): Same.
8921 (create_pw_aff_from_tree): Same.
8922 (add_param_constraints): Same.
8923 (build_scop_iteration_domain): Same.
8924 (build_scop_drs): Same.
8925 (analyze_drs_in_stmts): Same.
8926 (insert_out_of_ssa_copy_on_edge): Same.
8927 (rewrite_close_phi_out_of_ssa):Same.
8928 (rewrite_reductions_out_of_ssa):Same.
8929 (handle_scalar_deps_crossing_scop_limits):Same.
8930 (rewrite_cross_bb_scalar_deps):Same.
8931 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
8932 (build_poly_scop):Same.
8933 (build_alias_set): Use pointer to dr_info.
8934 * graphite.c (print_graphite_scop_statistics):
8935 (graphite_transform_loops):
8936 * sese.h (struct sese_l): Remove conversion constructor.
8937
8938 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8939
8940 PR middle-end/67966
8941 * tree.c (verify_type): Verify that TYPE_MODE match
8942 between TYPE_CANONICAL and type.
8943 * expr.c (store_expr_with_bounds): Revert my previous change.
8944 * expmed.c (store_bit_field_1): Revert prevoius change.
8945 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
8946 to match for all types.
8947
8948 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
8949
8950 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
8951 nesting.
8952
8953 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8954
8955 * doc/tm.texi: Regenerated.
8956 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
8957 * stor-layout.c (layout_type): Use mode to get vector mask size.
8958 * target.def (get_mask_mode): New.
8959 * targhooks.c (default_get_mask_mode): New.
8960 * targhooks.h (default_get_mask_mode): New.
8961 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
8962 for boolean vector.
8963 * tree.c (MAX_BOOL_CACHED_PREC): New.
8964 (nonstandard_boolean_type_cache): New.
8965 (build_nonstandard_boolean_type): New.
8966 (make_vector_type): Vector mask has no canonical type.
8967 (build_truth_vector_type): New.
8968 (build_same_sized_truth_vector_type): New.
8969 (truth_type_for): Support vector masks.
8970 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
8971 (build_truth_vector_type): New.
8972 (build_same_sized_truth_vector_type): New.
8973 (build_nonstandard_boolean_type): New.
8974 * tree-cfg.c (verify_gimple_comparison) Require boolean
8975 vector type for vector comparison.
8976 (verify_gimple_assign_ternary): Likewise.
8977 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
8978 condition operand.
8979 * tree-vect-stmts.c (vectorizable_condition): Use boolean
8980 vector type for vector comparison.
8981 * tree-vect-generic.c (elem_op_func): Add new operand to hold
8982 vector type.
8983 (do_unop): Adjust to modified function type.
8984 (do_binop): Likewise.
8985 (do_plus_minus): Likewise.
8986 (do_negate); Likewise.
8987 (expand_vector_piecewise): Likewise.
8988 (do_cond): Likewise.
8989 (do_compare): Use comparison instead of condition.
8990 (expand_vector_divmod): Use boolean vector type for comparison.
8991 (expand_vector_operations_1): Skip scalar mask operations.
8992
8993 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
8994
8995 * omp-low.c (simd_clone_create): Set in_other_partition
8996 for created clones.
8997
8998 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8999
9000 * doc/extend.exp (Local Register Variables): Rewrite.
9001
9002 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9003
9004 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9005 and x*x in cases where the operands are sign ops. Extend these
9006 rules to handle copysign as a sign op (including for cos, cosh
9007 and pow, which already treated negate and abs as sign ops).
9008
9009 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
9010
9011 PR target/68018
9012 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9013 for 64-bit MS_ABI targets also when default incoming stack boundary
9014 is overriden.
9015
9016 2015-10-21 Richard Biener <rguenther@suse.de>
9017
9018 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9019 cond stmts, enhanced and split out from ...
9020 (vn_phi_eq): ... here.
9021
9022 2015-10-21 Richard Biener <rguenther@suse.de>
9023
9024 PR middle-end/68031
9025 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9026 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9027 (tree_single_nonnegative_warnv_p): ... here. For SSA names
9028 make sure they are not registered for update.
9029
9030 2015-10-21 Richard Biener <rguenther@suse.de>
9031
9032 PR tree-optimization/68026
9033 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9034 unsigned VARYING values.
9035
9036 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
9037
9038 * asan.c (asan_emit_stack_protection): Don't pass local stack to
9039 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9040 NULL and use local stack than.
9041 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9042 in addition to __asan_init.
9043 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9044 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9045 * asan.h (asan_intercepted_p): Handle new string builtins.
9046 * ubsan.c (ubsan_use_new_style_p): New function.
9047 (ubsan_instrument_float_cast): If location is unknown, assign
9048 input_location to loc. Propagate loc to ubsan_create_data if
9049 ubsan_use_new_style_p returned true.
9050
9051 2015-10-21 Jeff Law <law@redhat.com>
9052
9053 * Makefile.in (OBJS): Remove sched-vis.c
9054 * sched-vis.c: Removed. Code moved into...
9055 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
9056 * rtl.h: Remove prototypes for functions now living in print-rtl.c
9057 * print-rtl.h Add prototypes for new functions in print-rtl.c.
9058 * auto-inc-dec.c: Include print-rtl.h
9059 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9060 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9061
9062 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9063 ATTRIBUTE_UNUSED.
9064
9065 2015-10-21 Richard Biener <rguenther@suse.de>
9066 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9067
9068 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9069 to match.pd.
9070 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9071 about signed left shift stronger and clarify the cases when they're
9072 broken.
9073 Move (a * (1 << b)) is (a << b) to match.pd.
9074 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9075 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9076 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9077
9078 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9079 New simplifier.
9080 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9081 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9082 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9083 : New simplifier.
9084 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9085 New simplifier.
9086 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9087
9088 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
9089 Szabolcs Nagy <szabolcs.nagy@arm.com>
9090 Alan Modra <amodra@gmail.com>
9091
9092 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9093 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9094 (LINK_SPEC): Add %(link_secure_plt).
9095 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9096 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9097
9098 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
9099 Szabolcs Nagy <szabolcs.nagy@arm.com>
9100
9101 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9102 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9103
9104 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9105
9106 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9107 New function.
9108 (fusion_load_store): Use it.
9109 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9110 ldp and stp in VD modes.
9111 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9112 (store_pair<mode>, VD): Likewise.
9113
9114 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
9115
9116 PR rtl-optimization/67609
9117 * lra-splill.c (lra_final_code_change): Don't remove all
9118 sub-registers.
9119
9120 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9121
9122 * simplify-rtx.c (simplify_binary_operation): If either operand was
9123 a constant pool reference use them if all other simplifications failed.
9124
9125 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9126
9127 * config/aarch64/aarch64.md
9128 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9129 * config/aarch64/aarch64-simd.md
9130 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9131 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9132 (aarch64_fpconst_pow_of_2): New function.
9133 (aarch64_vec_fpconst_pow_of_2): Likewise.
9134 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9135 prototype.
9136 (aarch64_vec_fpconst_pow_of_2): Likewise.
9137 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9138 (aarch64_fp_vec_pow2): Likewise.
9139
9140 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
9141
9142 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9143 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
9144 * config/alpha/alpha.c (alpha_function_arg_advance): Update
9145 ALPHA_ARG_SIZE usage.
9146 (alpha_arg_partial_bytes): Ditto.
9147
9148 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9149
9150 PR target/66810
9151 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9152 error_mark_node decls.
9153
9154 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9155
9156 PR target/67963
9157 PR target/67985
9158 * common/config/i386/i386-common.c (ix86_handle_option): Remove
9159 OPT_miamcu handling.
9160 * config/i386/i386.c (PTA_NO_80387): New macro.
9161 (processor_alias_table): Add PTA_NO_80387 to lakemont.
9162 (ix86_option_override_internal): Update MASK_80387 from
9163 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
9164 SSE math only if 80387 is supported. Don't change
9165 MASK_FLOAT_RETURNS.
9166 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9167 80387 is supported.
9168 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9169 if TARGET_80387 is true and TARGET_IAMCU is false.
9170 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9171 is true and TARGET_IAMCU_P is false.
9172
9173 2015-10-20 Richard Biener <rguenther@suse.de>
9174
9175 PR tree-optimization/68017
9176 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9177
9178 2015-10-20 Martin Liska <mliska@suse.cz>
9179
9180 * cgraphclones.c (cgraph_node::create_virtual_clone):
9181 Verify cgraph_node.local.versionable instead of calling
9182 tree_versionable_function_p.
9183 * ipa-cp.c (determine_versionability): Save the information
9184 to ipa_node_params summary.
9185 (ipcp_versionable_function_p): Use it.
9186 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9187 (ipcp_generate_summary): Do not compute cgraph_node
9188 versionability.
9189 * ipa-inline-analysis.c (inline_generate_summary): Compute
9190 versionability for all cgraph nodes.
9191 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9192 ipa_node_params::versionability.
9193 * ipa-prop.h (struct ipa_node_params): Declare it.
9194
9195 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9196
9197 PR other/67868
9198 * varasm.c (assemble_variable): Move special vtv handling to..
9199 (handle_vtv_comdat_sections): .. here. New function.
9200 (output_object_block): Handle vtv sections.
9201
9202 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
9203
9204 PR target/66912
9205 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9206
9207 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
9208
9209 * doc/extend.texi: Update documentation WRT inline functions.
9210
9211 2015-10-20 Alan Modra <amodra@gmail.com>
9212
9213 PR go/66870
9214 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9215 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9216 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9217
9218 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
9219
9220 PR rtl-optimization/66790
9221 * df.h (DF_MIR): New macro.
9222 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9223 (DF_MIR_INFO_BB): New macro.
9224 (DF_MIR_IN, DF_MIR_OUT): New macros.
9225 (struct df_mir_bb_info): New.
9226 (df_mir): New macro.
9227 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9228 declarations.
9229 (df_mir_get_bb_info): New.
9230 * df-problems.c (struct df_mir_problem_data): New.
9231 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9232 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9233 df_mir_confluence_0, df_mir_confluence_n,
9234 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9235 df_mir_bottom_dump, df_mir_verify_solution_start,
9236 df_mir_verify_solution_end): New.
9237 (problem_MIR): New.
9238 (df_mir_add_problem, df_mir_simulate_one_insn): New.
9239 * timevar.def (TV_DF_MIR): New.
9240 * ree.c: Include bitmap.h
9241 (add_removable_extension): Add an INIT_REGS parameter. Use it
9242 to skip zero-extensions that may get an uninitialized register.
9243 (find_removable_extensions): Compute must-initialized registers
9244 using the MIR dataflow problem. Update the call to
9245 add_removable_extension.
9246 (find_and_remove_re): Call df_mir_add_problem.
9247
9248 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
9249
9250 * common/config/mn10300/mn10300-common.c
9251 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9252 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9253
9254 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
9255
9256 * doc/extend.texi (Explicit Register Variables): Simplify and
9257 avoid unnecessary and confusion abbreviations. Update cross
9258 references.
9259 doc/implement-c.tex: Update cross reference.
9260
9261 2015-10-19 Jeff Law <law@redhat.com>
9262
9263 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9264 that create irreducible loops unless the path elimiantes a multiway
9265 branch.
9266
9267 2015-10-19 Richard Biener <rguenther@suse.de>
9268
9269 PR tree-optimization/67975
9270 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9271 * tree-cfg.c (extract_true_false_controlled_edges): Split out
9272 core worker from ...
9273 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9274 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9275 instead of block number for PHIs with two or one args.
9276 (vn_phi_eq): Compare edge predicates of PHIs that are in different
9277 blocks.
9278
9279 2015-10-19 Richard Biener <rguenther@suse.de>
9280
9281 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9282 (gimple_stmt_nonnegative_warnv_p): Use it.
9283 * match.pd (CPROJ): New operator list.
9284 (cproj (complex ...)): Move simplifications from ...
9285 * builtins.c (fold_builtin_cproj): ... here.
9286
9287 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9288
9289 * config/i386/i386.c (ix86_expand_vector_move): Use
9290 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9291 alignment.
9292
9293 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9294
9295 * doc/invoke.texi: Replace @optindex with @opindex.
9296
9297 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9298
9299 PR target/67995
9300 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9301 arch= is set, clear all bits in x_ix86_isa_flags, except for
9302 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9303
9304 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
9305
9306 PR middle-end/68002
9307 * common.opt (fkeep-static-functions): New option.
9308 * doc/invoke.texi: Document it.
9309 * cgraphunit.c (cgraph_node::finalize_function): Use it.
9310
9311 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9312
9313 * sched-int.h (struct autopref_multipass_data_): Remove offset
9314 field. Add min_offset, max_offset, multi_mem_insn_p fields.
9315 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9316 (autopref_multipass_init): Use it. Handle PARALLEL sets.
9317 (autopref_rank_data): New function.
9318 (autopref_rank_for_schedule): Use it.
9319 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9320
9321 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
9322
9323 PR other/65800
9324 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9325
9326 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9327
9328 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9329 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
9330 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9331 (STANDARD_STARTFILE_PREFIX_1): New.
9332 (STANDARD_STARTFILE_PREFIX_2): New.
9333
9334 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9335
9336 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9337 (darwin_driver_init): Note a version-min when provided on the c/l.
9338 * config/darwin.h (%darwin_minversion): Remove.
9339 * config/i386/darwin.h: Likewise.
9340 * config/rs6000/darwin.h: Likewise.
9341 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9342 rather than an arbitrary constant.
9343
9344 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9345
9346 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9347 PPC, detect conflicts between -arch and multilib settings. Detect
9348 and warn about conflicts between multiple -arch definitions.
9349
9350 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9351
9352 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9353
9354 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9355
9356 * lra-constraints.c (add_next_usage_insn): Change argument type
9357 from rtx to rtx_insn *.
9358
9359 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
9360
9361 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9362 for Lakemont.
9363
9364 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
9365
9366 * config/tilepro/gen-mul-tables.cc: Adjust include files.
9367 * config/tilegx/mul-tables.c: Regenerate.
9368 * config/tilepro/mul-tables.c: Regenerate.
9369
9370 * config/tilegx/tilegx-c.c: Adjust include files.
9371 * config/tilegx/tilegx.c: Likewise.
9372 * config/tilepro/tilepro-c.c: Likewise.
9373 * config/tilepro/tilepro.c: Likewise.
9374 * config/aarch64/aarch64-builtins.c: Likewise.
9375 * config/aarch64/aarch64.c: Likewise.
9376 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9377 * config/alpha/alpha.c: Likewise.
9378 * config/arc/arc.c: Likewise.
9379 * config/arm/aarch-common.c: Likewise.
9380 * config/arm/arm-builtins.c: Likewise.
9381 * config/arm/arm-c.c: Likewise.
9382 * config/arm/arm.c: Likewise.
9383 * config/avr/avr-c.c: Likewise.
9384 * config/avr/avr-devices.c: Likewise.
9385 * config/avr/avr-log.c: Likewise.
9386 * config/avr/avr.c: Likewise.
9387 * config/bfin/bfin.c: Likewise.
9388 * config/c6x/c6x.c: Likewise.
9389 * config/cr16/cr16.c: Likewise.
9390 * config/cris/cris.c: Likewise.
9391 * config/darwin-c.c: Likewise.
9392 * config/darwin-driver.c: Likewise.
9393 * config/darwin.c: Likewise.
9394 * config/default-c.c: Likewise.
9395 * config/epiphany/epiphany.c: Likewise.
9396 * config/epiphany/mode-switch-use.c: Likewise.
9397 * config/epiphany/resolve-sw-modes.c: Likewise.
9398 * config/fr30/fr30.c: Likewise.
9399 * config/frv/frv.c: Likewise.
9400 * config/ft32/ft32.c: Likewise.
9401 * config/glibc-c.c: Likewise.
9402 * config/h8300/h8300.c: Likewise.
9403 * config/i386/host-cygwin.c: Likewise.
9404 * config/i386/host-mingw32.c: Likewise.
9405 * config/i386/i386-c.c: Likewise.
9406 * config/i386/i386.c: Likewise.
9407 * config/i386/msformat-c.c: Likewise.
9408 * config/i386/winnt-cxx.c: Likewise.
9409 * config/i386/winnt-stubs.c: Likewise.
9410 * config/i386/winnt.c: Likewise.
9411 * config/ia64/ia64-c.c: Likewise.
9412 * config/ia64/ia64.c: Likewise.
9413 * config/iq2000/iq2000.c: Likewise.
9414 * config/lm32/lm32.c: Likewise.
9415 * config/m32c/m32c-pragma.c: Likewise.
9416 * config/m32c/m32c.c: Likewise.
9417 * config/m32r/m32r.c: Likewise.
9418 * config/mcore/mcore.c: Likewise.
9419 * config/mep/mep-pragma.c: Likewise.
9420 * config/mep/mep.c: Likewise.
9421 * config/microblaze/microblaze-c.c: Likewise.
9422 * config/microblaze/microblaze.c: Likewise.
9423 * config/mips/mips-tables.opt
9424 * config/mips/mips.c: Likewise.
9425 * config/mmix/mmix.c: Likewise.
9426 * config/mn10300/mn10300.c: Likewise.
9427 * config/moxie/moxie.c: Likewise.
9428 * config/msp430/msp430-c.c: Likewise.
9429 * config/msp430/msp430.c: Likewise.
9430 * config/nds32/nds32-cost.c: Likewise.
9431 * config/nds32/nds32-fp-as-gp.c: Likewise.
9432 * config/nds32/nds32-intrinsic.c: Likewise.
9433 * config/nds32/nds32-isr.c: Likewise.
9434 * config/nds32/nds32-md-auxiliary.c: Likewise.
9435 * config/nds32/nds32-memory-manipulation.c: Likewise.
9436 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9437 * config/nds32/nds32-predicates.c: Likewise.
9438 * config/nds32/nds32.c: Likewise.
9439 * config/nios2/nios2.c: Likewise.
9440 * config/nvptx/mkoffload.c: Likewise.
9441 * config/nvptx/nvptx.c: Likewise.
9442 * config/pa/pa.c: Likewise.
9443 * config/pdp11/pdp11.c: Likewise.
9444 * config/rl78/rl78-c.c: Likewise.
9445 * config/rl78/rl78.c: Likewise.
9446 * config/rs6000/host-darwin.c: Likewise.
9447 * config/rs6000/rs6000-c.c: Likewise.
9448 * config/rs6000/rs6000-linux.c: Likewise.
9449 * config/rs6000/rs6000.c: Likewise.
9450 * config/rx/rx.c: Likewise.
9451 * config/s390/s390-c.c: Likewise.
9452 * config/s390/s390.c: Likewise.
9453 * config/sh/sh-c.c: Likewise.
9454 * config/sh/sh-mem.cc: Likewise.
9455 * config/sh/sh.c: Likewise.
9456 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9457 * config/sh/sh_treg_combine.cc: Likewise.
9458 * config/sol2-c.c: Likewise.
9459 * config/sol2-cxx.c: Likewise.
9460 * config/sol2-stubs.c: Likewise.
9461 * config/sol2.c: Likewise.
9462 * config/sparc/sparc-c.c: Likewise.
9463 * config/sparc/sparc.c: Likewise.
9464 * config/spu/spu-c.c: Likewise.
9465 * config/spu/spu.c: Likewise.
9466 * config/stormy16/stormy16.c: Likewise.
9467 * config/v850/v850-c.c: Likewise.
9468 * config/v850/v850.c: Likewise.
9469 * config/vax/vax.c: Likewise.
9470 * config/visium/visium.c: Likewise.
9471 * config/vms/vms-c.c: Likewise.
9472 * config/vms/vms.c: Likewise.
9473 * config/vxworks.c: Likewise.
9474 * config/winnt-c.c: Likewise.
9475 * config/xtensa/xtensa.c: Likewise.
9476
9477 2015-10-16 Christian Bruel <christian.bruel@st.com>
9478
9479 PR target/67745
9480 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
9481 (FUNCTION_BOUNDARY_P): New macro:
9482 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
9483 New hook.
9484 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
9485 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
9486 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
9487 * function.c (allocate_struct_function): Call
9488 relayout_function hook.
9489 * passes.c (rest_of_decl_compilation): Likewise.
9490
9491 2015-10-16 Christian Bruel <christian.bruel@st.com>
9492
9493 PR target/67745
9494 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
9495 * config/arm/arm.c (arm_option_override_internal): Call
9496 arm_override_options_after_change_1.
9497 (arm_override_options_after_change): New function.
9498 (arm_override_options_after_change_1): Likewise.
9499 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
9500
9501 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9502
9503 Revert:
9504 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9505 empty constructors.
9506
9507 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
9508
9509 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
9510 argument is an ADDR_EXPR.
9511
9512 2015-10-16 Richard Biener <rguenther@suse.de>
9513
9514 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
9515 and get rid of force_gimple_operand_gsi.
9516 (gimple_fold_builtin_memory_chk): Likewise.
9517 (gimple_fold_builtin_stxcpy_chk): Likewise.
9518 (rewrite_to_defined_overflow): Likewise.
9519 (gimple_convert_to_ptrofftype): New function.
9520 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
9521
9522 2015-10-16 Richard Biener <rguenther@suse.de>
9523
9524 * tree-nested.h (build_addr): Adjust prototype.
9525 * tree-nested.c (build_addr): Remove context argument and use
9526 mark_addressable.
9527 (get_static_chain): Adjust calls to build_addr.
9528 (convert_nl_goto_reference): Likewise.
9529 (convert_tramp_reference_op): Likewise.
9530 (finalize_nesting_tree_1): Likewise.
9531 * value-prof.c (gimple_ic): Likewise.
9532 * gimple-low.c (lower_builtin_setjmp): Likewise.
9533 * tree-parloops.c (take_address_of): Likewise.
9534 (create_call_for_reduction_1): Likewise.
9535 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
9536 (gimple_gen_ic_func_profiler): Likewise.
9537
9538 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9539
9540 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9541 empty constructors.
9542
9543 2015-10-16 Michael Collison <michael.collison@linaro.org>
9544 Andrew Pinski <andrew.pinski@caviumnetworks.com>
9545
9546 * match.pd ((x < y) && (x < z) -> x < min (y,z),
9547 (x > y) and (x > z) -> x > max (y,z))
9548
9549 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
9550 Szabolcs Nagy <szabolcs.nagy@arm.com>
9551
9552 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
9553 (DYNAMIC_LINKER): Renamed to ...
9554 (GLIBC_DYNAMIC_LINKER): This.
9555 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
9556
9557 2015-10-15 Marek Polacek <polacek@redhat.com>
9558
9559 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
9560 gimple_call_builtin instead of is_gimple_call.
9561
9562 2015-10-15 Richard Biener <rguenther@suse.de>
9563
9564 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
9565
9566 2015-10-15 Richard Biener <rguenther@suse.de>
9567
9568 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
9569 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
9570 * tree-vect-loop.c (get_initial_def_for_induction): Drop
9571 use of force_gimple_operand in favor of gimple_build.
9572 Use vect_get_new_ssa_name.
9573 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
9574 (vectorizable_mask_load_store): Likewise.
9575 (vectorizable_call): Likewise.
9576 (vectorizable_store): Likewise.
9577 (vectorizable_load): Likewise.
9578 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
9579
9580 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
9581
9582 PR tree-optimization/67945
9583 * tree-pass.h (PROP_gimple_opt_math): New property flag.
9584 * generic-match-head.c (canonicalize_math_p): New function.
9585 * gimple-match-head.c: Include tree-pass.h.
9586 (canonicalize_math_p): New function.
9587 * match.pd: Group math built-in rules into simplifications
9588 and canonicalizations. Guard the latter with canonicalize_math_p.
9589 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
9590 PROP_gimple_opt_math property.
9591
9592 2015-10-15 Marek Polacek <polacek@redhat.com>
9593
9594 PR tree-optimization/67953
9595 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
9596
9597 2015-10-15 Jiong Wang <jiong.wang@arm.com>
9598
9599 * config.gcc: Recognize "." in architecture base name for AArch64.
9600
9601 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9602
9603 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
9604 ROUND_UP macro.
9605 * config/mips/mips.c (mips_setup_incoming_varargs): Use
9606 ROUND_DOWN to calculate off.
9607 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
9608 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
9609 rounded_size.
9610
9611 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
9612
9613 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
9614
9615 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
9616 Torvald Riegel <triegel@redhat.com>
9617
9618 PR target/67281
9619 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
9620 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9621 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
9622 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
9623 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
9624 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9625 trechkpt, treclaim, tsr, ttest): New define_expands.
9626 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9627 __TM_FENCE__ for htm.
9628 * doc/extend.texi: Update documentation for htm builtins.
9629
9630 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9631
9632 PR target/67967
9633 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
9634 REG_CFA_EXPRESSION to aligned SSE stores.
9635
9636 2015-10-14 Jeff Law <law@redhat.com>
9637
9638 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
9639 num_threaded_edges for successful FSM threads too.
9640
9641 2015-10-14 Richard Biener <rguenther@suse.de>
9642
9643 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
9644 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
9645 (vect_get_vec_def_for_operand): Remove unused parameter.
9646 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
9647 (vect_create_epilog_for_reduction): Likewise.
9648 (vectorizable_reduction): Likewise.
9649 (vectorizable_live_operation): Likewise.
9650 * tree-vect-patterns.c (type_conversion_p): Likewise.
9651 (vect_recog_vector_vector_shift_pattern): Likewise.
9652 (check_bool_pattern): Likewise.
9653 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9654 (vect_analyze_slp_cost_1): Likewise.
9655 * tree-vect-stmts.c (process_use): Likewise.
9656 (vect_get_vec_def_for_operand): Do not handle reductions.
9657 (vect_get_vec_defs): Adjust.
9658 (vectorizable_mask_load_store): Likewise.
9659 (vectorizable_call): Likewise.
9660 (vectorizable_simd_clone_call): Likewise.
9661 (vect_get_loop_based_defs): Likewise.
9662 (vectorizable_conversion): Likewise.
9663 (vectorizable_assignment): Likewise.
9664 (vectorizable_shift): Likewise.
9665 (vectorizable_operation): Likewise.
9666 (vectorizable_store): Likewise.
9667 (vectorizable_load): Likewise.
9668 (vect_is_simple_cond): Likewise.
9669 (vectorizable_condition): Likewise.
9670 (vect_is_simple_use): Remove unused parameters.
9671 (vect_is_simple_use_1): Adjust and rename.
9672
9673 2015-10-14 Richard Biener <rguenther@suse.de>
9674
9675 PR tree-optimization/67915
9676 * match.pd: Handle comparisons of addresses of STRING_CSTs.
9677 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
9678 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
9679 stmt folding in favor of GIMPLE one.
9680
9681 2015-10-14 Marek Polacek <polacek@redhat.com>
9682
9683 PR tree-optimization/67815
9684 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
9685 (reassociate_bb): Call it.
9686
9687 2015-10-14 Richard Biener <rguenther@suse.de>
9688
9689 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9690 Reset info at start.
9691 (vect_analyze_group_access_1): Add debug print.
9692 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
9693 (vect_compute_single_scalar_iteration_cost): ... to this.
9694 (vect_analyze_loop_2): Adjust.
9695 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
9696 * tree-vectorizer.h: ... here.
9697 (add_stmt_info_to_vec): Remove.
9698 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
9699
9700 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
9701
9702 * targhooks.c (default_target_option_pragma_parse): Do not warn if
9703 called on behalf of "#pragma GCC pop_options".
9704
9705 2015-10-14 Tom de Vries <tom@codesourcery.com>
9706
9707 * cfganal.c (verify_no_unreachable_blocks): New function.
9708 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
9709 verify_no_unreachable_blocks.
9710 cfganal.h (verify_no_unreachable_blocks): Declare.
9711
9712 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
9713
9714 * common.opt: Add flag_checking.
9715 * system.h (CHECKING_P): Define.
9716
9717 2015-10-13 Jakub Jelinek <jakub@redhat.com>
9718 Aldy Hernandez <aldyh@redhat.com>
9719 Ilya Verbin <ilya.verbin@intel.com>
9720
9721 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
9722 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
9723 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
9724 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
9725 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
9726 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
9727 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
9728 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
9729 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
9730 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
9731 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9732 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9733 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
9734 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
9735 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
9736 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
9737 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
9738 (struct cgraph_simd_clone_arg): Adjust comment.
9739 * coretypes.h (struct gomp_ordered): New forward decl.
9740 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
9741 set critical clauses to it.
9742 (gimple_build_omp_ordered): Return gomp_ordered * instead of
9743 gimple *. Add CLAUSES argument, set ordered clauses to it.
9744 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
9745 GIMPLE_OMP_ORDERED.
9746 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
9747 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
9748 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
9749 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
9750 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
9751 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
9752 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
9753 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
9754 renumber
9755 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
9756 (gomp_critical): Add clauses field.
9757 (gomp_ordered): New struct.
9758 (is_a_helper <gomp_ordered *>::test): New inline.
9759 (gimple_build_omp_critical): Add CLAUSES argument.
9760 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
9761 instead of gimple *.
9762 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
9763 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
9764 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
9765 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
9766 inline functions.
9767 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
9768 (dump_gimple_omp_target): Handle enter data and exit data.
9769 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
9770 (dump_gimple_omp_critical): Print clauses.
9771 (dump_gimple_omp_ordered): New function.
9772 (dump_gimple_omp_task): Handle taskloop.
9773 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
9774 GIMPLE_OMP_ORDERED.
9775 * gimple-walk.c (walk_gimple_op): Walk clauses on
9776 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
9777 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
9778 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
9779 (struct gimplify_omp_ctx): Add loop_iter_var,
9780 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
9781 and target_firstprivatize_array_bases fields.
9782 (delete_omp_context): Release loop_iter_var.
9783 (gimplify_bind_expr): Handle ORT_NONE.
9784 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
9785 ORT_COMBINED_TARGET.
9786 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
9787 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
9788 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
9789 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
9790 ctx->target_map_scalars_firstprivate.
9791 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
9792 data sharing clauses. For data sharing clause with VLA decl
9793 on omp target/target data don't add firstprivate for the pointer.
9794 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
9795 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
9796 the addition of ORT_COMBINED_TARGET.
9797 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
9798 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
9799 pointers as zero length array sections and
9800 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
9801 data sharing.
9802 (omp_check_private): Handle omp_member_access_dummy_var vars.
9803 (find_decl_expr): New function.
9804 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
9805 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
9806 Handle OMP_CLAUSE_GANG separately. Handle
9807 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9808 clauses. Diagnose linear clause on combined
9809 distribute {, parallel for} simd construct, unless it is the loop
9810 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
9811 Handle map clauses with COMPONENT_REF. Initialize
9812 ctx->target_map_scalars_firstprivate,
9813 ctx->target_firstprivatize_array_bases and
9814 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
9815 linear clause even to target region if combined. Remove
9816 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
9817 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
9818 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
9819 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
9820 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
9821 For linear clause on worksharing loop combined with parallel add
9822 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
9823 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
9824 omp_member_access_dummy_var vars. Add lastprivate clause to outer
9825 taskloop if needed.
9826 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
9827 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
9828 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
9829 GOMP_MAP_POINTER.
9830 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
9831 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
9832 in target body. Handle removal of struct mapping if struct is not
9833 seen in target body. Remove GOMP_MAP_STRUCT map clause on
9834 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
9835 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
9836 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
9837 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
9838 clause appear together. Handle
9839 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
9840 clause if it has map-type-modifier always. Handle
9841 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
9842 clauses.
9843 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
9844 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
9845 callers.
9846 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
9847 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
9848 iterators in doacross loops.
9849 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
9850 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
9851 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
9852 for the addition of ORT_COMBINED_TARGET.
9853 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
9854 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
9855 and OMP_TARGET_EXIT_DATA.
9856 (gimplify_omp_ordered): New function.
9857 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
9858 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
9859 Gimplify clauses on OMP_CRITICAL.
9860 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
9861 expand_GOMP_SIMD_ORDERED_END): New functions.
9862 * internal-fn.def (GOMP_SIMD_ORDERED_START,
9863 GOMP_SIMD_ORDERED_END): New internal functions.
9864 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
9865 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
9866 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
9867 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
9868 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
9869 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
9870 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
9871 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
9872 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
9873 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
9874 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
9875 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
9876 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
9877 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
9878 adjust type.
9879 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
9880 GOMP_target_data_41, adjust type.
9881 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
9882 GOMP_target_update_41, adjust type.
9883 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
9884 field.
9885 (struct omp_for_data): Add ordered and simd_schedule fields.
9886 (omp_member_access_dummy_var, unshare_and_remap_1,
9887 unshare_and_remap, is_taskloop_ctx): New functions.
9888 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
9889 (extract_omp_for_data): Handle taskloops and doacross loops
9890 and simd schedule modifier.
9891 (omp_adjust_chunk_size): New function.
9892 (get_ws_args_for): Use it.
9893 (lookup_sfield): Change first argument to splay_tree_key,
9894 add overload with first argument tree.
9895 (maybe_lookup_field): Likewise.
9896 (use_pointer_for_field): Handle omp_member_access_dummy_var.
9897 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
9898 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
9899 (build_outer_var_ref): Add LASTPRIVATE argument, handle
9900 taskloops and omp_member_access_dummy_var vars.
9901 (build_sender_ref): Change first argument to splay_tree_key,
9902 add overload with first argument tree.
9903 (install_var_field): For mask & 8 use &DECL_UID as key instead
9904 of the tree itself.
9905 (fixup_child_record_type): Const qualify *.omp_data_i.
9906 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
9907 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
9908 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
9909 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
9910 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
9911 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
9912 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
9913 kinds.
9914 (add_taskreg_looptemp_clauses): New function.
9915 (scan_omp_parallel): Use it.
9916 (scan_omp_task): Likewise.
9917 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9918 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
9919 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9920 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
9921 sandwiched taskloop constructs. Type check
9922 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
9923 region. Diagnose depend(source) or depend(sink:...) on
9924 target constructs or task/taskloop.
9925 (handle_simd_reference): Use get_name.
9926 (lower_rec_input_clauses): Likewise. Ignore all
9927 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
9928 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
9929 before passing it to omp_clause_{default,copy}_ctor. Handle
9930 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
9931 lastprivate_firstprivate flag for linear that needs copyin and
9932 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
9933 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
9934 on taskloop lookup decl in outer context. Pass true to
9935 build_outer_var_ref lastprivate argument. Handle
9936 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
9937 outside of outer taskloop for.
9938 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
9939 OMP_CLAUSE_DECL.
9940 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
9941 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
9942 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
9943 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
9944 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
9945 abstract origin. Handle omp_member_access_dummy_var vars.
9946 (expand_parallel_call): Use expand_omp_build_assign.
9947 (expand_task_call): Handle taskloop construct expansion. Add
9948 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
9949 integers. Add priority argument to GOMP_task* calls. Or in
9950 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
9951 GOMP_task call.
9952 (expand_omp_build_assign): Add prototype. Add AFTER
9953 argument, if true emit statements after *GSI_P and continue linking.
9954 (expand_omp_taskreg): Adjust expand_task_call caller.
9955 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
9956 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
9957 zero_iter2_bb and first_zero_iter2 arguments, handle computation
9958 of counts even for ordered loops.
9959 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
9960 (expand_omp_ordered_source, expand_omp_ordered_sink,
9961 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
9962 functions.
9963 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
9964 clauses on worksharing loop. Handle DOACROSS loop expansion.
9965 (expand_omp_for_static_nochunk): Handle linear clauses on
9966 worksharing loop. Adjust expand_omp_for_init_counts
9967 callers.
9968 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
9969 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
9970 expand_omp_for_init_counts callers.
9971 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
9972 functions.
9973 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
9974 Handle doacross loops.
9975 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9976 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
9977 GOMP_target_{41,update_41,enter_exit_data} libcalls.
9978 (expand_omp): Don't expand ordered depend constructs here, record
9979 ord_stmt instead for later expand_omp_for_generic.
9980 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
9981 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
9982 clause as stand-alone directive.
9983 (lower_omp_ordered_clauses): New function.
9984 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
9985 don't lower anything.
9986 (lower_omp_for_lastprivate): Use last _looptemp_ clause
9987 on taskloop for comparison.
9988 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
9989 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
9990 expansion for linear adjustments.
9991 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
9992 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
9993 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
9994 to tree * pointing to the stmt's clauses.
9995 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
9996 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
9997 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
9998 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
9999 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10000 clauses. Always use short kind and 8-bit align shift.
10001 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10002 (struct lower_omp_regimplify_operands_data): New type.
10003 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10004 New functions.
10005 (lower_omp_1): Use lower_omp_regimplify_operands instead of
10006 gimple_regimplify_operands.
10007 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10008 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10009 clause as stand-alone directive.
10010 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10011 (simd_clone_mangle): Mangle the various linear kinds
10012 per the new ABI.
10013 (simd_clone_adjust_argument_types): Handle
10014 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10015 (simd_clone_init_simd_arrays): Don't do anything for uval.
10016 (simd_clone_adjust): Handle
10017 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10018 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10019 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10020 * omp-low.h (omp_member_access_dummy_var): New prototype.
10021 * passes.def (pass_simduid_cleanup): Schedule another copy of the
10022 pass after all optimizations.
10023 * tree.c (omp_clause_code_name): Add entries for
10024 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10025 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10026 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
10027 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10028 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10029 OMP_CLAUSE_REDUCTION 5 arguments. Handle
10030 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10031 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10032 clauses.
10033 * tree-core.h (enum omp_clause_linear_kind): New.
10034 (struct tree_omp_clause): Change type of map_kind
10035 from unsigned char to unsigned int. Add subcode.if_modifier
10036 and subcode.linear_kind fields.
10037 (enum omp_clause_code): Add
10038 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10039 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10040 (OMP_CLAUSE_REDUCTION): Document
10041 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10042 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10043 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10044 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
10045 operand.
10046 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
10047 operand.
10048 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10049 codes.
10050 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10051 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10052 char.
10053 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10054 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10055 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10056 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10057 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10058 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10059 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10060 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10061 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10062 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10063 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10064 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10065 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10066 * tree-inline.c (remap_gimple_stmt): Handle clauses on
10067 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
10068 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10069 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10070 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10071 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10072 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10073 (convert_local_omp_clauses): Likewise.
10074 * tree-pretty-print.c (dump_omp_clause): Handle
10075 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10076 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10077 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10078 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10079 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
10080 GOMP_MAP_FORCE_DEALLOC. Handle
10081 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10082 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10083 and clauses on OMP_ORDERED and OMP_CRITICAL.
10084 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10085 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10086 (vectorize_loops): Adjust comments.
10087 (pass_simduid_cleanup::execute): Likewise.
10088 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10089 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10090 * wide-int.h (wi::gcd): New.
10091
10092 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10093
10094 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10095 (ix86_function_arg_advance): Ditto.
10096 (ix86_function_arg): Ditto.
10097 (ix86_gimplify_va_arg): Ditto.
10098 (ix86_class_max_nregs): Ditto.
10099 (inline_memory_move_cost): Ditto.
10100 (ix86_set_reg_reg_cost): Ditto.
10101 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10102
10103 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
10104
10105 PR middle-end/67912
10106 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10107
10108 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10109
10110 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10111 ROUND_UP macro and UNITS_PER_WORD * 2.
10112 * config/sparc/sparc.c (sparc_compute_frame_size):
10113 Use ROUND_UP and ROUND_DOWN macros where applicable.
10114 (function_arg_record_value, function_arg_record_value_1)
10115 (function_arg_record_value_1): Ditto.
10116 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10117 alignment to double-word.
10118 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10119 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10120 rounded_size.
10121
10122 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
10123
10124 * rtl.h (print_insn): Fix prototype.
10125
10126 2015-10-13 Tom de Vries <tom@codesourcery.com>
10127
10128 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10129 -1. Add assert that returned entry matches phi argument.
10130 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10131 free_stmt_vec_info_vec ...
10132 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
10133 with -1.
10134
10135 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
10136
10137 PR tree-optimization/67909, 67947
10138 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10139 really skip the inner loop.
10140
10141 2015-10-13 Jeff Law <law@redhat.com>
10142
10143 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10144 Allow single block jump threading paths.
10145
10146 2015-10-13 Tom de Vries <tom@codesourcery.com>
10147
10148 PR tree-optimization/67476
10149 * doc/invoke.texi (@item parloops-schedule): New item.
10150 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10151 * tree-parloops.c: Include params-enum.h.
10152 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10153
10154 2015-10-13 Tom de Vries <tom@codesourcery.com>
10155
10156 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10157 * params-enum.h: New file.
10158 * opts.c (handle_param): Handle case that param arg is a string.
10159 * params-list.h: Handle DEFPARAMENUM5 in params.def.
10160 * params.c (find_param): New function, factored out of ...
10161 (set_param_value): ... here.
10162 (param_string_value_p): New function.
10163 * params.h (struct param_info): Add value_names field.
10164 (find_param, param_string_value_p): Declare.
10165
10166 2015-10-13 Tom de Vries <tom@codesourcery.com>
10167
10168 PR tree-optimization/67476
10169 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10170
10171 2015-10-13 Richard Biener <rguenther@suse.de>
10172
10173 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10174 the data dependence vector.
10175 (vect_peeling_hash_insert): Get the peeling hash table as argument.
10176 (vect_peeling_hash_get_lowest_cost): Likewise.
10177 (vect_enhance_data_refs_alignment): Adjust.
10178 (struct _vect_peel_info, struct _vect_peel_extended_info,
10179 struct peel_info_hasher): Move from ...
10180 * tree-vectorizer.h: ... here.
10181 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10182 (LOOP_VINFO_PEELING_HTAB): Likewise.
10183 (struct _loop_vec_info): Remove min_profitable_iters and
10184 peeling_htab members.
10185 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10186 here.
10187 (destroy_loop_vec_info): Adjust.
10188 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10189 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10190 to estimate alias versioning cost.
10191 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10192
10193 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
10194
10195 * real.h (real_isinteger): Declare.
10196 * real.c (real_isinteger): New function.
10197 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10198 if y is an even integer.
10199
10200 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10201
10202 revert:
10203 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10204 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10205 counts when these are more informative.
10206
10207 2015-10-12 Jeff Law <law@redhat.com>
10208
10209 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10210 (fsm_find_control_stmt_paths): Change name of first argument to
10211 more accurately relfect what it really is. Handle simplification
10212 of GIMPLE_COND after finding a thread path for NAME.
10213 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10214 nontrivial conditions to be handled by FSM threader.
10215 (thread_through_normal_block): Extract the name to looup via
10216 FSM threader from COND_EXPR.
10217
10218 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10219 restriction that traced SSA_NAME is a user variable.
10220
10221 2015-10-12 Tom de Vries <tom@codesourcery.com>
10222
10223 PR tree-optimization/67476
10224 * omp-low.c (expand_omp_for_generic): Add missing phis.
10225
10226 2015-10-12 Tom de Vries <tom@codesourcery.com>
10227
10228 PR tree-optimization/67476
10229 * omp-low.c (expand_omp_for_generic): Handle simple latch.
10230
10231 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
10232
10233 * config/aarch64/aarch64-simd-builtins.def: Update builtins
10234 tables: add tbl3 and tbx4.
10235 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10236 (aarch64_tbx4v8qi): New.
10237 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10238 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10239 Rewrite using builtin functions.
10240 * config/aarch64/iterators.md (UNSPEC_TBX): New.
10241
10242 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10243
10244 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10245 ROUND_UP macro.
10246 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10247 Use ROUND_UP and ROUND_DOWN macros where applicable.
10248 (rs6000_darwin64_record_arg_flush): Ditto.
10249 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10250 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10251 rounded_size.
10252
10253 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10254
10255 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10256 (AARCH64_ROUND_DOWN): Ditto.
10257 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10258
10259 2015-10-12 Richard Biener <rguenther@suse.de>
10260
10261 PR ipa/67783
10262 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10263 code that analyzes IVs on each stmt but in a cheaper way avoiding
10264 quadratic behavior.
10265
10266 2015-10-12 Nick Clifton <nickc@redhat.com>
10267
10268 * config/msp430/msp430.c (msp430_mcu_names): Rename to
10269 msp430_mcu_data, add fields for ISA and hardware multiply
10270 support. Import latest data from the devices.csv file.
10271 (msp430_override_option): Use the data from the new array.
10272 (msp430_use_f5_series_hwmult): Likewise.
10273 (use_32bit_hwmult): Likewise.
10274 (msp430_no_hwmult): Likewise.
10275 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10276 MCU names.
10277 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10278 not recognised then no hardware multiply support is assumed and
10279 that only the MSP430 ISA is allowed.
10280
10281 2015-10-12 Richard Biener <rguenther@suse.de>
10282
10283 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10284 related code ...
10285 (vect_analyze_loop_2): ... here.
10286
10287 2015-10-11 Jason Merrill <jason@redhat.com>
10288
10289 PR c++/67557
10290 * expr.c (store_field): Call store_constructor directly when
10291 storing a CONSTRUCTOR into a target smaller than its type.
10292 Guard against unsafe bitwise copy.
10293
10294 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10295
10296 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10297 counts when these are more informative.
10298
10299 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10300
10301 * tree-profile.c (tree_profiling): Do not clear
10302 pure/const when not instrumenting.
10303 (pass tree_profile): Add dump of symtab.
10304
10305 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10306
10307 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10308 addresses.
10309 (fold_addr_of_array_ref_difference): Likewise.
10310
10311 2015-10-11 Jeff Law <law@redhat.com>
10312
10313 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10314 tree-ssa-threadbackward.c.
10315 (fsm_find_control_statement_thread_paths): Likewise.
10316 (thread_through_normal_block): Break out FSM bits and move them
10317 into a new function in tree-ssa-threadbackward.c. Call new function
10318 instead.
10319 Minimize header file usage.
10320 * tree-ssa-threadbackward.h: New file.
10321 * tree-ssa-threadbackward.c: Likewise.
10322 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10323
10324 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
10325
10326 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10327
10328 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
10329
10330 PR rtl-optimization/67864
10331 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10332 fallthrough edges for conditional jumps. Don't sort candidate
10333 edges if not optimizing for speed.
10334
10335 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10336
10337 * defaults.h (REVERSE_CONDITION): New default definition.
10338 * jump.c (reversed_comparison_code_parts): Adjust.
10339
10340 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10341
10342 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10343 check HARD_FRAME_POINTER_IS_ARG_POINTER.
10344
10345 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10346
10347 * defaults.h (FRAME_ADDR_RTX): New default definition.
10348 * builtins.c (expand_builtin_return_addr): Adjust.
10349
10350 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10351
10352 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10353 * builtins.c (expand_builtin_return_addr): Adjust.
10354
10355 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10356
10357 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10358 * builtins.c (expand_builtin_return_addr): Adjust.
10359 * doc/tm.texi: Likewise.
10360 * doc/tm.texi.in: Likewise.
10361 * except.c (expand_builtin_unwind_init): Likewise.
10362
10363 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10364
10365 * builtins.c (expand_builtin_return_addr): Adjust.
10366 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10367
10368 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10369
10370 * tree.c (type_with_interoperable_signedness): New.
10371 (gimple_canonical_types_compatible_p): Use it.
10372 * tree.h (type_with_interoperable_signedness): Declare
10373
10374 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10375
10376 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10377 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10378 when OEP_ADDRESS_OF is se.
10379
10380 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10381 Sebastian Pop <s.pop@samsung.com>
10382
10383 * graphite-dependences.c (scop_get_dependences): Add dump of the
10384 data dependence graph.
10385 * graphite-poly.c (print_isl_union_map): New.
10386 (debug_isl_union_map): New.
10387 * graphite-poly.h (print_isl_union_map): Declare.
10388 (debug_isl_union_map): Declare.
10389
10390 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10391 Sebastian Pop <s.pop@samsung.com>
10392
10393 * graphite-poly.c (print_iteration_domain): Remove verbosity.
10394 Remove OpenScop formatting.
10395 (print_iteration_domains): Same.
10396 (debug_iteration_domain): Same.
10397 (debug_iteration_domains): Same.
10398 (print_pdr): Same.
10399 (debug_pdr): Same.
10400 (dump_gbb_cases): Same.
10401 (dump_gbb_conditions): Same.
10402 (print_pdrs): Same.
10403 (debug_pdrs): Same.
10404 (print_pbb_body): Same.
10405 (print_pbb): Same.
10406 (print_scop_params): Same.
10407 (print_scop_context): Same.
10408 (print_scop): Same.
10409 (debug_pbb_domain): Same.
10410 (debug_pbb): Same.
10411 (debug_scop_context): Same.
10412 (debug_scop): Same.
10413 (debug_scop_params): Same.
10414 * graphite-poly.h: Same.
10415 * graphite.c (graphite_transform_loops): Same.
10416
10417 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10418
10419 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10420 call that isn't needed.
10421
10422 2015-10-09 Jeff Law <law@redhat.com>
10423
10424 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
10425 rather than moving each name to the freelist individually.
10426
10427 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
10428
10429 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
10430 * frame-header-opt.c: New file.
10431 * config/mips/mips-proto.h (mips_register_frame_header_opt):
10432 Add prototype.
10433 * config/mips/mips.c (mips_compute_frame_info): Check
10434 optimize_call_stack flag.
10435 (mips_option_override): Register new frame_header_opt pass.
10436 (mips_frame_info, mips_int_mask, mips_shadow_set,
10437 machine_function): Move these types to...
10438 * config/mips/mips.h: here.
10439 (machine_function): Add does_not_use_frame_header and
10440 optimize_call_stack fields.
10441 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
10442 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
10443 Document new flags.
10444 * config/mips/mips.opt (mframe-header-opt): Add new option.
10445
10446 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
10447
10448 * config/i386/i386.c
10449 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
10450 ROUND_DOWN where applicable.
10451
10452 2015-10-09 Jeff Law <law@redhat.com>
10453
10454 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
10455 correct statement.
10456
10457 2015-10-09 Renlin Li <renlin.li@arm.com>
10458
10459 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
10460 operands[0] and operands[2].
10461 (neon_vtrn<mode>_insn): Likewise.
10462 (neon_vzip<mode>_insn): Likewise.
10463
10464 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
10465
10466 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
10467 ((X & C2) << C1): Expand to...
10468 (X {&,^,|} C2 << C1): ...This.
10469 ((X & C2) >> C1): Expand to...
10470 (X {&,^,|} C2 >> C1): ...This.
10471
10472 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
10473
10474 PR target/67895
10475 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
10476 Adjust embedded rounding/SAE specifier position.
10477 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
10478 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
10479 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
10480 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
10481 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
10482 Likewise.
10483 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
10484
10485 2015-10-09 Martin Jambor <mjambor@suse.cz>
10486
10487 tree-optimization/67794
10488 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
10489 between types of state,ents but accept original definitions as a
10490 parameter.
10491 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
10492 iterate over definitions.
10493
10494 2015-10-09 James Norris <jnorris@codesourcery.com>
10495
10496 * config/rs6000/rs6000.c (rs6000_offload_options): New.
10497 (TARGET_OFFLOAD_OPTIONS): New.
10498
10499 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
10500
10501 PR middle-end/67891
10502 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
10503
10504 PR middle-end/67766
10505 * function.c (expand_function_end): Move return value
10506 promotion past the handling of PARALLELs and CONCATs.
10507
10508 PR rtl-optimization/67828
10509 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
10510 (tree_may_unswitch_on): Don't unswitch on expressions
10511 involving undefined values.
10512
10513 2015-10-09 Richard Biener <rguenther@suse.de>
10514
10515 * genmatch.c (print_operand): Fix formatting.
10516 (dt_node::append_simplify): Warn for multiple simplifiers
10517 that match the same pattern.
10518 * match.pd (log (exp @0)): Remove duplicates.
10519
10520 2015-10-09 Richard Biener <rguenth@suse.de>
10521
10522 PR target/67366
10523 * gimple-fold.c (optabs-query.h): Include
10524 (gimple_fold_builtin_memory_op): Allow unaligned stores
10525 when movmisalign_optabs are available.
10526
10527 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10528
10529 PR target/67366
10530 * config/arm/arm.md (movmisalign<mode>): New.
10531 * config/arm/iterators.md (HSI): New.
10532
10533 2015-10-09 Richard Biener <rguenther@suse.de>
10534
10535 PR tree-optimization/67891
10536 * gimple-match.h (gimple_simplified_result_is_gimple_val):
10537 New helper.
10538 (gimple_resimplify1): Declare.
10539 (gimple_resimplify2): Likewise.
10540 (gimple_resimplify3): Likewise.
10541 * gimple-match-head.c (gimple_resimplify1): Export.
10542 (gimple_resimplify2): Likewise.
10543 (gimple_resimplify3): Likewise.
10544 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
10545 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10546 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
10547 to avoid creating stmts without VN info.
10548
10549 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
10550
10551 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
10552 of availability.
10553
10554 2015-10-08 Jeff Law <law@redhat.com>
10555
10556 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
10557 and release_ssa_name in two places.
10558 (gimple_stringop_fixed_value): Similarly.
10559
10560 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
10561 release_defs.
10562
10563 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
10564 unlink_stmt_vdef and release_ssa_name_fn.
10565
10566 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
10567 release_defs.
10568
10569 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
10570
10571 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
10572 SSE register save area to 16 bytes only if the incoming stack
10573 boundary is no less than 16 bytes.
10574
10575 2015-10-08 Jeff Law <law@redhat.com>
10576
10577 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
10578 release_ssa_name. Fix typo in comment.
10579
10580 2015-10-08 Nathan Sidwell <nathan@acm.org>
10581
10582 * config/nvptx/nvptx.h (struct machine_function): Add comment.
10583 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
10584 may return pointer as well as in memory.
10585 (nvptx_output_return): Likewise.
10586
10587 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10588
10589 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
10590 (fold_builtin_1): Update accordingly. Handle constant arguments here.
10591 * match.pd: Add rules previously handled by fold_builtin_sqrt
10592 and fold_builtin_cbrt.
10593
10594 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10595
10596 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
10597 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
10598 * fold-const.h (tree_unary_nonnegative_warnv_p)
10599 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10600 (tree_expr_nonnegative_warnv_p): Add depth parameters.
10601 * fold-const.c: Include gimple-fold.h and params.h.
10602 (tree_ssa_name_nonnegative_warnv_p): New function.
10603 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
10604 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10605 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
10606 Add a depth parameter and increment it for recursive calls to
10607 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
10608 to handle SSA names.
10609 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
10610 (gimple_stmt_nonnegative_warnv_p): Declare.
10611 * tree-vrp.c (remove_range_assertions): Remove assert that condition
10612 cannot be proven false.
10613 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
10614 (gimple_stmt_nonnegative_warnv_p): Move to...
10615 * gimple-fold.c: ...here. Add depth parameters and pass them
10616 down to the tree routines. Accept statements that aren't
10617 assignments or calls but just return false for them.
10618 (gimple_val_nonnegative_real_p): Delete.
10619 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10620 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
10621 Check HONOR_NANs first.
10622
10623 2015-10-08 Martin Jambor <mjambor@suse.cz>
10624
10625 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
10626 unnecessary MIN.
10627
10628 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10629
10630 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
10631 in the tail of outer-loop.
10632
10633 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
10634
10635 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
10636 return UI_NONE.
10637
10638 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10639
10640 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
10641 "cfghooks.h", add prototypes for introduced new functions.
10642 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
10643 checks on ability of loop unswitching to tree_unswitch_single_loop;
10644 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
10645 on innermost loop check.
10646 (tree_unswitch_single_loop): Add all required checks on ability of
10647 loop unswitching under zero recursive level guard.
10648 (tree_unswitch_outer_loop): New function.
10649 (find_loop_guard): Likewise.
10650 (empty_bb_without_guard_p): Likewise.
10651 (used_outside_loop_p): Likewise.
10652 (get_vop_from_header): Likewise.
10653 (hoist_guard): Likewise.
10654 (check_exit_phi): Likewise.
10655
10656 2015-10-08 Marek Polacek <polacek@redhat.com>
10657
10658 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
10659 ops element.
10660
10661 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10662
10663 PR c/65345
10664 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
10665 create_tmp_var_raw instead of create_tmp_var.
10666
10667 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
10668
10669 * expr.c (store_expr_with_bounds): Handle aggregate moves from
10670 BLKmode.
10671 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
10672 to define gimple type system; compare aggregates only by size.
10673
10674 2015-10-07 Jeff Law <law@redhat.com>
10675
10676 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
10677 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
10678 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
10679 unnecessarily.
10680
10681 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10682 Sebastian Pop <s.pop@samsung.com>
10683
10684 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
10685 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
10686 (generate_isl_schedule): Same.
10687 * graphite-optimize-isl.c (scop_get_domains): Same.
10688 (apply_schedule_map_to_scop): Same.
10689 * graphite-poly.c (print_iteration_domains): Same.
10690 (remove_gbbs_in_scop): Same.
10691 (new_scop): Same.
10692 (free_scop): Same.
10693 (print_scop): Same.
10694 * graphite-poly.h (struct scop): Rename bbs to pbbs.
10695 (SCOP_BBS): Remove.
10696 * graphite-scop-detection.c (compare_bb_depths): Remove.
10697 (graphite_sort_dominated_info): Remove.
10698 (try_generate_gimple_bb): Move out of scop_detection.
10699 (all_non_dominated_preds_marked_p): Remove.
10700 (build_scop_bbs_1): Remove.
10701 (build_scop_bbs): Remove.
10702 (nb_pbbs_in_loops): Do not use SCOP_BBS.
10703 (find_scop_parameters): Same.
10704 (sese_dom_walker): Rename gather_bbs.
10705 (before_dom_children): Call try_generate_gimple_bb and collect gbb
10706 and pbb.
10707 (build_scops): Call gather_bbs.
10708 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
10709 (add_conditions_to_constraints): Same.
10710 (build_scop_iteration_domain): Same.
10711 (build_scop_drs): Same.
10712 (new_pbb_from_pbb): Same.
10713 * sese.c (new_sese_info): Create bbs.
10714 * sese.h (struct sese_info_t): Add bbs.
10715
10716 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
10717
10718 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
10719 encoding in 64-bit mode.
10720
10721 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
10722
10723 PR target/66697
10724 * config/i386/i386.c (ix86_option_override_internal): Always use
10725 8-byte minimum stack boundary in 64-bit mode.
10726 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
10727 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
10728 Add a REG_CFA_EXPRESSION note if needed.
10729 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
10730 (ix86_handle_force_align_arg_pointer_attribute): New.
10731 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
10732 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
10733 with ix86_handle_force_align_arg_pointer_attribute.
10734 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
10735
10736 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10737 Sebastian Pop <s.pop@samsung.com>
10738
10739 * graphite-scop-detection.c (parameter_index_in_region): Remove
10740 use of SESE_ADD_PARAMS.
10741 (find_scop_parameters): Same.
10742 * sese.c (new_sese_info): Same.
10743 * sese.h (struct sese_info_t): Remove add_params.
10744 (SESE_ADD_PARAMS): Remove.
10745
10746 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10747 Sebastian Pop <s.pop@samsung.com>
10748
10749 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
10750 an sese_info_p.
10751 (copy_def): Same.
10752 (copy_internal_parameters): Same.
10753 (translate_isl_ast_to_gimple): Use an sese_l.
10754 (build_iv_mapping): Same.
10755 * graphite-poly.c (new_sese): Rename new_sese_info.
10756 (free_sese): Rename free_sese_info.
10757 * graphite-poly.h (struct scop): Use an sese_info_p.
10758 (scop_set_region): Same.
10759 * graphite-scop-detection.c (struct sese_l): Moved...
10760 (get_entry_bb): Moved...
10761 (get_exit_bb): Moved...
10762 (parameter_index_in_region_1): Use an sese_info_p.
10763 (parameter_index_in_region): Same.
10764 (scan_tree_for_params): Same.
10765 (find_params_in_bb): Same.
10766 (sese_dom_walker): Use an sese_l.
10767 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
10768 (reduction_phi_p): Same.
10769 (parameter_index_in_region_1): Use an sese_info_p.
10770 (propagate_expr_outside_region): Use an sese_l.
10771 * graphite.c: Replace uses of SCOP_REGION.
10772 * sese.c (sese_record_loop): Use an sese_info_p.
10773 (build_sese_loop_nests): Same.
10774 (sese_build_liveouts_use): Same.
10775 (sese_build_liveouts_bb): Same.
10776 (sese_build_liveouts_bb): Same.
10777 (sese_bad_liveouts_use): Same.
10778 (sese_reset_debug_liveouts_bb): Same.
10779 (sese_build_liveouts): Same.
10780 (new_sese): Renamed new_sese_info.
10781 (free_sese): Renamed free_sese_info.
10782 (set_rename): Use an sese_info_p.
10783 (graphite_copy_stmts_from_block): Same.
10784 (copy_bb_and_scalar_dependences): Same.
10785 (outermost_loop_in_sese_1): Use an sese_l.
10786 (outermost_loop_in_sese): Same.
10787 (if_region_set_false_region): Use an sese_info_p.
10788 (move_sese_in_condition): Same.
10789 (scalar_evolution_in_region): Use an sese_l.
10790 * sese.h (struct sese_l): ... here.
10791 (SESE_ENTRY): Remove.
10792 (SESE_ENTRY_BB): Remove.
10793 (SESE_EXIT): Remove.
10794 (SESE_EXIT_BB): Remove.
10795 (sese_contains_loop): Use an sese_info_p.
10796 (sese_nb_params): Same.
10797 (bb_in_sese_p): Use an sese_l.
10798 (stmt_in_sese_p): Same.
10799 (defined_in_sese_p): Same.
10800 (loop_in_sese_p): Same.
10801 (sese_loop_depth): Same.
10802 (struct ifsese_s): Use an sese_info_p.
10803 (gbb_loop_at_index): Use an sese_l.
10804 (nb_common_loops): Same.
10805 (scev_analyzable_p): Same.
10806
10807 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10808
10809 * config/i386/i386.c (ix86_conditional_register_usage): Use
10810 CALL_USED_REGISTERS_MASK.
10811 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
10812
10813 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10814
10815 PR bootstrap/67385
10816 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
10817 * configure: Regenerated.
10818
10819 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
10820
10821 PR target/67850
10822 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
10823 (ix86_set_current_function): This.
10824 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
10825
10826 2015-10-07 Richard Biener <rguenther@suse.de>
10827
10828 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
10829 (vinfo_for_stmt): Adjust.
10830 (set_vinfo_for_stmt): Likewise.
10831 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
10832 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
10833 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
10834 of inner loop.
10835 (vect_analyze_loop_1): Remove.
10836 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
10837 inner loop when vectorizing an outer loop by splitting out from ...
10838 (vect_analyze_loop_form): ... here.
10839
10840 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10841
10842 PR c/65345
10843 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
10844 Use create_tmp_var_raw instead of create_tmp_var.
10845
10846 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
10847
10848 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
10849 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
10850 * real.c (CACHED_FRACTION): New helper macro.
10851 (dconst_third_ptr): Use it.
10852 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
10853 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
10854 dconst_sixth.
10855 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
10856
10857 2015-10-06 Jeff Law <law@redhat.com>
10858
10859 PR tree-optimization/67816
10860 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
10861 from remove_jump_threads_starting_at. Accept an edge rather than
10862 a basic block.
10863 * tree-ssa-threadupdate.c (removed_edges): New hash table.
10864 (remove_jump_threads_including): Note edges that get removed from
10865 the CFG for later pruning of jump threading paths including them.
10866 (thread_through_all_blocks): Remove paths which include edges that
10867 have been removed.
10868 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
10869 on each outgoing edges when optimizing away a control statement.
10870
10871 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10872
10873 * reorg.c (emit_delay_sequence): Store list of delay slot insns
10874 in a vector instead of rtx_insn_list.
10875 (add_to_delay_list): Likewise.
10876 (delete_from_delay_slot): Likewise.
10877 (optimize_skip): Likewise.
10878 (redirect_with_delay_list_safe_p): Likewise.
10879 (check_annul_list_true_false): Likewise.
10880 (steal_delay_list_from_target): Likewise.
10881 (steal_delay_list_from_fallthrough): Likewise.
10882 (redundant_insn): Likewise.
10883 (fill_simple_delay_slots): Likewise.
10884 (fill_slots_from_thread): Likewise.
10885 (fill_eager_delay_slots): Likewise.
10886 (relax_delay_slots): Likewise.
10887
10888 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
10889
10890 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
10891 For -mgpopt=local, also exclude unintialized common symbols.
10892 * doc/invoke.texi (Nios II Options): Document the change.
10893
10894 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
10895
10896 * config/aarch64/iterators.md (vwcore): Add missing cases for
10897 V4HF/V8HF modes.
10898
10899 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10900 Sebastian Pop <s.pop@samsung.com>
10901
10902 * graphite-poly.c (new_scop): Initialize drs.
10903 * graphite-poly.h (struct dr_info): New.
10904 (struct scop): Add drs.
10905 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
10906 (pdr_add_memory_accesses): Same.
10907 (build_poly_dr): Same.
10908 (build_alias_set): Same.
10909 (build_scop_drs): Same.
10910 (build_pbb_drs): Remove.
10911 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
10912 * tree-data-ref.h (data_reference): Remove alias_set.
10913
10914 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10915 Sebastian Pop <s.pop@samsung.com>
10916
10917 * graphite-poly.c (free_data_refs_aux): Remove.
10918 (free_gimple_poly_bb): Do not call free_data_refs_aux.
10919 * graphite-poly.h (struct base_alias_pair): Remove.
10920 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
10921 base_alias_pair and dr->aux.
10922 (build_alias_set): Same.
10923 * tree-data-ref.c (create_data_ref): Initialize alias_set.
10924 * tree-data-ref.h (data_reference): Add alias_set.
10925
10926 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
10927 Sebastian Pop <s.pop@samsung.com>
10928
10929 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
10930 Do not set PDR_BASE_OBJECT_SET.
10931 * graphite-poly.h (poly_dr): Same.
10932 (PDR_BASE_OBJECT_SET): Remove.
10933 (new_poly_dr): Update decl.
10934 * graphite-sese-to-poly.c (build_poly_dr): Update call to
10935 new_poly_dr.
10936 (write_alias_graph_to_ascii_dimacs): Remove.
10937 (write_alias_graph_to_ascii_dot): Remove.
10938 (write_alias_graph_to_ascii_ecc): Remove.
10939 (dr_same_base_object_p): Remove.
10940 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
10941 code.
10942 (build_base_obj_set_for_drs): Remove.
10943 (dump_alias_graphs): Remove.
10944 (build_scop_drs): Remove dead code.
10945
10946 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10947 Peter Bergner <bergner@vnet.ibm.com>
10948
10949 PR target/67808
10950 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
10951 allow registers, but provide insns for the combiner to create for
10952 loads from memory. Separate VSX code from non-VSX code. For
10953 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
10954 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
10955 so that registers come before memory operations. Drop support from
10956 converting DFmode to TFmode, if the DFmode value is in a GPR
10957 register.
10958 (extenddftf2_fprs): Likewise.
10959 (extenddftf2_internal): Likewise.
10960 (extenddftf2_vsx): Likewise.
10961 (extendsftf2): In the expander, only allow registers, but provide
10962 insns for the combiner to create for stores and loads.
10963
10964 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10965
10966 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
10967 from the decl parameter.
10968
10969 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
10970
10971 PR 67861
10972 * gimple-fold.c (gimple_fold_builtin): Add break after
10973 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
10974
10975 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
10976
10977 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
10978 to scop->isl_context.
10979
10980 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
10981
10982 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
10983 (output_probe_stack_range): Rotate the loop and simplify.
10984 (thumb1_expand_prologue): Tweak sorry message.
10985 * config/arm/arm.md (probe_stack): Use bare string.
10986
10987 2015-10-06 Nick Clifton <nickc@redhat.com>
10988
10989 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
10990
10991 2015-10-06 Nick Clifton <nickc@redhat.com>
10992
10993 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
10994 (ATTR_PERSIST): New constant.
10995 (msp430_data_attr): New function - verifies an attribute that only
10996 applies to variables.
10997 (msp430_attributes): Add noinit and persistent attributes.
10998 (noinit_section): New variable.
10999 (presis_section): New variable.
11000 (TARGET_ASM_INIT_SECTIONS): Define.
11001 (msp430_init_sections): New function - initialises the noinit and
11002 persist section variables.
11003 (msp430_select_section): Add support for noinit and persist
11004 attributes.
11005 (msp430_section_type_flags): Likewise.
11006 * doc/extend.texi: Document the reent, critical, wakeup, noinit
11007 and persistent attributes.
11008
11009 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11010 Sebastian Pop <s.pop@samsung.com>
11011
11012 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11013 (no_violations): Remove.
11014 (subtract_commutative_associative_deps): Remove.
11015 (compute_deps): Do not call subtract_commutative_associative_deps.
11016 (transform_is_safe): Remove.
11017 (graphite_legal_transform): Remove.
11018 * graphite-poly.h (graphite_legal_transform): Remove.
11019
11020 2015-10-05 Aditya Kumar <hiraditya@msn.com>
11021
11022 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11023 which are in this region are passed so gcc_assert and remove redundant
11024 computation.
11025 * sese.c (sese_build_liveouts): Pass only those bbs which are not
11026 in region.
11027 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11028 gcc_assert on that and remove unnecessary computation.
11029 (sese_build_liveouts_use): Same.
11030
11031 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11032
11033 * graphite-dependences.c (scop_get_reads): Renamed scop->context
11034 to scop->param_context.
11035 (scop_get_must_writes): Same.
11036 (scop_get_may_writes): Same.
11037 (scop_get_original_schedule): Same.
11038 (scop_get_transformed_schedule): Same.
11039 (subtract_commutative_associative_deps): Same.
11040 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11041 (generate_isl_context): Same.
11042 (generate_isl_schedule): Same.
11043 (scop_to_isl_ast): Same.
11044 (graphite_regenerate_ast_isl): Same.
11045 * graphite-optimize-isl.c (scop_get_domains): Same.
11046 (optimize_isl): Renamed scop->context to scop->param_context.
11047 * graphite-poly.c (new_poly_bb): Change the type of argument to
11048 gimple_poly_bb_p.
11049 (new_scop): Renamed scop->context to scop->param_context.
11050 (free_scop): Same.
11051 (print_scop_context): Same.
11052 * graphite-poly.h (new_poly_dr): Change the type of argument from
11053 void* to data_reference_p.
11054 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11055 (new_poly_bb): Change the type of argument from void* to
11056 gimple_poly_bb_p.
11057 (pbb_set_black_box): Same.
11058 (struct scop): Rename context to param_context, ctx to isl_context.
11059 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11060 Move declarations closer to assignment.
11061 (find_params_in_bb): Same.
11062 (find_scop_parameters): Same.
11063 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11064 Global to be used for statement IDs.
11065 (isl_id_for_pbb): Use ssa_name_version_typesize.
11066 (simple_copy_phi_p): Move declarations closer to assignment.
11067 (build_pbb_scattering_polyhedrons): Same.
11068 (build_scop_scattering): Same.
11069 (isl_id_for_ssa_name): Same.
11070 (extract_affine_name): Same.
11071 (extract_affine_int): Same.
11072 (extract_affine): Same.
11073 (set_scop_parameter_dim): Use renamed member.
11074 (build_loop_iteration_domains): Same.
11075 (add_param_constraints): Same.
11076 (build_scop_iteration_domain): Same.
11077 (pdr_add_data_dimensions): Same.
11078 (build_poly_dr): Same.
11079 (build_scop_drs): Move declarations closer to assignment.
11080 (analyze_drs_in_stmts): Same.
11081 (insert_out_of_ssa_copy): Same.
11082 (insert_out_of_ssa_copy_on_edge): Same.
11083 (propagate_expr_outside_region): Same.
11084 (rewrite_phi_out_of_ssa): Same.
11085 (rewrite_degenerate_phi): Same.
11086 (rewrite_reductions_out_of_ssa): Same.
11087 (rewrite_cross_bb_scalar_dependence): Same.
11088 (handle_scalar_deps_crossing_scop_limits): Same.
11089 (rewrite_cross_bb_scalar_deps): Same.
11090 * graphite.c (graphite_transform_loops): Use renamed member.
11091
11092 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
11093
11094 PR c/65345
11095 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11096 create_tmp_var_raw instead of create_tmp_var.
11097
11098 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11099
11100 PR c/65345
11101 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11102 Use create_tmp_var_raw instead of create_tmp_var.
11103
11104 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
11105
11106 PR target/67849
11107 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11108 split for upper-bank registers when target does not support
11109 AVX512VL.
11110 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11111 split when target does not support AVX512VL.
11112
11113 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
11114
11115 PR c/65345
11116 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11117 Adjust to use create_tmp_var_raw instead of create_tmp_var.
11118
11119 2015-10-06 Nick Clifton <nickc@redhat.com>
11120
11121 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11122 multiplication.
11123
11124 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11125
11126 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11127 (case ${target}): Add znver1.
11128 * config/i386/cpuid.h(bit_CLZERO): Define.
11129 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11130 -march=native recognize znver1 processors.
11131 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11132 znver1, clzero def_and_undef.
11133 * config/i386/i386.c (struct processor_costs znver1_cost): New.
11134 (m_znver1): New definition.
11135 (m_AMD_MULTIPLE): Includes m_znver1.
11136 (processor_target_table): Add znver1 entry.
11137 (ix86_target_string) : Add clzero entry.
11138 (static const char *const cpu_names): Add znver1 entry.
11139 (ix86_option_override_internal): Add znver1 instruction sets.
11140 (PTA_CLZERO) : New definition.
11141 (ix86_option_override_internal): Handle new clzerooption.
11142 (ix86_issue_rate): Add znver1.
11143 (ix86_adjust_cost): Add znver1.
11144 (ia32_multipass_dfa_lookahead): Add znver1.
11145 (has_dispatch): Add znver1.
11146 * config/i386/i386.h (TARGET_znver1): New definition.
11147 (TARGET_CLZERO): Define.
11148 (TARGET_CLZERO_P): Define.
11149 (struct ix86_size_cost): Add TARGET_ZNVER1.
11150 (enum processor_type): Add PROCESSOR_znver1.
11151 * config/i386/i386.md (define_attr "cpu"): Add znver1.
11152 (set_attr znver1_decode): New definitions for znver1.
11153 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11154 (mclzero): New.
11155 * config/i386/mmx.md (set_attr znver1_decode): New definitions
11156 for znver1.
11157 * config/i386/sse.md (set_attr znver1_decode): Likewise.
11158 * config/i386/x86-tune.def: Add znver1 tunings.
11159 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11160 * doc/invoke.texi: Add details about znver1
11161
11162 2015-10-06 Richard Biener <rguenther@suse.de>
11163
11164 PR tree-optimization/67859
11165 * tree-ssa-pre.c (create_expression_by_pieces): Properly
11166 discard not inserted stmts.
11167
11168 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
11169
11170 * doc/extend.texi (Template Instantiation): Reorder options and
11171 de-emphasize -frepo.
11172 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11173 example instead of -frepo.
11174
11175 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11176
11177 PR c/65345
11178 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11179 use create_tmp_var_raw rather than create_tmp_var.
11180
11181 2015-10-06 Richard Biener <rguenther@suse.de>
11182
11183 * tree-vectorizer.h (vec_info): New base class for...
11184 (_loop_vec_info): ... this and ...
11185 (_bb_vec_info): ... this.
11186 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11187 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11188 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11189 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11190 vect_destroy_datarefs): Adjust interface to take a vec_info *
11191 rather than both a loop_vec_info and a bb_vec_info argument.
11192 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11193 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11194 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11195 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11196 accordingly.
11197 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11198 (destroy_loop_vec_info, vect_analyze_loop_2,
11199 vect_is_simple_reduction_1, get_initial_def_for_induction,
11200 vect_create_epilog_for_reduction, vectorizable_reduction,
11201 vectorizable_live_operation, vect_transform_loop): Adjust.
11202 * tree-vect-patterns.c (type_conversion_p,
11203 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11204 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11205 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11206 check_bool_pattern, vect_recog_bool_pattern,
11207 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11208 * tree-vect-slp.c (vect_get_and_check_slp_defs,
11209 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11210 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11211 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11212 (new_bb_vec_info): Initialize base classs.
11213 * tree-vect-stmts.c (record_stmt_cost, process_use,
11214 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11215 vectorizable_mask_load_store, vectorizable_call,
11216 vectorizable_simd_clone_call, vectorizable_conversion,
11217 vectorizable_assignment, vectorizable_shift,
11218 vectorizable_operation, vectorizable_store,
11219 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11220 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11221 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11222
11223 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
11224
11225 PR c/65345
11226 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11227 create_tmp_var_raw rather than create_tmp_var.
11228
11229 2015-10-05 Marek Polacek <polacek@redhat.com>
11230
11231 * tree-ssa-loop-im.c
11232 (move_computations_dom_walker::before_dom_children): Don't set
11233 SSA_NAME_ANTI_RANGE_P.
11234 * tree-ssa-phiopt.c (value_replacement): Likewise.
11235
11236 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11237 Sebastian Pop <s.pop@samsung.com>
11238
11239 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11240
11241 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11242 Sebastian Pop <s.pop@samsung.com>
11243
11244 * graphite-poly.c (new_gimple_poly_bb): ... here.
11245 (free_data_refs_aux): ... here.
11246 (free_gimple_poly_bb): ... here.
11247 (remove_gbbs_in_scop): ... here.
11248 (new_scop): Call new_sese.
11249 (free_scop): Call remove_gbbs_in_scop and free_sese.
11250 * graphite-poly.h (base_alias_pair): ... here.
11251 (new_gimple_poly_bb): Declare.
11252 (free_gimple_poly_bb): Declare.
11253 * graphite-scop-detection.c (parameter_index_in_region_1):
11254 (parameter_index_in_region): ... here.
11255 (scan_tree_for_params): ... here.
11256 (find_params_in_bb): ... here.
11257 (find_scop_parameters): ... here.
11258 (build_scops): Call find_scop_parameters.
11259 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11260 (free_scops): Move...
11261 (single_pred_cond_non_loop_exit): Move...
11262 (sese_dom_walker::before_dom_children): Move...
11263 (sese_dom_walker::after_dom_children): Move...
11264 (build_poly_scop): Move...
11265 * graphite-sese-to-poly.h (base_alias_pair): Move...
11266 * graphite.c (free_scops): ... here.
11267
11268 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11269 Sebastian Pop <s.pop@samsung.com>
11270
11271 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11272 (trivially_empty_bb_p): Move...
11273 (same_close_phi_node): Move...
11274 (new_gimple_poly_bb): Move...
11275 (compare_bb_depths): Move...
11276 (graphite_sort_dominated_info): Move...
11277 (remove_duplicate_close_phi): Move...
11278 (make_close_phi_nodes_unique): Move...
11279 (canonicalize_loop_closed_ssa): Move...
11280 (canonicalize_loop_closed_ssa_form): Move...
11281 (loop_ivs_can_be_represented): Move...
11282 (single_pred_cond_non_loop_exit): Move...
11283 (graphite_can_represent_init): Move...
11284 (graphite_can_represent_scev): Move...
11285 (stmt_has_simple_data_refs_p): Move...
11286 (stmt_has_side_effects): Move...
11287 (graphite_can_represent_stmt): Move...
11288 (scop_detection): ... here.
11289 (sese_dom_walker): ... and here.
11290 (build_scops): Call all moved functions.
11291 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11292 (all_non_dominated_preds_marked_p): Move...
11293 (build_scop_bbs_1): Move...
11294 (build_scop_bbs): Move...
11295 (set_scop_parameter_dim): Move...
11296 (nb_pbbs_in_loops): Move...
11297 (build_poly_scop): Do not call all the moved functions.
11298
11299 2015-10-05 Martin Jambor <mjambor@suse.cz>
11300 Jan Hubicka <hubicka@ucw.cz>
11301
11302 * ipa-cp.c (ipcp_alignment_lattice): New type.
11303 (ipcp_param_lattices): Use the above to represent alignment.
11304 (ipcp_alignment_lattice::print): New function.
11305 (print_all_lattices): Use it to print alignment information.
11306 (ipcp_alignment_lattice::top_p): New function.
11307 (ipcp_alignment_lattice::bottom_p): Likewise.
11308 (ipcp_alignment_lattice::set_to_bottom): Likewise.
11309 (ipcp_alignment_lattice::meet_with_1): Likewise.
11310 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11311 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11312 (initialize_node_lattices): Likewise.
11313 (propagate_alignment_accross_jump_function): Work with the new class
11314 for alignment lattices.
11315 (propagate_constants_accross_call): Pass only the alignment lattice to
11316 propagate_alignment_accross_jump_function.
11317 (ipcp_store_alignment_results): Work with the new class for alignment
11318 lattices.
11319
11320 2015-10-05 Marek Polacek <polacek@redhat.com>
11321
11322 PR tree-optimization/67821
11323 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11324
11325 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
11326
11327 PR other/65021
11328 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11329 function to...
11330 (mkoffload_cleanup): ... this. Adjust all users.
11331 (maybe_unlink): Look at save_temps and verbose flags instead of
11332 debug flag.
11333 (main): Parse "-save-temps" flag.
11334 (generate_target_descr_file, generate_target_offloadend_file)
11335 (generate_host_descr_file, prepare_target_image): Pass it on.
11336 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11337 (mkoffload_cleanup): New function.
11338 (maybe_unlink): Look at save_temps and verbose flags instead of
11339 debug flag.
11340 (main): Instead of calling utils_cleanup, register atexit handler
11341 for mkoffload_cleanup.
11342 (main): Parse "-save-temps" flag.
11343 (compile_native, main): Pass it on.
11344 * lto-wrapper.c (compile_offload_image): Likewise.
11345
11346 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11347
11348 * gimple.h (gimple_op_ptr): Require a non const gimple *.
11349 (gimple_assign_lhs_ptr): Likewise.
11350 (gimple_assign_rhs1_ptr): Likewise.
11351 (gimple_assign_rhs2_ptr): Likewise.
11352 (gimple_assign_rhs3_ptr): Likewise.
11353 (gimple_call_lhs_ptr): Likewise.
11354 (gimple_call_fn_ptr): Likewise.
11355 (gimple_call_chain_ptr): Likewise.
11356 (gimple_call_arg_ptr): Likewise.
11357 (gimple_cond_lhs_ptr): Likewise.
11358 (gimple_cond_rhs_ptr): Likewise.
11359 (gimple_switch_index_ptr): Likewise.
11360 (gimple_return_retval_ptr): Likewise.
11361
11362 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11363
11364 * gimple.h (gimple_asm_input_op_ptr): Remove.
11365 (gimple_asm_output_op_ptr): Likewise.
11366
11367 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11368
11369 * gimple.h (gimple_location_ptr): Remove.
11370 * tree-vrp.c (check_all_array_refs): Adjust.
11371
11372 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11373
11374 * tree-ssa-operands.c (build_uses): store tree * instead of
11375 tree.
11376 (finalize_ssa_uses): Adjust.
11377 (append_use): Likewise.
11378 (verify_ssa_operands): Likewise.
11379
11380 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11381
11382 * real.h (build_real_truncate): Declare.
11383 * tree.c (build_real_truncate): New function.
11384 (strip_float_extensions): Use it.
11385 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11386 (fold_builtin_hypot, fold_builtin_pow): Likewise.
11387 * match.pd: Likewise.
11388
11389 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11390 Jiong Wang <jiong.wang@arm.com>
11391
11392 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11393
11394 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11395
11396 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11397 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11398 (aarch64_print_operand, aarch64_float_const_representable_p)
11399 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11400 instead of REAL_VALUE_FROM_CONST_DOUBLE.
11401 * config/arc/arc.c (arc_print_operand): Likewise.
11402 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11403 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11404 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11405 Likewise.
11406 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11407 (consttable_16): Likewise.
11408 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11409 * config/avr/avr.c (avr_print_operand): Likewise.
11410 * config/bfin/bfin.md: Likewise (in a define_split).
11411 * config/c6x/c6x.md: Likewise (in a define_split).
11412 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11413 (cr16_print_operand): Likewise.
11414 * config/cris/cris.c (cris_print_operand): Likewise.
11415 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11416 * config/fr30/fr30.c (fr30_print_operand): Likewise.
11417 (fr30_const_double_is_zero): Likewise.
11418 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11419 * config/frv/frv.md: Likewise (in a define_split).
11420 * config/frv/predicates.md (int_2word_operand): Likewise.
11421 * config/h8300/h8300.c (h8300_print_operand): Likewise.
11422 * config/i386/i386.c (standard_80387_constant_p): Likewise.
11423 (ix86_print_operand, ix86_split_to_parts): Likewise.
11424 * config/i386/i386.md: Likewise (in a define_split).
11425 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
11426 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
11427 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
11428 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
11429 (print_operand): Likewise.
11430 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
11431 * config/mep/mep.md: Likewise (in define_split).
11432 * config/microblaze/microblaze.c (microblaze_const_double_ok)
11433 (print_operand): Likewise.
11434 * config/mips/mips.md (consttable_float): Likewise.
11435 * config/mmix/mmix.c (mmix_intval): Likewise.
11436 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
11437 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
11438 * config/pa/pa.c (pa_singlemove_string): Likewise.
11439 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
11440 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
11441 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
11442 (output_toc): Likewise.
11443 * config/rs6000/rs6000.md: Likewise (in define_splits).
11444 * config/rx/rx.c (rx_print_operand): Likewise.
11445 * config/s390/s390.c (s390_output_pool_entry): Likewise.
11446 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11447 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
11448 (and also in define_splits).
11449 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
11450 (fp_high_losum_p): Likewise.
11451 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
11452 (*movsf_high): Likewise.
11453 * config/spu/spu.c (const_double_to_hwint): Likewise.
11454 * config/v850/v850.c (const_double_split): Likewise.
11455 * config/vax/vax.c (vax_float_literal): Likewise.
11456 * config/visium/visium.c (visium_expand_copysign): Likewise.
11457 * config/visium/visium.md: Likewise (in define_split).
11458 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11459 * config/xtensa/xtensa.c (print_operand): Likewise.
11460 (xtensa_output_literal): Likewise.
11461 * cprop.c (implicit_set_cond_p): Likewise.
11462 * dwarf2out.c (insert_float): Likewise.
11463 * expmed.c (expand_mult, make_tree): Likewise.
11464 * expr.c (compress_float_constant): Likewise.
11465 * rtlanal.c (split_double): Likewise.
11466 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11467 (simplify_const_unary_operation, simplify_binary_operation_1)
11468 (simplify_const_binary_operation): Likewise.
11469 (simplify_const_relational_operation): Likewise.
11470 * varasm.c (output_constant_pool_2): Likewise.
11471
11472 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11473
11474 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
11475 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11476 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
11477 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
11478 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11479 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
11480 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
11481 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
11482 (ix86_emit_swsqrtsf): Likewise.
11483 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
11484 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
11485 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11486 * config/pa/pa.c (pa_expand_builtin): Likewise.
11487 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
11488 (rs6000_scale_v2df): Likewise.
11489 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
11490 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
11491 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
11492 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
11493 (vec_ctul): Likewise.
11494 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
11495 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
11496 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
11497 * cse.c (fold_rtx): Likewise.
11498 * emit-rtl.c (immed_double_const): Likewise (in comments).
11499 (init_emit_once): Likewise.
11500 * expr.c (compress_float_constant, expand_expr_real_1)
11501 (const_vector_from_tree): Likewise.
11502 * optabs.c (expand_float, expand_fix): Likewise.
11503 * reg-stack.c (reg_to_stack): Likewise.
11504 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11505 (simplify_const_unary_operation, simplify_binary_operation_1)
11506 (simplify_const_binary_operation, simplify_relational_operation)
11507 (simplify_immed_subreg): Likewise.
11508
11509 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11510
11511 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
11512 * doc/tm.texi: Regenerate.
11513 * real.h (REAL_ARITHMETIC): Delete.
11514 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
11515 (ix86_expand_round_sse4): Use real_arithmetic instead of
11516 REAL_ARITHMETIC.
11517 * config/i386/sse.md (round<mode>2): Likewise.
11518 * rtl.h (rtx_to_tree_code): Likewise (in comment).
11519 * explow.c (rtx_to_tree_code): Likewise (in comment).
11520 * match.pd: Likewise.
11521 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11522 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11523 (expand_pow_as_sqrts): Likewise.
11524 * tree-pretty-print.c (dump_generic_node): Remove code that
11525 was conditional on REAL_ARITHMETIC being undefined.
11526
11527 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11528
11529 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
11530 * doc/tm.texi: Regenerate.
11531 * real.h (real_less): Declare.
11532 (REAL_VALUES_LESS): Delete.
11533 * real.c (real_less): New function.
11534 (real_compare): Use it.
11535 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
11536 of REAL_VALUES_LESS.
11537 * config/microblaze/microblaze.c (microblaze_const_double_ok):
11538 Likewise.
11539 * fold-const.c (fold_convert_const_int_from_real): Likewise.
11540 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11541 (simplify_const_relational_operation): Likewise.
11542 * tree-call-cdce.c (check_pow): Likewise.
11543 (gen_conditions_for_pow_cst_base): Likewise.
11544
11545 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11546
11547 * real.h (REAL_VALUES_IDENTICAL): Delete.
11548 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
11549 instead of REAL_VALUES_IDENTICAL.
11550 * fold-const.c (operand_equal_p): Likewise.
11551 * ipa-icf.c (sem_variable::equals): Likewise.
11552 * tree-complex.c (some_nonzerop): Likewise.
11553 (expand_complex_multiplication): Likewise.
11554 * tree.c (simple_cst_equal): Likewise.
11555 * varasm.c (compare_constant): Likewise.
11556
11557 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11558
11559 * real.h (real_equal): Declare.
11560 (REAL_VALUES_EQUAL): Delete.
11561 * real.c (real_equal): New function.
11562 (real_compare): Use it.
11563 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
11564 * doc/tm.texi: Regenerate.
11565 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
11566 real_equal instead of REAL_VALUES_EQUAL.
11567 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
11568 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
11569 (fp_const_from_val): Likewise.
11570 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
11571 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
11572 (floating_exact_log2): Likewise.
11573 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11574 * config/vax/vax.c (vax_float_literal): Likewise.
11575 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11576 * cprop.c (implicit_set_cond_p): Likewise.
11577 * expmed.c (expand_mult): Likewise.
11578 * fold-const.c (const_binop): Likewise.
11579 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11580 (simplify_const_binary_operation): Likewise.
11581 (simplify_const_relational_operation): Likewise.
11582 * tree-call-cdce.c (check_pow): Likewise.
11583 (gen_conditions_for_pow_cst_base): Likewise.
11584 * tree-inline.c (estimate_num_insns): Likewise.
11585 * tree-ssa-dom.c (record_equality): Likewise.
11586 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11587 (gimple_expand_builtin_pow): Likewise.
11588 (pass_optimize_widening_mul::execute): Likewise.
11589 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
11590 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
11591 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
11592
11593 2015-10-05 Richard Biener <rguenther@suse.de>
11594
11595 PR ipa/67783
11596 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
11597 consider loop header PHI defs as IVs.
11598
11599 2015-10-05 Richard Biener <rguenther@suse.de>
11600
11601 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
11602 call handling ...
11603 (create_expression_by_pieces): ... here and build GIMPLE
11604 calls directly. Use gimple_build API and avoid force_gimple_operand.
11605 (insert_into_preds_of_block): Simplify.
11606 (do_regular_insertion): Add comment.
11607
11608 2015-10-04 Jason Merrill <jason@redhat.com>
11609
11610 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
11611
11612 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
11613
11614 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
11615 check for general register.
11616 (ix86_emit_save_regs): Ditto.
11617 (ix86_emit_save_regs_using_mov): Ditto.
11618 (ix86_emit_restore_regs_using_pop): Ditto.
11619 (ix86_emit_restore_regs_using_mov): Ditto.
11620
11621 2015-10-03 Marek Polacek <polacek@redhat.com>
11622
11623 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
11624 (insn-dfatab.o): Likewise.
11625
11626 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
11627
11628 * config.gcc (xtensa*-*-uclinux*): New configuration.
11629 * config/xtensa/uclinux.h: New file.
11630 * config/xtensa/uclinux.opt: New file.
11631
11632 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
11633
11634 * doc/cpp.texi (Standard Predefined Macros): Document value of
11635 __cplusplus for C++14.
11636
11637 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
11638
11639 * gcc.c (process_command): Use spec_machine rather than
11640 spec_host_machine to build tooldir_prefix2.
11641
11642 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11643 Bernd Schmidt <bernds@codesourcery.com>
11644
11645 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
11646 (Token, Stmt): Remove structs.
11647 (decls, vars, fns): Remove variables.
11648 (alloc_comment, append_stmt, is_keyword): Remove macros.
11649 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
11650 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
11651 (parse_init, parse_file): Remove functions.
11652 (read_file): Accept a pointer to a length and store into it.
11653 (process): Don't try to parse the input file, just write it out as
11654 a string, but looking for maps. Also write out the length.
11655 (main): Don't use "-S" to compile PTX code.
11656
11657 2015-10-02 Jeff Law <law@redhat.com>
11658
11659 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
11660 fixups.
11661
11662 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11663
11664 PR target/67822
11665 * config/nvptx/mkoffload.c (main): Scan the argument vector for
11666 -fopenmp, and skip generating an offloading image if specified.
11667
11668 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
11669
11670 * system.h (ROUND_UP): New macro definition.
11671 (ROUND_DOWN): Ditto.
11672 * ggc-page.c (ROUND_UP): Remove local macro definition.
11673 (PAGE_ALIGN): Implement using ROUND_UP macro.
11674
11675 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
11676 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
11677 to align values.
11678 (ix86_compute_frame_layout): Ditto.
11679 (ix86_expand_prologue): Ditto.
11680 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
11681 to round down values.
11682 (expand_set_or_movmem_via_rep): Ditto.
11683
11684 2015-10-02 Marek Polacek <polacek@redhat.com>
11685
11686 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
11687
11688 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
11689
11690 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
11691 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
11692 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
11693 (free_gimple_bb): Renamed free_gimple_poly_bb.
11694 (try_generate_gimple_bb): Hoist loop invariant code.
11695 (analyze_drs_in_stmts): Same.
11696 (build_scop_drs): Call renamed functions.
11697 (new_pbb_from_pbb): Same.
11698 (scop_ivs_can_be_represented): Delete as functionality now moved to
11699 graphite-scop-detection.c
11700 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
11701
11702 2015-10-02 Aditya Kumar <hiraditya@msn.com>
11703
11704 * graphite-scop-detection.c (stmt_has_side_effects): New function
11705 outlined from stmt_simple_for_scop_p.
11706 (graphite_can_represent_stmt): Same.
11707 (stmt_simple_for_scop_p): Moved code out of this function for better
11708 readability.
11709
11710 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11711
11712 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
11713 F_AVX512IFMA.
11714 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
11715
11716 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11717
11718 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
11719
11720 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
11721
11722 PR rtl-optimization/67756
11723 * lra-constraints.c (match_reload): Add a new parameter. Use it
11724 for creating a pseudo with the same value.
11725 (curr_insn_transform): Pass a new argument to match_reload.
11726
11727 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11728
11729 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
11730 (expand_vec_perm_even_odd_1): Handle V64QImode.
11731 (ix86_expand_vec_perm_const_1): Try expansion with
11732 expand_vec_perm_even_odd_trunc as well.
11733 * config/i386/sse.md (VI124_AVX512F): Rename to ...
11734 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
11735 to V54QI.
11736 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
11737 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
11738 to V32HI and V16SI.
11739 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
11740 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
11741 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
11742 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
11743 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
11744 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
11745
11746 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11747
11748 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
11749 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
11750
11751 2015-10-02 Jason Merrill <jason@redhat.com>
11752
11753 PR c/59218
11754 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
11755 (diagnose_tm_1_op): Also diagnose volatile accesses in
11756 transaction_safe function.
11757
11758 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
11759
11760 * system.h (malloc.h): Don't include obsolete header.
11761
11762 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11763
11764 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
11765 (TLS_SECTION_ASM_FLAG): Delete.
11766
11767 2015-10-02 Marek Polacek <polacek@redhat.com>
11768
11769 PR c/64249
11770 * doc/invoke.texi: Document -Wduplicated-cond.
11771 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
11772 (insn-dfatab.o): Likewise.
11773 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
11774 warning.
11775
11776 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
11777
11778 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
11779 sequences.
11780
11781 2015-10-02 Renlin Li <renlin.li@arm.com>
11782
11783 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
11784
11785 2015-10-02 Renlin Li <renlin.li@arm.com>
11786
11787 PR target/66776
11788 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
11789
11790 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11791
11792 PR rtl-optimization/67786
11793 PR rtl-optimization/67787
11794 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
11795 it modifies a reg used in the condition calculation.
11796
11797 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
11798
11799 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11800 alternatives for reads from memory and moves from general-purpose
11801 registers.
11802 (*aarch64_combinez_be<mode>): Likewise.
11803
11804 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
11805
11806 PR target/51726
11807 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
11808 selectany within this function without need to keep attribute.
11809 (i386_pe_encode_section_info): Remove selectany-code.
11810
11811 2015-10-02 Richard Biener <rguenther@suse.de>
11812
11813 * tree-ssa-sccvn.c (has_VN_INFO): New function.
11814 (free_scc_vn): Use it.
11815 (visit_use): Remove dead code and refactor to use gassign
11816 and use less indentation.
11817
11818 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11819
11820 PR target/67788
11821 PR target/67789
11822 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
11823 (rs6000_cannot_copy_insn_p): New function.
11824 * config/rs6000/rs6000.md (cannot_copy): New attribute.
11825 (load_toc_v4_PIC_1_normal): Set cannot_copy.
11826 (load_toc_v4_PIC_1_476): Ditto.
11827
11828 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11829
11830 * graphite-scop-detection.c (struct sese_l): New conversion constructor
11831 so that this type can be pushed into a vec.
11832 (class scop_builder): use sese_l to collect scops.
11833 (get_scops): New getter function.
11834 (remove_intersecting_scops): Use sese_l instead of scops_p.
11835 (intersects): Same.
11836 (add_scop): Same.
11837 (subsumes): Same.
11838 (remove_subscops): Same.
11839 (build_scops): Add scops to vec<scops_p> once all the scops have been
11840 detected.
11841
11842 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
11843
11844 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
11845 Renamed type from gimple_bb_p to gimple_poly_bb_p.
11846 (translate_isl_ast_node_user): Same.
11847 * graphite-poly.c (new_poly_bb): Same.
11848 * graphite-poly.h (gbb_from_bb): Same.
11849 * sese.h: Same.
11850 * graphite-sese-to-poly.c (new_gimple_bb):
11851 gimple_bb_p -> gimple_poly_bb_p
11852 (build_scop_scattering): Same.
11853 (find_params_in_bb): Same.
11854 (add_conditions_to_domain): Same.
11855 (sese_dom_walker::before_dom_children): Same.
11856 (analyze_drs_in_stmts): Same.
11857 (new_pbb_from_pbb): Same.
11858 (free_data_refs_aux): New pointer to type base_alias_pair.
11859 * graphite-sese-to-poly.h: Same.
11860 * sese.c (if_region_set_false_region): Fixed Indentation.
11861 (move_sese_in_condition): Same.
11862
11863 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11864 Aditya Kumar <aditya.k7@samsung.com>
11865
11866 PR tree-optimization/66980
11867 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
11868 when data reference analysis has failed.
11869
11870 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11871 Aditya Kumar <aditya.k7@samsung.com>
11872
11873 PR tree-optimization/67754
11874 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
11875 scev analysis on the same loop nest as analyze_drs_in_stmts.
11876 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
11877 renamed...
11878 (try_generate_gimple_bb): Call outermost_loop_in_sese.
11879 (analyze_drs_in_stmts): Same.
11880 * sese.c (outermost_loop_in_sese): ...here.
11881
11882 2015-10-01 Sebastian Pop <s.pop@samsung.com>
11883 Aditya Kumar <aditya.k7@samsung.com>
11884
11885 PR tree-optimization/67754
11886 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
11887 recursion on the inner loops.
11888
11889 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11890
11891 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
11892 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
11893 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
11894 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
11895 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
11896
11897 2015-10-01 Marek Polacek <polacek@redhat.com>
11898
11899 PR c/65345
11900 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
11901 create_tmp_var_raw rather than create_tmp_var.
11902
11903 2015-10-01 Marek Polacek <polacek@redhat.com>
11904
11905 PR tree-optimization/67769
11906 * tree-ssa-phiopt.c (conditional_replacement): Call
11907 reset_flow_sensitive_info_in_bb.
11908 (minmax_replacement): Likewise.
11909 (abs_replacement): Likewise.
11910
11911 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
11912
11913 * builtins.c: Don't include gomp-constants.h.
11914 (fold_builtin_1): Don't fold acc_on_device here.
11915 * gimple-fold.c: Include gomp-constants.h.
11916 (gimple_fold_builtin_acc_on_device): New.
11917 (gimple_fold_builtin): Call it.
11918
11919 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
11920
11921 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
11922 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
11923
11924 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
11925
11926 * config/arm/aarch-common-protos.h
11927 (aarch_accumulator_forwarding): New.
11928 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11929 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
11930 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
11931 * config/arm/cortex-a53.md: Rewrite.
11932
11933 2015-10-01 Richard Biener <rguenther@suse.de>
11934
11935 * gimple-match.h (mprts_hook): Declare.
11936 * gimple-match.head.c (mprts_hook): Define.
11937 (maybe_push_res_to_seq): Use new hook.
11938 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11939 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
11940 (vn_ssa_aux::has_constants): Remove.
11941 * tree-ssa-sccvn.c: Include gimple-match.h.
11942 (VN_INFO_GET): Assert we don't re-use SSA names.
11943 (vn_get_expr_for): Remove.
11944 (expr_has_constants): Likewise.
11945 (stmt_has_constants): Likewise.
11946 (simplify_binary_expression): Likewise.
11947 (simplify_unary_expression): Likewise.
11948 (vn_lookup_simplify_result): New hook.
11949 (visit_copy): Adjust.
11950 (visit_reference_op_call): Likewise.
11951 (visit_phi): Likewise.
11952 (visit_use): Likewise.
11953 (process_scc): Likewise.
11954 (init_scc_vn): Likewise.
11955 (visit_reference_op_load): Likewise. Use match-and-simplify and
11956 a gimple seq for inserted expressions.
11957 (try_to_simplify): Remove GENERIC stmt combining code.
11958 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
11959 * tree-ssa-pre.c (eliminate_insert): Adjust.
11960 (eliminate_dom_walker::before_dom_children): Likewise.
11961
11962 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11963
11964 * doc/invoke.texi (Optimization Options): Add
11965 -freorder-blocks-algorithm=.
11966 (Optimize Options) <-O>: Add -freorder-blocks.
11967 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
11968 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
11969 <-freorder-blocks>: Also enabled at levels -O and -Os.
11970 <-freorder-blocks-algorithm=>: Document new option.
11971
11972 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11973
11974 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
11975 with flag_reorder_blocks_algorithm.
11976 * common.opt (freorder-blocks-algorithm=): New flag.
11977 (reorder_blocks_algorithm): New enum.
11978 * flag-types.h (reorder_blocks_algorithm): New enum.
11979 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
11980 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
11981
11982 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11983
11984 * bb-reorder.c: Add intro comment.
11985 (reorder_basic_blocks_software_trace_cache): Print a header to
11986 the dump file.
11987 (edge_order): New function.
11988 (reorder_basic_blocks_simple): New function.
11989 (reorder_basic_blocks): Choose between the STC and the simple
11990 algorithms (always choose the former).
11991
11992 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
11993
11994 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
11995 function, factored out from ...
11996 (reorder_basic_blocks): ... here.
11997
11998 2015-10-01 Tom de Vries <tom@codesourcery.com>
11999
12000 * tree-cfg.c (dump_function_to_file): Dump function attributes using
12001 __attribute__(()) string. Move dumping of function attributes to before
12002 function name.
12003
12004 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
12005
12006 PR target/66870
12007 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12008 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12009 based on gold linker version.
12010 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12011 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12012 * configure, config.in: Regenerate.
12013
12014 2015-10-01 Alan Modra <amodra@gmail.com>
12015
12016 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12017 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12018 (rs6000_output_mi_thunk): Likewise.
12019
12020 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12021
12022 * config/nvptx/mkoffload.c (process): Change offload data format.
12023
12024 2015-09-30 Jeff Law <law@redhat.com>
12025
12026 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12027 with constant conditions.
12028 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12029 (remove_ctrl_stmt_and_useless_edges): No longer static.
12030 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12031 (remove_ctrl_stmt_and_useless_edges): Likewise.
12032
12033 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12034 Cesar Philippidis <cesar@codesourcery.com>
12035
12036 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12037 (TARGET_GOACC_VALIDATE_DIMS): Override.
12038 * target.def (TARGET_GOACC): New target hook prefix.
12039 (validate_dims): New hook.
12040 * targhooks.h (default_goacc_validate_dims): New.
12041 * omp-low.c (oacc_validate_dims): New.
12042 (execute_oacc_device_lower): New.
12043 (default_goacc_validate_dims): New.
12044 (pass_data_oacc_device_lower): New.
12045 (pass_oacc_device_lower): New pass.
12046 (make_pass_oacc_device_lower): New.
12047 * tree-pass.h (make_pass_oacc_device_lower): Declare.
12048 * passes.def (pass_oacc_device_lower): Add it.
12049 * doc/tm.texi: Rebuilt.
12050 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12051 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12052
12053 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12054
12055 PR rtl-optimization/67037
12056 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12057
12058 2015-09-30 Bernd Schmidt <bernds@redhat.com>
12059
12060 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12061 * passes.c: Include tree-ssanames.h.
12062 (execute_function_todo): Flush the pending free SSA_NAMEs after
12063 eliminating unreachable basic blocks.
12064 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12065 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12066 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12067 (flush_ssanames_freelist): New function.
12068 (release_ssaname_fn): Put released names on the queue.
12069 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12070 * tree-ssanames.h (flush_ssanames_freelist): Declare.
12071
12072 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12073
12074 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12075 (generate_target_descr_file, generate_target_offloadend_file)
12076 (generate_host_descr_file, prepare_target_image): Pass it on.
12077 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12078 (compile_native, main): Pass it on.
12079 * lto-wrapper.c (compile_offload_image): Likewise.
12080
12081 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12082 Ilya Verbin <ilya.verbin@intel.com>
12083 Andrey Turetskiy <andrey.turetskiy@intel.com>
12084
12085 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12086 (prepare_target_image, main): Refactor argv building to use
12087 obstacks.
12088
12089 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12090
12091 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12092 * config/spu/spu.c (spu_expand_atomic_op): New function.
12093 * config/spu/spu.md (AINT): New mode iterator.
12094 (ATOMIC): New code iterator.
12095 (atomic_name, atomic_pred): New code predicates.
12096 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12097 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12098 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12099 "atomic_<atomic_name>_fetch<mode>"): Likewise.
12100
12101 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
12102
12103 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12104 debug insns.
12105 (scalar_chain::convert_reg): Likewise.
12106
12107 2015-09-30 Richard Biener <rguenther@suse.de>
12108
12109 * builtins.c: Add comment that no new simplifications should
12110 be added here.
12111
12112 2015-09-30 Marek Polacek <polacek@redhat.com>
12113
12114 PR tree-optimization/67690
12115 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12116 reset_flow_sensitive_info_in_bb.
12117 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12118 * tree-ssanames.c: Include "gimple-iterator.h".
12119 (reset_flow_sensitive_info_in_bb): New function.
12120 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12121
12122 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12123
12124 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12125 variable, replacing it with...
12126 (offload_abi): ... this new variable. Adjust all users.
12127 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12128
12129 2015-09-30 Matthias Klose <doko@ubuntu.com>
12130
12131 * configure.ac: Remove extraneous ;;.
12132 * configure: Regenerate.
12133
12134 2015-09-29 James Bowman <james.bowman@ftdichip.com>
12135
12136 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12137 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12138 predicate, disallow register for operand 2.
12139
12140 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
12141
12142 * graphite-dependences.c (scop_get_dependences): Moved in down
12143 in order to be visible to its caller.
12144 * graphite-poly.h: Removed compute_deps, and extend_schedule.
12145
12146 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12147 Aditya Kumar <aditya.k7@samsung.com>
12148
12149 PR tree-optimization/67754
12150 * graphite-optimize-isl.c (optimize_isl): Call
12151 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12152
12153 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12154
12155 * builtins.c (expand_builtin_acc_on_device): Delete.
12156 (expand_builtin): Don't call it.
12157 (fold_builtin_1): Fold acc_on_device.
12158
12159 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
12160
12161 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12162 (ix86_nsaved_sseregs): Likewise.
12163
12164 2015-09-29 Jeff Law <law@redhat.com>
12165
12166 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12167 computation of unused value.
12168
12169 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12170 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12171 inline macro expansion.
12172
12173 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12174
12175 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12176 (gen_shl_sext): Likewise.
12177 * config/sh/sh.md (divsi3): Likewise.
12178 (imm->ext_dest_operand splitter): Likewise.
12179
12180 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12181 Aditya Kumar <aditya.k7@samsung.com>
12182
12183 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12184 (nb_data_writes_in_bb): Remove.
12185 (split_pbb): Remove.
12186 (split_reduction_stmt): Remove.
12187 (is_reduction_operation_p): Remove.
12188 (phi_contains_arg): Remove.
12189 (follow_ssa_with_commutative_ops): Remove.
12190 (detect_commutative_reduction_arg): Remove.
12191 (detect_commutative_reduction_assign): Remove.
12192 (follow_inital_value_to_phi): Remove.
12193 (edge_initial_value_for_loop_phi): Remove.
12194 (initial_value_for_loop_phi): Remove.
12195 (used_outside_reduction): Remove.
12196 (detect_commutative_reduction): Remove.
12197 (translate_scalar_reduction_to_array_for_stmt): Remove.
12198 (remove_phi): Remove.
12199 (dr_indices_valid_in_loop): Remove.
12200 (close_phi_written_to_memory): Remove.
12201 (translate_scalar_reduction_to_array): Remove.
12202 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12203 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12204 (rewrite_commutative_reductions_out_of_ssa): Remove.
12205 (build_poly_scop): Remove call to
12206 rewrite_commutative_reductions_out_of_ssa.
12207
12208 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
12209
12210 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12211 Add new insn types for vector load and store pairs.
12212 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12213 types "neon_ldp{,_q}".
12214 * config/arm/cortex-a57.md (neon_load_c): Add insn types
12215 "neon_ldp{,_q}".
12216 (neon_store_complex): Add insn types "neon_stp{,_q}".
12217 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12218 "neon_{ldp,stp}_q".
12219
12220 2015-09-29 Jeff Law <law@redhat.com>
12221
12222 * config/rx/constraints.md (Int08): Fix undefined left shift
12223 behaviour.
12224 (Sint08, Sint16, Sint24): Likewise.
12225 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12226
12227 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12228 behaviour.
12229
12230 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12231 left shift behaviour.
12232 * config/msp430/constraints.md ('L' constraint): Similarly.
12233 ('Ys' constraint): Similarly.
12234
12235 2015-09-29 Richard Biener <rguenther@suse.de>
12236
12237 PR tree-optimization/67170
12238 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12239 the translate function pointer parameter to get the
12240 bool whether to disambiguate only by reference.
12241 (walk_non_aliased_vuses): Likewise.
12242 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12243 (get_continuation_for_phi_1): Likewise.
12244 (get_continuation_for_phi): Likewise.
12245 (walk_non_aliased_vuses): Likewise.
12246 * tree-ssa-sccvn.c (const_parms): New bitmap.
12247 (vn_reference_lookup_3): Adjust for interface change.
12248 Disambiguate parameters pointing to readonly memory.
12249 (free_scc_vn): Free const_parms.
12250 (run_scc_vn): Initialize const_parms from a fn spec attribute.
12251
12252 2015-09-29 Richard Biener <rguenther@suse.de>
12253
12254 PR tree-optimization/67741
12255 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12256 builtin calls with correct signature.
12257
12258 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
12259
12260 PR target/65105
12261 * config/i386/i386.c: Include dbgcnt.h.
12262 (has_non_address_hard_reg): New.
12263 (convertible_comparison_p): New.
12264 (scalar_to_vector_candidate_p): New.
12265 (remove_non_convertible_regs): New.
12266 (scalar_chain): New.
12267 (scalar_chain::scalar_chain): New.
12268 (scalar_chain::~scalar_chain): New.
12269 (scalar_chain::add_to_queue): New.
12270 (scalar_chain::mark_dual_mode_def): New.
12271 (scalar_chain::analyze_register_chain): New.
12272 (scalar_chain::add_insn): New.
12273 (scalar_chain::build): New.
12274 (scalar_chain::compute_convert_gain): New.
12275 (scalar_chain::replace_with_subreg): New.
12276 (scalar_chain::replace_with_subreg_in_insn): New.
12277 (scalar_chain::emit_conversion_insns): New.
12278 (scalar_chain::make_vector_copies): New.
12279 (scalar_chain::convert_reg): New.
12280 (scalar_chain::convert_op): New.
12281 (scalar_chain::convert_insn): New.
12282 (scalar_chain::convert): New.
12283 (convert_scalars_to_vector): New.
12284 (pass_data_stv): New.
12285 (pass_stv): New.
12286 (make_pass_stv): New.
12287 (ix86_option_override): Created and register stv pass.
12288 (flag_opts): Add -mstv.
12289 (ix86_option_override_internal): Likewise.
12290 * config/i386/i386.md (SWIM1248x): New.
12291 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12292 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12293 (*anddi3_doubleword): New.
12294 (*zext<mode>_doubleword): New.
12295 (*zextsi_doubleword): New.
12296 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12297 (*<code>di3_doubleword): New.
12298 * config/i386/i386.opt (mstv): New.
12299 * dbgcnt.def (stv_conversion): New.
12300
12301 2015-09-29 Tom de Vries <tom@codesourcery.com>
12302
12303 * tree-cfg.c (dump_function_to_file): Dump function attributes.
12304
12305 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
12306
12307 PR target/67716
12308 * config/sh/sh.c (sh_override_options_after_change): New.
12309 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12310 (sh_option_override): Move align_loops, align_jumps and
12311 align_functions handling into sh_override_options_after_change.
12312
12313 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12314
12315 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12316 (nvptx_record_offload_symbol): Record function execution geometry.
12317 * config/nvptx/mkoffload.c (process): Include launch geometry in
12318 function data.
12319 * omp-low.c (oacc_launch_pack): New.
12320 (replace_oacc_fn_attrib): New.
12321 (set_oacc_fn_attrib): New.
12322 (get_oacc_fn_attrib): New.
12323 (expand_omp_target): Create keyed varargs for GOACC_parallel call
12324 generation.
12325 * omp-low.h (get_oacc_fn_attrib): Declare.
12326 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12327 (DEF_FUNCTION_TYPE_VAR_11): Delete.
12328 * tree.h (OMP_CLAUSE_EXPR): New.
12329 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12330
12331 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12332 Sebastian Pop <s.pop@samsung.com>
12333
12334 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12335
12336 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12337 Sebastian Pop <s.pop@samsung.com>
12338
12339 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12340 * graphite-scop-detection.c (struct sese_l): New type.
12341 (get_entry_bb): API for getting entry bb of SESE.
12342 (get_exit_bb): API for getting exit bb of SESE.
12343 (class debug_printer): New type. Simple printer in debug mode.
12344 (trivially_empty_bb_p): New. Return true when BB is empty or
12345 contains only debug instructions.
12346 (graphite_can_represent_expr): Call scalar_evoution_in_region
12347 instead of analyze_scalar_evolution. Pass in scop instead of only
12348 the scop entry.
12349 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12350 scop entry.
12351 (stmt_simple_for_scop_p): Same.
12352 (harmful_stmt_in_bb): Same.
12353 (graphite_can_represent_loop): Deleted.
12354 (struct scopdet_info): Deleted.
12355 (scopdet_basic_block_info): Deleted.
12356 (build_scops_1): Deleted.
12357 (bb_in_sd_region): Deleted.
12358 (find_single_entry_edge): Deleted.
12359 (find_single_exit_edge): Deleted.
12360 (create_single_entry_edge): Deleted.
12361 (sd_region_without_exit): Deleted.
12362 (create_single_exit_edge): Deleted.
12363 (unmark_exit_edges): Deleted.
12364 (mark_exit_edges): Deleted.
12365 (create_sese_edges): Deleted.
12366 (build_graphite_scops): Deleted.
12367 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12368 (build_scops): Use the new scop_builder to build scops.
12369 (dot_all_scops_1): Use the new pretty printer. Print loop father
12370 as well.
12371 (loop_body_is_valid_scop): New. Return true if loop body is a
12372 valid scop.
12373 (class scop_builder): New. Builds SCoPs for polyhedral
12374 optimizations.
12375 (scop_builder): New constructor.
12376 (static sese_l invalid_sese): sese_l with invalid edges.
12377 (get_sese): Get an sese (from a loop) if possible, invalid_sese
12378 otherwise.
12379 (get_nearest_dom_with_single_entry): Get nearest dominator of a
12380 basic_block with single entry. Return NULL if we get to the
12381 beginning of a function.
12382 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12383 a basic_block with single exit. Return NULL if we get to the
12384 beginning of a function.
12385 (print_sese): Pretty-print SESE.
12386 (merge_sese): Merge two SESEs if possible and return the new SESE.
12387 (build_scop_depth): Start building the SCoP within a loop nest.
12388 (build_scop_breadth): Start building the SCoP at a single loop
12389 depth. Merge adjacent SESEs if valid.
12390 (can_represent_loop_1): Returns true if Graphite can represent
12391 loop inside SCoP. Helper for can_represent_loop.
12392 (can_represent_loop): Returns true if Graphite can represent LOOP
12393 and all its nested loops in SCoP.
12394 (loop_is_valid_scop): Returns true if LOOP and all its nests
12395 constitute a valid SCoP.
12396 (region_has_one_loop): Returns true of a region has only one loop.
12397 (add_scop): Add SCoP to the list of valid scops. Removes an
12398 already existing scop if it intersects with or subsumed by this one.
12399 (harmful_stmt_in_region): Returns true if SCoP has any statment
12400 which cannot be represented by Graphite.
12401 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12402 (remove_subscops): Remove any SCoP from the list of already found
12403 SCoPs, if subsumed by S1.
12404 (intersects): Return true if region bounded by SCoPs S1 and S2
12405 intersect.
12406 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12407 * graphite.c (print_graphite_scop_statistics):
12408 (print_graphite_statistics): Print SCoP info while debugging.
12409 (graphite_initialize): Early exit in case number of loops in a
12410 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12411 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12412 (graphite_finalize):
12413 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12414 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12415 (recompute_all_dominators): Recalculate POST_DOMINATORS.
12416 * tree-cfg.c (print_loops): Print the function name while printing
12417 loops.
12418
12419 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12420 Sebastian Pop <s.pop@samsung.com>
12421
12422 PR tree-optimization/67700
12423 * graphite-sese-to-poly.c (parameter_index_in_region): Call
12424 invariant_in_sese_p_rec.
12425 (extract_affine): Same.
12426 (rewrite_cross_bb_scalar_deps): Call update_ssa.
12427 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
12428 * sese.h (invariant_in_sese_p_rec): Declare.
12429
12430 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
12431
12432 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
12433
12434 2015-09-28 Jiong Wang <jiong.wang@arm.com>
12435
12436 Revert:
12437 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12438 Jiong Wang <jiong.wang@arm.com>
12439
12440 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12441 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12442 (REG_CLASS_NAMES): Likewise.
12443 (REG_CLASS_CONTENTS): Likewise.
12444 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12445 (aarch64_register_move_cost): Likewise.
12446 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12447 possible.
12448 * config/aarch64/constraints.md (Uc0): New constraint.
12449
12450 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
12451
12452 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
12453
12454 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
12455
12456 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
12457 SECTION_EXCLUDE in XO mapping class.
12458
12459 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12460
12461 PR target/54236
12462 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
12463 and handle ne and eq codes.
12464 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12465 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
12466 CONST_INT_P. Use reverse_condition.
12467 (sh_split_treg_set_expr): Likewise.
12468
12469 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
12470
12471 * config/arm/types.md (type): Add rotate_imm.
12472 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
12473 ROR immediate case.
12474 (*rorsi3_insn_uxtw): Likewise.
12475 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
12476 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
12477 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
12478
12479 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12480
12481 PR rtl-optimization/67481
12482 * ifcvt.c (contains_ccmode_rtx_p): New function.
12483 (insn_valid_noce_process_p): Use it.
12484
12485 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12486
12487 PR rtl-optimization/67456
12488 PR rtl-optimization/67464
12489 PR rtl-optimization/67465
12490 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
12491 move in the mode of x. Handle combination of complex and simple
12492 block pairs as well as the case when one is empty.
12493
12494 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12495
12496 * doc/gimple.texi: Update references to gimple_statement_base.
12497 * gdbhooks.py: Likewise.
12498 * gimple.h: Likewise.
12499
12500 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12501
12502 * config/sparc/driver-sparc.c: map LEON to leon3
12503
12504 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12505
12506 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
12507 and make it inverse to change default
12508 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
12509 supervisor mode
12510 * doc/invoke.texi: Document change of default
12511
12512 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12513
12514 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
12515 true on %f0 for a target without FPU.
12516 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
12517 without FPU.
12518 (untyped_return): Do not load %f0 for a target without FPU.
12519
12520 2015-09-28 Andrew Pinski <apinski@cavium.com>
12521
12522 * config/aarch64/aarch64.md (prefetch):
12523 Change the predicate of operand 0 to register_operand.
12524
12525 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
12526
12527 * config/i386/predicates.md (register_sse4nonimm_operand): New
12528 predicate.
12529 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
12530 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
12531 Use register_sse4nonimm_operand as operand 0 predicate.
12532 (*vec_extractv8hi_sse2): Remove insn pattern.
12533 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
12534 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
12535
12536 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
12537 Kaz Kojima <kkojima@gcc.gnu.org>
12538
12539 PR target/67391
12540 * config/sh/sh-protos.h (sh_lra_p): Declare.
12541 * config/sh/sh.c (sh_lra_p): Make non-static.
12542 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
12543 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
12544 Expand into addsi3_scr if operands[2] if needed.
12545 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
12546 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
12547 (addsi3_scr, *addsi3): New insn_and_split patterns.
12548
12549 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
12550
12551 PR rtl-optimization/64164
12552 PR tree-optimization/67312
12553 PR middle-end/67340
12554 PR middle-end/67490
12555 PR bootstrap/67597
12556 * cfgexpand.c (parm_in_stack_slot_p): Remove.
12557 (ssa_default_def_partition): Remove.
12558 (get_rtl_for_parm_ssa_default_def): Remove.
12559 (set_rtl): Check that RTL assignments match expectations.
12560 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
12561 default def location for params and results. Record SSA names
12562 or types in REG and MEM attrs, respectively.
12563 (set_parm_rtl): New.
12564 (expand_one_ssa_partition): Drop logic that assigned MEMs with
12565 unassigned addresses.
12566 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
12567 deferred stack alloc vars.
12568 (expand_used_vars): Skip partitions holding parm default defs.
12569 Move adjust_one_expanded_partition_var loop...
12570 (pass_expand::execute): ... here. Drop redundant assert.
12571 Adjust comments before the final loop over all ssa names.
12572 Require assigned rtl of parms and results to match exactly.
12573 Reset its attributes to match them, not any other variables in
12574 the same partition.
12575 (expand_debug_expr): Use entry value for PARM's default defs
12576 only iff they have zero nondebug uses.
12577 * cfgexpand.h (parm_in_stack_slot_p): Remove.
12578 (get_rtl_for_parm_ssa_default_def): Remove.
12579 (set_parm_rtl): Declare.
12580 * doc/invoke.texi: Improve wording.
12581 * explow.c (promote_decl_mode): Fix promote_function_mode for
12582 result decls not by reference.
12583 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
12584 bypass TYPE_MODE to get the actual vector mode.
12585 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
12586 2015-08-19's changes as follows. Drop include of
12587 basic-block.h and df.h.
12588 (rtl_for_parm): Remove.
12589 (maybe_reset_rtl_for_parm): Remove.
12590 (parm_in_unassigned_mem_p): Remove.
12591 (use_register_for_decl): Add logic for RESULT_DECLs matching
12592 assign_parms' behavior.
12593 (split_complex_args): Revert.
12594 (assign_parms_augmented_arg_list): Revert. Add comment
12595 referencing the logic above.
12596 (assign_parm_adjust_stack_rtl): Revert.
12597 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
12598 of SET_DECL_RTL. Set up a REG if the parm demands so.
12599 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
12600 calls into a single set_parm_rtl. Set up a temporary RTL
12601 temporarily for expand_assignment.
12602 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
12603 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
12604 (assign_bounds): Revert.
12605 (assign_parms): Revert. Use set_parm_rtl.
12606 (allocate_struct_function): Relayout result and parms of
12607 non-abstruct functions.
12608 (expand_function_start): Revert. Use set_parm_rtl. If the
12609 result is not a hard reg, create a pseudo from the promoted
12610 mode of the default def. Promote static chain mode.
12611 * tree-outof-ssa.c (remove_ssa_form): Drop unused
12612 partition_has_default_def. Set up
12613 partitions_for_parm_default_defs.
12614 (finish_out_of_ssa): Remove partition_has_default_def.
12615 Release partitions_for_parm_default_defs.
12616 * tree-outof-ssa.h (struct ssaexpand): Remove
12617 partition_has_default_def. Add
12618 partitions_for_parm_default_defs.
12619 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
12620 stor-layout.h.
12621 (build_ssa_conflict_graph): Fix conflict-detection of default
12622 defs of even unused default defs of params and results.
12623 (for_all_parms): New.
12624 (create_default_def): New.
12625 (register_default_def): New.
12626 (coalesce_with_default): New.
12627 (create_outofssa_var_map): Create default defs for all parms
12628 and results, and register their partitions. Add GIMPLE_RETURN
12629 operands as coalesce candidates with results. Add default
12630 defs of each parm or result as coalesce candidates with its
12631 other defs. Mark each result def, and each default def of
12632 parms, as used_in_copy.
12633 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
12634 with the ssa names, even anonymous ones. Drop
12635 parm_in_stack_slot_p calls. Require same signedness and
12636 alignment.
12637 (coalesce_ssa_name): Add coalesce candidates for all defs of
12638 each parm and result, even unused ones.
12639 (parm_default_def_partition_arg): New type.
12640 (set_parm_default_def_partition): New.
12641 (get_parm_default_def_partitions): New.
12642 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
12643 * tree-ssa-live.c (partition_view_init): Regard unused defs of
12644 parms and results as used.
12645 (verify_live_on_entry): Don't error out just because they're
12646 not live.
12647
12648 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
12649
12650 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12651 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
12652 (output_fde): Don't output length for debug_frame on AIX.
12653 (output_call_frame_info): Don't output length for debug_frame on AIX.
12654 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
12655 HAVE_XCOFF_DWARF_EXTRAS.
12656 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
12657 HAVE_XCOFF_DWARF_EXTRAS.
12658 (output_compilation_unit_header): Don't output length on AIX.
12659 (output_pubnames): Don't output length on AIX.
12660 (output_aranges): Delete argument. Compute length locally. Don't
12661 output length on AIX.
12662 (output_line_info): Don't output length on AIX.
12663 (dwarf2out_finish): Don't compute aranges_length.
12664 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12665 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
12666 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
12667 symbol decoration for AIX.
12668 (rs6000_xcoff_debug_unwind_info): New.
12669 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
12670 for SECTION_DEBUG.
12671 (rs6000_xcoff_declare_function_name): Emit different
12672 .function pseudo-op when DWARF2_DEBUG. Don't call
12673 xcoffout_declare_function for DWARF2_DEBUG.
12674 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
12675 Redefine.
12676 * config/rs6000/aix71.h: New.
12677 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
12678 locations support.
12679 * configure: Regenerate.
12680 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
12681 DWARF support.
12682
12683 2015-09-26 Jeff Law <law@redhat.com>
12684
12685 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
12686 behaviour.
12687 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
12688 behaviour.
12689
12690 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
12691 behaviour
12692
12693 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
12694 undefined behaviour.
12695
12696 * config/cris/cris.md (asrandb): Fix left shift undefined
12697 behaviour.
12698 (asrandw): Likewise.
12699
12700 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
12701
12702 PR target/61578
12703 * lra-constarints.c (match_reload): Check presence of the input pseudo
12704 in the output operand.
12705
12706 2015-09-25 Tobias Burnus <burnus@net-b.de>
12707
12708 * doc/invoke.texi (-fsanitize): Minor wording tweak.
12709
12710 2015-09-25 Tobias Burnus <burnus@net-b.de>
12711
12712 * doc/invoke.texi (-fsanitize): Update URLs.
12713
12714 2015-09-25 Teresa Johnson <tejohnson@google.com>
12715
12716 * opts.c (finish_options): Unset -freorder-blocks-and-partition
12717 if not using profile.
12718
12719 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12720
12721 PR pretty-print/67567
12722 * pretty-print.c (pp_string): Add gcc_checking_assert.
12723 * pretty-print.h (output_buffer_append_r): Likewise.
12724
12725 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
12726
12727 PR target/67675
12728 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
12729 addr2 individually. Don't emit logical or insn if one is known to
12730 be aligned approriately.
12731 (sh_expand_cmpnstr): Likewise.
12732
12733 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
12734
12735 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
12736 __builtin_aarch64_fp[sc]r arguments into a register.
12737
12738 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
12739
12740 * config.gcc (x86_archs): Replace lakemount with lakemont.
12741 (with_cpu): Likewise.
12742 (with_arch): Likewise.
12743 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12744 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
12745 __tune_lakemount__ with __tune_lakemont__.
12746 * config/i386/i386.c (lakemount_cost): Renamed to ...
12747 (lakemont_cost): This.
12748 (m_LAKEMOUNT): Renamed to ...
12749 (m_LAKEMONT): This.
12750 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
12751 (processor_target_table): Replace "lakemount" with "lakemont".
12752 (processor_alias_table): Likewise.
12753 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
12754 PROCESSOR_LAKEMONT.
12755 (ix86_adjust_cost): Likewise.
12756 (ia32_multipass_dfa_lookahead): Likewise.
12757 * config/i386/i386.h (processor_type): Likewise.
12758 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
12759 * doc/invoke.texi: Replace lakemount with lakemont. Replace
12760 Lakemount with Lakemont.
12761
12762 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
12763
12764 * config.gcc (x86_archs): Replace iamcu with lakemount.
12765 (with_cpu): Likewise.
12766 (with_arch): Likewise.
12767 * doc/invoke.texi: Likewise.
12768 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12769 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
12770 __tune_iamcu__ with __tune_lakemount__.
12771 * config/i386/i386.c (iamcu_cost): Renamed to ...
12772 (lakemount_cost): This.
12773 (m_IAMCU): Renamed to ...
12774 (m_LAKEMOUNT): This.
12775 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
12776 (processor_target_table): Replace "iamcu" with "lakemount".
12777 (processor_alias_table): Likewise.
12778 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
12779 PROCESSOR_LAKEMOUNT.
12780 (ix86_adjust_cost): Likewise.
12781 (ia32_multipass_dfa_lookahead): Likewise.
12782 * config/i386/i386.h (processor_type): Likewise.
12783 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
12784
12785 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
12786
12787 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
12788 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
12789 Declare.
12790 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
12791 (pa_expand_compare_and_swap_loop): New.
12792 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
12793 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
12794 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
12795 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
12796 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
12797 Revise.
12798
12799 2015-09-24 Michael Collison <michael.collison@linaro.org>
12800
12801 PR other/57195
12802 * read-md.c (read_name): Allow mode iterators inside angle
12803 brackets in rtl expressions.
12804
12805 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
12806
12807 PR target/61578
12808 * ira-color.c (update_allocno_cost): Add parameter.
12809 (update_costs_from_allocno): Decrease conflict cost. Pass the new
12810 parameter.
12811
12812 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
12813
12814 PR driver/67640
12815 * opts-common.c (prune_options): Discard all -fdiagnostics-color
12816 but the last one, which is moved to the front to be processed
12817 first.
12818 * opts.c (enable_warning_as_error): Reject options that do not
12819 control warnings.
12820
12821 2015-09-24 Jiong Wang <jiong.wang@arm.com>
12822
12823 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
12824
12825 2015-09-24 Jiong Wang <jiong.wang@arm.com>
12826
12827 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
12828 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
12829 (aarch64_cannot_force_const_mem): Likewise.
12830 (aarch64_classify_address): Likewise.
12831 (aarch64_classify_symbolic_expression): Likewise.
12832 (aarch64_print_operand): Likewise.
12833 (aarch64_classify_symbol): Likewise.
12834 (aarch64_mov_operand_p): Likewise.
12835 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
12836 (aarch64_mov_operand): Likewise.
12837
12838 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
12839
12840 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
12841 for info->spe_gp_size.
12842
12843 2015-09-24 Richard Biener <rguenther@suse.de>
12844
12845 PR lto/67699
12846 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
12847 abstract origins.
12848
12849 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
12850
12851 * tree-object-size.c (plus_stmt_object_size)
12852 (cond_expr_object_size): Change the formal parameters from gimple
12853 to gimple *.
12854 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
12855 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
12856 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
12857
12858 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12859
12860 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
12861 Check for ld -type pie on Solaris 11.x and 12.
12862 * configure: Regenerate.
12863 * config.in: Regenerate.
12864
12865 * gcc.c (LD_PIE_SPEC): Allow redefinition.
12866
12867 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
12868 (STARTFILE_SPEC): Use it.
12869 (ENDFILE_CRTEND_SPEC): Define.
12870 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
12871 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
12872 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
12873 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
12874 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
12875 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
12876 (ENDFILE_ARCH_SPEC): Define.
12877 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
12878
12879 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12880
12881 * configure.ac (gcc_cv_solaris_crts): New test.
12882 * configure. Regenerate.
12883 * config.in: Regenerate.
12884 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
12885 HAVE_SOLARIS_CRTS variant.
12886
12887 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12888
12889 * tree-inline.h (count_insns_seq): Delete prototype.
12890 (estimate_num_insns_seq): Define prototype.
12891 * tree-inline.c (count_insns_seq): Delete.
12892 (estimate_num_insns_seq): Remove static qualifier.
12893 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
12894 with estimate_num_insns_seq.
12895
12896 2015-09-24 Richard Biener <rguenther@suse.de>
12897
12898 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
12899 members.
12900 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
12901 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
12902 offset.
12903 (ao_ref_init_from_vn_reference): Record clique and base in the
12904 built base.
12905 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
12906
12907 2015-09-24 Richard Biener <rguenther@suse.de>
12908
12909 PR tree-optimization/48885
12910 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
12911 as not including any restrict tags from other pointers.
12912
12913 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12914
12915 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
12916 character when appending to offload_targets.
12917
12918 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
12919 offload targets by commas, not colons.
12920 * config.in: Regenerate.
12921 * configure: Likewise.
12922 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
12923 instead of setting up the default offload targets here...
12924 (process_command): ..., do it here.
12925 libgomp/
12926 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
12927 targets are separated by commas.
12928 * config.h.in: Regenerate.
12929
12930 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
12931 Nathan Sidwell <nathan@codesourcery.com>
12932
12933 * omp-low.h (omp_reduction_init_op): Declare.
12934 * omp-low.c (omp_reduction_init_op): New, broken out of ...
12935 (omp_reduction_init): ... here. Call it.
12936 * tree-parloops.c (initialize_reductions): Use
12937 omp_reduction_init_op.
12938
12939 2015-09-23 Richard Biener <rguenther@suse.de>
12940
12941 PR middle-end/67662
12942 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
12943 undefined overflow unless they will cancel out.
12944
12945 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12946
12947 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
12948 insn emit.
12949
12950 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
12951
12952 PR c/49655
12953 * opts.h (write_langs): Declare.
12954 * opts-global.c (write_langs): Make it extern.
12955
12956 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
12957
12958 PR target/67391
12959 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
12960 overlapping regs when matching the pattern.
12961
12962 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
12963
12964 * config/aarch64/aarch64-simd.md
12965 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
12966 (aarch64_float_truncate_hi_v4sf_le): New.
12967 (aarch64_float_truncate_hi_v4sf_be): Likewise.
12968
12969 2015-09-23 Richard Biener <rguenther@suse.de>
12970
12971 * tree-ssa-structalias.c (intra_create_variable_infos): Build
12972 representatives for all restrict qualified pointer destinations.
12973
12974 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
12975
12976 * config/i386/i386.md (define_code_attr mshift): New.
12977 (define_mode_iterator SWI1248_AVX512BW): Rename ...
12978 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
12979 only.
12980 (define_insn "*k<logic><mode>"): Use new iterator name.
12981 (define_insn "*<mshift><mode>3"): New.
12982
12983 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
12984
12985 PR middle-end/67649
12986 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
12987 mark the block as accessible.
12988
12989 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
12990
12991 * function.c (thread_prologue_and_epilogue_insns): Delete
12992 orig_entry_edge argument to try_shrink_wrapping.
12993 * shrink-wrap.c (can_get_prologue): New function.
12994 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
12995 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
12996 can_get_prologue where needed. Remove code that finds a single
12997 edge for the prologue. Remove code that tests if any reg clobbered
12998 by the prologue is live on the prologue edge. Remove code that finds
12999 the new prologue edge after duplicating blocks. Make a new prologue
13000 block and edge.
13001 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13002
13003 2015-09-22 Jeff Law <law@redhat.com>
13004
13005 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13006 behavior.
13007
13008 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
13009
13010 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
13011 -Wtemplates, -Wnamespaces): Document.
13012
13013 2015-09-22 Tom de Vries <tom@codesourcery.com>
13014
13015 PR tree-optimization/67671
13016 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13017 pointer references as restrict.
13018
13019 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13020
13021 * config/nios2/nios2.c (nios2_legitimize_address): When handling
13022 'reg + reloc' cases, allow first operand to be non-REG, and use
13023 force_reg() to enforce address pattern.
13024
13025 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
13026
13027 PR target/67480
13028 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13029 (define_mode_iterator VI12_AVX_AVX512F): New.
13030 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13031 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13032 (define_insn "*<code><mode>3"): ... Into new pattern using
13033 VI12_AVX_AVX512F iterators without masking.
13034
13035 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13036
13037 * config.gcc: Support "skylake-avx512".
13038 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13039 PROCESSOR_SKYLAKE_AVX512.
13040 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13041 (processor_target_table): Add "skylake-avx512".
13042 (PTA_SKYLAKE_AVX512): Define.
13043 (ix86_option_override_internal): Add "skylake_avx512".
13044 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13045 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13046 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13047 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13048 * doc/invoke.texi (skylake-avx512): New.
13049
13050 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13051
13052 * config/i386/i386.md (define_insn "kunpckhi"): Fix
13053 operand in pattern.
13054 (define_insn "kunpcksi"): Ditto.
13055 (define_insn "kunpckdi"): Ditto.
13056
13057 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13058
13059 * config/i386/i386.md (define_split not/xor SWI1248x): Use
13060 iterator instead of fixed modes.
13061
13062 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13063
13064 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13065 Adjust declaration.
13066 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13067 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
13068 out_result. Update to support update-fetch operations.
13069 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13070 Adjust for change to aarch64_gen_atomic_ldop.
13071 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13072 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13073 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13074 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13075 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13076
13077 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13078
13079 * config/aarch64/aarch64-protos.h
13080 (aarch64_atomic_ldop_supported_p): Declare.
13081 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13082 (enum aarch64_atomic_load_op_code): New.
13083 (aarch64_emit_atomic_load_op): New.
13084 (aarch64_gen_atomic_ldop): Update to support load-operate
13085 patterns.
13086 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13087 to an expander.
13088 (aarch64_atomic_<atomic_optab><mode>): New.
13089 (aarch64_atomic_<atomic_optab><mode>_lse): New.
13090 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13091 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13092 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13093
13094 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13095
13096 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13097 (UNSPECV_ATOMIC_LDOP_OR): New.
13098 (UNSPECV_ATOMIC_LDOP_BIC): New.
13099 (UNSPECV_ATOMIC_LDOP_XOR): New.
13100 (UNSPECV_ATOMIC_LDOP_PLUS): New.
13101 (ATOMIC_LDOP): New.
13102 (atomic_ldop): New.
13103 (aarch64_atomic_load<atomic_ldop><mode>): New.
13104
13105 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13106
13107 * config/aarch64/aarch64.md
13108 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13109 pattern.
13110
13111 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13112
13113 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13114 Declare.
13115 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13116 (aarch64_gen_atomic_ldop): New.
13117 (aarch64_split_atomic_op): Fix whitespace and add a comment.
13118 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13119 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13120 (atomic_exchange<mode>): Replace with an expander.
13121 (aarch64_atomic_exchange<mode>): New.
13122 (aarch64_atomic_exchange<mode>_lse): New.
13123 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13124 (aarch64_atomic_swp<mode>): New.
13125
13126 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13127
13128 * tree-inline.c (expand_call_inline): Use inform for extra note.
13129 Do not give a note with UNKNOWN_LOCATION.
13130 Replace input_location with gimple_location (stmt).
13131 Use true/false instead of TRUE/FALSE.
13132
13133 2015-09-22 Tom de Vries <tom@codesourcery.com>
13134
13135 PR tree-optimization/67666
13136 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13137 with single field non-conservative.
13138
13139 2015-09-21 David S. Miller <davem@davemloft.net>
13140
13141 PR/67622
13142 Revert:
13143 2015-09-11 David S. Miller <davem@davemloft.net>
13144
13145 * config/sparc/constraints.md: Make "U" constraint a real register
13146 constraint.
13147 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13148 (D_MODES, DF_MODES): Add missing cast.
13149 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13150 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13151 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13152 cost to 8.
13153 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13154 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13155 provide these insn when flag_pic.
13156
13157 2015-09-17 David S. Miller <davem@davemloft.net>
13158
13159 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13160 Declare.
13161 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13162 function.
13163 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13164 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13165 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13166 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13167 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13168 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13169 provide when flag_pic.
13170
13171 2015-09-21 Jeff Law <law@redhat.com>
13172
13173 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13174 behavior.
13175
13176 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13177
13178 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13179
13180 2015-09-21 Richard Biener <rguenther@suse.de>
13181
13182 * passes.c (rest_of_decl_compilation): Do not call
13183 dwarf2out_early_global_decl for aliases.
13184
13185 2015-09-21 Richard Biener <rguenther@suse.de>
13186
13187 PR debug/67664
13188 * dwarf2out.c (add_location_or_const_value_attribute): Remove
13189 attribute parameter. Early exit if either DW_AT_const_value
13190 or DW_AT_location are present already.
13191 (gen_variable_die): Adjust caller.
13192 (dwarf2out_late_global_decl): Likewise.
13193
13194 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13195
13196 PR target/67657
13197 * config/sh/sh.c (sh_remove_overlapping_post_inc,
13198 sh_peephole_emit_move_insn): Add new functions.
13199 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13200 sh_peephole_emit_move_insn): Declere them.
13201 * config/sh/sh.md: Use them in various peephole2 patterns.
13202
13203 2015-09-21 Richard Biener <rguenther@suse.de>
13204
13205 PR middle-end/67651
13206 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13207 address with -fno-delete-null-pointer-checks.
13208
13209 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
13210
13211 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13212 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13213 (reduc_uplus_v16qi): Remove.
13214
13215 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13216 (reduc_<VEC_reduc_name>_v2df): Remove.
13217 (reduc_<VEC_reduc_name>_v4sf): Remove.
13218 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13219
13220 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13221 gen_ function by removing * prefix.
13222 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13223
13224 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13225
13226 PR middle-end/60832
13227 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13228 Print i_bound without converting it to a tree.
13229
13230 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
13231
13232 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13233 operands[4] operands[5] swap with std::swap, removed tmp variable.
13234 (arm_evpc_neon_vzip): Replaced in0/in1 and
13235 out0/out1 swaps with std::swap, removed x variable.
13236 (arm_evpc_neon_vtrn): Replaced in0/int1 and
13237 out0/out1 swaos with std::swap, removed x variable.
13238 (arm_expand_vec_perm_const_1): Replaced
13239 d->op0/d->op1 swap with std::swap, removed x variable.
13240 (arm_evpc_neon_vuzp): Replaced in0/in1 and
13241 out0/out1 swaps with std::swap, removed x variable.
13242
13243 2015-09-21 Jonathan Yong <10walls@gmail.com>
13244
13245 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13246 sysroot/usr/lib/32api for additional win32 libraries,
13247 fixes failing Cygwin bootstrapping.
13248
13249 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13250
13251 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13252
13253 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13254
13255 PR target/67126
13256 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13257 (*mov_t_msb_neg): Rewrite negc pattern.
13258
13259 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13260
13261 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13262 immediate generation code.
13263
13264 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13265
13266 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13267 redundant immediate generation code.
13268
13269 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13270
13271 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13272 (AARCH64_NUM_BITMASKS): Remove.
13273 (aarch64_bitmasks_cmp): Remove.
13274 (aarch64_build_bitmask_table): Remove.
13275
13276 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13277
13278 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13279 slow immediate matching loops with a faster algorithm.
13280
13281 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13282
13283 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13284 faster algorithm.
13285
13286 2015-09-20 Jeff Law <law@redhat.com>
13287
13288 PR tree-optimization/47679
13289 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13290 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13291 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13292 (thread_through_normal_block): Use record_temporary_equivalences.
13293
13294 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
13295
13296 * coretypes.h (gimple): Change typedef to be a forward declaration.
13297 * gimple.h (gimple_statement_base): rename to gimple.
13298 * (all functions and types using gimple): Adjust.
13299 * *.[ch]: Likewise.
13300
13301 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
13302 David Edelsohn <dje.gcc@gmail.com>
13303
13304 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13305 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13306 (EH_FRAME_THROUGH_COLLECT2): Define.
13307 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13308 (ASM_OUTPUT_DWARF_PCREL): Define.
13309 (ASM_OUTPUT_DWARF_DATAREL): Define.
13310
13311 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
13312
13313 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13314 of TARGET_ELF32.
13315
13316 2015-09-18 Jeff Law <law@redhat.com>
13317
13318 PR tree-optimization/47679
13319 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
13320 it here ...
13321 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13322 object. Update constructor.
13323 (pass_dominator::execute): Corresponding chagnes to declaration
13324 and initialization of avail_exprs_stack. Update constructor call
13325 for dom_opt_dom_walker object.
13326 (lookup_avail_expr, record_cond): Accept additional argument. Pass
13327 it down to children as needed.
13328 (record_equivalences_from_incoming_edge): Likewise.
13329 (eliminate_redundant_computations): Likewise.
13330 (record_equivalences_from_stmt): Likewise.
13331 (simplify_stmt_for_jump_threading): Likewise.
13332 (record_temporary_equivalences): Likewise.
13333 (optimize_stmt): Likewise.
13334 (dom_opt_dom_walker::thread_across_edge): Update access to
13335 avail_exprs_stack object and pass it to children as needed.
13336 (dom_opt_dom_walker::before_dom_children): Similarly.
13337 (dom_opt_dom_walker::after_dom_children): Similarly.
13338 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13339 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13340 Add avail_expr_stack argument. Pass it to children as needed.
13341 (dummy_simplify): Likewise.
13342 (simplify_control_stmt_condition): Likewise.
13343 (thread_around_empty_blocks): Likewise.
13344 (thread_through_normal_block): Likewise.
13345 (thread_across_edge): Likewise.
13346 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13347 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13348
13349 PR tree-optimization/47679
13350 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
13351 it here ...
13352 (dom_opt_dom_walker): New private member holding the const_and_copies
13353 object. Update constructor.
13354 (pass_dominator::execute): Corresponding changes to declaration
13355 and initialization of const_and_copies. Update constructor call
13356 for the dom_opt_dom_walker object.
13357 (record_temporary_equivalences): Accept const_and_copies argument
13358 pass it down to children as needed.
13359 (record_equality): Likewise.
13360 (record_equivalences_from_incoming_edge): Likewise.
13361 (cprop_into_successor_phis, optimize_stmt): Likewise.
13362 (eliminate_redundant_computations): Likewise.
13363 (dom_opt_dom_walker::thread_across_edge): Update access to
13364 const_and_copies object and pass it to children as needed.
13365 (dom_opt_dom_walker::before_dom_children): Similarly.
13366 (dom_opt_dom_walker::after_dom_children): Similarly.
13367
13368 PR tree-optimization/47679
13369 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
13370 it into the avail_exprs_stack class.
13371 (pass_dominator::execute): Corresponding changes to declaration
13372 and initialization of avail_exprs. Pass avail_exprs to
13373 dump_dominator_optimization_stats.
13374 (record_cond): Extract avail_exprs from avail_exprs_stack.
13375 (lookup_avail_expr): Similarly.
13376 (htab_staticstics): Remove unnecessary prototype. Move to earlier
13377 position in file.
13378 (dump_dominator_optimization_stats): Make static and prototype.
13379 Add argument for the hash table to dump.
13380 (debug_dominator_optimization_stats): Remove.
13381 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13382 prototype.
13383 (debug_dominator_optimization_stats): Similarly.
13384 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13385 "void" in prototype for pop_to_marker method. Add accessor method
13386 for the underlying avail_exprs table.
13387
13388 * tree-ssa-threadedge.c: Remove trailing whitespace.
13389
13390 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
13391
13392 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13393 unsigned.
13394 (pa_ldil_cint_p): Likewise.
13395 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13396 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13397 Update callers.
13398 * config/pa/pa.md: Likewise.
13399
13400 2015-09-18 David Malcolm <dmalcolm@redhat.com>
13401
13402 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13403 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13404 (diagnostic_show_locus): Likewise.
13405 (diagnostic_print_caret_line): Likewise.
13406 * diagnostic-show-locus.c: New file.
13407
13408 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
13409
13410 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13411 "back" parameter. Declare label in #if block.
13412
13413 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
13414
13415 PR middle-end/67619
13416 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13417 the address to a register.
13418
13419 2015-09-18 Jeff Law <law@redhat.com>
13420
13421 PR tree-optimization/47679
13422 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13423 * tree-ssa-dom.c: Remove unnecessary header includes.
13424 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
13425 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
13426 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
13427 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
13428 (pass_phi_only_cprop::execute): Likewise.
13429 (make_pass_phi_only_cprop): Likewise.
13430 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
13431 uses of file scoped statics by passing the required objects
13432 as parameters wherever needed.
13433
13434 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
13435 David Edelsohn <dje.gcc@gmail.com>
13436
13437 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
13438 EH_FRAME_THROUGH_COLLECT2.
13439 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
13440 DW_EH_PE_datarel.
13441 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
13442 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
13443 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
13444 * except.c (switch_to_exception_section): Use a read-only section
13445 even if EH_FRAME_SECTION_NAME is undefined.
13446 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
13447 * collect2.c (write_c_file_stat): Provide dbase on AIX.
13448 (scan_prog_file): Don't export __dso_handle nor
13449 __gcc_unwind_dbase.
13450 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13451 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13452 (ASM_OUTPUT_DWARF_PCREL): Define.
13453 (ASM_OUTPUT_DWARF_DATAREL): Define.
13454 (EH_FRAME_THROUGH_COLLECT2): Define.
13455 (EH_FRAME_IN_DATA_SECTION): Delete.
13456 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
13457 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
13458 Declare.
13459 (rs6000_asm_output_dwarf_datarel): Declare.
13460 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
13461 (rs6000_aix_asm_output_dwarf_datarel): New.
13462 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
13463 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
13464 (EH_FRAME_THROUGH_COLLECT2): Define.
13465 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
13466 (EH_FRAME_THROUGH_COLLECT2): Define.
13467 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13468 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
13469 (EH_FRAME_THROUGH_COLLECT2): New.
13470 (ASM_OUTPUT_DWARF_DATAREL): New.
13471 * doc/tm.texi: Regenerate.
13472
13473 2015-09-18 Richard Biener <rguenther@suse.de>
13474
13475 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
13476 we're in early phase.
13477 (schedule_generic_params_dies_gen): Likewise.
13478 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
13479 work as possible, retaining unhandled cases.
13480 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
13481 clear out generic_type_instances at the end.
13482 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
13483 (dwarf2out_early_finish): ... here. Do most of
13484 gen_remaining_tmpl_value_param_die_attribute here.
13485
13486 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
13487
13488 PR tree-optimization/67283
13489 * tree-sra.c (type_consists_of_records_p): Rename to...
13490 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13491 (completely_scalarize_record): Rename to...
13492 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13493 (scalarize_elem): New.
13494 (analyze_all_variable_accesses): Follow renamings.
13495
13496 2015-09-18 Richard Biener <rguenther@suse.de>
13497
13498 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
13499 in early-dwarf.
13500
13501 2015-09-18 Richard Biener <rguenther@suse.de>
13502
13503 PR tree-optimization/66142
13504 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
13505 treat MEM[&x] and x the same.
13506 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
13507 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
13508 when we simplified sth.
13509 (vn_reference_maybe_forwprop_address): Likewise.
13510 (valueize_refs_1): When we simplified through
13511 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
13512 set valueized_anything to true.
13513 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
13514 one ref kills the other instead of just a offset-based test.
13515 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
13516 for the operand_equal_p test to compare bases and also compare
13517 sizes.
13518
13519 2015-09-17 Christian Bruel <christian.bruel@st.com>
13520
13521 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
13522
13523 2015-09-17 Richard Henderson <rth@redhat.com>
13524
13525 PR libstdc++/65913
13526 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
13527 pointers that encode the alignment of the object.
13528
13529 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13530
13531 PR rtl-optimization/66790
13532 * df-problems.c (LIVE): Amend documentation.
13533
13534 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
13535
13536 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
13537 and optabs-tree.o.
13538 (GTFILES): Replace optabs.c with optabs-libfunc.c.
13539 * genopinit.c (main): Add an include guard to insn-opinit.h.
13540 Protect the rtx_code parts with NUM_RTX_CODE.
13541 * optabs.h: Split parts out to...
13542 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
13543 * optabs.c: Split parts out to...
13544 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
13545 * cilk-common.c: Include optabs-query.h rather than optabs.h.
13546 * fold-const.c: Likewise.
13547 * target-globals.c: Likewise.
13548 * tree-if-conv.c: Likewise.
13549 * tree-ssa-forwprop.c: Likewise.
13550 * tree-ssa-loop-prefetch.c: Likewise.
13551 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
13552 Remove unncessary include files.
13553 * tree-ssa-phiopt.c: Likewise.
13554 * tree-ssa-reassoc.c: Likewise.
13555 * tree-switch-conversion.c: Likewise.
13556 * tree-vect-data-refs.c: Likewise.
13557 * tree-vect-generic.c: Likewise.
13558 * tree-vect-loop.c: Likewise.
13559 * tree-vect-patterns.c: Likewise.
13560 * tree-vect-slp.c: Likewise.
13561 * tree-vect-stmts.c: Likewise.
13562 * tree-vrp.c: Likewise.
13563 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
13564 rather than optabs.h.
13565 * expr.c: Include optabs-tree.h.
13566 * function.c: Likewise.
13567
13568 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13569
13570 PR middle-end/65958
13571 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
13572 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
13573 * config/arm/arm.c: Include common/common-target.h.
13574 (use_return_insn): Return 0 if the static chain register was saved
13575 above a non-APCS frame.
13576 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
13577 (struct scratch_reg): New.
13578 (get_scratch_register_on_entry): New function.
13579 (release_scratch_register_on_entry): Likewise.
13580 (arm_emit_probe_stack_range): Likewise.
13581 (output_probe_stack_range): Likewise.
13582 (arm_expand_prologue): Factor out code dealing with the IP register
13583 for nested function and adjust it for stack checking.
13584 Invoke arm_emit_probe_stack_range if static builtin stack checking
13585 is enabled.
13586 (thumb1_expand_prologue): Sorry out if static builtin stack checking
13587 is enabled.
13588 (arm_expand_epilogue): Add the saved static chain register, if any, to
13589 the amount of pre-pushed registers to pop.
13590 (arm_frame_pointer_required): Return true if static stack checking is
13591 enabled and we want to catch the exception with the EABI unwinder.
13592 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
13593 (UNSPEC_PROBE_STACK_RANGE): Likewise.
13594 * config/arm/arm.md (probe_stack): New insn.
13595 (probe_stack_range): Likewise.
13596
13597 2015-09-17 Richard Biener <rguenther@suse.de>
13598
13599 * genmatch.c (parser::parse_expr): Improve error message
13600 for mis-placed flags.
13601
13602 2015-09-17 Richard Biener <rguenther@suse.de>
13603
13604 * passes.c (rest_of_decl_compilation): Always call early_global_decl
13605 debug hook when we created a varpool node.
13606 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
13607 dwarf2out_early_global_decl, when not just add location or
13608 value attributes to existing DIEs.
13609
13610 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
13611
13612 * config/aarch64/aarch64.md (copysigndf3): New.
13613 (copysignsf3): Likewise.
13614
13615 2015-09-17 David S. Miller <davem@davemloft.net>
13616
13617 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
13618 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
13619 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13620 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13621 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13622 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13623 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13624 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13625 provide when flag_pic.
13626
13627 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
13628
13629 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
13630 object_allocator change.
13631
13632 2015-09-17 Bin Cheng <bin.cheng@arm.com>
13633
13634 PR tree-optimization/66388
13635 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
13636 (dump_iv): Dump no_overflow information.
13637 (alloc_iv): Initialize new field for struct iv.
13638 (mark_bivs): Count number of no_overflow bivs.
13639 (find_deriving_biv_for_expr, record_biv_for_address_use): New
13640 functions.
13641 (idx_find_step): Call new functions above.
13642 (add_candidate_1, add_candidate): New paramter.
13643 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
13644 (get_computation_aff): Simplify convertion of cand for BIV.
13645 (get_computation_cost_at): Step cand's base if necessary.
13646
13647 2015-09-17 Bin Cheng <bin.cheng@arm.com>
13648
13649 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
13650 parameter.
13651 (tree_simplify_using_condition): Ditto.
13652 (simplify_using_initial_conditions): Ditto.
13653 (loop_exits_before_overflow): Pass new argument to function
13654 simplify_using_initial_conditions. Remove case for type conversions
13655 simplification.
13656 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
13657 parameter.
13658 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
13659 in iv base using loop initial conditions.
13660
13661 2015-09-16 Jeff Law <law@redhat.com>
13662
13663 PR tree-optimization/47679
13664 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
13665 (free_all_edge_infos): Use it.
13666 (allocate_edge_info): Free preexisting edge info data.
13667 (pass_dominator::execute): Set up initial edge info structures.
13668 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
13669 thread_across_edge.
13670 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
13671 If non-null, then push/pop markers appropriately.
13672 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13673 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
13674 thread-across_edge.
13675
13676 2015-09-16 James Bowman <james.bowman@ftdichip.com>
13677
13678 * config/ft32/ft32.c: Fix the memory address space predicate.
13679
13680 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
13681
13682 PR target/67573
13683 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
13684 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13685
13686 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13687
13688 * toplev.h (check_global_declaration): Remove declaration.
13689 * toplev.c (check_global_declaration): Move to ...
13690 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
13691 (analyze_functions): Update call.
13692
13693 2015-09-16 David S. Miller <davem@davemloft.net>
13694
13695 * lra-constraints.c (simplify_operand_subreg): Do not assume that
13696 lowpart of a SUBREG has offset zero.
13697
13698 2015-09-16 Jeff Law <law@redhat.com>
13699
13700 PR tree-optimization/47679
13701 * tree-ssa-dom.c (enum expr_kind): Moved from here to
13702 tree-ssa-scopedtables.h.
13703 (struct hashable_expr, class expr_hash_elt): Likewise.
13704 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
13705 Move associated methods into tree-ssa-scopedtables.c.
13706 (avail_expr_hash, initialize_expr_from_cond): Similarly.
13707 (hashable_expr_equal_p, add_expr_commutative): Likewise.
13708 (add_hashable_expr): Likewise.
13709 (record_cond): Delete element directly.
13710 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
13711 private copy ctor and assignment operator methods.
13712 (expr_elt_hasher): Inline trivial methods.
13713 (initialize_expr_from_cond): Prototype.
13714 * tree-ssa-scopedtables.c: Add necessary includes, functions and
13715 methods that were previously in tree-ssa-dom.c. Improve various
13716 comments.
13717
13718 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
13719
13720 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
13721
13722 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
13723
13724 PR bootstrap/67587
13725 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13726 fixup_partitions.
13727
13728 2015-09-16 Richard Biener <rguenther@suse.de>
13729
13730 PR middle-end/67253
13731 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
13732 location of possibly shared trees.
13733
13734 2015-09-16 Richard Biener <rguenther@suse.de>
13735
13736 PR middle-end/67271
13737 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
13738
13739 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
13740
13741 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
13742 offset and size computations instead of HOST_WIDE_INT.
13743
13744 2015-09-16 Richard Biener <rguenther@suse.de>
13745
13746 PR middle-end/67442
13747 * fold-const.c (extract_muldiv_1): Properly extend multiplication
13748 result before builting a tree via wide_int_to_tree.
13749
13750 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
13751
13752 * Makefile.in: Add memory-block.cc
13753 (pool_allocator::initialize): Use fixed block size.
13754 (pool_allocator::release): Use memory_block_pool.
13755 (pool_allocator::allocate): Likewise.
13756 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
13757 object pools.
13758 * cfg.c (initialize_original_copy_tables): Likewise.
13759 * cselib.c (elt_list_pool, elt_loc_list_pool,
13760 cselib_val_pool): Likewise.
13761 * df-problems.c (df_chain_alloc): Likewise.
13762 * df-scan.c (df_scan_alloc): Likewise.
13763 * dse.c (cse_store_info_pool, rtx_store_info_pool,
13764 read_info_type_pool, insn_info_type_pool, bb_info_pool,
13765 group_info_pool, deferred_change_pool): Likewise.
13766 * et-forest.c (et_nodes, et_occurrences): Likewise.
13767 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
13768 ipcp_agg_lattice_pool): Likewise.
13769 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
13770 * ipa-profile.c (histogram_pool): Likewise.
13771 * ipa-prop.c (ipa_refdesc_pool): Likewise.
13772 * ira-build.c (live_range_pool, allocno_pool, object_pool,
13773 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
13774 * ira-color.c (update_cost_record_pool): Likewise.
13775 * lra-lives.c (lra_live_range_pool): Likewise.
13776 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
13777 * memory-block.cc: New file.
13778 * memory-block.h: New file.
13779 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
13780 * sched-deps.c (sched_deps_init): Likewise.
13781 * sel-sched-ir.c (sched_lists_pool): Likewise.
13782 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
13783 * tree-sra.c (access_pool): Likewise.
13784 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13785 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
13786 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
13787 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13788 * tree-ssa-strlen.c (strinfo_pool): Likewise.
13789 * tree-ssa-structalias.c (variable_info_pool): Likewise.
13790 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
13791 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
13792
13793 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13794
13795 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
13796 definition.
13797 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
13798 call0 ABI.
13799
13800 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13801
13802 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
13803 to pass TLS call argument, according to current ABI.
13804 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
13805 callx0 for TLS call, according to current ABI.
13806
13807 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13808
13809 * tree-eh.c (lower_try_finally_dup_block): Clear location information
13810 on stack restore statements.
13811 (decide_copy_try_finally): Do not consider a stack restore statement as
13812 coming from sources.
13813
13814 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
13815
13816 * config/alpha/alpha.c (alpha_expand_block_clear): Use
13817 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
13818
13819 2015-09-15 Jeff Law <law@redhat.com>
13820
13821 PR tree-optimization/47679
13822 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
13823 methods and private members.
13824 (avail_exprs_stack): Similarly. Change type of global
13825 from a pair of expr_hash_elt_t to the new class.
13826 (expr_elt_hasher::hash): Corresponding changes.
13827 (expr_elt_hasher::equal): Similarly.
13828 (avail_expr_hash): Similarly.
13829 (pass_dominator::execute): Similarly.
13830 (dom_opt_dom_walker::thread_across_edge): Similarly.
13831 (record_cond): Similarly.
13832 (dom_opt_dom_walker::before_dom_children): Similarly.
13833 (dom_opt_dom_walker::after_dom_children): Similarly.
13834 (lookup_avail_expr): Likewise.
13835 (initialize_hash_element): Now a expr_hash_elt constructor.
13836 (initialize_hash_element_from_expr): Similarly.
13837 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
13838 (free_expr_hash_elt): Call dtor for the element.
13839 (remove_local_expressions_from_table): Now the "pop_to_marker"
13840 method in the available_exprs_stack class.
13841 (avail_expr_stack::record_expr): Method factored out.
13842 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
13843 Fix formatting.
13844 (hashable_expr_equal_p): Fix formatting.
13845
13846 2015-09-15 David Malcolm <dmalcolm@redhat.com>
13847
13848 * input.h (location_get_source_line): Drop "expanded_location"
13849 param in favor of a file and line number.
13850 * input.c (location_get_source_line): Likewise.
13851 (dump_location_info): Update for change in signature of
13852 location_get_source_line.
13853 * diagnostic.c (diagnostic_print_caret_line): Likewise.
13854
13855 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
13856
13857 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
13858 Bump to 4KB for SJLJ exceptions.
13859 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
13860 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
13861 * doc/tm.texi: Regenerate.
13862
13863 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13864
13865 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
13866 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
13867 Update prototype.
13868
13869 2015-09-15 Richard Biener <rguenther@suse.de>
13870
13871 PR tree-optimization/67470
13872 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
13873 structure for PHI hoisting by inserting a forwarder block
13874 if appropriate.
13875
13876 2015-09-15 Christian Bruel <christian.bruel@st.com>
13877
13878 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
13879 (arm_option_print): New function.
13880
13881 2015-09-15 Christian Bruel <christian.bruel@st.com>
13882
13883 PR target/52144
13884 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
13885 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
13886 Remove flags parameter.
13887 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
13888 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
13889 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
13890 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
13891 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
13892 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
13893 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
13894 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
13895
13896 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13897
13898 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
13899
13900 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
13901 AARCH64_VALID_SIMD_DREG_MODE.
13902
13903 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13904
13905 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
13906 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
13907 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
13908 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
13909 aarch64_ld4_lane<mode>): Combine together, making...
13910 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13911 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
13912 aarch64_st4_lane<mode>): Combine together, making...
13913 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
13914 * config/aarch64/iterators.md (nregs): Add comment.
13915
13916 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13917
13918 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
13919 Change operand mode from <V_TWO_ELEM> to BLK.
13920 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
13921 (aarch64_vec_store_lanesoi_lane<mode): Likewise
13922 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13923 (aarch64_ld2_lane<mode>): Likewise.
13924 (aarch64_st2_lane<VQ:mode>): Likewise.
13925 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
13926
13927 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13928
13929 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
13930 Change operand mode from <V_FOUR_ELEM> to BLK.
13931 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
13932 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
13933 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13934 (aarch64_ld4_lane<mode>): Likewise.
13935 (aarch64_st4_lane<mode>): Likewise.
13936 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
13937
13938 2015-09-15 Richard Biener <rguenther@suse.de>
13939
13940 PR middle-end/67563
13941 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
13942 transfer EH info from old to new stmt.
13943 (replace_call_with_value): Likewise.
13944 (replace_call_with_call_and_fold): Likewise.
13945 (gimple_fold_builtin_memory_op): Likewise.
13946 (gimple_fold_builtin_memset): Likewise.
13947 (gimple_fold_builtin_stpcpy): Likewise.
13948 (gimple_fold_call): Likewise.
13949
13950 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13951
13952 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
13953 comment.
13954 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
13955 (aarch64_simd_intEI_type_node): Likewise.
13956 (aarch64_simd_builtin_std_type): Remove EImode case.
13957 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
13958 * config/aarch64/aarch64-modes.def: Remove EImode.
13959
13960 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13961
13962 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
13963 Change operand mode from <V_THREE_ELEM> to BLK.
13964 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
13965 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
13966 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
13967 (aarch64_ld3_lane<mode>): Likewise.
13968 (aarch64_st3_lane<mode>): Likewise.
13969 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
13970
13971 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13972
13973 * config/aarch64/aarch64-simd.md
13974 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
13975 Change all TImode operands to BLKmode.
13976 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
13977 Change all EImode operands to BLKmode.
13978 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
13979 Change all OImode operands to BLKmode.
13980
13981 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
13982 and call set_mem_size.
13983 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
13984
13985 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
13986
13987 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
13988
13989 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
13990 to...
13991 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
13992
13993 (vec_store_lanesci_lane<mode>): Rename to...
13994 (aarch64_vec_store_lanesci_lane<mode>): ...this.
13995
13996 (vec_store_lanesxi_lane<mode>): Rename to...
13997 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
13998
13999 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14000 aarch64_st4_lane<mode>): Follow renaming.
14001
14002 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14003
14004 * config/s390/s390.c (s390_const_operand_ok): Add missing
14005 brackets.
14006
14007 2015-09-15 Richard Biener <rguenther@suse.de>
14008
14009 PR lto/67568
14010 * lto-streamer.h (lto_location_cache::current_sysp): Properly
14011 initialize.
14012 * lto-streamer-out.c (clear_line_info): Likewise.
14013
14014 2015-09-15 Richard Biener <rguenther@suse.de>
14015
14016 * doc/match-and-simplify.texi: Fix wording.
14017
14018 2015-09-15 Bin Cheng <bin.cheng@arm.com>
14019
14020 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14021 unnecessary type conversion in op1.
14022
14023 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
14024
14025 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14026 (dup_block_and_redirect): Delete function.
14027 (can_dup_for_shrink_wrapping): New function.
14028 (fix_fake_fallthrough_edge): New function.
14029 (try_shrink_wrapping): Rewrite function.
14030 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14031
14032 2015-09-14 Rich Felker <dalias@libc.org>
14033
14034 * configure.ac: Change target pattern for sh TLS support
14035 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14036 * configure: Regenerate.
14037
14038 2015-09-14 Jeff Law <law@redhat.com>
14039
14040 PR tree-optimization/47679
14041 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14042 type rather than void *.
14043
14044 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14045
14046 PR fortran/67460
14047 * diagnostic.c (diagnostic_initialize): Do not set
14048 some_warnings_are_errors.
14049 (diagnostic_finish): Use DK_WERROR count instead.
14050 (diagnostic_report_diagnostic): Do not set
14051 some_warnings_are_errors.
14052 * diagnostic.h (struct diagnostic_context): Remove
14053 some_warnings_are_errors.
14054
14055 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
14056
14057 * config/sparc/predicates.md (const_all_ones_operand): Use
14058 CONSTM1_RTX to simplify definition.
14059
14060 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
14061
14062 PR target/67061
14063 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14064 Handle call insns.
14065
14066 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
14067
14068 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14069 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14070 OPT_fshow_column to handled saved option cases.
14071 (append_compiler_options): Do not skip the above added options.
14072
14073 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14074
14075 PR target/63304
14076 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14077 nopcrelative_literal_loads.
14078 (aarch64_classify_address): Likewise.
14079 (aarch64_constant_pool_reload_icode): Define.
14080 (aarch64_secondary_reload): Handle secondary reloads for
14081 literal pools.
14082 (aarch64_override_options): Handle nopcrelative_literal_loads.
14083 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14084 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14085 Define.
14086 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14087 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14088 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14089 predicate.
14090 * doc/invoke.texi (mpc-relative-literal-loads): Document.
14091
14092 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
14093
14094 PR middle-end/67401
14095 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14096 sync_compare_and_swap_optab libcall to target_oval.
14097
14098 2015-09-14 Marek Polacek <polacek@redhat.com>
14099
14100 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14101 value.
14102 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14103
14104 2015-09-11 Mark Wielaard <mjw@redhat.com>
14105
14106 PR c/28901
14107 * toplev.c (check_global_declaration): Check and use
14108 warn_unused_const_variable.
14109 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14110 (-Wunused-variable): Remove non-constant. For C implies
14111 -Wunused-const-variable.
14112 (-Wunused-const-variable): New.
14113
14114 2015-09-14 Richard Biener <rguenther@suse.de>
14115
14116 * doc/match-and-simplify.texi: Update for changed syntax
14117 of inner ifs and the new switch expression.
14118
14119 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14120
14121 * config/i386/haswell.md: New file describing Haswell pipeline.
14122 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14123 haswell-like processors.
14124 (ix86_reassociation_width): Increase reassociation width for 64-bit
14125 Haswell processor family.
14126 * config/i386/i386.md: Introduce haswell cpu and include new md file.
14127
14128 2015-09-14 Richard Biener <rguenther@suse.de>
14129
14130 * doc/match-and-simplify.texi: Fixup some formatting issues
14131 and document the 's' flag.
14132
14133 2015-09-13 Olivier Hainque <hainque@adacore.com>
14134 Eric Botcazou <ebotcazou@adacore.com>
14135
14136 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14137 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
14138 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14139 (TARGET_CPU_gr5): Likewise.
14140 (TARGET_CPU_gr6): Likewise.
14141 (MULTILIB_DEFAULTS): Likewise.
14142 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14143 for mcpu=gr5 and mcpu=gr6.
14144 (MULTILIB_DIRNAMES): Adjust accordingly.
14145
14146 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14147
14148 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14149 (mem_ref_p): Likewise.
14150 (outermost_indep_loop): Adjust.
14151 (mem_ref_in_stmt): Likewise.
14152 (determine_max_movement): Likewise.
14153 (mem_ref_alloc): Likewise.
14154 (record_mem_ref_loc): Likewise.
14155 (set_ref_stored_in_loop): Likewise.
14156 (mark_ref_stored): Likewise.
14157 (gather_mem_refs_stmt): Likewise.
14158 (mem_refs_may_alias_p): Likewise.
14159 (for_all_locs_in_loop): Likewise.
14160 (struct rewrite_mem_ref_loc): Likewise.
14161 (rewrite_mem_refs): Likewise.
14162 (struct first_mem_ref_loc_1): Likewise.
14163 (first_mem_ref_loc): Likewise.
14164 (struct sm_set_flag_if_changed): Likewise.
14165 (execute_sm_if_changed_flag_set): Likewise.
14166 (execute_sm): Likewise.
14167 (hoist_memory_references):
14168 (struct ref_always_accessed): Likewise.
14169 (ref_always_accessed_p): Likewise.
14170 (refs_independent_p): Likewise.
14171 (record_dep_loop): Likewise.
14172 (ref_indep_loop_p_1): Likewise.
14173 (ref_indep_loop_p_2): Likewise.
14174 (ref_indep_loop_p): Likewise.
14175 (can_sm_ref_p): Likewise.
14176 (find_refs_for_sm): Likewise.
14177 (tree_ssa_lim_finalize): Likewise.
14178
14179 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14180
14181 * dwarf2out.c (dw_attr_ref): Remove typedef.
14182 (dw_line_info_ref): Likewise.
14183 (pubname_ref): Likewise.
14184 (dw_ranges_ref): Likewise.
14185 (dw_ranges_by_label_ref): Likewise.
14186 (comdat_type_node_ref): Likewise.
14187 (get_AT): Adjust.
14188 (get_AT_low_pc): Likewise.
14189 (get_AT_hi_pc): Likewise.
14190 (get_AT_string): Likewise.
14191 (get_AT_flag): Likewise.
14192 (get_AT_unsigned): Likewise.
14193 (get_AT_ref): Likewise.
14194 (get_AT_file): Likewise.
14195 (remove_AT): Likewise.
14196 (print_die): Likewise.
14197 (check_die): Likewise.
14198 (die_checksum): Likewise.
14199 (attr_checksum_ordered): Likewise.
14200 (struct checksum_attributes): Likewise.
14201 (collect_checksum_attributes): Likewise.
14202 (die_checksum_ordered): Likewise.
14203 (same_die_p): Likewise.
14204 (is_declaration_die): Likewise.
14205 (clone_die): Likewise.
14206 (clone_as_declaration): Likewise.
14207 (copy_declaration_context): Likewise.
14208 (break_out_comdat_types): Likewise.
14209 (copy_decls_walk): Likewise.
14210 (output_location_lists): Likewise.
14211 (external_ref_hasher::hash): Likewise.
14212 (optimize_external_refs_1): Likewise.
14213 (build_abbrev_table): Likewise.
14214 (size_of_die): Likewise.
14215 (unmark_all_dies): Likewise.
14216 (size_of_pubnames): Likewise.
14217 (output_die_abbrevs): Likewise.
14218 (output_die): Likewise.
14219 (output_pubnames): Likewise.
14220 (add_ranges_num): Likewise.
14221 (add_ranges_by_labels): Likewise.
14222 (add_high_low_attributes): Likewise.
14223 (gen_producer_string): Likewise.
14224 (dwarf2out_set_name): Likewise.
14225 (new_line_info_table): Likewise.
14226 (prune_unused_types_walk_attribs): Likewise.
14227 (prune_unused_types_update_strings): Likewise.
14228 (prune_unused_types): Likewise.
14229 (resolve_addr): Likewise.
14230 (optimize_location_lists_1): Likewise.
14231 (index_location_lists): Likewise.
14232 (dwarf2out_finish): Likewise.
14233
14234 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14235
14236 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14237
14238 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14239
14240 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14241 (dump_asserts_for): Adjust.
14242 (register_new_assert_for): Likewise.
14243 (process_assert_insertions): Likewise.
14244 (insert_range_assertions): Likewise.
14245
14246 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14247
14248 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14249 and remove typedef.
14250 (new_temp_expr_table): Adjust.
14251 (free_temp_expr_table): Likewise.
14252 (version_to_be_replaced_p): Likewise.
14253 (make_dependent_on_partition): Likewise.
14254 (add_to_partition_kill_list): Likewise.
14255 (remove_from_partition_kill_list): Likewise.
14256 (add_dependence): Likewise.
14257 (finished_with_expr): Likewise.
14258 (process_replaceable): Likewise.
14259 (kill_expr): Likewise.
14260 (kill_virtual_exprs): Likewise.
14261 (mark_replaceable): Likewise.
14262 (find_replaceable_in_bb): Likewise.
14263 (find_replaceable_exprs): Likewise.
14264 (debug_ter): Likewise.
14265
14266 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14267
14268 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14269 (struct btr_user): Rename from btr_user_s.
14270 (struct btr_def): Rename from btr_def_s.
14271 (find_btr_def_group): Adjust.
14272 (add_btr_def): Likewise.
14273 (new_btr_user): Likewise.
14274 (note_other_use_this_block): Likewise.
14275 (compute_defs_uses_and_gen): Likewise.
14276 (link_btr_uses): Likewise.
14277 (build_btr_def_use_webs): Likewise.
14278 (block_at_edge_of_live_range_p): Likewise.
14279 (btr_def_live_range): Likewise.
14280 (combine_btr_defs): Likewise.
14281 (move_btr_def): Likewise.
14282 (migrate_btr_def): Likewise.
14283 (migrate_btr_defs): Likewise.
14284
14285 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14286
14287 * var-tracking.c (shared_hash_def): Rename to shared_hash.
14288 (shared_hash): Remove typedef.
14289 (struct dataflow_set): Adjust.
14290 (shared_hash_unshare): Likewise.
14291 (dataflow_set_merge): Likewise.
14292 (vt_initialize): Likewise.
14293 (vt_finalize): Likewise.
14294
14295 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14296
14297 * var-tracking.c (struct location_chain): Rename from
14298 location_chain_def.
14299 (struct variable_part): Adjust.
14300 (variable_htab_free): Likewise.
14301 (unshare_variable): Likewise.
14302 (get_init_value): Likewise.
14303 (get_addr_from_local_cache): Likewise.
14304 (drop_overlapping_mem_locs): Likewise.
14305 (val_reset): Likewise.
14306 (struct variable_union_info): Likewise.
14307 (variable_union): Likewise.
14308 (find_loc_in_1pdv): Likewise.
14309 (insert_into_intersection): Likewise.
14310 (intersect_loc_chains): Likewise.
14311 (canonicalize_loc_order_check): Likewise.
14312 (canonicalize_values_mark): Likewise.
14313 (canonicalize_values_star): Likewise.
14314 (canonicalize_vars_star): Likewise.
14315 (variable_merge_over_cur): Likewise.
14316 (remove_duplicate_values): Likewise.
14317 (variable_post_merge_new_vals): Likewise.
14318 (variable_post_merge_perm_vals): Likewise.
14319 (find_mem_expr_in_1pdv): Likewise.
14320 (dataflow_set_preserve_mem_locs): Likewise.
14321 (dataflow_set_remove_mem_locs): Likewise.
14322 (variable_part_different_p): Likewise.
14323 (onepart_variable_different_p): Likewise.
14324 (find_src_set_src): Likewise.
14325 (dump_var): Likewise.
14326 (set_slot_part): Likewise.
14327 (clobber_slot_part): Likewise.
14328 (delete_slot_part): Likewise.
14329 (vt_expand_var_loc_chain): Likewise.
14330 (emit_note_insn_var_location): Likewise.
14331 (vt_finalize): Likewise.
14332
14333 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14334
14335 * dse.c (store_info_t): Remove typedef.
14336 (group_info_t): Likewise.
14337 (const_group_info_t): Likewise.
14338 (deferred_change_t): Likewise.
14339 (get_group_info): Adjust.
14340 (free_store_info): Likewise.
14341 (canon_address): Likewise.
14342 (clear_rhs_from_active_local_stores): Likewise.
14343 (record_store): Likewise.
14344 (replace_read): Likewise.
14345 (check_mem_read_rtx): Likewise.
14346 (scan_insn): Likewise.
14347 (remove_useless_values): Likewise.
14348 (dse_step1): Likewise.
14349 (dse_step2_init): Likewise.
14350 (dse_step2_nospill): Likewise.
14351 (scan_stores_nospill): Likewise.
14352 (scan_reads_nospill): Likewise.
14353 (dse_step3_exit_block_scan): Likewise.
14354 (dse_step3): Likewise.
14355 (dse_step5_nospill): Likewise.
14356 (dse_step6): Likewise.
14357
14358 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14359
14360 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14361 (alias_set_entry): Remove typedef.
14362 (alias_set_subset_of): Adjust.
14363 (alias_sets_conflict_p): Likewise.
14364 (init_alias_set_entry): Likewise.
14365 (get_alias_set): Likewise.
14366 (new_alias_set): Likewise.
14367 (record_alias_subset): Likewise.
14368
14369 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
14370
14371 * doc/install.texi (Downloading the source): Mark up
14372 contrib/download_prerequisites properly and drop leading "./".
14373
14374 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14375
14376 * config/arc/arc.h: Remove define of STRUCT_VALUE.
14377 * config/lm32/lm32.h: Likewise.
14378 * config/mep/mep.h: Likewise.
14379 * config/visium/visium.h: Likewise.
14380 * system.h: Poison STRUCT_VALUE macro.
14381
14382 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
14383
14384 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14385 CONSTANT_P operands.
14386
14387 2015-09-11 David S. Miller <davem@davemloft.net>
14388
14389 * config/sparc/constraints.md: Make "U" constraint a real register
14390 constraint.
14391 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14392 (D_MODES, DF_MODES): Add missing cast.
14393 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14394 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14395 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14396 cost to 8.
14397 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14398 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14399 provide these insn when flag_pic.
14400
14401 2015-09-11 Jeff Law <law@redhat.com>
14402
14403 PR tree-optimization/47679
14404 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14405 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14406 member with m_. Update inline member functions as necessary. Add
14407 toplevel comment.
14408 * tree-ssa-scopedtables.c: Update const_and_copies's member
14409 functions to use m_ prefix to access the stack.
14410
14411 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14412
14413 * graphite-optimize-isl.c (disable_tiling): Remove.
14414 (get_schedule_for_band): Do not use disable_tiling.
14415 (get_prevector_map): Delete function.
14416 (enable_polly_vector): Remove.
14417 (get_schedule_for_band_list): Remove dead code.
14418
14419 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14420
14421 * graphite-optimize-isl.c (get_tile_map): Refactor.
14422 (get_schedule_for_band): Same.
14423 (getScheduleForBand): Same.
14424 (get_prevector_map): Same.
14425 (get_schedule_for_band_list): Same.
14426 (get_schedule_map): Same.
14427 (get_single_map): Same.
14428 (apply_schedule_map_to_scop): Same.
14429 (optimize_isl): Same.
14430
14431 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14432
14433 PR target/63304
14434 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
14435 (movtf): Delete.
14436 * config/aarch64/iterators.md (GPF_TF_F16): New.
14437 (GPF_F16): Delete.
14438
14439 2015-09-10 Nathan Sidwell <nathan@acm.org>
14440
14441 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
14442 (nvptx_reorg): Adjust comments.
14443
14444 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
14445
14446 PR bootstrap/67363
14447 * configure.ac: Check if setenv and unsetenv are declared.
14448 * configure: Rebuild.
14449 * config.in: Rebuild.
14450 * system.h: Declare setenv and unsetenv if not declared.
14451
14452 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14453
14454 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
14455 commentary to simplify permute mask adjustment equation.
14456 (special_handling_values): Add SH_VPERM.
14457 (const_load_sequence_p): New function.
14458 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
14459 the mask loaded from the constant pool.
14460 (adjust_vperm): New function.
14461 (handle_special_swappables): Call adjust_vperm.
14462 (dump_swap_insn_table): Handle SH_VPERM.
14463
14464 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
14465
14466 * shrink-wrap.c (requires_stack_frame_p): Remove static.
14467 * shrink-wrap.h (requires_stack_frame_p): Put back.
14468
14469 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
14470
14471 * reload1.c (elimination_costs_in_insn): Locally turn
14472 -Wmaybe-uninitialized into a warning.
14473
14474 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
14475
14476 * shrink-wrap.c (requires_stack_frame_p): Make static.
14477 (prepare_shrink_wrap): Likewise.
14478 (dup_block_and_redirect): Likewise.
14479 * shrink-wrap.h: Remove declarations of those functions.
14480
14481 2015-09-10 Mark Wielaard <mjw@redhat.com>
14482
14483 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
14484
14485 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
14486
14487 PR target/67506
14488 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
14489 missing simplify_gen_subreg.
14490
14491 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14492
14493 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
14494 the vector element is bigger than 64 bit.
14495
14496 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14497
14498 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
14499 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
14500
14501 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14502
14503 * config/s390/s390.c: Add V1TImode to constant pool modes.
14504
14505 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14506
14507 PR target/67439
14508 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
14509 predicate. Set predicable_short_it attr to "no".
14510
14511 2015-09-10 Jiong Wang <jiong.wang@arm.com>
14512
14513 PR rtl-optimization/67421
14514 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
14515 left wide shift tranformation.
14516
14517 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14518
14519 * common/config/arc/arc-common.c: Remove references to A5.
14520 * config/arc/arc-opts.h: Likewise.
14521 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
14522 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
14523 * config/arc/t-arc-newlib: Likewise.
14524
14525 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14526
14527 * config/arc/arc.md (length): Fix attribute length for conditional
14528 executed instructions with long immediate.
14529
14530 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14531
14532 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
14533 type for second alternative.
14534
14535 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
14536
14537 * doc/invoke.texi (Downloading GCC): Mention
14538 contrib/download_prerequisites script.
14539
14540 2015-09-10 Jakub Jelinek <jakub@redhat.com>
14541
14542 PR c++/67523
14543 * gimplify.c (gimplify_omp_for): If inner stmt is not found
14544 for combined loop, assert seen_error () and return GS_ERROR.
14545
14546 PR middle-end/67521
14547 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
14548 if decl is already in outer->variables.
14549
14550 PR middle-end/67517
14551 * gimplify.c (gimplify_scan_omp_clauses): Instead of
14552 asserting that decl is not specified in octx->variables,
14553 break out of the loop if it is.
14554
14555 PR c++/67514
14556 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
14557 iterator is not explicitly determined, but is defined inside
14558 of the combined workshare region, handle it like if it has
14559 DECL_EXPR in OMP_FOR_PRE_BODY.
14560
14561 2015-09-09 Nathan Sidwell <nathan@acm.org>
14562
14563 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
14564 (*cmp<mode>): Add assembler spacing.
14565 (setcc_int<mode>, set_cc_float<mode>): Likewise.
14566 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
14567 level.
14568 (write_func_decl_from_insn): Refactor argument loops & comma emission.
14569 (nvptx_expand_call): Likewise.
14570 (nvptx_output_call_insn): Likewise.
14571 (nvptx_reorg_subreg): Add spacing.
14572
14573 2015-09-09 Marek Polacek <polacek@redhat.com>
14574
14575 PR middle-end/67512
14576 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
14577 for comparisons.
14578
14579 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
14580
14581 PR c++/53184
14582 * doc/invoke.texi ([Wsubobject-linkage]): Document.
14583
14584 2015-09-09 Tom de Vries <tom@codesourcery.com>
14585
14586 * params-list.h: Add missing copyright notice.
14587
14588 2015-09-09 Nathan Sidwell <nathan@acm.org>
14589
14590 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
14591 sel_truesi, not andsi.
14592
14593 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14594
14595 * config/arm/arm.md (*subsi3_compare0): Rename to...
14596 (subsi3_compare0): ... This.
14597 (modsi3): New define_expand.
14598 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
14599 when operand is power of 2.
14600
14601 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14602
14603 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
14604 (*neg<mode>2_compare0): Rename to...
14605 (neg<mode>2_compare0): ... This.
14606 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
14607 Move check for speed inside the if-then-elses. Reflect
14608 CSNEG sequence in MOD by power of 2 case.
14609
14610 2015-09-09 Alan Modra <amodra@gmail.com>
14611
14612 PR target/67378
14613 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
14614 reload replacement for PRE_MODIFY address reg.
14615
14616 2015-09-09 Sebastian Pop <s.pop@samsung.com>
14617
14618 PR tree-optimization/53852
14619 * config.in: Regenerate.
14620 * configure: Regenerate.
14621 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
14622 * graphite-optimize-isl.c (optimize_isl): Stop computation when
14623 PARAM_MAX_ISL_OPERATIONS is reached.
14624 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
14625 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
14626 result equal to isl_stat_ok as the status now can be isl_error_quota.
14627 (subtract_commutative_associative_deps): Same.
14628 (compute_deps): Same.
14629
14630 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14631 Sebastian Pop <s.pop@samsung.com>
14632
14633 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14634 Return the parameter if it was saved in corresponding
14635 parameter_rename_map of the region.
14636 (copy_def): Copy def from sese region to the newly created region.
14637 (copy_internal_parameters): Copy all the internal parameters defined
14638 within a region to the newly created region.
14639 (graphite_regenerate_ast_isl): Copy parameters to the new region before
14640 translating isl to gimple.
14641 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
14642 the loop-nest does not have any data-references.
14643 (build_graphite_scops): Create a scop only when there is at least one
14644 loop inside it.
14645 (contains_only_close_phi_nodes): Deleted.
14646 (print_graphite_scop_statistics): Deleted
14647 (print_graphite_statistics): Deleted
14648 (limit_scops): Deleted.
14649 (build_scops): Removed call to limit_scops.
14650 * sese.c (new_sese): Construct.
14651 (free_sese): Destruct.
14652 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
14653 added.
14654 (set_rename): Pass sese region so that parameters inside the region can
14655 be added to its parameter_rename_map.
14656 (rename_uses): Pass sese region.
14657 (graphite_copy_stmts_from_block): Do not copy parameters that have been
14658 generated in the header of the scop. For each SSA_NAME in the
14659 parameter_rename_map rename its usage.
14660 (invariant_in_sese_p_rec): Return false if tree t is defined outside
14661 sese region.
14662 (scalar_evolution_in_region): If the tree t is invariant just return t.
14663 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
14664 struct sese to keep track of all the parameters which need renaming.
14665 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
14666 any data-refs.
14667 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
14668
14669 2015-09-08 Tom de Vries <tom@codesourcery.com>
14670
14671 * Makefile.in (generated_files): Add params.list.
14672 (params.list, s-params.list): Add rule.
14673 * params.h (enum compiler_param): Include params-list.h. Move define
14674 DEFPARAM, include params.def and undef DEFPARAM ...
14675 * params-list.h: ... here. New file.
14676
14677 2015-09-08 David Malcolm <dmalcolm@redhat.com>
14678
14679 * pretty-print.h (printer_fn): Fix typo in comment.
14680
14681 2015-09-07 Jeff Law <law@redhat.com>
14682
14683 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
14684
14685 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14686
14687 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
14688 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
14689 (arm_neon_fp16_hw): New.
14690
14691 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14692
14693 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
14694 UNITS_PER_WORD >= 4.
14695
14696 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14697
14698 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
14699 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
14700 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
14701 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
14702 (aarch64_float_extend_lo_v2df): Rename to...
14703 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
14704
14705 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
14706 (float_extend_lo): Add v4sf.
14707
14708 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
14709 * config/aarch64/iterators.md (VQ_HSF): New iterator.
14710 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
14711 (Vwide): New mode_attr.
14712
14713 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14714
14715 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
14716 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
14717 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
14718 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
14719 V4HF and V8HF variants to iterator.
14720
14721 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
14722
14723 * config/aarch64/iterators.md (VDQF_F16): New.
14724 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
14725
14726 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14727
14728 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
14729 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14730 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
14731 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
14732 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
14733 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14734 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
14735 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
14736 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
14737 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
14738 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
14739 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14740 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
14741 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
14742 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
14743 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
14744 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
14745 vld1q_dup_f16): New.
14746
14747 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14748
14749 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
14750 Reparameterize to...
14751 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
14752 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
14753 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
14754
14755 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
14756 v8hf variant.
14757 (float_truncate_lo_): Use BUILTIN_VDF iterator.
14758
14759 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
14760
14761 * config/aarch64/iterators.md (VDF, Vdtype): New.
14762 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
14763
14764 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14765
14766 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
14767 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
14768 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
14769 Add __builtin_aarch64_simd_hf.
14770 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
14771 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
14772 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
14773 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
14774 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
14775 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
14776 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
14777 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
14778 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
14779
14780 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
14781 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
14782 (VDC, Vdbl): Add V4HF.
14783
14784 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14785
14786 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
14787 V4HFmode and V8HFmode.
14788 (aarch64_split_simd_move): Add case for V8HFmode.
14789 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
14790 (aarch64_simd_builtin_std_type): Handle HFmode.
14791 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
14792
14793 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
14794 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
14795 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
14796
14797 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
14798 Float16x8_t.
14799
14800 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
14801 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
14802 New typedefs.
14803 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
14804 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
14805 vst1q_lane_f16): New.
14806 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
14807 (VALLDI_F16, VALL_F16): New.
14808 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
14809 Add cases for V4HF and V8HF.
14810 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
14811
14812 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14813
14814 * config/arm/arm-builtins.c (VAR11, VAR12): New.
14815 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
14816 vld4_dup): Add v4hf variant.
14817 (vget_high, vget_low): Add v8hf variant.
14818 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
14819 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
14820 v4hf and v8hf variants.
14821
14822 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
14823 (VDX): Add V4HF.
14824 (V_DOUBLE): Add case for V4HF.
14825 (VQX): Add V8HF.
14826 (V_HALF): Add case for V8HF.
14827 (VDQX): Add V4HF, V8HF.
14828 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
14829 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
14830
14831 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
14832 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
14833 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
14834 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
14835 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
14836 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
14837 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
14838 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
14839 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
14840
14841 (neon_vcreate, neon_vreinterpretv8qi<mode>,
14842 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
14843 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
14844 Change VDX to VD_RE.
14845
14846 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
14847 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
14848 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
14849
14850 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
14851 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
14852 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
14853 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
14854 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
14855 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
14856 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
14857 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
14858 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
14859
14860 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14861
14862 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
14863 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
14864 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
14865 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
14866 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14867 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
14868 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
14869 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
14870 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
14871 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
14872 New.
14873
14874 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14875
14876 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
14877
14878 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
14879
14880 * config/arm/arm-builtins.c (v8hf_UP): New.
14881 (arm_init_simd_builtin_types): Initialise Float16x8_t.
14882
14883 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
14884
14885 * config/arm/arm_neon.h (float16x8_t): New typedef.
14886
14887 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14888
14889 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
14890 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
14891 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
14892 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
14893 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14894 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
14895 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
14896 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
14897 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14898 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
14899
14900 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
14901
14902 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
14903 non-alphanumeric characters in the symbol name.
14904
14905 2015-09-07 Marek Polacek <polacek@redhat.com>
14906
14907 PR inline-asm/67448
14908 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
14909 a memory input.
14910
14911 2015-09-07 Marek Polacek <polacek@redhat.com>
14912
14913 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
14914
14915 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
14916
14917 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
14918 not warn.
14919
14920 2015-09-04 Jakub Jelinek <jakub@redhat.com>
14921
14922 PR middle-end/67452
14923 * tree-ssa-live.c: Include cfgloop.h.
14924 (remove_unused_locals): Clear loop->simduid if simduid is about
14925 to be removed from cfun->local_decls.
14926
14927 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
14928
14929 PR target/65210
14930 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
14931 attribute as well.
14932
14933 2015-09-04 Tom de Vries <tom@codesourcery.com>
14934
14935 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
14936
14937 2015-09-04 Jeff Law <law@redhat.com>
14938
14939 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
14940 unnecessary constructor. It's now trivial and implemented inside...
14941 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
14942 constructor. Add comments to various methods. Remove unused
14943 private fields.
14944 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
14945 * tree-vrp.c (identify_jump_threads): Likewise.
14946 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
14947 indentation issues.
14948 (thread_across_edge): Similarly.
14949 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
14950 arguments in constructor call.
14951
14952 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
14953
14954 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
14955 temp path contains a '-'.
14956
14957 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14958 Petr Murzin <petr.murzin@intel.com>
14959 Kirill Yukhin <kirill.yukhin@intel.com>
14960
14961 * config/i386/i386-builtin-types.def
14962 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
14963 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
14964 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
14965 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
14966 * config/i386/i386.c
14967 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
14968 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14969 IX86_BUILTIN_SCATTERALTDIV16SI.
14970 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
14971 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
14972 __builtin_ia32_scatteraltdiv8si.
14973 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
14974 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
14975 IX86_BUILTIN_SCATTERALTDIV16SI.
14976 (ix86_vectorize_builtin_scatter): New.
14977 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
14978 ix86_vectorize_builtin_scatter.
14979
14980 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
14981 Petr Murzin <petr.murzin@intel.com>
14982 Kirill Yukhin <kirill.yukhin@intel.com>
14983
14984 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
14985 * doc/tm.texi: Regenerate.
14986 * target.def: Add scatter builtin.
14987 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
14988 for loads/stores in case of gather/scatter accordingly.
14989 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
14990 STMT_VINFO_GATHER_P(S).
14991 (vect_check_gather): Rename to ...
14992 (vect_check_gather_scatter): this.
14993 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
14994 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
14995 (vect_check_gather_scatter): Use it instead of vect_check_gather.
14996 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
14997 variable and new checkings for it accordingly.
14998 * tree-vect-stmts.c
14999 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15000 STMT_VINFO_GATHER_P(S).
15001 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15002 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15003
15004 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15005
15006 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15007 define_insn.
15008 (mulv16qi3): New define_expand.
15009
15010 2015-09-03 Martin Sebor <msebor@redhat.com>
15011
15012 PR c/66516
15013 * doc/extend.texi (Other Builtins): Document when the address
15014 of a built-in function can be taken.
15015
15016 2015-09-03 Richard Biener <rguenther@suse.de>
15017
15018 * dwarf2out.c (flush_limbo_die_list): Split out from ...
15019 (dwarf2out_early_finish): ... here.
15020 (dwarf2out_finish): Do not call dwarf2out_early_finish but
15021 flush_limbo_die_list. Assert we have no deferred asm names.
15022
15023 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15024
15025 * optabs.c (expand_binop): Don't create a broadcast vector with a
15026 source element wider than the inner mode.
15027
15028 2015-09-03 Richard Biener <rguenther@suse.de>
15029
15030 * varasm.c (output_constant): Use fold_convert instead of
15031 wide_int_to_tree.
15032
15033 2015-09-03 Tom de Vries <tom@codesourcery.com>
15034
15035 PR tree-optimization/65637
15036 * omp-low.c (expand_omp_for_static_chunk): Handle case that
15037 fin_bb has 2 predecessors.
15038
15039 2015-09-03 Tom de Vries <tom@codesourcery.com>
15040
15041 PR tree-optimization/65637
15042 * omp-low.c (find_phi_with_arg_on_edge): New function.
15043 (expand_omp_for_static_chunk): Fix inner loop phi.
15044
15045 2015-09-03 Tom de Vries <tom@codesourcery.com>
15046
15047 PR tree-optimization/65637
15048 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15049 that head is NULL.
15050
15051 2015-09-03 Tom de Vries <tom@codesourcery.com>
15052
15053 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15054
15055 2015-09-03 Tom de Vries <tom@codesourcery.com>
15056
15057 * doc/invoke.texi (parloops-chunk-size): Add item.
15058 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15059 * tree-parloops.c: Include params.h.
15060 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15061 param parloops-chunk-size is used.
15062
15063 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15064
15065 PR middle-end/67351
15066 * fold-const.c (fold_binary_loc) : Move
15067 Transform (x >> c) << c into x & (-1<<c) or
15068 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15069 types using simplify and match.
15070 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15071 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15072
15073 2015-09-03 Richard Biener <rguenther@suse.de>
15074
15075 PR ipa/66705
15076 * tree-ssa-structalias.c (ctor_for_analysis): New function.
15077 (create_variable_info_for_1): Use ctor_for_analysis instead
15078 of get_constructor.
15079 (create_variable_info_for): Likewise.
15080
15081 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
15082
15083 PR ipa/67280
15084 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15085 in new callgraph edge.
15086
15087 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
15088
15089 PR target/59810
15090 PR target/63652
15091 PR target/63653
15092 * config/aarch64/aarch64-simd.md
15093 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15094 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15095 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15096 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15097
15098 2015-09-02 Alan Modra <amodra@gmail.com>
15099
15100 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15101 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15102 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15103
15104 2015-09-02 Alan Modra <amodra@gmail.com>
15105
15106 PR target/67417
15107 * config/rs6000/predicates.md (current_file_function_operand): Don't
15108 return true for weak symbols.
15109 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15110
15111 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
15112 Andrew Bennett <andrew.bennett@imgtec.com>
15113
15114 * config/mips/mips-opts.h (mips_cb_setting): New enum.
15115 * config/mips/mips-protos.h: Add definitions for
15116 mips_output_jump and mips_output_equal_conditional_branch
15117 * config/mips/mips.c (MIPS_JR): Change to support the
15118 JIC instruction.
15119 (mips_emit_compare): Add support for the MIPS R6 conditional
15120 compact branches.
15121 (mips_process_sync_loop): Likewise.
15122 (mips_output_order_conditional_branch): Likewise.
15123 (mips16_build_call_stub): Change MIPS_CALL to
15124 mips_output_jump.
15125 (mips_print_operand_punctuation): Update 's' case to only
15126 apply to micromips r2.
15127 (mips_adjust_insn_length): Add support for forbidden slot
15128 hazards.
15129 (mips_avoid_hazard): Likewise.
15130 (mips_reorg_process_insns): Likewise.
15131 (mips_output_jump): New function.
15132 (mips_output_equal_conditional_branch): Likewise.
15133 (mips_output_conditional_branch): Use jrc/bc if compact
15134 branch support is enabled. Ensure the forbidden slots
15135 between the two branch instructions is filled with a nop.
15136 (mips_option_override): Add support to process the compact
15137 branch option and set the correct defaults. Prevent
15138 non-explict relocs being using for MIPS R6.
15139 (mips_trampoline_init): Add compact branch support.
15140 (mips_mult_zero_zero_cost): Allow zero initialisation of
15141 accumulators with TARGET_DSP.
15142 * config/mips/mips.h (TARGET_CB_NEVER): New define.
15143 (TARGET_CB_MAYBE): New define.
15144 (TARGET_CB_ALWAYS): New define.
15145 (ISA_HAS_DELAY_SLOTS): New define.
15146 (ISA_HAS_COMPACT_BRANCHES): New define.
15147 (ISA_HAS_JRC): New define.
15148 (MIPS_BRANCH_C): New define.
15149 (MIPS_CALL): Removed.
15150 (MICROMIPS_J): Removed.
15151 * config/mips/mips.md (compact_form): New attr.
15152 (hazard): Add support for forbidden slots.
15153 (define_delay): Add support for compact branches.
15154 (*branch_order<mode>): Likewise.
15155 (*branch_order<mode>_inverted): Likewise.
15156 (*branch_equality<mode>): Likewise.
15157 (*branch_equality<mode>_inverted): Likewise.
15158 (*jump_absolute): Likewise.
15159 (*jump_pic): Likewise.
15160 (indirect_jump): Use mips_output_jump to produce assembly output.
15161 (tablejump_<mode>"): Likewise.
15162 (*<optab>"): Likewise.
15163 (<optab>_internal): Likewise.
15164 (sibcall_internal): Likewise.
15165 (sibcall_value_internal): Likewise.
15166 (sibcall_value_multiple_internal): Likewise.
15167 (call_internal): Likewise.
15168 (call_split): Likewise.
15169 (call_internal_direct): Likewise.
15170 (call_direct_split): Likewise.
15171 (call_value_internal): Likewise.
15172 (call_value_split): Likewise.
15173 (call_value_internal_direct): Likewise.
15174 (call_value_direct_split): Likewise.
15175 (call_value_multiple_internal): Likewise.
15176 (call_value_multiple_split): Likewise.
15177 (mips_get_fcsr_mips16_<mode>): Likewise.
15178 (mips_set_fcsr_mips16_<mode>): Likewise.
15179 (tls_get_tp_mips16_<mode>): Likewise.
15180 * config/mips/mips.opt: Add -mcompact-branches option.
15181 * config/mips/predicates.md (order_operator): Ensure the
15182 conditional compact branches are only used if the ISA them.
15183 * doc/invoke.texi: Document -mcompact-branches option.
15184
15185 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
15186
15187 PR target/61578
15188 * lra-lives.c (process_bb_lives): Process move pseudos with the
15189 same value for copies and preferences
15190 * lra-constraints.c (match_reload): Create match reload pseudo
15191 with the same value from single dying input pseudo.
15192
15193 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
15194
15195 PR target/67405
15196 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15197
15198 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
15199
15200 * trans-mem.c: Add contributed-by.
15201 * trans-mem.h: Same.
15202
15203 2015-09-01 Richard Biener <rguenther@suse.de>
15204
15205 * expr.c (expand_expr_real_1): For expanding TERed defs
15206 set the current location to that of the def if not UNKNOWN.
15207
15208 2015-09-01 David Sherwood <david.sherwood@arm.com>
15209
15210 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15211
15212 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15213
15214 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15215 then_cost, else_cost fields. Change branch_cost field to unsigned int.
15216 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15217 Include rtl-iter.h.
15218 (noce_simple_bbs): New function.
15219 (noce_try_move): Bail if basic blocks are not simple.
15220 (noce_try_store_flag): Likewise.
15221 (noce_try_store_flag_constants): Likewise.
15222 (noce_try_addcc): Likewise.
15223 (noce_try_store_flag_mask): Likewise.
15224 (noce_try_cmove): Likewise.
15225 (noce_try_minmax): Likewise.
15226 (noce_try_abs): Likewise.
15227 (noce_try_sign_mask): Likewise.
15228 (noce_try_bitop): Likewise.
15229 (bbs_ok_for_cmove_arith): New function.
15230 (noce_emit_all_but_last): Likewise.
15231 (noce_emit_insn): Likewise.
15232 (noce_emit_bb): Likewise.
15233 (noce_try_cmove_arith): Handle non-simple basic blocks.
15234 (insn_valid_noce_process_p): New function.
15235 (contains_mem_rtx_p): Likewise.
15236 (bb_valid_for_noce_process_p): Likewise.
15237 (noce_process_if_block): Allow non-simple basic blocks
15238 where appropriate.
15239
15240 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
15241
15242 * tree-ssa-dom.c (record_equivalences_from_phis,
15243 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15244 (lookup_avail_expr): Likewise, and remove comment and unused temp.
15245
15246 2015-09-01 Nick Clifton <nickc@redhat.com>
15247
15248 * config/msp430/msp430.opt (mcpu): Fix typo.
15249
15250 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15251
15252 * config/aarch64/aarch64.c (aarch64_set_current_function):
15253 Re-layout any vector parameters have non-simd layout.
15254 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15255 Delete.
15256 (aarch64_simd_expand_args): Delete call to the above.
15257
15258 2015-08-31 Mike Frysinger <vapier@gentoo.org>
15259
15260 * doc/invoke.texi (asan-stack): Add space before option.
15261
15262 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15263
15264 * tree.h (zerop): New function.
15265 * tree.c (zerop): Likewise.
15266 (element_precision): Handle expressions.
15267 * match.pd (define_predicates): Add zerop.
15268 (x <= +Inf): Fix comment.
15269 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15270 * fold-const.c (fold_binary_loc): ... here. Remove.
15271
15272 2015-08-31 Richard Biener <rguenther@suse.de>
15273
15274 PR middle-end/67381
15275 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15276
15277 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15278
15279 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15280 (CEXPI): New operator list.
15281 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15282 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15283 Converted from ...
15284 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15285
15286 2015-08-31 Tom de Vries <tom@codesourcery.com>
15287
15288 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15289 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15290 parameter.
15291 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15292 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15293 (rewrite_into_loop_closed_ssa): ... here.
15294 (replace_uses_in_dominated_bbs): Remove function.
15295 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15296 rewrite_into_loop_closed_ssa_1.
15297
15298 2015-08-31 Michael Matz <matz@suse.de>
15299
15300 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15301 enter entry and exit blocks for reverse post order.
15302
15303 2015-08-31 Richard Biener <rguenther@suse.de>
15304
15305 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15306 (lto_location_cache::current_sysp): Likewise.
15307 (output_block::current_sysp): Likewise.
15308 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15309 (lto_location_cache::apply_location_cache): Properly record
15310 system header locations.
15311 (lto_location_cache::input_location): Input whether a file
15312 is a system header.
15313 * lto-streamer-out.c (lto_output_location): Stream whether a file
15314 is a system header.
15315
15316 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15317
15318 PR bootstrap/67363
15319 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15320
15321 2015-08-31 Tom de Vries <tom@codesourcery.com>
15322
15323 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15324 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15325 Improve function header comments.
15326
15327 2015-08-30 Michael Collison <michael.collison@linaro.org>
15328
15329 PR other/67320
15330 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15331 standard names
15332
15333 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15334
15335 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15336 special_handling bitfield.
15337 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15338 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15339 that represents a general xxpermdi.
15340 (insn_is_swappable_p): Add handling for vec_concat of two
15341 doublewords, which maps to a specific xxpermdi.
15342 (adjust_xxpermdi): New function.
15343 (adjust_concat): Likewise.
15344 (handle_special_swappables): Call adjust_xxpermdi and
15345 adjust_concat.
15346 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15347
15348 2015-08-30 Rich Felker <dalias@libc.org>
15349
15350 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15351 case instead of sh[123456ble]-*-*.
15352
15353 2015-08-29 Anatoly Sokolov <aesok@post.ru>
15354
15355 * ira.c (print_unform_and_important_classes,
15356 print_translated_classes): Remove reg_class_names static array.
15357 (print_unform_and_important_classes): Rename to ...
15358 (print_uniform_and_important_classes): ... this.
15359 (ira_debug_allocno_classes): Update accordingly.
15360
15361 2015-08-29 Tom de Vries <tom@codesourcery.com>
15362
15363 PR tree-optimization/46193
15364 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15365 clause.
15366
15367 2015-08-28 Jeff Law <law@redhat.com>
15368
15369 PR lto/66752
15370 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15371 unable to find X NE 0 in the tables, return X as the simplified
15372 condition.
15373 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15374 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15375 to VISISTED_BBS.
15376 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15377 after removing the control flow statement and unnecessary edges.
15378
15379 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
15380
15381 Revert:
15382 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15383
15384 PR tree-optimization/67283
15385 * tree-sra.c (type_consists_of_records_p): Rename to...
15386 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15387
15388 (completely_scalarize_record): Rename to...
15389 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15390 code to:
15391 (scalarize_elem): New.
15392
15393 2015-08-28 Jiong Wang <jiong.wang@arm.com>
15394
15395 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15396 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15397 (aarch64_symbol_type): Likewise.
15398 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15399 Likewise.
15400 (aarch64_expand_mov_immediate): Likewise.
15401 (aarch64_print_operand): Likewise.
15402 (aarch64_classify_tls_symbol): Likewise.
15403
15404 2015-08-28 Richard Biener <rguenther@suse.de>
15405
15406 * cgraphunit.c (symbol_table::compile): Move early debug generation
15407 and finish...
15408 (symbol_table::finalize_compilation_unit): ... back here and
15409 add a !seen_error () guard.
15410
15411 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15412
15413 * toplev.c (process_options): Do not use flag_loop_block,
15414 flag_loop_interchange, and flag_loop_strip_mine. Add check for
15415 flag_loop_optimize_isl.
15416
15417 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15418
15419 * Makefile.in (OBJS): Remove graphite-blocking.o and
15420 graphite-interchange.o.
15421 * common.opt (floop-strip-mine, floop-interchange, floop-block):
15422 Alias of floop-nest-optimize.
15423 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15424 Document as alias of -floop-nest-optimize.
15425 * graphite-blocking.c: Remove.
15426 * graphite-interchange.c: Remove.
15427 * graphite-optimize-isl.c: Include dumpfile.h.
15428 (getScheduleForBand): Add dump for tiled loops. Use
15429 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
15430 * graphite-poly.c (scop_max_loop_depth): Remove.
15431 (print_scattering_function_1): Remove.
15432 (print_scattering_function): Remove.
15433 (print_scattering_functions): Remove.
15434 (debug_scattering_function): Remove.
15435 (debug_scattering_functions): Remove.
15436 (apply_poly_transforms): Remove use of flag_loop_block,
15437 flag_loop_strip_mine, and flag_loop_interchange.
15438 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
15439 PBB_ORIGINAL.
15440 (print_pdr_access_layout): Remove.
15441 (print_pdr): Print ISL representation.
15442 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
15443 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
15444 (free_scop): Same.
15445 (openscop_print_pbb_domain): Remove.
15446 (print_pbb): Remove call to print_scattering_function.
15447 (openscop_print_scop_context): Remove.
15448 (print_scop_context): Do not print matrices anymore.
15449 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
15450 SCOP_TRANSFORMED_SCHEDULE.
15451 (print_isl_set): Add printing of a new line.
15452 (print_isl_map): Same.
15453 (print_isl_aff): Same.
15454 (print_isl_constraint): Same.
15455 (loop_to_lst): Remove.
15456 (scop_to_lst): Remove.
15457 (lst_indent_to): Remove.
15458 (print_lst): Remove.
15459 (debug_lst): Remove.
15460 (dot_lst_1): Remove.
15461 (dot_lst): Remove.
15462 (reverse_loop_at_level): Remove.
15463 (reverse_loop_for_pbbs): Remove.
15464 * graphite-poly.h (pdr_dim_iter_domain): Remove.
15465 (pdr_nb_params): Remove.
15466 (pdr_alias_set_dim): Remove.
15467 (pdr_subscript_dim): Remove.
15468 (pdr_iterator_dim): Remove.
15469 (pdr_parameter_dim): Remove.
15470 (same_pdr_p): Remove.
15471 (struct poly_scattering): Remove.
15472 (struct poly_bb): Remove _original, _transformed, _saved.
15473 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
15474 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
15475 (PBB_NB_LOCAL_VARIABLES): Remove.
15476 (PBB_NB_SCATTERING_TRANSFORM): Remove.
15477 (schedule_to_scattering): Remove.
15478 (number_of_write_pdrs): Remove.
15479 (pbb_dim_iter_domain): Remove.
15480 (pbb_nb_params): Remove.
15481 (pbb_nb_scattering_orig): Remove.
15482 (pbb_nb_scattering_transform): Remove.
15483 (pbb_nb_dynamic_scattering_transform): Remove.
15484 (pbb_nb_local_vars): Remove.
15485 (pbb_iterator_dim): Remove.
15486 (pbb_parameter_dim): Remove.
15487 (psco_scattering_dim): Remove.
15488 (psct_scattering_dim): Remove.
15489 (psct_local_var_dim): Remove.
15490 (psco_iterator_dim): Remove.
15491 (psct_iterator_dim): Remove.
15492 (psco_parameter_dim): Remove.
15493 (psct_parameter_dim): Remove.
15494 (psct_dynamic_dim): Remove.
15495 (psct_static_dim): Remove.
15496 (psct_add_local_variable): Remove.
15497 (new_lst_loop): Remove.
15498 (new_lst_stmt): Remove.
15499 (free_lst): Remove.
15500 (copy_lst): Remove.
15501 (lst_add_loop_under_loop): Remove.
15502 (lst_depth): Remove.
15503 (lst_dewey_number): Remove.
15504 (lst_dewey_number_at_depth): Remove.
15505 (lst_pred): Remove.
15506 (lst_succ): Remove.
15507 (lst_find_pbb): Remove.
15508 (find_lst_loop): Remove.
15509 (lst_find_first_pbb): Remove.
15510 (lst_empty_p): Remove.
15511 (lst_find_last_pbb): Remove.
15512 (lst_contains_p): Remove.
15513 (lst_contains_pbb): Remove.
15514 (lst_create_nest): Remove.
15515 (lst_remove_from_sequence): Remove.
15516 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
15517 (lst_niter_for_loop): Remove.
15518 (pbb_update_scattering): Remove.
15519 (lst_update_scattering_under): Remove.
15520 (lst_update_scattering): Remove.
15521 (lst_insert_in_sequence): Remove.
15522 (lst_replace): Remove.
15523 (lst_substitute_3): Remove.
15524 (lst_distribute_lst): Remove.
15525 (lst_remove_all_before_including_pbb): Remove.
15526 (lst_remove_all_before_excluding_pbb): Remove.
15527 (struct scop): Remove original_schedule, transformed_schedule, and
15528 saved_schedule.
15529 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
15530 (SCOP_SAVED_SCHEDULE): Remove.
15531 (poly_scattering_new): Remove.
15532 (poly_scattering_free): Remove.
15533 (poly_scattering_copy): Remove.
15534 (store_scattering_pbb): Remove.
15535 (store_lst_schedule): Remove.
15536 (restore_lst_schedule): Remove.
15537 (store_scattering): Remove.
15538 (restore_scattering_pbb): Remove.
15539 (restore_scattering): Remove.
15540 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
15541 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
15542 compute the scattering polyhedron dimension from the dimension of
15543 pbb->domain.
15544 (build_scop_scattering): Update call to
15545 build_pbb_scattering_polyhedrons.
15546 (build_poly_scop): Remove call to scop_to_lst.
15547 * graphite.c (graphite_transform_loops): Add call to print_scop.
15548 (gate_graphite_transforms): Remove use of flag_loop_block,
15549 flag_loop_interchange, and flag_loop_strip_mine.
15550
15551 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15552
15553 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
15554 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
15555 -floop-nest-optimize.
15556 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
15557 (generate_luj_sepclass): Remove.
15558 (generate_luj_options): Remove.
15559 (set_options): Remove opt_luj.
15560 (scop_to_isl_ast): Remove opt_luj.
15561 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
15562 flag_loop_unroll_jam.
15563 (getPrevectorMap_full): Remove.
15564 (getScheduleForBandList): Remove map_sepcl.
15565 (getScheduleMap): Same.
15566 (apply_schedule_map_to_scop): Remove sepcl.
15567 (optimize_isl): Same.
15568 * graphite-poly.c (apply_poly_transforms): Remove check for
15569 flag_loop_unroll_jam.
15570 (new_poly_bb): Remove map_sepclass.
15571 * graphite-poly.h (struct poly_bb): Same.
15572 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
15573 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
15574 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
15575 * toplev.c (process_options): Remove flag_loop_unroll_jam.
15576
15577 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
15578
15579 PR target/67317
15580 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
15581 (addqi3_cc): Ditto.
15582 (UNSPEC_ADD_CARRY): Remove.
15583 (addqi3_cconly_overflow): New expander.
15584 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
15585 Adjust for changed add<mode>3_carry.
15586 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
15587 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
15588 (<plusminus_insn><mode>3_carry): Remove expander.
15589 (*<plusminus_insn><mode>3_carry): Split insn pattern to
15590 add<mode>3_carry and sub<mode>3_carry.
15591 (plusminus_carry_mnemonic): Remove code attribute.
15592 (add<mode>3_carry): Canonicalize insn pattern.
15593 (*addsi3_carry_zext): Ditto.
15594 (sub<mode>3_carry): Ditto.
15595 (*subsi3_carry_zext): Ditto.
15596 (adcx<mode>3): Remove insn pattern.
15597 (addcarry<mode>): New insn pattern.
15598 (subborrow<mode>): Ditto.
15599 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
15600 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
15601 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
15602 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
15603 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
15604 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
15605 Rewrite expander to not clobber carry flag chains.
15606
15607 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
15608
15609 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
15610 instead of a rotate.
15611
15612 2015-08-27 Marek Polacek <polacek@redhat.com>
15613
15614 PR middle-end/67005
15615 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
15616 an entry into an irreducible region.
15617
15618 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15619
15620 * configure: Regenerate.
15621
15622 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15623
15624 PR tree-optimization/67283
15625 * tree-sra.c (type_consists_of_records_p): Rename to...
15626 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15627
15628 (completely_scalarize_record): Rename to...
15629 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15630 (scalarize_elem): New.
15631
15632 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15633
15634 * tree-sra.c (completely_scalarize_var): Rename to...
15635 (create_total_scalarization_access): ... Here. Drop call to
15636 completely_scalarize_record.
15637
15638 (analyze_all_variable_accesses): Replace completely_scalarize_var
15639 with create_total_scalarization_access and completely_scalarize_record.
15640
15641 2015-08-27 Alan Modra <amodra@gmail.com>
15642
15643 PR target/67356
15644 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
15645 for operand 1.
15646
15647 2015-08-27 Richard Biener <rguenther@suse.de>
15648
15649 * passes.c (rest_of_decl_compilation): Guard early_global_decl
15650 call with !seen_error ().
15651 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
15652 early debug generation and finish...
15653 (symbol_table::compile): ... here to put it after a !seen_error ()
15654 guard.
15655
15656 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15657
15658 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
15659 Solaris 12+.
15660
15661 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15662 Andre Vieira <andre.simoesdiasvieira@arm.com>
15663
15664 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
15665 (*cb<optab><mode>1): Likewise.
15666 (*tb<optab><mode>1): Likewise.
15667 (*cb<optab><mode>1): Likewise.
15668 * config/aarch64/iterators.md (inv_cb): New code attribute.
15669 (inv_tb): Likewise.
15670 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
15671 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
15672
15673 2015-08-27 Richard Biener <rguenther@suse.de>
15674
15675 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
15676
15677 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15678
15679 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
15680 trap to fix ICE.
15681
15682 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15683
15684 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
15685 Add declaration.
15686
15687 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
15688 comment.
15689 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
15690 floating point in VSX registers.
15691 (rs6000_output_move_128bit): Always print out the set insn if we
15692 can't generate an appropriate 128-bit move.
15693 (rs6000_generate_compare): Add support for IEEE 128-bit floating
15694 point in VSX registers comparisons.
15695 (rs6000_expand_float128_convert): Likewise.
15696
15697 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
15698 predicate for only GPR hard registers.
15699
15700 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
15701 modes to iterators. Add new iterators for moving 128-bit values in
15702 scalar FPR registers and VSX registers.
15703 (FMOVE128): Likewise.
15704 (FMOVE128_FPR): Likewise.
15705 (FMOVE128_GPR): Likewise.
15706 (FMOVE128_VSX): Likewise.
15707 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
15708 in VSX registers.
15709 (IFKF): Likewise.
15710 (IBM128): Likewise.
15711 (TFIFKF): Likewise.
15712 (RELOAD): Add IEEE 128-bit floating point modes.
15713 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
15714 floating point in VSX registers modes.
15715 (signbit<mode>2, IBM128 iterator): Likewise.
15716 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
15717 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15718 (negtf2): Likewise.
15719 (neg<mode>2, TFIFKF iterator): Likewise.
15720 (negtf2_internal): Likewise.
15721 (abstf2): Likewise.
15722 (abs<mode>2, TFIFKF iterator): Likewise.
15723 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
15724 VSX insn support for negate, absolute value, and negative absolute
15725 value.
15726 (ieee_128bit_vsx_neg<mode>2): Likewise.
15727 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
15728 (ieee_128bit_vsx_abs<mode>2): Likewise.
15729 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
15730 (ieee_128bit_vsx_nabs<mode>2): Likewise.
15731 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15732 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
15733 floating point in VSX registers.
15734 (unpack<mode>_dm): Likewise.
15735 (unpack<mode>_nodm): Likewise.
15736 (pack<mode>): Likewise.
15737 (unpackv1ti): Likewise.
15738 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
15739 (packv1ti): Likewise.
15740 (pack<mode>, FMOVE128_VSX iterator): Likewise.
15741 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
15742 registers.
15743 (extenddftf2_internal): Likewise.
15744 (trunctfdf2): Likewise.
15745 (trunctfdf2_internal2): Likewise.
15746 (fix_trunc_helper): Likewise.
15747 (fix_trunctfdi2"): Likewise.
15748 (floatditf2): Likewise.
15749 (floatuns<mode>tf2): Likewise.
15750 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
15751 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
15752 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
15753 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
15754 (float<SDI:mode><IFKF:mode>2): Likewise.
15755 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
15756
15757 2015-08-26 Renlin Li <renlin.li@arm.com>
15758
15759 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
15760
15761 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15762 Jiong Wang <jiong.wang@arm.com>
15763
15764 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
15765 (tlsie_tiny_<mode>): New define_insn.
15766 (tlsie_tiny_sidi): Likewise.
15767 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15768 SYMBOL_TINY_TLSIE.
15769 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
15770 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15771 SYMBOL_TINY_TLSIE.
15772 (aarch64_expand_mov_immediate): Likewise.
15773 (aarch64_print_operand): Likewise.
15774 (arch64_classify_tls_symbol): Likewise.
15775
15776 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15777
15778 * config/arm/arm-arches.def: Replace single value flags with
15779 an initializer built from ARM_FSET_MAKE_CPU1.
15780 * config/arm/arm-cores.def: Likewise.
15781 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
15782 derivation from the ARM_CORE macro definition, use the given value
15783 instead.
15784 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
15785 ARM_ARCH macro definition, use the given value instead.
15786
15787 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15788
15789 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
15790 feature set.
15791 (struct builtin_description): Replace field mask with field
15792 features.
15793 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
15794 (IWMMXT2_BUILTIN): Likewise.
15795 (IWMMXT2_BUILTIN2): Likewise.
15796 (FP_BUILTIN): Likewise.
15797 (CRC32_BUILTIN): Likewise.
15798 (CRYPTO_BUILTIN): Likewise.
15799 (iwmmx_mbuiltin): Likewise.
15800 (iwmmx2_mbuiltin): Likewise.
15801 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
15802 struct builtin_description.
15803
15804 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15805
15806 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
15807 (struct builtin_description): Change type of mask to unsigned
15808 long.
15809 * config/arm/arm-protos.h (insn_flags): Declare as type
15810 arm_feature_set.
15811 (tune_flags): Likewise.
15812 * config/arm/arm.c (feature_count): New.
15813 (insn_flags): Define as type arm_feature_set.
15814 (tune_flags): Likewise.
15815 (struct processors): Define field flags as type arm_feature_set.
15816 (all_cores): Update for change to struct processors.
15817 (all_architectures): Likewise.
15818 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
15819 macros.
15820 (arm_option_override_internal): Likewise.
15821 (arm_option_override): Likewise.
15822
15823 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15824 Jiong Wang <jiong.wang@arm.com>
15825
15826 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
15827 tls size for tiny, small, large memory model.
15828 (aarch64_load_symref_appropriately): Support new symbol types.
15829 (aarch64_expand_mov_immediate): Likewise.
15830 (aarch64_print_operand): Likewise.
15831 (aarch64_classify_tls_symbol): Likewise.
15832 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
15833 (aarch64_symbol_type): Likewise.
15834 * config/aarch64/aarch64.md (tlsle): Deleted.
15835 (tlsle12_<mode>): New define_insn.
15836 (tlsle24_<mode>): Likewise.
15837 (tlsle32_<mode>): Likewise.
15838 (tlsle48_<mode>): Likewise.
15839 * doc/sourcebuild.texi (AArch64-specific attributes): Document
15840 "aarch64_tlsle32".
15841
15842 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15843
15844 * config/arm/arm-protos.h (FL_NONE): New.
15845 (FL_ANY): New.
15846 (arm_feature_set): New.
15847 (ARM_FSET_MAKE): New.
15848 (ARM_FSET_MAKE_CPU1): New.
15849 (ARM_FSET_MAKE_CPU2): New.
15850 (ARM_FSET_CPU1): New.
15851 (ARM_FSET_CPU2): New.
15852 (ARM_FSET_EMPTY): New.
15853 (ARM_FSET_ANY): New.
15854 (ARM_FSET_HAS_CPU1): New.
15855 (ARM_FSET_HAS_CPU2): New.
15856 (ARM_FSET_HAS_CPU): New.
15857 (ARM_FSET_ADD_CPU1): New.
15858 (ARM_FSET_ADD_CPU2): New.
15859 (ARM_FSET_DEL_CPU1): New.
15860 (ARM_FSET_DEL_CPU2): New.
15861 (ARM_FSET_UNION): New.
15862 (ARM_FSET_INTER): New.
15863 (ARM_FSET_XOR): New.
15864 (ARM_FSET_EXCLUDE): New.
15865 (AFM_FSET_IS_EMPTY): New.
15866 (ARM_FSET_CPU_SUBSET): New.
15867
15868 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15869
15870 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15871 SYMBOL_TLSLE to SYMBOL_TLSLE24.
15872 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15873 Likewise.
15874 (aarch64_expand_mov_immediate): Likewise.
15875 (aarch64_print_operand): Likewise.
15876 (aarch64_classify_symbol): Likewise.
15877
15878 2015-08-26 Jiong Wang <jiong.wang@arm.com>
15879
15880 * config/aarch64/aarch64.opt (mtls-size): New entry.
15881 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
15882 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
15883 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
15884
15885 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15886
15887 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
15888 ARM_CORE entry. Fix some white-space.
15889 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
15890 ARM_CORE definition.
15891
15892 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15893
15894 * fold-const.c (fold_binary_loc) : Move Optimize
15895 root(x)*root(y) as root(x*y) to match.pd.
15896 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
15897 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
15898 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
15899 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
15900 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
15901 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
15902 (mult (exps:s @0) (exps:s @1)) : New simplifier.
15903 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
15904 (rdiv @0 (exps:s @1)) : New simplifier.
15905
15906 2015-08-25 Joseph Myers <joseph@codesourcery.com>
15907
15908 * gcc.c (driver::finalize): Only assign to extra_specs if
15909 [EXTRA_SPECS].
15910
15911 2015-08-25 Marek Polacek <polacek@redhat.com>
15912
15913 PR middle-end/67330
15914 * varasm.c (declare_weak): Return after giving an error.
15915
15916 2015-08-25 David Malcolm <dmalcolm@redhat.com>
15917
15918 * gcc-main.c (main): Add params to driver ctor.
15919 * gcc.c (class env_manager): New.
15920 (env): New global.
15921 (env_manager::init): New.
15922 (env_manager::get): New.
15923 (env_manager::xput): New.
15924 (env_manager::restore): New.
15925 Poison getenv and putenv.
15926 (DEFAULT_TARGET_SYSTEM_ROOT): New.
15927 (target_system_root): Update initialization to use
15928 DEFAULT_TARGET_SYSTEM_ROOT.
15929 (struct spec_list): Add field "default_ptr".
15930 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
15931 (init_spec): Likewise.
15932 (set_spec): Clear field "default_ptr".
15933 (read_specs): Free "spec" and "buffer".
15934 (xputenv): Reimplement in terms of env_manager.
15935 (process_command): Replace ::getenv calls with calls to the
15936 env_manager singleton.
15937 (process_brace_body): Free string in three places.
15938 (driver::driver): New.
15939 (driver::~driver): New.
15940 (used_arg): Convert from a function to...
15941 (class used_arg_t): ...this class, and...
15942 (used_arg): ...this new global instance.
15943 (used_arg_t::finalize): New function.
15944 (getenv_spec_function): Add "const" to local "value". Replace
15945 ::getenv call with call to the env_manager singleton.
15946 (path_prefix_reset): New function.
15947 (driver::finalize): New function.
15948 * gcc.h (driver::driver): New.
15949 (driver::~driver): New.
15950 (driver::finalize): New.
15951
15952 2015-08-25 Nathan Sidwell <nathan@acm.org>
15953
15954 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
15955 target doesn't have one.
15956
15957 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15958
15959 PR target/67346
15960 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
15961
15962 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
15963
15964 PR target/67344
15965 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
15966 a define_insn, remove second alternative.
15967
15968 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
15969 Joseph Myers <joseph@codesourcery.com>
15970
15971 * gcc.c (struct switchstr): Expand comment.
15972
15973 2015-08-25 Nathan Sidwell <nathan@acm.org>
15974
15975 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
15976 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
15977
15978 2015-08-25 Richard Biener <rguenther@suse.de>
15979
15980 PR middle-end/67306
15981 * genmatch.c (expr::gen_transform): Verify the result of
15982 builtin_decl_implicit.
15983 (dt_simplify::gen_1): Likewise.
15984
15985 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
15986
15987 * config/arm/constraints.md: Also list Cs and US ARM-specific
15988 constraints as used.
15989
15990 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
15991
15992 PR target/66609
15993 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
15994 UNSPEC_PCREL.
15995 (nonpic_symbol_mentioned_p): Likewise.
15996 (sh_delegitimize_address): Likewise.
15997 (sh_function_ok_for_sibcall): Take into account weak symbols.
15998 (sh_expand_sym_label2reg): New.
15999 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16000 * config/sh/sh.md (UNSPEC_PCREL): New enum.
16001 (call_pcrel): Use sh_expand_sym_label2reg.
16002 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16003 (symPCREL_label2reg) New expand.
16004
16005 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16006
16007 * graphite-poly.c: Change type of region from void* to sese.
16008 * graphite-poly.h (struct scop): Changing the type of scop::region
16009 from void* to sese. Change accessor macro accordingly.
16010 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16011
16012 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16013
16014 * graphite-scop-detection.c (stmt_simple_for_scop_p):
16015 Constrain only on INTEGER_TYPE.
16016
16017 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16018
16019 PR target/67211
16020 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16021 -mefficient-unaligned-vsx on ISA 2.7.
16022
16023 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16024 option to a masked option.
16025
16026 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16027 logic for -mefficient-unaligned-vsx so that it is set via an arch
16028 ISA option, instead of being set if -mtune=power8 is set. Move
16029 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16030 near other default option handling.
16031
16032 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16033
16034 * genflags.c (gen_macro): Delete.
16035 (gen_proto): Don't create GEN.*CALL.* macros.
16036 * gensupport.h (get_file_location): Declare.
16037 * gensupport.c (rtx_locs): New variable.
16038 (read_md_rtx): Record rtx locations.
16039 (get_file_location): New function.
16040 * target-insns.def (call, call_pop, call_value, call_value_pop)
16041 (sibcall, sibcall_value): New patterns.
16042 * gentarget-def.c (parse_argument): New function.
16043 (def_target_insn): Use it. Handle optional operands. Raise an
16044 error if an .md pattern has the wrong number of operands for the
16045 pattern name. Remove the names of unused operands from the prototype.
16046 * builtins.c (expand_builtin_apply): Use targetm functions
16047 instead of HAVE_call_value and GEN_CALL_VALUE.
16048 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
16049 and sibcall_value_pop.
16050 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16051 of GEN_CALL.
16052 * config/alpha/alpha.md (untyped_call): Likewise.
16053 * config/iq2000/iq2000.md (untyped_call): Likewise.
16054 * config/m68k/m68k.md (untyped_call): Likewise.
16055 * config/mips/mips.md (untyped_call): Likewise.
16056 * config/pa/pa.md (untyped_call): Likewise.
16057 * config/rs6000/rs6000.md (untyped_call): Likewise.
16058 * config/sparc/sparc.md (untyped_call): Likewise.
16059 * config/tilegx/tilegx.md (untyped_call): Likewise.
16060 * config/tilepro/tilepro.md (untyped_call): Likewise.
16061 * config/visium/visium.md (untyped_call): Likewise.
16062 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16063 gen_call_value instead of GEN_CALL_VALUE.
16064 * config/arm/arm.md (untyped_call): Likewise.
16065 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16066 GEN_CALL.
16067
16068 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16069
16070 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16071 (have_cbranchcc4): New variable.
16072 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16073 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16074 (if_convert): Initialize have_cbranchcc4.
16075
16076 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16077
16078 * builtins.c (expand_cmpstrn): Rename to...
16079 (expand_cmpstrn_or_cmpmem): ...this.
16080 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16081 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16082 Remove mode argument.
16083 (expand_builtin): Update accordingly.
16084
16085 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16086
16087 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16088 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
16089 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16090 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16091 Add predicates for operands 0 and 3.
16092 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16093 operand.
16094 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16095 immediate_operand to nonmemory_operand.
16096
16097 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16098
16099 * df-scan.c (df_insn_info_init_fields): New function, split out
16100 from...
16101 (df_insn_create_insn_record): ...here.
16102 (df_insn_info_free_fields): New function, split out from...
16103 (df_insn_info_delete): ...here.
16104 (df_insn_rescan): Use the new functions instead of freeing and
16105 reallocating the df_insn_info.
16106
16107 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16108
16109 * doc/install.texi (Binaries): Remove links no longer valid.
16110
16111 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
16112
16113 * config/nvptx/mkoffload.c (process): Replace
16114 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16115
16116 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
16117
16118 PR target/67329
16119 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16120
16121 2015-08-24 Renlin Li <renlin.li@arm.com>
16122
16123 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16124 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16125 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16126 * config/arm/constraints.md ("j"): Add check for high code.
16127
16128 2015-08-24 Tom de Vries <tom@codesourcery.com>
16129
16130 PR tree-optimization/65468
16131 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16132 chunk_size is one.
16133
16134 2015-08-24 Nathan Sidwell <nathan@acm.org>
16135
16136 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16137 change to nvptx_type_from_mode call. Use arg_promotion for both
16138 split and non-split args.
16139
16140 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16141
16142 * target-insns.def (movstr): New pattern.
16143 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16144 (expand_movstr): Use targetm rather than HAVE_movstr/
16145 CODE_FOR_movstr.
16146
16147 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16148
16149 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16150 cast syntax.
16151
16152 2015-08-24 Andrew Pinski <apinski@cavium.com>
16153
16154 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16155 AARCH64_EXTRA_TUNING_OPTION.
16156 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16157 New enum.
16158 (aarch64_extra_tuning_flags): Base the shifted value on the index
16159 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16160 * config/aarch64/aarch64.c: Remove the last argument to
16161 AARCH64_EXTRA_TUNING_OPTION.
16162
16163 2015-08-23 Nathan Sidwell <nathan@acm.org>
16164
16165 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16166 decls.
16167 (nvptx_declare_function_name): Insert formatting tabs for
16168 consistency.
16169
16170 2015-08-23 Tom de Vries <tom@codesourcery.com>
16171
16172 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16173 parm_decl, rather than generating a dummy default def in cfun.
16174 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
16175 ssa_name from cfun and child_fn do not share a stmt as def stmt.
16176 (move_stmt_op): Handle PARM_DECl.
16177 (gather_ssa_name_hash_map_from): New function.
16178 (move_sese_region_to_fn): Add default defs for function params, and add
16179 them to vars_map. Release copied ssa names.
16180 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16181
16182 2015-08-23 Tom de Vries <tom@codesourcery.com>
16183
16184 * doc/sourcebuild.texi: Rename vect_no_int_max with
16185 vect_no_int_min_max. Update description.
16186
16187 2015-08-22 Andrew Pinski <apinski@cavium.com>
16188
16189 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16190 * config/aarch64/aarch64-protos.h
16191 (aarch64_fusion_pairs_index): New enum.
16192 (aarch64_fusion_pairs): Base the shifted value on the index instead
16193 Rewrite AARCH64_FUSE_ALL to be based on the end index.
16194 of the argument to AARCH64_FUSION_PAIR.
16195 * config/aarch64/aarch64.c: Remove the last argument to
16196 AARCH64_FUSION_PAIR.
16197
16198 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
16199
16200 * dominance.c (new_zero_array): Define.
16201 (dom_info): Redefine as class with proper encapsulation.
16202 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16203 Add new members.
16204 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
16205 allocations/deallocations. Pass function as parameter (instead of
16206 using cfun).
16207 (dom_info::get_idom): Define accessor method.
16208 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16209 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
16210 (calculate_dominance_info): Adjust to use dom_info class.
16211 (verify_dominators): Likewise.
16212
16213 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
16214
16215 * print-rtl.c (print_rtx): Check the correct range for
16216 flag_dump_unnumbered_links to behave as documented.
16217
16218 PR rtl-optimization/67227
16219 PR rtl-optimization/64164
16220 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16221 (nonoverlapping_memrefs_p): Test offsets and sizes when given
16222 identical gimple_reg exprs.
16223
16224 2015-08-21 Nathan Sidwell <nathan@acm.org>
16225
16226 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16227 expansion.
16228 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16229 crtl->stack_alignment_needed to determine alignment.
16230 (nvptx_get_drap_rtx): New.
16231 (TARGET_GET_DRAP_RTX): Override.
16232 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16233
16234 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16235
16236 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16237
16238 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16239
16240 * configure.ac: Remove uwin* cases.
16241 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16242 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16243 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16244 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16245 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16246 i[34567]86-*-uwin*, powerpc-*-beos*.
16247
16248 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
16249
16250 * gencodes.c (gencodes): Print the comma for the preceding
16251 enum value rather than the current one. Use aliased enum values
16252 rather than #defines for compiled-out patterns.
16253 (main): Update accordingly. Replace LAST_INSN_CODE with
16254 NUM_INSN_CODES.
16255 * lra.c (insn_code_data): Update accordingly.
16256 (finish_insn_code_data_once, get_static_insn_data): Likewise.
16257 * recog.h (target_recog): Likewise.
16258 (preprocess_insn_constraints): Change parameter to unsigned int.
16259 * recog.c (preprocess_insn_constraints): Likewise.
16260 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16261 * tree-vect-stmts.c (vectorizable_operation): Simplify.
16262
16263 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
16264
16265 PR rtl-optimization/61657
16266 * loop-iv.c (iv_number_of_iterations): Declare up and down as
16267 unsigned. Remove superflous uint64_t cast.
16268
16269 2014-08-21 Felix Yang <felix.yang@huawei.com>
16270 Jiji Jiang <jiangjiji@huawei.com>
16271
16272 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16273 argument and get builtin function code directly from CALL.
16274 (gimple_stringop_fixed_value): Modified accordingly.
16275 (gimple_stringops_transform, gimple_stringops_values_to_profile):
16276 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16277
16278 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
16279
16280 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16281
16282 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16283
16284 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16285 to match.pd.
16286 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16287 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16288 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16289 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16290 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16291 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16292 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16293 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16294 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16295 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16296
16297 * match.pd (SIN ) : New Operator.
16298 (TAN) : New Operator.
16299 (mult (SQRT@1 @0) @1) : New simplifier.
16300 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16301 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16302 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16303 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16304 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16305 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16306 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16307 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16308 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16309 (rdiv @0 (POW:s @1 @2)) : New simplifier.
16310
16311 2015-08-21 Bin Cheng <bin.cheng@arm.com>
16312
16313 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16314 loop if EXPR is simplified to const value.
16315
16316 2015-08-21 Yury Gribov <y.gribov@samsung.com>
16317
16318 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16319 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16320
16321 2015-08-21 Richard Biener <rguenther@suse.de>
16322
16323 PR middle-end/67285
16324 * gimple-fold.c (replace_stmt_with_simplification): Assert
16325 seq is empty when replacing a call with itself but different
16326 arguments.
16327 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16328 a call require that it is const.
16329
16330 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16331
16332 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16333 * builtins.c (get_object_alignment_2): Adjust.
16334 * varasm.c (align_variable): Likewise.
16335 (get_variable_align): Likewise.
16336 (build_constant_desc): Likewise.
16337 (force_const_mem): Likewise.
16338 * doc/tm.texi.in: Likewise.
16339 * doc/tm.texi: Regenerate.
16340
16341 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16342
16343 * genconfig.c (main): Always define HAVE_cc0.
16344 * recog.c (rest_of_handle_peephole2): Adjust.
16345
16346 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16347
16348 * reorg.c (relax_delay_slots): Don't use #if to check value of
16349 HAVE_cc0.
16350
16351 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16352
16353 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16354 * targhooks.c (default_have_conditional_execution): Adjust.
16355
16356 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16357
16358 * rtl.h (rtvec_all_equal_p): Declare.
16359 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16360 * rtl.c (rtvec_all_equal_p): New function.
16361 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16362 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16363 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16364 * config/arm/arm.c (neon_vdup_constant): Likewise.
16365 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16366 * config/tilegx/constraints.md (W, Y): Likewise.
16367 * config/tilepro/constraints.md (W, Y): Likewise.
16368 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16369 (classify_immediate): Use unwrap_const_vec_duplicate.
16370 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16371 (reg_or_v2s8bit_operand): Likewise.
16372 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16373 (reg_or_v4s8bit_operand): Likewise.
16374
16375 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16376
16377 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16378 (vec_shasigma_be): New #define.
16379 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16380 (VPMSUMH): Likewise.
16381 (VPMSUMW): Likewise.
16382 (VPMSUMD): Likewise.
16383 (VPMSUM): New BU_P8V_OVERLOAD_2.
16384 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16385 entries for VEC_MADD and VEC_VPMSUM.
16386
16387 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
16388
16389 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16390 Multiply argument avr_n_flash by 64 to match unit of "KiB".
16391 (avr_pgm_check_var_decl): Same.
16392
16393 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
16394
16395 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16396 initialization of HFmode scalar type (float16_t) to...
16397 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16398 code.
16399
16400 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16401
16402 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16403 having an -mfp16-format.
16404
16405 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16406
16407 * config/i386/predicates.md (vector_all_ones_operand): Use
16408 CONSTM1_RTX to simplify definition.
16409
16410 2015-08-20 Richard Biener <rguenther@suse.de>
16411
16412 * toplev.c (compile_file): Remove loop calling late_global_decl
16413 on all symbols.
16414 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16415 on decls we assembled.
16416
16417 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
16418
16419 * common/config/aarch64/aarch64-common.c
16420 (AARCH64_CPU_NAME_LENGTH): Delete.
16421 (aarch64_option_extension): New.
16422 (all_extensions): Likewise.
16423 (processor_name_to_arch): Likewise.
16424 (arch_to_arch_name): Likewise.
16425 (all_cores): New.
16426 (all_architectures): Likewise.
16427 (aarch64_get_extension_string_for_isa_flags): Likewise.
16428 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
16429 architecture names.
16430 * config/aarch64/aarch64-protos.h
16431 (aarch64_get_extension_string_for_isa_flags): New.
16432 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
16433 (aarch64_option_print): Get the string to print from
16434 aarch64_get_extension_string_for_isa_flags.
16435 (aarch64_declare_function_name): Likewise.
16436 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
16437 (MCPU_TO_MARCH_SPEC): This.
16438 (ASM_CPU_SPEC): Use it.
16439 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
16440 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
16441 (EXTRA_SPEC_FUNCTIONS): Use it.
16442
16443 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
16444
16445 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
16446 expansion when !ISA_HAS_LWL_LWR.
16447 (mips_block_move_straight): Update the size of elements copied to
16448 account for alignment when !ISA_HAS_LWL_LWR.
16449 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
16450
16451 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16452
16453 * expr.c (expand_expr_real_2): Check gimple statement during
16454 LSHIFT_EXPR expand.
16455
16456 2015-08-19 Magnus Granberg <zorry@gentoo.org>
16457
16458 * common.opt (fstack-protector): Initialize to -1.
16459 (fstack-protector-all): Likewise.
16460 (fstack-protector-strong): Likewise.
16461 (fstack-protector-explicit): Likewise.
16462 * configure.ac: Add --enable-default-ssp.
16463 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
16464 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
16465 -1.
16466 * doc/install.texi: Document --enable-default-ssp.
16467 * config.in: Regenerated.
16468 * configure: Likewise.
16469
16470 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
16471
16472 PR rtl-optimization/64164
16473 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
16474 (parm_in_stack_slot_p): ... this. Disregard mode, what
16475 matters is whether the parm will live in a pseudo or a stack
16476 slot.
16477 (expand_one_ssa_partition): Deal with params without a default
16478 def. Disregard mode.
16479 * cfgexpand.h: Renamed function declaration.
16480 * tree-ssa-coalesce.c: Adjust.
16481 * function.c (split_complex_args): Allocate stack slot for
16482 unassigned parms before splitting.
16483 (parm_in_unassigned_mem_p): New. Use it instead of
16484 parm_maybe_byref_p throughout this file.
16485 (assign_parm_setup_block): Use it. Accept pseudos in the
16486 expand-assigned rtl.
16487 (assign_parm_setup_reg): Drop BLKmode requirement.
16488 (assign_parm_setup_stack): Allocate and fill in the address of
16489 unassigned MEM parms.
16490
16491 2015-08-19 David Sherwood <david.sherwood@arm.com>
16492
16493 * genmodes.c (emit_mode_unit_size_inline): New function.
16494 (emit_mode_unit_precision_inline): New function.
16495 (emit_insn_modes_h): Emit new #define. Emit new functions.
16496 (emit_mode_unit_size): New function.
16497 (emit_mode_unit_precision): New function.
16498 (emit_mode_adjustments): Add mode_unit_size adjustments.
16499 (emit_insn_modes_c): Emit new arrays.
16500 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
16501 use new inline methods.
16502
16503 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16504
16505 * config/aarch64/aarch64.c (bit_count): Delete prototype
16506 and definition.
16507 (aarch64_print_operand): Use popcount_hwi instead of the above.
16508
16509 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16510
16511 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
16512 comment.
16513
16514 2015-08-19 Marek Polacek <polacek@redhat.com>
16515
16516 PR middle-end/67133
16517 * gimple-ssa-isolate-paths.c
16518 (insert_trap_and_remove_trailing_statements): Rename to ...
16519 (insert_trap): ... this. Don't remove trailing statements; split
16520 block instead.
16521 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
16522
16523 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
16524
16525 PR other/67042
16526 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
16527 conditionalize the whole on __GNUC__. Add fallback code
16528 depending neither on undefined nor implementation-defined behaviour.
16529
16530 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16531
16532 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
16533 whitespaces with tab.
16534
16535 2015-08-19 Florian Weimer <fweimer@redhat.com>
16536
16537 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
16538 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
16539 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
16540 Move Name_Ids instantiation to the Prj.Proc package, to avoid
16541 trampolines.
16542
16543 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16544
16545 * config/arm/arm.c (bounds_check): Use %wd print format
16546 for HOST_WIDE_INT arguments.
16547
16548 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
16549
16550 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
16551 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
16552 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
16553 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
16554 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
16555 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
16556 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
16557 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
16558 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
16559 typedefs.
16560
16561 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
16562
16563 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
16564 function.c, graphite-scop-detection.c, haifa-sched.c,
16565 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
16566 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
16567 varasm.c: Remove typedefs of structs.
16568
16569 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16570
16571 * config/rs6000/altivec.h (vec_adde): New define.
16572 (vec_addec): Likewise.
16573 (vec_double): Likewise.
16574 (vec_bperm): Likewise.
16575 (vec_gb): Likewise.
16576 * config/rs6000/rs6000-builtin.def (ADDE): New
16577 BU_ALTIVEC_OVERLOAD_3.
16578 (ADDEC): Likewise.
16579 (DOUBLE): New BU_VSX_OVERLOAD_1.
16580 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
16581 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
16582 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
16583 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
16584 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
16585 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
16586 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
16587 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
16588 and P8V_BUILTIN_VEC_VBPERMQ.
16589
16590 2015-08-18 Jason Merrill <jason@redhat.com>
16591
16592 * print-tree.c (print_node): Handle TREE_BINFO.
16593
16594 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16595
16596 PR middle-end/36757
16597 * builtins.c (expand_builtin_signbit): Add asserts to make sure
16598 we can expand BUILT_IN_SIGNBIT inline.
16599 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
16600 * doc/extend.texi: Document the type-generic __builtin_signbit.
16601
16602 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
16603
16604 PR rtl-optimization/67218
16605 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
16606 (simplify_unary_operation_1): Use it.
16607
16608 2015-08-18 Marek Polacek <polacek@redhat.com>
16609
16610 PR middle-end/67222
16611 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
16612 if the call isn't valid.
16613 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
16614 gimple_call_builtin_p.
16615 (call_may_clobber_ref_p_1): Likewise.
16616 (stmt_kills_ref_p): Likewise.
16617
16618 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
16619
16620 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
16621 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
16622 (mips_hard_regno_scratch_ok): Likewise.
16623 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
16624 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
16625
16626 2015-08-18 Bin Cheng <bin.cheng@arm.com>
16627
16628 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
16629 (determine_value_range): Call refine_value_range_using_guard for
16630 each loop initial condition to improve value range.
16631
16632 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
16633
16634 * config/i386/i386.c: Remove include of fibheap.h.
16635
16636 2015-08-17 Richard Biener <rguenther@suse.de>
16637
16638 PR tree-optimization/67221
16639 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
16640 (sccvn_dom_walker::before_dom_children): Mark backedges of
16641 non-executable blocks as not executable.
16642
16643 2015-08-17 David Sherwood <david.sherwood@arm.com>
16644
16645 * config/arm/arm.c (neon_element_bits): Replace call to
16646 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
16647 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
16648 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
16649 (neon_vdup_lane<mode>): Likewise.
16650 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
16651 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
16652 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
16653 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
16654 * config/spu/spu.c (arith_immediate_p): Likewise.
16655 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16656 * expr.c (expand_expr_real_2): Likewise.
16657 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
16658 * simplify-rtx.c (simplify_immed_subreg): Likewise.
16659 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
16660 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
16661 New variable.
16662 * fold-const.c (fold_binary_loc): Replace call to
16663 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
16664 GET_MODE_UNIT_PRECISION (m).
16665
16666 2015-08-17 Mike Stump <mikestump@comcast.net>
16667
16668 * config/arm/arm.c (arm_block_move_unaligned_straight):
16669 Emit normal move instead of unaligned load when source or destination
16670 are appropriately aligned.
16671
16672 2015-08-17 Richard Biener <rguenther@suse.de>
16673 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16674
16675 PR middle-end/16107
16676 * match.pd (div (coss (op @0) : New simplifier.
16677
16678 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
16679
16680 PR rtl-optimization/64164
16681 PR bootstrap/66978
16682 PR middle-end/66983
16683 PR rtl-optimization/67000
16684 PR middle-end/67034
16685 PR middle-end/67035
16686 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16687 * tree-ssa-copyrename.c: Removed.
16688 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16689 -ftree-coalesce-vars.
16690 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16691 * common.opt (ftree-copyrename): Ignore.
16692 (ftree-coalesce-inlined-vars): Likewise.
16693 * doc/invoke.texi: Remove the ignored options above.
16694 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16695 * tree-ssa-coalesce.h: ... here.
16696 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16697 headers required by it.
16698 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16699 across variables when flag_tree_coalesce_vars. Check register
16700 use and promoted modes to allow coalescing. Do not coalesce
16701 maybe-byref parms with SSA_NAMEs of other variables, or
16702 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
16703 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16704 with its member functions to tree-ssa-coalesce.c.
16705 (var_map_base_init): Likewise. Renamed to
16706 compute_samebase_partition_bases.
16707 (partition_view_normal): Drop want_bases parameter.
16708 (partition_view_bitmap): Likewise.
16709 * tree-ssa-live.h: Adjust declarations.
16710 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
16711 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16712 default defs at the entry point.
16713 (dump_part_var_map): New.
16714 (compute_optimized_partition_bases): New, called by...
16715 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16716 of compute_samebase_partition_bases. Adjust.
16717 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16718 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
16719 (ssa_default_def_partition): New.
16720 (get_rtl_for_parm_ssa_default_def): New.
16721 (align_local_variable, add_stack_var): Support anonymous SSA
16722 names.
16723 (defer_stack_allocation): Likewise. Declare earlier.
16724 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16725 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16726 Do no record deferred-allocation marker in
16727 SA.partition_to_pseudo.
16728 (expand_stack_vars): Adjust check for the marker in it.
16729 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16730 redundant MEM attr setting.
16731 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16732 from...
16733 (expand_one_stack_var): ... this. New wrapper to check and
16734 skip already expanded SSA partitions.
16735 (record_alignment_for_reg_var): New, factored out of...
16736 (expand_one_var): ... this.
16737 (expand_one_ssa_partition): New.
16738 (adjust_one_expanded_partition_var): New.
16739 (expand_one_register_var): Check and skip already expanded SSA
16740 partitions.
16741 (expand_used_vars): Don't create DECLs for anonymous SSA
16742 names. Expand all SSA partitions, then adjust all SSA names.
16743 (pass::execute): Replace the loops that set
16744 SA.partition_to_pseudo from partition leaders and cleared
16745 DECL_RTL for multi-location variables, and that which used to
16746 rename vars and set attrs, with one that clears DECL_RTL and
16747 checks that PARMs and RESULTs default_defs match DECL_RTL.
16748 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16749 * emit-rtl.c: Include stor-layout.h.
16750 (set_reg_attrs_for_parm): Handle NULL decl.
16751 (set_reg_attrs_for_decl_rtl): Take mode from expression if
16752 it's not a DECL.
16753 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
16754 rather than its possibly-NULL DECL.
16755 * explow.c (promote_ssa_mode): New.
16756 * explow.h (promote_ssa_mode): Declare.
16757 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16758 (read_complex_part): Export.
16759 * expr.h (read_complex_part): Declare.
16760 * cfgexpand.h (parm_maybe_byref_p): Declare.
16761 * function.c: Include cfgexpand.h.
16762 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16763 (use_register_for_parm_decl): Wrapper for the above to
16764 special-case the result_ptr.
16765 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16766 (split_complex_args): Take assign_parm_data_all argument.
16767 Pass it to rtl_for_parm. Set up rtl and context for split
16768 args. Reset complex parm before fetching its default decl
16769 rtl.
16770 (assign_parms_unsplit_complex): Use the default-def complex
16771 parm rtl if it matches the components.
16772 (assign_parms_augmented_arg_list): Adjust.
16773 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16774 multiple locations. Recognize split complex args.
16775 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16776 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16777 (assign_parm_setup_block): Prefer SSA-assigned location, and
16778 fill in its address if the memory location of a maybe-byref
16779 parm was not assigned by cfgexpand.
16780 (assign_parm_setup_reg): Likewise. Adjust its mode as
16781 needed. Use entry_parm for equiv if stack_parm is NULL. Make
16782 sure passed_pointer parms don't need conversion. Copy address
16783 or value as needed.
16784 (assign_parm_setup_stack): Prefer SSA-assigned location.
16785 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16786 rtl before testing for pointer bounds. Special-case result_ptr.
16787 (expand_function_start): Maybe reset DECL_RTL of result.
16788 Prefer SSA-assigned location for result and static chain.
16789 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
16790 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
16791 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16792 anonymous SSA names. Use promote_ssa_mode.
16793 (get_temp_reg): Likewise.
16794 (remove_ssa_form): Adjust.
16795 * stor-layout.c (layout_decl): Don't set mem attributes of
16796 non-MEMs.
16797 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16798 and get its reg_usage for reg invalidation.
16799 (compute_bb_dataflow): Pass it insn.
16800 (emit_notes_in_bb): Likewise.
16801
16802 2015-08-14 Marek Polacek <polacek@redhat.com>
16803
16804 * tree-core.h (tree_base): Fix typo.
16805
16806 2015-08-14 Marek Polacek <polacek@redhat.com>
16807
16808 PR middle-end/67133
16809 * gimple.c (infer_nonnull_range_by_attribute): Check that the
16810 nonnull argument position is not outside function arguments.
16811
16812 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
16813
16814 PR target/67143
16815 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
16816 'lconst_atomic' with 'const_atomic'.
16817 (atomic_fetch_<optab><mode>): Likewise.
16818 (atomic_<optab>_fetch<mode>): Likewise.
16819 * config/aarch64/iterators.md (lconst-atomic): Move below
16820 'const_atomic'.
16821 (const_atomic): New.
16822
16823 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
16824 Bernd Schmidt <bernds@codesourcery.com>
16825
16826 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
16827 debug options.
16828 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
16829 (DWARF2_DEBUGGING_INFO): Don't define.
16830 * debug.h (dwarf2_lineno_debug_hooks): Declare.
16831 * toplev.c (process_options): Add a case for it.
16832 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
16833 (dwarf2out_init): Skip most initializations if
16834 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
16835 case.
16836 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
16837 DWARF2_LINENO_DEBUGGING_INFO.
16838 * opts.c (set_debug_level): Likewise.
16839
16840 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
16841
16842 * config/arm/types.md (is_neon_type): Add missing types.
16843
16844 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16845
16846 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
16847 for skylake.
16848 * config/i386/i386.c (PTA_SKYLAKE): New macros.
16849 (processor_alias_table): Add skylake description.
16850 (enum processor_model): Add skylake processor.
16851 (arch_names_table): Add skylake record.
16852 * doc/invoke.texi: Add skylake item.
16853
16854 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
16855
16856 * ira-int.h: Include recog.h.
16857 * ira-build.c: Don't include recog.h.
16858 * ira-color.c: Likewise.
16859 * ira-conflicts.c: Likewise.
16860 * ira-costs.c: Likewise.
16861 * ira-emit.c: Likewise.
16862 * ira-lives.c: Likewise.
16863 * ira.c: Likewise.
16864 * sched-deps.c: Likewise.
16865 * sel-sched.c: Likewise.
16866 * target-globals.c: Likewise.
16867
16868 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
16869
16870 PR bootstrap/55035
16871 * reload1.c (elimination_costs_in_insn): Make it obvious to the
16872 compiler that the n_dups and n_operands loop bounds are invariant.
16873
16874 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16875
16876 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
16877 expressions in A and B.
16878
16879 2015-08-13 Richard Biener <rguenther@suse.de>
16880
16881 * tree.c (nonnull_arg_p): Move from ...
16882 * tree-vrp.c (nonnull_arg_p): ... here.
16883 * tree.h (nonnull_arg_p): Declare.
16884 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
16885 here, register ptr != 0 for nonnull_arg_p pointer arguments.
16886 Properly initialize static chain and by-reference result pointer.
16887 (run_scc_vn): Adjust.
16888
16889 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16890
16891 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
16892 TUNE_I6400.
16893
16894 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16895
16896 * config/aarch64/aarch64-protos.h
16897 (aarch64_gen_atomic_cas): Declare.
16898 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
16899 Choose appropriate instruction pattern for the target.
16900 (aarch64_gen_atomic_cas): New.
16901 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
16902 (atomic_compare_and_swap<mode>_1): Rename to
16903 aarch64_compare_and_swap<mode>. Fix some indentation.
16904 (aarch64_compare_and_swap<mode>_lse): New.
16905 (aarch64_atomic_cas<mode>): New.
16906
16907 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
16908
16909 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
16910 (TARGET_LSE): New.
16911
16912 2015-08-13 Richard Biener <rguenther@suse.de>
16913
16914 PR tree-optimization/67191
16915 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
16916 assert we value-numbered last stmts operand because it can validly
16917 trigger for unreachable code.
16918
16919 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16920
16921 PR rtl-optimization/67103
16922 * ifcvt.c (noce_try_store_flag_constants): Move
16923 x = (-(test != 0) & (b - a)) + a transformation to...
16924 (noce_try_cmove): ... Here. Try it if normal conditional
16925 move fails.
16926
16927 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
16928
16929 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
16930 pseudo-processors.
16931 * config/mips/mips.md (processor): Remove w32 and w64.
16932
16933 2015-08-13 Richard Biener <rguenther@suse.de>
16934
16935 PR tree-optimization/66502
16936 PR tree-optimization/67167
16937 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
16938 backedge arguments.
16939 (vn_phi_lookup): Adjust.
16940 (vn_phi_insert): Likewise.
16941 (visit_phi): Prefer to value-number to another PHI node
16942 over value-numbering to a PHI argument.
16943 (init_scc_vn): Mark DFS back edges.
16944
16945 2015-08-13 Richard Biener <rguenther@suse.de>
16946
16947 * gimple.h (gcall::code_): New constant static member.
16948 (gcond::code_): Likewise.
16949 * gimple.c (gcall::code_): Define.
16950 (gcond::code_): Likewise.
16951 (is_a_helper <const gcond *>): Add.
16952 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
16953 and forward to a new gcall overload with less checking and a
16954 cheaper way to access the operand.
16955 (gimple_call_lhs_ptr): Likewise.
16956 (gimple_call_set_lhs): Likewise.
16957 (gimple_call_internal_p): Likewise.
16958 (gimple_call_with_bounds_p): Likewise.
16959 (gimple_call_set_with_bounds): Likewise.
16960 (gimple_call_internal_fn): Likewise.
16961 (gimple_call_set_ctrl_altering): Likewise.
16962 (gimple_call_ctrl_altering_p): Likewise.
16963 (gimple_call_fntype): Likewise.
16964 (gimple_call_fn): Likewise.
16965 (gimple_call_fn_ptr): Likewise.
16966 (gimple_call_set_fndecl): Likewise.
16967 (gimple_call_fndecl): Likewise.
16968 (gimple_call_chain): Likewise.
16969 (gimple_call_num_args): Likewise.
16970 (gimple_call_arg): Likewise.
16971 (gimple_call_arg_ptr): Likewise.
16972 (gimple_call_set_arg): Likewise.
16973 (gimple_call_noreturn_p): Likewise.
16974 (gimple_cond_code): Likewise.
16975 (gimple_cond_lhs): Likewise.
16976 (gimple_cond_rhs): Likewise.
16977 (gimple_has_lhs): Reduce checking.
16978
16979 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16980
16981 PR middle-end/25529
16982 * match.pd (div (mult @0 @1) @1) : New simplifier.
16983
16984 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
16985
16986 PR target/67071
16987 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
16988 predicate to allow construction of vector constants using the
16989 VSLDOI vector shift instruction.
16990
16991 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
16992 declaration.
16993
16994 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
16995 the number of bytes to be shifted left and filled in with either
16996 all zero or all one bits.
16997 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
16998 methods exist.
16999 (output_vec_const_move): On power8, generate XXLORC to generate
17000 a vector constant with all 1's. Do a split if we need to use a
17001 VSLDOI instruction.
17002
17003 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17004 properly test for the MSB.
17005
17006 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17007 vector constants that can be created with VSLDOI.
17008
17009 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17010
17011 revert:
17012 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17013 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17014 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17015 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17016 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17017 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17018 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17019 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17020 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17021
17022 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
17023
17024 * config/xtensa/constraints.md (define_constraint "Y"): New
17025 constraint.
17026 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17027 * config/xtensa/linux.h (ASM_SPEC): Likewise.
17028 * config/xtensa/predicates.md (move_operand): Match constants
17029 and symbols in the presence of TARGET_AUTO_LITPOOLS.
17030 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17031 immediate references to TLS data.
17032 (xtensa_emit_move_sequence): Don't force constants to memory in
17033 the presence of TARGET_AUTO_LITPOOLS.
17034 (print_operand): Add 'y' format, same as default, but capable of
17035 printing SF mode constants as well.
17036 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17037 (movsf_internal): Add movi pattern that loads literal.
17038 (movsf, movdf): Don't force constants to memory in the presence
17039 of TARGET_AUTO_LITPOOLS.
17040 (movdf_internal): Add 'Y' constraint.
17041 * config/xtensa/xtensa.opt (mauto-litpools): New option.
17042 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17043
17044 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17045
17046 * config/arm/arm-fpus.def: Replace booleans with feature flags.
17047 Update comment.
17048 * config/arm/arm.c (ARM_FPU): Update macro.
17049 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17050 (TARGET_FP16): Likewise.
17051 (TARGET_CRYPTO): Likewise.
17052 (TARGET_NEON): Likewise.
17053 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
17054 field features.
17055
17056 2015-08-12 Tom de Vries <tom@codesourcery.com>
17057
17058 PR other/67092
17059 PR other/67098
17060 * doc/install.texi: Remove --with_host_libstdcxx item. Update
17061 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17062 accordingly. Mention default for --with-stage1-ldflags.
17063
17064 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17065
17066 * config/arm/arm.h (arm_fpu_feature_set): New.
17067 (ARM_FPU_FSET_HAS): New.
17068 (FPU_FL_NONE): New.
17069 (FPU_FL_NEON): New.
17070 (FPU_FL_FP16): New.
17071 (FPU_FL_CRYPTO): New.
17072
17073 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17074
17075 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17076 after -mcmodel=large -fPIC sorry.
17077
17078 2015-08-12 Richard Biener <rguenther@suse.de>
17079
17080 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17081 comparison operand order and commutative ternary op operand order.
17082 (sccvn_dom_walker::cond_stack): New state to track temporary
17083 expressions.
17084 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17085 no longer valid.
17086 (sccvn_dom_walker::record_cond): Add a single temporary conditional
17087 expression.
17088 (sccvn_dom_walker::record_conds): Add a temporary conditional
17089 expressions and all related expressions also true/false.
17090 (sccvn_dom_walker::before_dom_children): Record temporary
17091 expressions based on the controlling condition of a single
17092 predecessor. When trying to simplify a conditional statement
17093 lookup expressions we might have inserted earlier.
17094
17095 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
17096
17097 PR target/67127
17098 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17099 to ARM core registers.
17100
17101 2015-08-12 Nathan Sidwell <nathan@acm.org>
17102
17103 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17104 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17105
17106 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
17107
17108 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17109 line with comments.
17110 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17111
17112 2015-08-12 Richard Biener <rguenther@suse.de>
17113
17114 * gimple.h (remove_pointer): New trait.
17115 (GIMPLE_CHECK2): New inline template function.
17116 (gassign::code_): New constant static member.
17117 (is_a_helper<const gassign *>): Add.
17118 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17119 and forward to a new gassign overload with less checking and a
17120 cheaper way to access the operand.
17121 (gimple_assign_lhs_ptr): Likewise.
17122 (gimple_assign_set_lhs): Likewise.
17123 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17124 Likewise.
17125 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17126 Likewise.
17127 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17128 Likewise.
17129 (gimple_assign_rhs_code): Likewise.
17130 * gimple.c (gassign::code_): Define.
17131
17132 2015-08-12 Richard Biener <rguenther@suse.de>
17133
17134 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17135 Eliminate edges marked as not executable by SCCVN.
17136 * tree-ssa-sccvn.c: Include gimple-iterator.h.
17137 (cond_dom_walker): Rename to sccvn_dom_walker.
17138 (sccvn_dom_walker::before_dom_children): Value-number defs
17139 of all stmts.
17140 (run_scc_vn): Remove loop value-numbering all SSA names.
17141 Drop not visited SSA names to varying.
17142
17143 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17144
17145 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17146 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17147 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17148 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17149 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17150 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17151 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17152 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17153 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17154
17155 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
17156
17157 PR target/66954
17158 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17159 to enum feature_priority and feature_list.
17160 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17161 and isa_names_table.
17162
17163 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
17164
17165 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17166 vect_induction_def.
17167
17168 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17169
17170 PR c/66098
17171 PR c/66711
17172 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17173 account when deciding what was the command-line status.
17174
17175 2015-08-11 Nathan Sidwell <nathan@acm.org>
17176
17177 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17178
17179 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17180 we're not the only contributor to target phi.
17181
17182 2015-08-11 Jiong Wang <jiong.wang@arm.com>
17183
17184 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17185 FIXED_REG0.
17186
17187 2015-08-11 Tom de Vries <tom@codesourcery.com>
17188
17189 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17190
17191 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
17192
17193 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17194 with CPU_SLM.
17195 * config/i386/i386.md (cpu): Remove knl.
17196
17197 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17198
17199 PR libgomp/65742
17200 PR middle-end/66332
17201 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17202 open-coded sequence.
17203 * omp-low.c (oacc_process_reduction_data): Remove handline of
17204 GOMP_DEVICE_HOST_NONSHM.
17205
17206 * lto-streamer-in.c (lto_input_mode_table): Adjust to
17207 GET_MODE_INNER changes.
17208
17209 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17210 Ilya Verbin <ilya.verbin@intel.com>
17211
17212 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17213
17214 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17215
17216 * doc/options.texi (EnabledBy): Document that the argument must be
17217 a Common option.
17218 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17219 Not enabled by -Wall.
17220 * optc-gen.awk: Give nicer error messages. Detect if the argument
17221 of EnabledBy is not a Common option.
17222 * common.opt (Wnull-dereference): Not enabled by -Wall.
17223 * opt-functions.awk (lang_enabled_by): Nicer error messages.
17224
17225 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
17226
17227 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17228 model == 0x4f as Broadwell.
17229
17230 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17231
17232 PR rtl-optimization/67028
17233 * combine.c (simplify_comparison): Fix comment. Rearrange code.
17234 Add test to see if a const_int fits in the new mode.
17235
17236 2015-08-07 DJ Delorie <dj@redhat.com>
17237
17238 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17239
17240 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
17241
17242 PR rtl-optimization/67029
17243 * ira-color.c: Include "recog.h" before including "ira-int.h".
17244 * target-globals.c: Likewise.
17245 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17246 adds an alternative_mask argument and use it instead of
17247 preferred_alternatives.
17248 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17249 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17250 * sched-deps.c: Include "ira-int.h" after including "ira.h".
17251 (sched_analyze_insn): Update call to
17252 ira_implicitly_set_insn_hard_regs.
17253 * sel-sched.c: Include "ira-int.h" after including "ira.h".
17254 (implicit_clobber_conflict_p): Update call to
17255 ira_implicitly_set_insn_hard_regs.
17256
17257 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17258
17259 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17260
17261 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
17262
17263 PR target/67002
17264 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17265 currently_expanding_to_rtl is set.
17266
17267 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
17268
17269 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17270 * configure: Regenerate.
17271
17272 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17273 Jiong Wang <jiong.wang@arm.com>
17274
17275 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17276 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17277 (REG_CLASS_NAMES): Likewise.
17278 (REG_CLASS_CONTENTS): Likewise.
17279 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17280 (aarch64_register_move_cost): Likewise.
17281 (aarch64_load_symref_appropriately): Invoke the new added pattern if
17282 possible.
17283 * config/aarch64/constraints.md (Uc0): New constraint.
17284
17285 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17286
17287 * config/aarch64/constraints.md (Usf): Add the test of
17288 aarch64_is_noplt_call_p.
17289
17290 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17291
17292 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17293 declaration.
17294 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17295 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17296 (call_symbol): Likewise.
17297
17298 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
17299
17300 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17301 for vectorizing multiplication patterns.
17302 * tree-vectorizer.h: Adjust the number of patterns.
17303
17304 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17305
17306 * config/i386/sse.md (*vec_concatv2df): Declare added
17307 alternatives as sselog type.
17308
17309 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17310
17311 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17312 all GPRs.
17313
17314 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17315
17316 * config/s390/s390.c (s390_expand_tbegin): Expand either
17317 tbegin_1_z13 or tbegin_1 depending on VX flag.
17318 * config/s390/s390.md ("tbegin_1_z13"): New expander.
17319
17320 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17321
17322 * config/s390/s390.opt: Clarify description for -mzvector
17323 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17324 -mzvector.
17325
17326 2015-08-06 Richard Biener <rguenther@suse.de>
17327
17328 * gimple.h (gimple_call_set_fn): Access op member directly.
17329 (gimple_call_chain_ptr): Likewise.
17330 (gimple_call_set_chain): Likewise.
17331 (gimple_cond_lhs_ptr): Likewise.
17332 (gimple_cond_set_lhs): Likewise.
17333 (gimple_cond_rhs_ptr): Likewise.
17334 (gimple_cond_set_rhs): Likewise.
17335 (gimple_cond_true_label): Likewise.
17336 (gimple_cond_set_true_label): Likewise.
17337 (gimple_cond_set_false_label): Likewise.
17338 (gimple_cond_false_label): Likewise.
17339 (gimple_label_label): Likewise.
17340 (gimple_label_set_label): Likewise.
17341 (gimple_goto_set_dest): Likewise.
17342 (gimple_asm_input_op): Likewise.
17343 (gimple_asm_input_op_ptr): Likewise.
17344 (gimple_asm_set_input_op): Likewise.
17345 (gimple_asm_output_op): Likewise.
17346 (gimple_asm_output_op_ptr): Likewise.
17347 (gimple_asm_set_output_op): Likewise.
17348 (gimple_asm_clobber_op): Likewise.
17349 (gimple_asm_set_clobber_op): Likewise.
17350 (gimple_asm_label_op): Likewise.
17351 (gimple_asm_set_label_op): Likewise.
17352 (gimple_switch_index): Likewise.
17353 (gimple_switch_index_ptr): Likewise.
17354 (gimple_return_retval_ptr): Likewise.
17355 (gimple_return_retval): Likewise.
17356 (gimple_return_set_retval): Likewise.
17357 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
17358 (gimple_switch_label): Likewise.
17359 (gimple_switch_set_label): Likewise.
17360
17361 2015-08-06 Richard Biener <rguenther@suse.de>
17362
17363 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17364 bool comparison canonicalization and restrict to integers.
17365
17366 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
17367
17368 * coretypes.h (enum symbol_visibility): Relocate here.
17369 * flag-types.h (enum symbol_visibility): Remove.
17370 * tree-core.h (enum symbol_visibility): Remove.
17371
17372 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
17373
17374 PR target/66870
17375 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17376 for no_split_stack function attribute along with
17377 flag_split_stack.
17378 (rs6000_expand_split_stack_prologue): Likewise.
17379
17380 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
17381 Jeff Law <law@redhat.com>
17382
17383 PR c/16351
17384 * doc/invoke.texi (Wnull-dereference): New.
17385 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17386 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17387 Warn for potential NULL dereferences.
17388 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17389 * ubsan.c (instrument_nonnull_arg): Call
17390 infer_nonnull_range_by_attribute.
17391 (instrument_nonnull_return): Likewise.
17392 * common.opt (Wnull-dereference); New.
17393 * gimple.c (infer_nonnull_range): Remove bool arguments.
17394 (infer_nonnull_range_by_dereference): New.
17395 (infer_nonnull_range_by_attribute): New.
17396 * gimple.h: Update declarations.
17397
17398 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17399
17400 * gensupport.c (sequence_num): Replace with...
17401 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17402 ...these new variables.
17403 (init_rtx_reader_args_cb): Update accordingly.
17404 (get_num_code_insns): Likewise.
17405 (read_md_rtx): Rework to use a while loop and get_c_test.
17406 Use the new counters. Remove redundant DEFINE_SUBST case.
17407 * genoutput.c (gen_split): Delete.
17408 (main): Don't call it.
17409
17410 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17411
17412 * gensupport.h (get_c_test): Declare.
17413 * gensupport.c (get_c_test): New function.
17414 * genconditions.c (main): Use it.
17415 * genrecog.c (validate_pattern): Likewise.
17416 (match_pattern_1): Likewise. Remove c_test argument.
17417 (match_pattern): Update accordingly and remove c_test argument.
17418 (main): Update accordingly.
17419
17420 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17421
17422 * gensupport.h (get_num_insn_codes): Declare.
17423 * gensupport.c (get_num_insn_codes): New function.
17424 * genattrtab.c (optimize_attrs): Rename max_insn_code to
17425 num_insn_codes.
17426 (main): Likewise. Use get_num_insn_codes.
17427 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
17428
17429 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17430
17431 PR middle-end/66311
17432 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
17433 is zero- rather than sign-extended.
17434
17435 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17436
17437 * target-insns.def (can_extend): Delete.
17438
17439 2015-08-05 Richard Biener <rguenther@suse.de>
17440
17441 PR tree-optimization/67121
17442 * tree-if-conv.c (combine_blocks): Clear range-info produced
17443 by stmts no longer executed conditionally.
17444
17445 2015-08-05 Nick Clifton <nickc@redhat.com>
17446
17447 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
17448 to allow identical far pointers to remain.
17449
17450 2015-08-05 Richard Biener <rguenther@suse.de>
17451
17452 PR middle-end/67120
17453 * match.pd: Compare address bases with == if they are decls
17454 or SSA names, not operand_equal_p. Otherwise fail.
17455
17456 2015-08-05 Richard Biener <rguenther@suse.de>
17457
17458 PR tree-optimization/67055
17459 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
17460 NULL gimple_block.
17461
17462 * g++.dg/torture/pr67055.C: New testcase.
17463
17464 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17465
17466 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
17467 noavx512vl.
17468 (define_attr "enabled"): Handle avx521vl and noavx512vl.
17469 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
17470 AVX-512 alternative out of SSE.
17471 (define_insn "*vec_concatv2df"): Ditto.
17472
17473 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17474
17475 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
17476 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
17477 CODE_FOR_avx_ptestv4di.
17478 * config/i386/sse.md (define_mode_iterator V_AVX): New.
17479 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
17480 (define_insn "avx_ptest256"): Merge this ...
17481 (define_insn "sse4_1_ptest"): And this ...
17482 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
17483
17484 2015-08-05 Richard Biener <rguenther@suse.de>
17485
17486 PR tree-optimization/67109
17487 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
17488 against too big groups. Print whether this is a load or store
17489 group. Rename from ...
17490 (vect_analyze_group_access): ... this which is now a wrapper
17491 dissolving an invalid group.
17492 (vect_analyze_data_ref_accesses): Print whether this is a load
17493 or store group.
17494
17495 2015-08-05 Richard Biener <rguenther@suse.de>
17496
17497 PR middle-end/67107
17498 * match.pd: Guard const_binop result checking against NULL_TREE
17499 result.
17500
17501 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
17502
17503 * cse.c (cse_insn): Restoring old behaviour for src_eqv
17504 when dest and value in the REG_EQUAL are same and dest
17505 is STRICT_LOW_PART.
17506
17507 2015-08-04 Anatoly Sokolov <aesok@post.ru>
17508
17509 * config/moxie/moxie.h (PRINT_OPERAND,
17510 PRINT_OPERAND_ADDRESS): Remove macros.
17511 * config/moxie/moxie-protos.h (moxie_print_operand,
17512 moxie_print_operand_address): Remove declaration.
17513 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
17514 TARGET_PRINT_OPERAND_ADDRESS): Define.
17515 (moxie_print_operand, moxie_print_operand_address): Make static.
17516
17517 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
17518
17519 PR target/66731
17520 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
17521 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
17522
17523 2015-08-04 Richard Biener <rguenther@suse.de>
17524
17525 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
17526 generated code.
17527 (dt_operand::gen_gimple_expr): Adjust.
17528
17529 2015-08-04 Richard Biener <rguenther@suse.de>
17530
17531 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
17532 bool compares on RHS.
17533 * match.pd: Add X ==/!= !X is false/true pattern.
17534
17535 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
17536
17537 * config/aarch64/aarch64.c: Change inner loop statement cost
17538 to be consistent with other targets.
17539
17540 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
17541
17542 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
17543 targets.
17544
17545 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
17546
17547 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
17548 (machine_function): Remove pseudos field.
17549
17550 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17551
17552 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17553 Exit early and use target_option_current_node if processing current
17554 pragma.
17555
17556 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17557
17558 * doc/extend.texi (AArch64 Function Attributes): New node.
17559 (AArch64 Pragmas): Likewise.
17560
17561 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17562
17563 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17564 Initialize simd builtins if TARGET_SIMD.
17565 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17566 Make sure that the builtins are initialized only once no matter how
17567 many times the function is called.
17568 (aarch64_init_builtins): Unconditionally initialize crc builtins.
17569 (aarch64_relayout_simd_param): New function.
17570 (aarch64_simd_expand_args): Use above during argument expansion.
17571 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
17572 simd builtins if TARGET_SIMD.
17573 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
17574 prototype.
17575 (aarch64_relayout_simd_types): Likewise.
17576
17577 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17578
17579 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
17580 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
17581 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
17582 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17583 static keyword.
17584 (aarch64_reset_previous_fndecl): New function.
17585 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
17586 the string.
17587 * config/aarch64/aarch64-c.c: New file.
17588 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
17589 Push and pop options at beginning and end. Remove ifdef
17590 __ARM_FEATURE_CRC32.
17591 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
17592 Add pragma +nothing+simd and +nothing+crypto where appropriate.
17593 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
17594 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
17595 Define prototype.
17596 (aarch64_register_pragmas): Likewise.
17597 (aarch64_reset_previous_fndecl): Likewise.
17598 (aarch64_process_target_attr): Likewise.
17599 (aarch64_override_options_internal): Likewise.
17600
17601 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17602
17603 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
17604 New function.
17605 (aarch64_can_inline_p): Likewise.
17606 (TARGET_CAN_INLINE_P): Define.
17607
17608 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17609
17610 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
17611 Remove static. Handle OPT_mgeneral_regs_only,
17612 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
17613 OPT_momit_leaf_frame_pointer.
17614 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
17615 (aarch64_attr_opt_type): New enum.
17616 (aarch64_attribute_info): New struct.
17617 (aarch64_handle_attr_arch): New function.
17618 (aarch64_handle_attr_cpu): Likewise.
17619 (aarch64_handle_attr_tune): Likewise.
17620 (aarch64_handle_attr_isa_flags): Likewise.
17621 (aarch64_attributes): New table.
17622 (aarch64_process_one_target_attr): New function.
17623 (num_occurences_in_str): Likewise.
17624 (aarch64_process_target_attr): Likewise.
17625 (aarch64_option_valid_attribute_p): Likewise.
17626 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17627 * config/aarch64/aarch64-protos.h: Include input.h
17628 (aarch64_handle_option): Declare prototype.
17629
17630 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17631
17632 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
17633 * config/aarch64/aarch64.c: Include target-globals.h
17634 (aarch64_previous_fndecl): New variable.
17635 (aarch64_set_current_function): New function.
17636 (TARGET_SET_CURRENT_FUNCTION): Define.
17637
17638 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17639
17640 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
17641 (explicit_arch): Likewise.
17642 (x_aarch64_isa_flags): Likewise.
17643 (mgeneral-regs-only): Mark as Save.
17644 (mfix-cortex-a53-835769): Likewise.
17645 (mcmodel=): Likewise.
17646 (mstrict-align): Likewise.
17647 (momit-leaf-frame-pointer): Likewise.
17648 (mtls-dialect): Likewise.
17649 (master=): Likewise.
17650 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
17651 (aarch64_isa_flags): Remove extern declaration.
17652 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
17653 to indicate success or failure.
17654 (aarch64_validate_march): Likewise.
17655 (aarch64_validate_mtune): Likewise.
17656 (aarch64_isa_flags): Delete.
17657 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
17658 instead of aarch64_isa_flags.
17659 (aarch64_get_tune_cpu): New function.
17660 (aarch64_get_arch): Likewise.
17661 (aarch64_override_options): Use above and set up explicit_tune_core
17662 and explicit_arch.
17663 (aarch64_print_extension): Move earlier in file. Add isa_flags
17664 argument and use that instead of the global aarch64_isa_flags.
17665 (aarch64_option_save): New function.
17666 (aarch64_option_restore): Likewise.
17667 (aarch64_option_print): Likewise.
17668 (aarch64_declare_function_name): Likewise.
17669 (aarch64_start_file): Delete.
17670 (TARGET_ASM_FILE_START): Do not define.
17671 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
17672 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
17673 Declare prototype.
17674
17675 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17676
17677 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
17678 flag_omit_leaf_frame_pointer to 2.
17679
17680 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17681
17682 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
17683 define to 0 or 1.
17684 (TARGET_FIX_ERR_A53_835769): New macro.
17685 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17686 handling of opts->x_aarch64_fix_a53_err835769.
17687 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
17688 than aarch64_fix_a53_err835769.
17689 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
17690 * config/aarch64/aarch64-linux.h: Likewise.
17691
17692 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
17693
17694 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
17695 ix86_expand_int_movcc as boolean.
17696
17697 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17698
17699 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
17700 (aarch64_cpu_string): Likewise.
17701 (aarch64_tune_string): Likewise.
17702 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
17703 (aarch64_parse_extension): Return aarch64_parse_opt_result.
17704 Add extra argument to put result into.
17705 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
17706 (aarch64_parse_cpu): Add arguments to put results into. Return
17707 aarch64_parse_opt_result.
17708 (aarch64_parse_tune): Likewise.
17709 (aarch64_override_options_after_change_1): New function.
17710 (aarch64_override_options_internal): New function.
17711 (aarch64_validate_mcpu): Likewise.
17712 (aarch64_validate_march): Likewise.
17713 (aarch64_validate_mtune): Likewise.
17714 (aarch64_override_options): Update to reflect above changes.
17715 Move some logic into aarch64_override_options_internal.
17716 Initialize target_option_default_node and target_option_current_node.
17717 (aarch64_override_options_after_change): Move logic into
17718 aarch64_override_options_after_change_1 and call it with global_options.
17719 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
17720 flag values from that.
17721
17722 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17723
17724 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17725 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
17726 * config/aarch64/aarch64.c (struct processor): Add arch field.
17727 (all_architectures): Handle above, move above all_cores.
17728 (all_cores): Handle above.
17729 (aarch64_parse_arch): Handle above changes.
17730 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
17731 above. Update comments.
17732 (armv8.1-a): Likewise.
17733 * config/aarch64/aarch64-cores.def: Update according to above.
17734 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
17735 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
17736 aarch64_arch_driver_info.
17737
17738 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17739
17740 * config/aarch64/aarch64.c (struct processor): Add ident field.
17741 Rename core sched_core.
17742 (all_cores): Handle above changes.
17743 (all_architectures): Likewise.
17744 (aarch64_parse_arch): Likewise.
17745 (aarch64_override_options): Likewise.
17746
17747 2015-08-04 Richard Biener <rguenther@suse.de>
17748
17749 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17750 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
17751 comparisons embedded in [VEC_]COND_EXPRs.
17752
17753 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
17754
17755 * tree-if-conv.c: Fix various typos in comments.
17756 * tree-vect-stmts.c: Likewise.
17757
17758 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17759
17760 PR tree-optimization/67043
17761 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
17762 preheader after hoisting invariant in it.
17763 (find_defs): Force recomputation of all luids.
17764
17765 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
17766
17767 * config/rs6000/htm.md (tabort.): Restrict the source operand to
17768 using a base register.
17769
17770 2015-08-03 David Malcolm <dmalcolm@redhat.com>
17771
17772 * main.c (main): Pass in NULL for toplev's external_timer.
17773 * timevar.c: Include coretypes.h.
17774 (class timer::named_items): New.
17775 (timer::named_items::named_items): New.
17776 (timer::named_items::~named_items): New.
17777 (timer::named_items::push): New.
17778 (timer::named_items::pop): New.
17779 (timer::named_items::print): New.
17780 (timer::timer): Initialize field "m_jit_client_items".
17781 (timer::~timer): New.
17782 (timer::push): Move bulk of implementation to...
17783 (timer::push_internal): ...here. New function.
17784 (timer::pop): Move bulk of implementation to...
17785 (timer::pop_internal): ...here. New function.
17786 (timer::push_client_item): New.
17787 (timer::pop_client_item): New.
17788 (timer::print_row): New function, taken from timer::print.
17789 (timer::print): Print "GCC items" header if we also have client
17790 items. Move row-printing to timer::print_row. Print any client
17791 items.
17792 (timer::get_topmost_item_name): New method.
17793 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
17794 (TV_JIT_CLIENT_CODE): New.
17795 * timevar.h (timer::push_client_item): New declaration.
17796 (timer::pop_client_item): New declaration.
17797 (timer::get_topmost_item_name): New method.
17798 (timer::push_internal): New declaration.
17799 (timer::pop_internal): New declaration.
17800 (timer::print_row): New declaration.
17801 (timer::named_items): New declaration.
17802 (timer::m_jit_client_items): New field.
17803 (timer): Add friend class named_items.
17804 (auto_timevar::auto_timevar): Add timer param.
17805 (auto_timevar::~auto_timevar): Use field "m_timer".
17806 (auto_timevar::m_timer): New field.
17807 * toplev.c (initialize_rtl): Add g_timer as param when
17808 constructing auto_timevar instance.
17809 (toplev::toplev): Add "external_timer" param, and use it to
17810 initialize the "g_timer" global if non-NULL.
17811 (toplev::~toplev): If this created "g_timer", delete it.
17812 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
17813 with "external_timer" timer *.
17814
17815 2015-08-03 Alexander Basov <coohpt@gmail.com>
17816
17817 PR middle-end/64744
17818 PR middle-end/48470
17819 PR middle-end/43404
17820 * cfgexpand.c (expand_one_var): Add check if stack is going to
17821 be used in naked function.
17822 * expr.c (expand_expr_addr_expr_1): Remove excess checking
17823 whether expression should not reside in MEM.
17824 * function.c (use_register_for_decl): Do not use registers for
17825 non-register things (volatile, float, BLKMode) in naked functions.
17826
17827 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
17828
17829 PR target/67060
17830 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
17831 Adjust splits to match new pattern.
17832
17833 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
17834
17835 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
17836 (VEC_M): Likewise.
17837 (VEC_N): Likewise.
17838 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
17839 point in VSX registers.
17840
17841 * config/rs6000/constraints.md (wb constraint): Document unused
17842 w<x> constraint.
17843 (we constraint): Likewise.
17844 (wo constraint): Likewise.
17845 (wp constraint): New constraint for IEEE 128-bit floating point in
17846 VSX registers.
17847 (wq constraint): Likewise.
17848
17849 * config/rs6000/predicates.md (easy_fp_constant): Add support for
17850 IEEE 128-bit floating point in VSX registers.
17851 (easy_scalar_constant): Likewise.
17852
17853 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
17854 constraints (wp, wq) for IEEE 128-bit floating point in VSX
17855 registers.
17856 (rs6000_init_hard_regno_mode_ok): Likewise.
17857
17858 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
17859 floating point in VSX registers.
17860 (VSX_L): Likewise.
17861 (VSX_M): Likewise.
17862 (VSX_M2): Likewise.
17863 (VSm): Likewise.
17864 (VSs): Likewise.
17865 (VSr): Likewise.
17866 (VSa): Likewise.
17867 (VSv): Likewise.
17868 (vsx_le_permute_<mode>): Add support to properly swap bytes for
17869 IEEE 128-bit floating point in VSX registers on little endian.
17870 (vsx_le_undo_permute_<mode>): Likewise.
17871 (vsx_le_perm_load_<mode>): Likewise.
17872 (vsx_le_perm_store_<mode>): Likewise.
17873 (splitters for IEEE 128-bit fp moves): Likewise.
17874
17875 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
17876 wq constraints.
17877
17878 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
17879 floating point in VSX registers.
17880 (VM2): Likewise.
17881
17882 * doc/md.text (Machine Constraints): Document wp and wq
17883 constraints on PowerPC.
17884
17885 2015-08-03 Jeff Law <law@redhat.com>
17886
17887 PR middle-end/66314
17888 PR gcov-profile/66899
17889 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
17890 iterate over the jump threading paths when an element in the
17891 jump threading paths array is eliminated.
17892
17893 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
17894
17895 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
17896
17897 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
17898
17899 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
17900 is_use_properly_guarded the variable def_preds. Free its
17901 contents before returning.
17902 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
17903 (is_use_properly_guarded): Replace local variable def_preds with
17904 a parameter. Adjust accordingly. Only update *def_preds if it's
17905 the empty vector.
17906
17907 2015-08-03 Richard Biener <rguenther@suse.de>
17908
17909 * genmatch.c (simplify::for_subst_vec): New member.
17910 (binary_ok): New helper for for lowering.
17911 (lower_for): Delay substituting operators into result expressions
17912 if we can merge the results eventually again.
17913 (capture_info::walk_result): Adjust for user_id appearing as
17914 result expression operator.
17915 (expr::gen_transform): Likewise.
17916 (dt_simplify::gen_1): Likewise.
17917 (dt_simplify::gen): Pass not substituted operators to tail
17918 functions or initialize local variable with it.
17919 (decision_tree::gen): Adjust function signature.
17920 * match.pd: Fix tests against global code and add default
17921 cases to switch stmts.
17922
17923 2015-08-03 Richard Biener <rguenther@suse.de>
17924
17925 * genmatch.c (dt_simplify::gen): Create captures array
17926 with an initializer.
17927
17928 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17929
17930 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
17931 the host compiler is affected by placement new aliasing bug.
17932 * configure: Regenerate.
17933 * Makefile.in (ALIASING_FLAGS): New variable.
17934 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
17935
17936 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
17937
17938 PR target/66731
17939 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
17940 (negmulsf3_vfp): Likewise.
17941 (muldf3negdf_vfp): Disable for -frounding-math.
17942 (mulsf3negsf_vfp): Likewise.
17943 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
17944 fix MULT cost with -frounding-math.
17945
17946 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17947
17948 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
17949 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
17950 explicit. Prefer to add the flag whenever possible.
17951 (noce_process_if_block): Try noce_try_store_flag_constants before
17952 noce_try_cmove.
17953
17954 2015-08-03 Richard Biener <rguenther@suse.de>
17955
17956 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
17957 New hash-map to record equivalent transforms.
17958 (dt_node::analyze): Populate the equivalent transforms hash-map.
17959 (dt_simplify::info): Add reference to hash-map entry.
17960 (dt_simplify::gen): If we have split out a function for the
17961 transform, generate a call to it.
17962 (sinfo_hashmap_traits::hash): New function.
17963 (compare_op): New helper function for ...
17964 (sinfo_hashmap_traits::equal_keys): ... this new function.
17965 (decision_tree::gen): Split out common equivalent transforms
17966 into functions.
17967
17968 2015-08-03 Richard Biener <rguenther@suse.de>
17969
17970 * gimple-fold.c (fold_gimple_assign): Remove folding of
17971 the comparison in COND_EXPRs.
17972
17973 2015-08-03 Richard Biener <rguenther@suse.de>
17974
17975 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
17976 on the rhs of assignments first simplify the embedded
17977 GENERIC condition.
17978
17979 2015-08-03 Richard Biener <rguenther@suse.de>
17980
17981 PR tree-optimization/66917
17982 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
17983 field.
17984 (DR_VECT_AUX): New macro.
17985 (set_dr_misalignment): Adjust.
17986 (dr_misalignment): Likewise.
17987 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17988 Compute whether the base is at least element aligned.
17989 * tree-vect-stmts.c (ensure_base_align): Adjust.
17990 (vectorizable_store): If the base is not element aligned
17991 preserve alignment of the original access if misalignment is unknown.
17992 (vectorizable_load): Likewise.
17993
17994 2015-08-02 Martin Sebor <msebor@redhat.com>
17995
17996 * c-family/c.opt (-Wframe-address): New warning option.
17997 * doc/invoke.texi (Wframe-address): Document it.
17998 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
17999 Clarify possible effects of calling the functions with non-zero
18000 arguments and mention -Wframe-address.
18001 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18002
18003 2015-08-01 Michael Collison <michael.collison@linaro.org
18004 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18005
18006 * config/arm/arm.md (*arm_smin_cmp): New pattern.
18007 (*arm_umin_cmp): Likewise.
18008
18009 2015-08-01 Caroline Tice <cmtice@google.com>
18010
18011 PR 66521
18012 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18013 global variables.
18014 (vtbl_find_mangled_name): New function.
18015 (vtbl_register_mangled_name): New function.
18016 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
18017 mangled name in mangled name vectors.
18018 (find_or_create_vtbl_map_node): Ditto.
18019 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
18020 update recursion_depth on function entry; pass it to every recursive
18021 call; automatically exit if depth > 25 (give up looking at that point).
18022 (verify_bb_vtables): Initialize recursion_depth and pass it to
18023 var_is_used_for_virtual_call_p.
18024 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18025 global variable decls.
18026 (vtbl_register_mangled_name): New extern function decl.
18027
18028 2015-08-01 Tom de Vries <tom@codesourcery.com>
18029
18030 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18031 function.
18032 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18033 Declare.
18034 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18035 operation_no_trapping_overflow. Allow non-overflow operations.
18036 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18037 operations.
18038
18039 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
18040
18041 PR target/67049
18042 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18043
18044 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18045
18046 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18047 Enable for TARGET_32BIT.
18048 (*if_move_neg): Likewise.
18049
18050 2015-07-31 Nick Clifton <nickc@redhat.com>
18051
18052 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18053 Returns true for __model__.
18054 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18055
18056 2015-07-31 Alan Modra <amodra@gmail.com>
18057
18058 PR target/66870
18059 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18060 (rs6000_emit_prologue): Set it.
18061 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18062
18063 2015-07-31 Richard Biener <rguenther@suse.de>
18064
18065 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18066 -> X == (C1 ^ C2) which is already implemented in match.pd.
18067 Remove redundant dispatching to fold_relational_const.
18068 Move unordered self and NaN compares ...
18069 * match.pd: ... as patterns here. Remove some stray captures
18070 and add a comment.
18071
18072 2015-07-31 Petr Murzin <petr.murzin@intel.com>
18073
18074 * config/i386/i386.c
18075 (bdesc_special_args): Convert mask type from signed to unsigned for
18076 masked builtins.
18077 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18078 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18079 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18080 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18081 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18082 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18083 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18084 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18085 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18086 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18087 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18088 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18089 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18090 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18091 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18092 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18093 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18094 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18095 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18096 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18097 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18098 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18099 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18100 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18101 * config/i386/i386-builtin-types.def
18102 (V16QI_FTYPE_V16SI): Remove.
18103 (V8DF_FTYPE_V8SI): Ditto.
18104 (V8HI_FTYPE_V8DI): Ditto.
18105 (V8SI_FTYPE_V8DI): Ditto.
18106 (V8SF_FTYPE_V8DF): Ditto.
18107 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18108 (V16HI_FTYPE_V16SI): Ditto.
18109 (V16SF_FTYPE_V16HI): Ditto.
18110 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18111 (V16SF_FTYPE_V16SI): Ditto.
18112 (V4DI_FTYPE_V4DI): Ditto.
18113 (V16SI_FTYPE_V16SF): Ditto.
18114 (V16SF_FTYPE_FLOAT): Ditto.
18115 (V8DF_FTYPE_DOUBLE): Ditto.
18116 (V8DI_FTYPE_INT64): Ditto.
18117 (V8DI_FTYPE_V4DI): Ditto.
18118 (V16QI_FTYPE_V8DI): Ditto.
18119 (UINT_FTYPE_V4SF): Ditto.
18120 (UINT64_FTYPE_V4SF): Ditto.
18121 (UINT_FTYPE_V2DF): Ditto.
18122 (UINT64_FTYPE_V2DF): Ditto.
18123 (V16SI_FTYPE_V16SI): Ditto.
18124 (V8DI_FTYPE_V8DI): Ditto.
18125 (V16SI_FTYPE_PV4SI): Ditto.
18126 (V16SF_FTYPE_PV4SF): Ditto.
18127 (V8DI_FTYPE_PV2DI): Ditto.
18128 (V8DF_FTYPE_PV2DF): Ditto.
18129 (V4DI_FTYPE_PV2DI): Ditto.
18130 (V4DF_FTYPE_PV2DF): Ditto.
18131 (V16SI_FTYPE_PV2SI): Ditto.
18132 (V16SF_FTYPE_PV2SF): Ditto.
18133 (V8DI_FTYPE_PV4DI): Ditto.
18134 (V8DF_FTYPE_PV4DF): Ditto.
18135 (V8SF_FTYPE_FLOAT): Ditto.
18136 (V4SF_FTYPE_FLOAT): Ditto.
18137 (V4DF_FTYPE_DOUBLE): Ditto.
18138 (V8SF_FTYPE_PV4SF): Ditto.
18139 (V8SI_FTYPE_PV4SI): Ditto.
18140 (V4SI_FTYPE_PV2SI): Ditto.
18141 (V8SF_FTYPE_PV2SF): Ditto.
18142 (V8SI_FTYPE_PV2SI): Ditto.
18143 (V16SF_FTYPE_PV8SF): Ditto.
18144 (V16SI_FTYPE_PV8SI): Ditto.
18145 (V8DI_FTYPE_V8SF): Ditto.
18146 (V4DI_FTYPE_V4SF): Ditto.
18147 (V2DI_FTYPE_V4SF): Ditto.
18148 (V64QI_FTYPE_QI): Ditto.
18149 (V32HI_FTYPE_HI): Ditto.
18150 (V8UHI_FTYPE_V8UHI): Ditto.
18151 (V16UHI_FTYPE_V16UHI): Ditto.
18152 (V32UHI_FTYPE_V32UHI): Ditto.
18153 (V2UDI_FTYPE_V2UDI): Ditto.
18154 (V4UDI_FTYPE_V4UDI): Ditto.
18155 (V8UDI_FTYPE_V8UDI): Ditto.
18156 (V4USI_FTYPE_V4USI): Ditto.
18157 (V8USI_FTYPE_V8USI): Ditto.
18158 (V16USI_FTYPE_V16USI): Ditto.
18159 (V2DF_FTYPE_V2DF_UINT64): Ditto.
18160 (V2DI_FTYPE_V2DF_V2DF): Ditto.
18161 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18162 (V8DF_FTYPE_V8DF_V8DI): Ditto.
18163 (V4SF_FTYPE_V4SF_UINT64): Ditto.
18164 (V4SI_FTYPE_V4SF_V4SF): Ditto.
18165 (V16SF_FTYPE_V16SF_V16SI): Ditto.
18166 (V64QI_FTYPE_V32HI_V32HI): Ditto.
18167 (V32HI_FTYPE_V16SI_V16SI): Ditto.
18168 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18169 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18170 (V32HI_FTYPE_V64QI_V64QI): Ditto.
18171 (V32HI_FTYPE_V32HI_V32HI): Ditto.
18172 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18173 (V16SI_FTYPE_V16SI_V4SI): Ditto.
18174 (V16SI_FTYPE_V16SI_V16SI): Ditto.
18175 (V16SI_FTYPE_V32HI_V32HI): Ditto.
18176 (V16SI_FTYPE_V16SI_SI): Ditto.
18177 (V8DI_FTYPE_V8DI_V8DI): Ditto.
18178 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18179 (V8DI_FTYPE_V16SI_V16SI): Ditto.
18180 (V8DI_FTYPE_V8DI_V2DI): Ditto.
18181 (QI_FTYPE_QI): Ditto.
18182 (SI_FTYPE_SI): Ditto.
18183 (DI_FTYPE_DI): Ditto.
18184 (QI_FTYPE_QI_QI): Ditto.
18185 (QI_FTYPE_QI_INT): Ditto.
18186 (HI_FTYPE_HI_INT): Ditto.
18187 (SI_FTYPE_SI_INT): Ditto.
18188 (DI_FTYPE_DI_INT): Ditto.
18189 (HI_FTYPE_V16QI_V16QI): Ditto.
18190 (SI_FTYPE_V32QI_V32QI): Ditto.
18191 (DI_FTYPE_V64QI_V64QI): Ditto.
18192 (QI_FTYPE_V8HI_V8HI): Ditto.
18193 (HI_FTYPE_V16HI_V16HI): Ditto.
18194 (SI_FTYPE_V32HI_V32HI): Ditto.
18195 (QI_FTYPE_V4SI_V4SI): Ditto.
18196 (QI_FTYPE_V8SI_V8SI): Ditto.
18197 (QI_FTYPE_V2DI_V2DI): Ditto.
18198 (QI_FTYPE_V4DI_V4DI): Ditto.
18199 (QI_FTYPE_V8DI_V8DI): Ditto.
18200 (HI_FTYPE_V16SI_V16SI): Ditto.
18201 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18202 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18203 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18204 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18205 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18206 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18207 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18208 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18209 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18210 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18211 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18212 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18213 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18214 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18215 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18216 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18217 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18218 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18219 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18220 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18221 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18222 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18223 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18224 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18225 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18226 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18227 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18228 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18229 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18230 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18231 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18232 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18233 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18234 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18235 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18236 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18237 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18238 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18239 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18240 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18241 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18242 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18243 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18244 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18245 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18246 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18247 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18248 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18249 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18250 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18251 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18252 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18253 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18254 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18255 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18256 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18257 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18258 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18259 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18260 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18261 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18262 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18263 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18264 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18265 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18266 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18267 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18268 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18269 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18270 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18271 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18272 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18273 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18274 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18275 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18276 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18277 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18278 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18279 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18280 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18281 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18282 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18283 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18284 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18285 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18286 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18287 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18288 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18289 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18290 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18291 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18292 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18293 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18294 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18295 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18296 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18297 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18298 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18299 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18300 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18301 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18302 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18303 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18304 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18305 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18306 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18307 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18308 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18309 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18310 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18311 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18312 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18313 (HI_FTYPE_HI): Ditto.
18314 (HI_FTYPE_V16QI): Ditto.
18315 (SI_FTYPE_V32QI): Ditto.
18316 (DI_FTYPE_V64QI): Ditto.
18317 (QI_FTYPE_V8HI): Ditto.
18318 (HI_FTYPE_V16HI): Ditto.
18319 (SI_FTYPE_V32HI): Ditto.
18320 (QI_FTYPE_V4SI): Ditto.
18321 (QI_FTYPE_V8SI): Ditto.
18322 (HI_FTYPE_V16SI): Ditto.
18323 (QI_FTYPE_V2DI): Ditto.
18324 (QI_FTYPE_V4DI): Ditto.
18325 (QI_FTYPE_V8DI): Ditto.
18326 (V16QI_FTYPE_HI): Ditto.
18327 (V32QI_FTYPE_SI): Ditto.
18328 (V64QI_FTYPE_DI): Ditto.
18329 (V8HI_FTYPE_QI): Ditto.
18330 (V16HI_FTYPE_HI): Ditto.
18331 (V32HI_FTYPE_SI): Ditto.
18332 (V4SI_FTYPE_QI): Ditto.
18333 (V4SI_FTYPE_HI): Ditto.
18334 (V8SI_FTYPE_QI): Ditto.
18335 (V8SI_FTYPE_HI): Ditto.
18336 (V2DI_FTYPE_QI): Ditto.
18337 (V4DI_FTYPE_QI): Ditto.
18338 (HI_FTYPE_HI_HI): Ditto.
18339 (SI_FTYPE_SI_SI): Ditto.
18340 (DI_FTYPE_DI_DI): Ditto.
18341 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18342 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18343 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18344 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18345 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18346 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18347 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18348 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18349 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18350 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18351 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18352 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18353 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18354 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18355 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18356 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18357 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18358 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18359 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18360 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18361 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18362 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18363 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18364 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18365 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18366 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18367 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18368 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18369 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18370 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18371 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18372 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18373 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18374 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18375 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18376 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18377 (V16SI_FTYPE_HI): Ditto.
18378 (V8DI_FTYPE_QI): Ditto.
18379 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18380 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18381 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18382 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18383 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18384 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18385 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18386 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18387 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18388 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18389 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18390 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18391 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18392 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18393 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18394 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18395 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18396 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18397 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18398 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18399 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18400 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18401 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18402 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18403 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18404 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18405 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18406 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18407 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18408 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18409 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18410 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18411 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18412 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18413 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18414 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18415 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18416 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18417 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18418 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18419 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18420 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18421 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18422 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18423 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18424 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18425 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
18426 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
18427 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
18428 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
18429 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
18430 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
18431 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
18432 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
18433 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
18434 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
18435 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
18436 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
18437 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
18438 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
18439 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
18440 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
18441 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
18442 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
18443 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
18444 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
18445 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
18446 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
18447 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
18448 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
18449 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
18450 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
18451 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
18452 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
18453 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
18454 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
18455 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
18456 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
18457 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
18458 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
18459 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
18460 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
18461 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
18462 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
18463 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
18464 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
18465 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
18466 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
18467 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
18468 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
18469 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
18470 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
18471 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
18472 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
18473 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
18474 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
18475 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
18476 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
18477 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
18478 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
18479 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
18480 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
18481 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
18482 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
18483 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
18484 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
18485 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
18486 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
18487 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
18488 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
18489 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
18490 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
18491 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
18492 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
18493 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
18494 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
18495 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
18496 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
18497 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
18498 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
18499 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
18500 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
18501 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
18502 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
18503 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
18504 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
18505 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
18506 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
18507 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
18508 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
18509 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
18510 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
18511 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
18512 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
18513 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
18514 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
18515 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
18516 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
18517 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
18518 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
18519 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
18520 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
18521 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
18522 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
18523 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
18524 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
18525 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
18526 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
18527 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
18528 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
18529 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
18530 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
18531 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
18532 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
18533 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
18534 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
18535 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
18536 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
18537 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
18538 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
18539 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
18540 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
18541 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
18542 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
18543 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
18544 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
18545 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
18546 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
18547 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
18548 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
18549 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
18550 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
18551 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
18552 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
18553 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
18554 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
18555 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
18556 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
18557 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
18558 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
18559 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
18560 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
18561 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
18562 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
18563 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
18564 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
18565 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
18566 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
18567 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
18568 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
18569 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
18570 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
18571 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
18572 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
18573 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
18574 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
18575 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
18576 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
18577 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
18578 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
18579 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
18580 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
18581 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
18582 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
18583 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
18584 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
18585 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
18586 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
18587 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
18588 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
18589 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
18590 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
18591 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
18592 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
18593 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
18594 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
18595 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
18596 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
18597 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
18598 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
18599 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
18600 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
18601 (QI_FTYPE_V8DF_INT_QI): Ditto.
18602 (QI_FTYPE_V4DF_INT_QI): Ditto.
18603 (QI_FTYPE_V2DF_INT_QI): Ditto.
18604 (HI_FTYPE_V16SF_INT_HI): Ditto.
18605 (QI_FTYPE_V8SF_INT_QI): Ditto.
18606 (QI_FTYPE_V4SF_INT_QI): Ditto.
18607 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
18608
18609 2015-07-31 Richard Biener <rguenther@suse.de>
18610
18611 * gimple-fold.c (fold_gimple_assign): Remove folding of
18612 GIMPLE_BINARY_RHS.
18613
18614 2015-07-31 Tom de Vries <tom@codesourcery.com>
18615
18616 PR tree-optimization/66846
18617 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
18618 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
18619 (expand_omp_target) [ENABLE_CHECKING]: Same.
18620 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
18621 cfun if !LOOPS_NEED_FIXUP.
18622 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
18623 that omp_for already has its own loop struct.
18624 * tree-parloops.c (create_phi_for_local_result)
18625 (create_call_for_reduction): Handle simple latch bb.
18626 (create_parallel_loop): Add simple latch bb to preserve
18627 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
18628 (gen_parallel_loop): Remove call to cancel_loop_tree.
18629 (parallelize_loops): Skip loops that are inner loops of parallelized
18630 loops.
18631 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
18632 verify_loop_structure.
18633
18634 2015-07-30 Anatoly Sokolov <aesok@post.ru>
18635
18636 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
18637 * config/v850/v850.md (RV_REGNUM): New constants.
18638 * config/v850/v850.c (v850_libcall_value): New functions.
18639 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
18640 (TARGET_LIBCALL_VALUE): Define.
18641
18642 2015-07-30 Anatoly Sokolov <aesok@post.ru>
18643
18644 * rtl.h (lowpart_subreg): Move in file.
18645 * loop-iv.c (lowpart_subreg): Move to...
18646 * simplify-rtx.c (lowpart_subreg): ...here.
18647 (simplify_binary_operation_1): Use lowpart_subreg instead of
18648 simplify_gen_subreg.
18649 * expr.c (expand_expr_real_2): Ditto.
18650 * emit-rtl.c (gen_lowpart_common): Ditto.
18651 * combine.c (gen_lowpart_for_combine): Ditto.
18652 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
18653 expand_debug_source_expr): Ditto.
18654
18655 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
18656
18657 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
18658 (expand_builtin_atomic_clear): Remove support for atomic_clear
18659 pattern.
18660
18661 2015-07-30 Richard Biener <rguenther@suse.de>
18662
18663 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
18664 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
18665 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
18666 redundant operand canonicalization.
18667
18668 2015-07-30 David Sherwood <david.sherwood@arm.com>
18669
18670 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
18671 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
18672 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
18673 * config/arm/arm.c (neon_valid_immediate): Likewise.
18674 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
18675 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
18676 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
18677 (expand_vec_perm_vpshufb2_vpermq): Likewise.
18678 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
18679 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18680 * config/i386/sse.md
18681 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
18682 (*ssse3_palignr<mode>_perm): Likewise.
18683 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
18684 * config/spu/spu.c (arith_immediate_p): Likewise.
18685 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18686 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
18687
18688 2015-07-30 Richard Biener <rguenther@suse.de>
18689
18690 * genmatch.c (decision_tree::gen_gimple): Merge with ...
18691 (decision_tree::gen_generic): ... this into ...
18692 (decision_tree::gen): ... this.
18693 (main): Adjust callers.
18694
18695 2015-07-30 Richard Biener <rguenther@suse.de>
18696
18697 * genmatch.c (verbose): New global.
18698 (warning_at): Add overload with source_location.
18699 (capture_info::capture_info): Add bool whether generating gimple
18700 or generic. Add gimple member.
18701 (capture_info::cinfo): Add capture member.
18702 (capture_info::walk_match): Record capture. Warn on
18703 non-captured leafs.
18704 (capture_info::walk_c_expr): Add more fragments captures cannot
18705 escape through. Warn on escaped captures.
18706 (dt_simplify::gen_1): Warn on operands we force to have no
18707 side-effects.
18708 (main): Initialize verbose.
18709 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
18710
18711 2015-07-30 Richard Biener <rguenther@suse.de>
18712
18713 PR middle-end/67053
18714 * match.pd: Allow both operands to independently have conversion
18715 when simplifying compares of addresses.
18716
18717 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
18718
18719 PR target/66217
18720 PR target/67045
18721 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
18722 around those cases that need one.
18723
18724 2015-07-29 Aditya Kumar <hiraditya@msn.com>
18725
18726 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
18727
18728 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
18729
18730 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18731 New. Copied from config/i386/gnu-user.h.
18732 (ASM_COMMENT_START): Likewise.
18733 (DBX_REGISTER_NUMBER): Likewise.
18734
18735 2015-07-29 Richard Biener <rguenther@suse.de>
18736
18737 * gimple-fold.c (fold_gimple_cond): Remove.
18738 (fold_stmt_1): Do not call it.
18739
18740 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
18741
18742 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
18743 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
18744
18745 * config/aarch64/aarch64-modes.def: Add HFmode.
18746
18747 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18748 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
18749
18750 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
18751 aarch64_promoted_type): New.
18752
18753 (aarch64_float_const_representable_p): Disable HFmode.
18754 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
18755 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
18756 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
18757
18758 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
18759 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
18760
18761 * config/aarch64/iterators.md (GPF_F16): New.
18762
18763 2015-07-29 Richard Biener <rguenther@suse.de>
18764
18765 * match.pd: Merge address comparison patterns and make them
18766 handle some more cases.
18767
18768 2015-07-29 Richard Biener <rguenther@suse.de>
18769
18770 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
18771 (parser::parse_capture): Add bool argument on whether to reject
18772 unknown captures.
18773 (parser::parse_expr): Adjust.
18774 (parser::parse_op): Likewise.
18775 (parser::parse_pattern): Likewise.
18776
18777 2015-07-29 Richard Biener <rguenther@suse.de>
18778
18779 * gimple-fold.c (has_use_on_stmt): New function.
18780 (replace_stmt_with_simplification): Use it to allow
18781 abnormals originally referenced in the stmt.
18782 (fold_stmt_1): Canonicalize operand order.
18783
18784 2015-07-28 David Sherwood <david.sherwood@arm.com>
18785
18786 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
18787 GET_MODE_INNER unconditionally.
18788 * config/spu/spu.c (arith_immediate_p): Likewise.
18789 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
18790 * expmed.c (synth_mult): Remove check for VOIDmode result from
18791 GET_MODE_INNER.
18792 (expand_mult_const): Likewise.
18793 * fold-const.c (fold_binary_loc): Replace call to element_precision
18794 with call to GET_MODE_PRECISION.
18795 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
18796 m->name.
18797 (emit_mode_inner): Likewise.
18798 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
18799 result check.
18800 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
18801 (GET_MODE_UNIT_PRECISION): Likewise.
18802 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
18803 * simplify-rtx.c (simplify_immed_subreg): Likewise.
18804 * stor-layout.c (bitwise_type_for_mode): Update assert.
18805 (element_precision): Remove.
18806
18807 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18808
18809 * target-insns.def (reload_load_address): New targetm instruction
18810 pattern.
18811 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
18812
18813 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18814
18815 * target-insns.def (atomic_test_and_set): New targetm instruction
18816 pattern.
18817 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
18818 HAVE_*/gen_* interface.
18819
18820 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18821
18822 * target-insns.def (can_extend, ptr_extend): New targetm instruction
18823 patterns.
18824 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
18825 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
18826 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
18827 * rtlanal.c (nonzero_bits1): Likewise.
18828 (num_sign_bit_copies1): Likewise.
18829
18830 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18831
18832 * target-insns.def (eh_return): New targetm instruction pattern.
18833 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
18834 interface.
18835 * function.c (thread_prologue_and_epilogue_insns): Remove
18836 preprocessor condition.
18837
18838 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18839
18840 * target-insns.def (indirect_jump): New targetm instruction pattern.
18841 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
18842 interface.
18843
18844 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
18845
18846 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
18847 instead of nonimmediate_operand. Remove C condiition.
18848
18849 2015-07-28 Richard Biener <rguenther@suse.de>
18850
18851 * match.pd: Add more simplification of address comparisons.
18852
18853 2015-07-28 Richard Biener <rguenther@suse.de>
18854
18855 * match.pd: Re-order two cases in comparison with max/min
18856 value simplification to make it apply for bools.
18857
18858 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18859
18860 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
18861 Handle simple SIGN_EXTEND or ZERO_EXTEND.
18862 (aarch64_rtx_costs): Properly strip extend or extract before
18863 passing down to rtx costs again.
18864
18865 2015-07-28 Nick Clifton <nickc@redhat.com>
18866
18867 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
18868 Optimizes the case where -mes0 is active and a constant symbolic
18869 address is used.
18870 * config/rl78/rl78-protos.h: Prototype the new function.
18871 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
18872
18873 2015-07-28 Tom de Vries <tom@codesourcery.com>
18874
18875 * tree-parloops.c (reduc_stmt_res): New function.
18876 (initialize_reductions, add_field_for_reduction)
18877 (create_phi_for_local_result, create_loads_for_reductions)
18878 (create_stores_for_reduction, build_new_reduction): Handle case that
18879 reduc_stmt is a phi.
18880 (gather_scalar_reductions): Allow double_reduc reductions.
18881
18882 2015-07-28 Richard Biener <rguenther@suse.de>
18883
18884 * fold-const.c (fold_comparison): Remove equality folding
18885 of decl addresses ...
18886 * match.pd: ... here and merge with existing pattern.
18887
18888 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
18889
18890 PR tree-optimization/66828
18891 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
18892 from int64_t to uint64_t.
18893
18894 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
18895
18896 * opts-common.c (read_cmdline_option): List DriverOnly enum values
18897 as valid only in the error message of the driver, not in the
18898 messages of the language compilers.
18899
18900 2015-07-27 Tom de Vries <tom@codesourcery.com>
18901
18902 * tree-parloops.c (gather_scalar_reductions): Simplify function
18903 structure.
18904
18905 2015-07-27 Marek Polacek <polacek@redhat.com>
18906
18907 * ipa-devirt.c (types_same_for_odr): Fix typo.
18908
18909 2015-07-27 Jason Merrill <jason@redhat.com>
18910
18911 PR debug/66468
18912 * dwarf2out.c (gen_inlined_subroutine_die): Check
18913 cgraph_function_possibly_inlined_p.
18914
18915 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18916
18917 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
18918 Place integer variant first.
18919 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
18920
18921 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18922
18923 PR/63870
18924 * config/arm/arm-builtins.c (enum arm_builtins):
18925 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
18926 (ARM_BUILTIN_NEON_BASE): Rename macro to....
18927 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
18928 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
18929 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
18930
18931 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
18932
18933 PR/63870
18934 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
18935 Add qualifier_lane_index.
18936 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
18937 (arm_getlane_qualifiers): Use qualifier_lane_index.
18938 (arm_lanemac_qualifiers): Rename to...
18939 (arm_mac_n_qualifiers): ...this.
18940 (LANEMAC_QUALIFIERS): Rename to...
18941 (MAC_N_QUALIFIERS): ...this.
18942 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
18943 (arm_setlane_qualifiers): Use qualifier_lane_index.
18944 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
18945 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
18946 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
18947 (arm_expand_neon_builtin): Handle qualifier_lane_index.
18948
18949 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
18950 * config/arm/arm.c (bounds_check): Likewise, improve error message.
18951 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
18952 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
18953 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
18954 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
18955 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
18956 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
18957 qualifiers to TERNOP_IMM.
18958 (vdup_lane): Change qualifiers to GETLANE.
18959 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
18960 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
18961 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
18962 vqdmlsl_n): Change qualifiers to MAC_N.
18963
18964 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
18965 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
18966 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
18967 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
18968 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
18969 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
18970 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
18971 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
18972 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
18973 Remove call to neon_lane_bounds.
18974
18975 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
18976
18977 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
18978 Place integer variant first.
18979
18980 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
18981
18982 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
18983 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
18984 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
18985 for armv6kz targets.
18986 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
18987 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
18988 (FL_FOR_ARCH6ZK): Remove.
18989 (FL_FOR_ARCH6KZ): New.
18990 (arm_arch6zk): New declaration.
18991 * config/arm/arm-tables.opt: Regenerate.
18992 * config/arm/arm.c (arm_arch6kz): New.
18993 (arm_option_override): Set arm_arch6kz.
18994 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
18995 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
18996 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
18997
18998 2015-07-27 Marek Polacek <polacek@redhat.com>
18999
19000 PR c++/66555
19001 PR c/54979
19002 * doc/invoke.texi: Document -Wtautological-compare.
19003
19004 2015-07-27 Richard Biener <rguenther@suse.de>
19005
19006 * genmatch.c (decision_tree::gen_gimple): Split out large
19007 subtrees into separate functions.
19008 (decision_tree::gen_generic): Likewise.
19009
19010 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
19011
19012 * config/alpha/alpha.c: Use SUBREG_P predicate.
19013 * config/alpha/predicates.md: Ditto.
19014
19015 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
19016
19017 * config.host (s390*-*-*): Include driver-native.c only when
19018 building with s390* as host *and* target.
19019
19020 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
19021
19022 PR target/66930
19023 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19024 T bit register modified_between_p check.
19025
19026 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19027
19028 * config/i386/i386.c: Use SUBREG_P predicate.
19029 * config/i386/i386.md: Ditto.
19030 * config/i386/sse.md: Ditto.
19031 * config/i386/predicates.md: Ditto.
19032
19033 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19034
19035 PR target/67004
19036 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19037 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19038
19039 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19040
19041 * Makefile.in: Remove use of TREEBROWSER.
19042 * config.in: Regenerated.
19043 * configure: Regenerated.
19044 * configure.ac: Remove definition of TREEBROWSER.
19045 * tree-browser.c: Removed.
19046 * tree-browser.def: Removed.
19047
19048 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19049
19050 * graphite-scop-detection.c: Include gimple-pretty-print.h.
19051 (stmt_simple_for_scop_p): Print when a stmt is not handled in
19052 Graphite.
19053 (scopdet_basic_block_info): Print when a loop or bb cannot be
19054 represented in Graphite.
19055
19056 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19057
19058 PR target/66648
19059 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19060 execution guard when min_size is less than size_needed.
19061
19062 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19063
19064 * doc/install.texi: Document supported versions of ISL.
19065
19066 2015-07-25 Jeff Law <law@redhat.com>
19067
19068 Revert:
19069 PR lto/66752
19070 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19071 unable to find X NE 0 in the tables, return X as the simplified
19072 condition.
19073 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19074 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19075 to VISISTED_BBS. */
19076 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19077 after removing the control flow statement and unnecessary edges.
19078
19079 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
19080
19081 Revert:
19082 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19083
19084 PR rtl-optimization/64164
19085 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19086 * tree-ssa-copyrename.c: Removed.
19087 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19088 -ftree-coalesce-vars.
19089 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19090 * common.opt (ftree-copyrename): Ignore.
19091 (ftree-coalesce-inlined-vars): Likewise.
19092 * doc/invoke.texi: Remove the ignored options above.
19093 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19094 * tree-ssa-coalesce.h: ... here.
19095 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19096 headers required by it.
19097 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19098 across variables when flag_tree_coalesce_vars. Check register
19099 use and promoted modes to allow coalescing. Moved to
19100 tree-ssa-coalesce.c.
19101 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19102 with its member functions to tree-ssa-coalesce.c.
19103 (var_map_base_init): Likewise. Renamed to
19104 compute_samebase_partition_bases.
19105 (partition_view_normal): Drop want_bases parameter.
19106 (partition_view_bitmap): Likewise.
19107 * tree-ssa-live.h: Adjust declarations.
19108 * tree-ssa-coalesce.c: Include explow.h.
19109 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19110 default defs at the entry point.
19111 (dump_part_var_map): New.
19112 (compute_optimized_partition_bases): New, called by...
19113 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19114 of compute_samebase_partition_bases. Adjust.
19115 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19116 * cfgexpand.c (leader_merge): New.
19117 (get_rtl_for_parm_ssa_default_def): New.
19118 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19119 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19120 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19121 redundant MEM attr setting.
19122 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19123 from...
19124 (expand_one_stack_var): ... this. New wrapper to check and
19125 skip already expanded SSA partitions.
19126 (record_alignment_for_reg_var): New, factored out of...
19127 (expand_one_var): ... this.
19128 (expand_one_ssa_partition): New.
19129 (adjust_one_expanded_partition_var): New.
19130 (expand_one_register_var): Check and skip already expanded SSA
19131 partitions.
19132 (expand_used_vars): Don't create DECLs for anonymous SSA
19133 names. Expand all SSA partitions, then adjust all SSA names.
19134 (pass::execute): Replace the loops that set
19135 SA.partition_to_pseudo from partition leaders and cleared
19136 DECL_RTL for multi-location variables, and that which used to
19137 rename vars and set attrs, with one that clears DECL_RTL and
19138 checks that PARMs and RESULTs default_defs match DECL_RTL.
19139 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19140 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19141 * explow.c (promote_ssa_mode): New.
19142 * explow.h (promote_ssa_mode): Declare.
19143 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19144 * function.c: Include cfgexpand.h.
19145 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19146 (use_register_for_parm_decl): Wrapper for the above to
19147 special-case the result_ptr.
19148 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19149 (split_complex_args): Take assign_parm_data_all argument.
19150 Pass it to rtl_for_parm. Set up rtl and context for split
19151 args.
19152 (assign_parms_augmented_arg_list): Adjust.
19153 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19154 multiple locations. Recognize split complex args.
19155 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19156 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19157 (assign_parm_setup_block): Prefer SSA-assigned location.
19158 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19159 if stack_parm is NULL.
19160 (assign_parm_setup_stack): Prefer SSA-assigned location.
19161 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19162 rtl before testing for pointer bounds. Special-case result_ptr.
19163 (expand_function_start): Maybe reset DECL_RTL of result.
19164 Prefer SSA-assigned location for result and static chain.
19165 Factor out DECL_RESULT and SET_DECL_RTL.
19166 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19167 anonymous SSA names. Use promote_ssa_mode.
19168 (get_temp_reg): Likewise.
19169 (remove_ssa_form): Adjust.
19170 * stor-layout.c (layout_decl): Don't set mem attributes of
19171 non-MEMs.
19172 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19173 and get its reg_usage for reg invalidation.
19174 (compute_bb_dataflow): Pass it insn.
19175 (emit_notes_in_bb): Likewise.
19176
19177 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19178
19179 * config/i386/i386.c (ix86_va_start): Remove
19180 unneeded !TARGET_64BIT check.
19181 (ix86_gimplify_va_arg): Ditto.
19182
19183 2015-07-24 Tom de Vries <tom@codesourcery.com>
19184
19185 * graphite-sese-to-poly.c (build_poly_scop): Always call
19186 rewrite_commutative_reductions_out_of_ssa.
19187
19188 2015-07-24 Tom de Vries <tom@codesourcery.com>
19189
19190 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19191 flag_associative_math to FLOAT_TYPE_P. Honour
19192 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19193
19194 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19195
19196 PR c++/64079
19197 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19198 and "%qD" in warning_at instead of "%q+D" in warning.
19199
19200 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19201
19202 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19203 (ix86_function_abi): Cleanup.
19204
19205 2015-07-24 Michael Darling <darlingm@gmail.com>
19206
19207 PR other/66259
19208 * acinclude.m4: Reflects renaming of configure.in to configure.ac
19209 * configure: Likewise
19210 * configure.ac: Likewise
19211 * doc/install.texi: Likewise
19212 * doc/tm.texi: Likewise
19213 * doc/tm.texi.in: Likewise
19214
19215 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19216
19217 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19218 manually swapping values.
19219 * cse.c (fold_rtx): Likewise.
19220 * lra-eliminations.c (form_sum): Likewise.
19221
19222 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19223
19224 PR target/64003
19225 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19226 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19227 (*jcc_1, *jcc_2, jump, simple_return_internal)
19228 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19229 Set length_nobnd attribute instead of length attribute.
19230 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19231 (length_nobnd): Remove attribute.
19232 (length): Remove length_nobnd processing.
19233
19234 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
19235
19236 * gimplify.c (omp_default_clause): New function. Reorganize flow
19237 for clarity. Broken out of ...
19238 (omp_notice_variable): ... here.
19239
19240 2015-07-24 Gary Funck <gary@intrepid.com>
19241
19242 PR middle-end/66984
19243 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19244 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19245
19246 2015-07-24 Tom de Vries <tom@codesourcery.com>
19247
19248 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19249 exit-first loop transform.
19250
19251 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
19252
19253 PR 66714
19254 * tree-cfg.c (struct replace_decls_d): New struct.
19255 (replace_block_vars_by_duplicates_1): New function.
19256 (replace_block_vars_by_duplicates): Use it to replace the decls
19257 in the value exprs by duplicates.
19258
19259 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19260
19261 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19262 -shared, -symbolic, -rdynamic.
19263
19264 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19265
19266 PR target/65711
19267 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19268 -dynamic-linker within %{!static %{!shared, and -rdynamic within
19269 %{!static.
19270
19271 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19272
19273 PR ipa/66566
19274 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19275 edge summary is available.
19276
19277 2015-07-24 Richard Biener <rguenther@suse.de>
19278
19279 * genmatch.c (struct dt_node): Add statistic fields.
19280 (dt_node::analyze): New method.
19281 (decision_tree::gen_gimple): Call analyze on the root node
19282 and print statistics to stderr.
19283 (decision_tree::gen_generic): Likewise.
19284
19285 2015-07-24 Richard Biener <rguenther@suse.de>
19286
19287 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19288 against the highest or lowest possible integer ...
19289 * match.pd: ... as patterns here.
19290
19291 2015-07-24 Richard Biener <rguenther@suse.de>
19292
19293 * genmatch.c (struct capture_info): Add same_as field.
19294 (capture_info::capture_info): Initialize same_as.
19295 (capture_info::walk_match): Compute same_as.
19296 (capture_info::walk_result): Compute stuff for the leader.
19297 (capture_info::walk_c_expr): Likewise.
19298 (dt_simplify::gen_1): Only look at leaders when deciding
19299 to force no side-effects or emit side-effects of omitted operands.
19300
19301 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19302
19303 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19304 reg note to the GPR -> FPR save instructions.
19305
19306 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19307
19308 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19309 cheaper.
19310 (s390_expand_insv): Don't generate risbg pattern for constant zero
19311 sources.
19312 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19313 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
19314 splitters.
19315
19316 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19317
19318 * config/s390/s390.c (s390_reorg): Clean up handling of processors
19319 with
19320 -mtune=
19321 (s390_issue_rate): Likewise.
19322 (s390_sched_reorder): Likewise.
19323 (s390_sched_variable_issue): Likewise.
19324 (s390_loop_unroll_adjust): Likewise.
19325 (s390_option_override): Likewise.
19326
19327 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19328
19329 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19330 processor capabilities with -march=native.
19331 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19332 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
19333 (S390_TARGET_BITS_STRING): Macro to simplify specs.
19334
19335 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19336
19337 * config/s390/s390.c (s390_issue_rate): Handle
19338 PROCESSOR_2094_Z9_EC.
19339 (s390_option_override): Likewise.
19340 (s390_adjust_priority): Likewise.
19341
19342 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19343
19344 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19345 when cross compiling.
19346
19347 2015-07-24 Richard Biener <rguenther@suse.de>
19348
19349 * fold-const.c (maybe_canonicalize_comparison_1): Move
19350 A code CST canonicalization ...
19351 * match.pd: ... to a pattern here.
19352
19353 2015-07-24 Jiong Wang <jiong.wang@arm.com>
19354
19355 Revert:
19356 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19357 PR target/63521
19358 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19359 (HONOR_REG_ALLOC_ORDER): Define.
19360
19361 2015-07-24 Richard Biener <rguenther@suse.de>
19362
19363 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19364 * fold-const.c (fold_comparison): Move parameter does not
19365 alias &local simplification ...
19366 * match.pd: ... as a pattern here.
19367
19368 2015-07-24 Richard Biener <rguenther@suse.de>
19369
19370 * gimple-fold.c (replace_stmt_with_simplification): Special-case
19371 valueizing call operands.
19372 * gimple-match-head.c (maybe_push_res_to_seq): Take
19373 number of call arguments from ops array.
19374 (do_valueize): New function.
19375 (gimple_simplify): Return true if valueization changed
19376 any operand even if the result didn't simplify further.
19377
19378 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19379
19380 PR middle-end/25530
19381 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19382
19383 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19384
19385 PR middle-end/25529
19386 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19387
19388 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19389
19390 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19391 instruction.
19392
19393 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19394
19395 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19396 clean up.
19397
19398 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
19399
19400 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19401 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
19402 targets here.
19403 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19404 ms_va_list_type_node initialization.
19405
19406 2015-07-23 Jeff Law <law@redhat.com>
19407
19408 PR lto/66752
19409 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19410 unable to find X NE 0 in the tables, return X as the simplified
19411 condition.
19412 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19413 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19414 to VISISTED_BBS. */
19415 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19416 after removing the control flow statement and unnecessary edges.
19417
19418 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19419
19420 * tree-pass.h (get_current_pass_name): Removed.
19421
19422 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19423
19424 PR rtl-optimization/64164
19425 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19426 * tree-ssa-copyrename.c: Removed.
19427 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19428 -ftree-coalesce-vars.
19429 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19430 * common.opt (ftree-copyrename): Ignore.
19431 (ftree-coalesce-inlined-vars): Likewise.
19432 * doc/invoke.texi: Remove the ignored options above.
19433 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19434 * tree-ssa-coalesce.h: ... here.
19435 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19436 headers required by it.
19437 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19438 across variables when flag_tree_coalesce_vars. Check register
19439 use and promoted modes to allow coalescing. Moved to
19440 tree-ssa-coalesce.c.
19441 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19442 with its member functions to tree-ssa-coalesce.c.
19443 (var_map_base_init): Likewise. Renamed to
19444 compute_samebase_partition_bases.
19445 (partition_view_normal): Drop want_bases parameter.
19446 (partition_view_bitmap): Likewise.
19447 * tree-ssa-live.h: Adjust declarations.
19448 * tree-ssa-coalesce.c: Include explow.h.
19449 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19450 default defs at the entry point.
19451 (dump_part_var_map): New.
19452 (compute_optimized_partition_bases): New, called by...
19453 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19454 of compute_samebase_partition_bases. Adjust.
19455 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19456 * cfgexpand.c (leader_merge): New.
19457 (get_rtl_for_parm_ssa_default_def): New.
19458 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19459 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19460 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19461 redundant MEM attr setting.
19462 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19463 from...
19464 (expand_one_stack_var): ... this. New wrapper to check and
19465 skip already expanded SSA partitions.
19466 (record_alignment_for_reg_var): New, factored out of...
19467 (expand_one_var): ... this.
19468 (expand_one_ssa_partition): New.
19469 (adjust_one_expanded_partition_var): New.
19470 (expand_one_register_var): Check and skip already expanded SSA
19471 partitions.
19472 (expand_used_vars): Don't create DECLs for anonymous SSA
19473 names. Expand all SSA partitions, then adjust all SSA names.
19474 (pass::execute): Replace the loops that set
19475 SA.partition_to_pseudo from partition leaders and cleared
19476 DECL_RTL for multi-location variables, and that which used to
19477 rename vars and set attrs, with one that clears DECL_RTL and
19478 checks that PARMs and RESULTs default_defs match DECL_RTL.
19479 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19480 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19481 * explow.c (promote_ssa_mode): New.
19482 * explow.h (promote_ssa_mode): Declare.
19483 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19484 * function.c: Include cfgexpand.h.
19485 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19486 (use_register_for_parm_decl): Wrapper for the above to
19487 special-case the result_ptr.
19488 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19489 (split_complex_args): Take assign_parm_data_all argument.
19490 Pass it to rtl_for_parm. Set up rtl and context for split
19491 args.
19492 (assign_parms_augmented_arg_list): Adjust.
19493 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19494 multiple locations. Recognize split complex args.
19495 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19496 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19497 (assign_parm_setup_block): Prefer SSA-assigned location.
19498 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19499 if stack_parm is NULL.
19500 (assign_parm_setup_stack): Prefer SSA-assigned location.
19501 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19502 rtl before testing for pointer bounds. Special-case result_ptr.
19503 (expand_function_start): Maybe reset DECL_RTL of result.
19504 Prefer SSA-assigned location for result and static chain.
19505 Factor out DECL_RESULT and SET_DECL_RTL.
19506 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19507 anonymous SSA names. Use promote_ssa_mode.
19508 (get_temp_reg): Likewise.
19509 (remove_ssa_form): Adjust.
19510 * stor-layout.c (layout_decl): Don't set mem attributes of
19511 non-MEMs.
19512 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19513 and get its reg_usage for reg invalidation.
19514 (compute_bb_dataflow): Pass it insn.
19515 (emit_notes_in_bb): Likewise.
19516
19517 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
19518
19519 PR target/66217
19520 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
19521 prototype.
19522 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
19523 (rs6000_emit_2insn_and): Handle dot forms.
19524 * config/rs6000/rs6000.md (and<mode>3): Adjust.
19525 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
19526 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
19527
19528 2015-07-23 Richard Biener <rguenther@suse.de>
19529
19530 * generic-match-head.c: Include cgraph.h.
19531 * gimple-match-head.c: Likewise.
19532 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
19533 SSA names.
19534 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
19535 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
19536 pattern.
19537
19538 2015-07-23 Richard Biener <rguenther@suse.de>
19539
19540 * gimple-fold.c (fold_gimple_cond): Do not require folding
19541 results to pass valid_gimple_rhs_p.
19542 * tree-cfg.h (fold_cond_expr_cond): Remove.
19543 * tree-cfg.c (fold_cond_expr_cond): Likewise.
19544 (make_edges): Do not call it.
19545 * tree-inline.c (tree_function_versioning): Likewise.
19546
19547 2015-07-23 Tom de Vries <tom@codesourcery.com>
19548
19549 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
19550 vect_force_simple_reduction.
19551 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
19552 (vect_is_simple_reduction_1): Add and handle
19553 need_wrapping_integral_overflow parameter.
19554 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
19555 need_wrapping_integral_overflow parameter.
19556 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
19557 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
19558 decl.
19559
19560 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
19561
19562 PR tree-optimization/66926,66951
19563 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
19564 INNER_LOOP and fix up condition for renaming virtual operands.
19565
19566 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19567
19568 * combine.c (try_combine): Use std::swap instead of manually
19569 swapping.
19570
19571 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
19572
19573 * config/mips/i6400.md: New file.
19574 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
19575 (mips64r6): Likewise.
19576 (i6400): Define.
19577 * config/mips/mips-tables.opt: Regenerate.
19578 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
19579 (mips_issue_rate): Add support for i6400.
19580 (mips_multipass_dfa_lookahead): Likewise.
19581 * config/mips/mips.h (TUNE_I6400): Define.
19582 * config/mips/mips.md: Include i6400.md.
19583 (processor): Add i6400.
19584 * doc/invoke.texi (-march=@var{arch}): Add i6400.
19585
19586 2015-07-23 Richard Biener <rguenther@suse.de>
19587
19588 PR middle-end/66916
19589 * match.pd: Guard widen and sign-change comparison simplification
19590 with single_use.
19591
19592 2015-07-23 Richard Biener <rguenther@suse.de>
19593
19594 PR tree-optimization/66945
19595 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
19596 ::before_dom_children): Force the propagators idea of
19597 non-executable edges to materialize, not what the folder
19598 chooses.
19599
19600 2015-07-23 Richard Biener <rguenther@suse.de>
19601
19602 * gimple.h (gimple_cond_make_false): Use 0 != 0.
19603 (gimple_cond_make_true): Use 1 != 0.
19604
19605 2015-07-22 DJ Delorie <dj@redhat.com>
19606
19607 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
19608 slashes.
19609
19610 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
19611 (ashrhi3): Likewise.
19612 (lshrhi3): Likewise.
19613 (movhi): Take advantage of zero-extend to load small constants.
19614 (movpsi): Likewise.
19615 (and<mode>3): Likewise.
19616 (zero_extendqihi2): Likewise.
19617 (zero_extendqisi2): New.
19618 * config/msp430/constraints.md (N,O): New.
19619 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
19620
19621 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
19622
19623 PR target/66954
19624 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
19625 to enum feature_priority and feature_list.
19626 (fold_builtin_cpu): Add F_AES to enum processor_features
19627 and isa_names_table.
19628
19629 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
19630
19631 PR driver/66737
19632 * config/i386/linux-common.h (MPX_SPEC): Use linker option
19633 for 64bit target only.
19634
19635 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
19636
19637 * config/nvptx/nvptx.c: Expand some comments.
19638
19639 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
19640
19641 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
19642 (cortex_a53_advsimd): ...This.
19643
19644 2015-07-22 Richard Biener <rguenther@suse.de>
19645
19646 * genmatch.c (expr::gen_transform): Clarify error message
19647 and display location.
19648
19649 2015-07-22 Richard Biener <rguenther@suse.de>
19650
19651 * genmatch.c (struct operand): Add location member.
19652 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
19653 constructors.
19654 (struct simplify): Remove match_location and result_location
19655 members.
19656 (elsehwere): Adjust.
19657
19658 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
19659
19660 * config/mips/m5100.md: New file.
19661 * config/mips/mips-cpus.def (m5100, m5101): Define.
19662 * config/mips/mips-tables.opt: Regenerate.
19663 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
19664 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
19665 -march=m5101 to -mips32r5.
19666 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
19667 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
19668 !-msoft-float.
19669 * config/mips/mips.md: Include m5100.md.
19670 (processor): Add m5100.
19671 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
19672
19673 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
19674
19675 * config/mips/mips-cpus.def (interaptiv): Define.
19676 * config/mips/mips-tables.opt: Regenerate.
19677 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
19678 -mips32r2.
19679 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
19680 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
19681
19682 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19683
19684 PR target/63521
19685 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19686 (HONOR_REG_ALLOC_ORDER): Define.
19687
19688 2015-07-22 Richard Biener <rguenther@suse.de>
19689
19690 PR tree-optimization/66952
19691 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
19692 blocks we end up executing unconditionally reset all SSA
19693 info such as range and alignment.
19694 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
19695 * tree-ssanames.c (reset_flow_sensitive_info): New function.
19696
19697 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19698
19699 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
19700 typo in attribute.
19701
19702 2015-07-22 Richard Biener <rguenther@suse.de>
19703
19704 * genmatch.c (parser::parse_result): Properly handle
19705 match with result operands and conditions.
19706
19707 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19708
19709 PR target/63870
19710 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19711 Add qualifier_struct_load_store_lane_index.
19712 (aarch64_types_loadstruct_lane_qualifiers): Use
19713 qualifier_struct_load_store_lane_index for lane index argument for
19714 last argument.
19715 (aarch64_types_storestruct_lane_qualifiers): Ditto.
19716 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19717 (aarch64_simd_expand_args): Add new argument describing mode of
19718 builtin. Check lane bounds for arguments with
19719 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19720 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
19721 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19722 (aarch64_simd_expand_builtin): Handle arguments with
19723 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
19724 aarch64_simd_expand_args.
19725 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
19726 vst[234]_lane with BUILTIN_VALLDIF.
19727 * config/aarch64/aarch64-simd.md:
19728 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
19729 endianness reversal on lane index.
19730 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
19731 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
19732 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
19733 (vec_store_lanesci_lane<mode>): Ditto.
19734 (vec_store_lanesxi_lane<mode>): Ditto.
19735 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
19736 reversal of lane index.
19737 (aarch64_ld3_lane<mode>): Ditto.
19738 (aarch64_ld4_lane<mode>): Ditto.
19739 (aarch64_st2_lane<mode>): Ditto.
19740 (aarch64_st3_lane<mode>): Ditto.
19741 (aarch64_st4_lane<mode>): Ditto.
19742 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
19743 to qmode. Add new mode parameter. Update uses.
19744 (__LD3_LANE_FUNC): Ditto.
19745 (__LD4_LANE_FUNC): Ditto.
19746 (__ST2_LANE_FUNC): Ditto.
19747 (__ST3_LANE_FUNC): Ditto.
19748 (__ST4_LANE_FUNC): Ditto.
19749
19750 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
19751
19752 * doc/invoke.texi (Language Independent Options): Rename node to
19753 Diagnostic Message Formatting Options.
19754
19755 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
19756
19757 PR ipa/66424.
19758 * lra-remat.c (operand_to_remat): Prevent using insns with input
19759 subregs processed separately by IRA.
19760
19761 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
19762
19763 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
19764 straight loops.
19765 (single_imm_use): Check for iterator node.
19766 (num_imm_uses): Likewise.
19767 * tree-ssa-operands.c (has_zero_uses_1): Delete.
19768 (single_imm_use_1): Check for iterator node.
19769
19770 2015-07-21 Mike Frysinger <vapier@gentoo.org>
19771 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19772
19773 * configure.ac: Add check for new options in isl-0.15.
19774 * config.in, configure: Rebuilt.
19775 * graphite-blocking.c: Include <isl/constraint.h>
19776 * graphite-interchange.c, graphite-poly.c: Likewise.
19777 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
19778 * graphite.c: Likewise.
19779 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
19780 <isl/union_set.h>.
19781 * graphite-dependences.c: Include <isl/constraint.h>.
19782 (max_number_of_out_dimensions): Returns isl_stat.
19783 (extend_schedule_1): Likewise
19784 (extend_schedule): Corresponding changes.
19785 * graphite-optimize-isl.c: Include <isl/constraint.h> and
19786 <isl/union_set.h>.
19787 (getSingleMap): Change return type of isl_stat.
19788 (optimize_isl): Conditionally use
19789 isl_options_set_schedule_serialize_sccs.
19790 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
19791 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
19792
19793 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
19794
19795 PR target/66956
19796 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
19797 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
19798
19799 2015-07-21 Richard Biener <rguenther@suse.de>
19800
19801 PR tree-optimization/66948
19802 * genmatch.c (capture_info::walk_match): Also recurse to
19803 captures. Properly compute expr state from captures of
19804 captures.
19805 * match.pd: Add single-use guards to
19806 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
19807
19808 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
19809
19810 * config/nvptx/mkoffload.c (process): Add static destructor call.
19811
19812 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19813
19814 PR middle-end/66915
19815 * match.pd (A - B -> A + (-B)): Don't allow folding
19816 when type if a fixed-point type.
19817
19818 2015-07-20 DJ Delorie <dj@redhat.com>
19819
19820 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
19821 (iorqi3_real): Likewise for set1.
19822
19823 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
19824
19825 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
19826 for !TARGET_64BIT.
19827
19828 2015-07-20 Aditya Kumar <hiraditya@msn.com>
19829
19830 * graphite-isl-ast-to-gimple.c:
19831 Refactor so that each function can access 'region'. This will help
19832 maintain a parameter rename_map within a region.
19833
19834 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19835
19836 * config/rs6000/rs6000.md (*lt0_disi): New.
19837
19838 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19839
19840 PR target/66217
19841 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
19842 "available letters" comment.
19843 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
19844 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
19845 and_2rld_operand): Delete.
19846 (and_operand): Adjust.
19847 (rotate_mask_operator): New.
19848 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
19849 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
19850 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
19851 extract_ME): Delete.
19852 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19853 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
19854 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
19855 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19856 rs6000_emit_2insn_and): New.
19857 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
19858 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
19859 includes_rldic_lshift_p, includes_rldicr_lshift_p,
19860 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
19861 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
19862 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
19863 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
19864 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
19865 rs6000_emit_2insn_and): New.
19866 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
19867 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
19868 handling.
19869 <NOT>: Don't fall through to next case.
19870 <AND>: Handle the various rotate-and-mask cases directly.
19871 <IOR>: Always cost as one insn.
19872 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
19873 (and<mode>3): Adjust expander for the new patterns.
19874 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
19875 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
19876 (*and<mode>3_imm_dot_shifted): New.
19877 (*and<mode>3_mask): Delete, rewrite as ...
19878 (and<mode>3_mask): ... New.
19879 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
19880 (andsi3_internal0_nomc): Delete.
19881 (*andsi3_internal6): Delete.
19882 (*and<mode>3_2insn): New.
19883 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
19884 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
19885 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
19886 *insvdi_internal3): Delete.
19887 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
19888 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
19889 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
19890 *ior<mode>_mask): New.
19891 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
19892 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
19893 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
19894 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
19895 Delete.
19896 (ashr<mode>3): Delete expander.
19897 (*ashr<mode>3): Rename to ...
19898 (ashr<mode>3): ... This.
19899 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
19900 (*rotldi3_internal4, *rotldi3_internal5 and split,
19901 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
19902 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
19903 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
19904 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
19905 (splitter for loading a mask): Adjust.
19906 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
19907
19908 2015-07-20 Marek Polacek <polacek@redhat.com>
19909
19910 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
19911 output_add_clobbers, output_added_clobbers_hard_reg_p,
19912 gen_rtx_scratch): Remove declarations.
19913
19914 2015-07-20 Marek Polacek <polacek@redhat.com>
19915
19916 PR c++/55095
19917 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
19918
19919 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19920
19921 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
19922 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
19923
19924 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19925
19926 * combine.c (combine_simplify_rtx): Move simplification step
19927 before various transformations/substitutions.
19928
19929 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
19930
19931 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
19932 (struct int_traits): Likewise.
19933
19934 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
19935
19936 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
19937 function to vmsdbgout_function_decl.
19938
19939 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
19940
19941 PR target/66922
19942 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
19943 from misaligned positions.
19944 (ix86_expand_pinsr): Reject insertions to misaligned positions.
19945
19946 2015-07-18 Sebastian Pop <s.pop@samsung.com>
19947
19948 PR middle-end/46851
19949 PR middle-end/60340
19950 * Makefile.in: Removed omega.o.
19951 * common.opt: Document flag fcheck-data-deps as deprecated.
19952 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
19953 its associated params: omega-max-vars, omega-max-geqs,
19954 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
19955 omega-max-keys, omega-eliminate-redundant-constraints.
19956 * doc/loop.texi: Remove all the section on Omega.
19957 * graphite-blocking.c: Include missing params.h: it used to be
19958 included through tree-data-ref.h and omega.h.
19959 * graphite-isl-ast-to-gimple.c: Same.
19960 * graphite-optimize-isl.c: Same.
19961 * graphite-sese-to-poly.c: Same.
19962 * graphite.c: Same.
19963 * omega.c: Remove.
19964 * omega.h: Remove.
19965 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
19966 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
19967 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
19968 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
19969 * passes.def: Remove pass_check_data_deps.
19970 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
19971 (dump_conflict_function): Same.
19972 (dump_subscript): Same.
19973 (print_direction_vector): Same.
19974 (print_dir_vectors): Same.
19975 (print_lambda_vector): Same.
19976 (print_dist_vectors): Same.
19977 (dump_data_dependence_relation): Same.
19978 (dump_data_dependence_relations): Same.
19979 (dump_dist_dir_vectors): Same.
19980 (dump_ddrs): Same.
19981 (init_omega_eq_with_af): Removed.
19982 (omega_extract_distance_vectors): Removed.
19983 (omega_setup_subscript): Removed.
19984 (init_omega_for_ddr_1): Removed.
19985 (init_omega_for_ddr): Removed.
19986 (ddr_consistent_p): Removed.
19987 (compute_affine_dependence): Do not use omega to check data
19988 dependences.
19989 (compute_data_dependences_for_bb): Removed.
19990 (analyze_all_data_dependences): Removed.
19991 (tree_check_data_deps): Removed.
19992 * tree-data-ref.h: Do not include omega.h.
19993 (compute_data_dependences_for_bb): Removed.
19994 (tree_check_data_deps): Removed.
19995 * tree-ssa-loop.c (pass_check_data_deps): Removed.
19996 (make_pass_check_data_deps): Removed.
19997 * tree-ssa-phiopt.c: Include params.h.
19998 * tree-vect-data-refs.c: Same.
19999 * tree-vect-slp.c: Same.
20000
20001 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20002
20003 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20004 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
20005 (mem->fpreg splitters): Ditto.
20006 (general_operand->nonimmediate_operand splitter): Use explicit modes.
20007 Disable DFmode for TARGET_64BIT.
20008
20009 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
20010
20011 PR target/66906
20012 * config/i386/i386.c (ix86_expand_prologue): Replicate static
20013 chain on the stack.
20014
20015 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20016
20017 * config/nvptx/mkoffload.c (process): Constify host data.
20018 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20019 Constify host data.
20020 (generate_host_descr_file): Likewise.
20021
20022 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
20023 Sebastian Pop <s.pop@samsung.com>
20024
20025 PR middle-end/61929
20026 * graphite-dependences.c (add_pdr_constraints): Renamed
20027 pdr->extent to pdr->subscript_sizes.
20028 * graphite-interchange.c (build_linearized_memory_access): Add
20029 back all gcc_assert's that the "isl_int to isl_val conversion"
20030 patch has removed. Refactored.
20031 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20032 * graphite-poly.c (new_poly_dr): Same.
20033 (free_poly_dr): Same.
20034 * graphite-poly.h (struct poly_dr): Same.
20035 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20036 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20037 * graphite-scop-detection.h: Fix space.
20038 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20039 back all gcc_assert's removed by a previous patch.
20040 (wrap): Remove the_isl_ctx global variable that the same patch has
20041 added.
20042 (build_loop_iteration_domains): Same.
20043 (add_param_constraints): Same.
20044 (pdr_add_data_dimensions): Same. Refactored.
20045 (build_poly_dr): Renamed extent to subscript_sizes.
20046
20047 2015-07-17 Marek Polacek <polacek@redhat.com>
20048
20049 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20050 * match.pd: ... here.
20051
20052 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20053
20054 * config/nvptx/mkoffload.c (process): Constify target data.
20055 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20056 Constify target data.
20057 (generate_target_offloadend_file): Likewise.
20058
20059 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
20060
20061 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20062 to allow renaming of PHI arguments on edges incoming from outer
20063 loop header, add corresponding check before start PHI iterator.
20064 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20065 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20066 with true force_vectorize. Set-up dominator for outer loop too.
20067 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20068 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20069 was marked with force_vectorize and has restricted cfg.
20070 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20071 inner loop.
20072 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20073 do peeling for outer loops.
20074
20075 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
20076 Matthias Klose <doko@ubuntu.com>
20077
20078 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20079 build-sysroot, sysroot from the `Miscenalleous configure options' to
20080 the `Directories' section and strip trailing `/' from with_sysroot.
20081 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20082 * configure: Regenerated.
20083
20084 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20085
20086 PR target/66824
20087 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20088 (TARGET_HARD_DF_REGS): Ditto.
20089 (TARGET_HARD_XF_REGS): Ditto.
20090 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20091 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20092 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20093 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20094 (*movsf_internal): Add alternatives 16 and 17. Enable
20095 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20096
20097 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20098
20099 PR rtl-optimization/66891
20100 * calls.c (expand_call): Wrap precompute_register_parameters with
20101 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20102
20103 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
20104
20105 * config/nvptx/mkoffload.c (process): Constify mapping variables.
20106 Define target data struct and initialize it.
20107
20108 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
20109
20110 PR rtl-optimization/66626
20111 * ira.h (emit-rtl.h): Include.
20112 (non_spilled_static_chain_regno_p): New.
20113 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20114 unless it is non spilled static chain pseudo.
20115 (assign_hard_rego): Spill memory profitable allocno unless it is
20116 non spilled static chain pseudo.
20117 (allocno_spill_priority_compare): Put non spilled static chain
20118 pseudo at the end of sorted array.
20119 (improve_allocation): Do nothing if we have static chain and
20120 non-local goto.
20121 (allocno__priority_compare_func): Put non spilled static chain
20122 pseudo at the beginning of sorted array.
20123 (move_spill_restore): Ignore non spilled static chain pseudo.
20124 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20125 to non spilled static chain pseudo.
20126 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20127 pseudo at the beginning of sorted array.
20128 (spill_for): Spill non spilled static chain pseudo last.
20129 * lra-constraints.c (lra_constraints): Remove static chain pseudo
20130 check for equivalence.
20131
20132 2015-07-16 Martin Liska <mliska@suse.cz>
20133
20134 PR ipa/66896.
20135 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20136 dst_ctx if it does not exist.
20137
20138 2015-07-16 Martin Liska <mliska@suse.cz>
20139
20140 * hash-set.h (remove): New function.
20141 (iterator): New iteration class for hash_set.
20142
20143 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20144
20145 * genattrtab.c (make_canonical): Add a file_location parameter.
20146 Use fatal_at rather than fatal.
20147 (get_attr_value): Likewise. Update call to make_canonical.
20148 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20149 (make_internal_attr): Update calls accordingly.
20150
20151 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20152
20153 * read-md.h (message_with_line, error_with_line): Delete.
20154 * read-md.c (message_with_line, error_with_line): Delete.
20155 * gensupport.h: Include read-md.h.
20156 (md_rtx_info): New structure.
20157 (read_md_rtx): Use it. Return a bool success value.
20158 * gensupport.c (read_md_rtx): Likewise.
20159 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20160 (main): Update after interface changes.
20161 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20162 (main): Update after interface changes.
20163 * genattrtab.c (insn_code_number): Delete.
20164 (optimize_attrs): Add a max_insn_code parameter and use it instead
20165 of insn_code_number.
20166 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20167 Use *_at rather than *_with_line functions.
20168 (gen_insn): Likewise.
20169 (gen_delay): Likewise.
20170 (gen_insn_reserv): Likewise.
20171 (gen_bypass): Take an md_rtx_info rather than an rtx.
20172 (main): Update after interface changes. Use a local max_insn_code
20173 variable instead of insn_code_number.
20174 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20175 an rtx. Use fatal_at rather than fatal.
20176 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20177 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20178 (gen_absence_set, gen_final_absence_set, gen_automaton)
20179 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20180 (main): Update after interface changes.
20181 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20182 and code number.
20183 (main): Update after interface changes.
20184 * genconditions.c (main): Use new read_md_rtx interface.
20185 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20186 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20187 (main): Update after interface changes.
20188 * genemit.c (insn_code_number, insn_index_number): Delete.
20189 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20190 Use fatal_at rather than fatal.
20191 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
20192 rather than fatal.
20193 (gen_split): Likewise.
20194 (main): Update after interface changes.
20195 * genextract.c (line_no): Delete.
20196 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20197 Update call to walk_rtx.
20198 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
20199 rather than message_with_line.
20200 (walk_rtx): Add an md_rtx_info argument. Update call to
20201 VEC_safe_set_locstr.
20202 (main): Update after interface changes.
20203 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20204 and lineno. Use error_at rather than separate message_with_line
20205 calls and have_error assignments.
20206 (main): Update after interface changes.
20207 * genmddump.c (main): Use new read_md_rtx interface.
20208 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20209 (main): Update after interface changes.
20210 * genoutput.c (next_code_number): Delete.
20211 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20212 (gen_peephole, gen_expand, gen_split): Likewise.
20213 (note_constraint): Likewise. Use *_at rather than *_with_line
20214 functions.
20215 (main): Update after interface changes.
20216 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20217 rtx and lineno.
20218 (main): Update after interface changes.
20219 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20220 than an rtx and lineno.
20221 (process_define_constraint): Likewise.
20222 (process_define_register_constraint): Likewise.
20223 (main): Update after interface changes.
20224 * genrecog.c (next_insn_code, pattern_lineno): Delete.
20225 (validate_pattern): Replace top-level rtx with an md_rtx_info.
20226 Use *_at rather than *_with_line functions.
20227 (match_pattern_2): Likewise.
20228 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20229 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20230 Use *_at rather than *_with_line functions.
20231 * gentarget-def.c (add_insn): New function.
20232 (main): Use it. Use new read_md_rtx interface.
20233
20234 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20235
20236 * gensupport.h (compute_test_codes): Take a file_location rather
20237 than a line number.
20238 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
20239 rather than *_with_line functions.
20240 (process_define_predicate): Update call to compute_test_codes.
20241 * genpreds.c (validate_exp): Take a file_location rather than a
20242 line number. Use *_at functions rather than *_with_line functions.
20243 (process_define_predicate): Update call to validate_exp.
20244 (constraint_data): Replace lineno field with a file_location.
20245 (add_constraint): Take a file_location rather than a line number.
20246 Use *_at functions rather than *_with_line functions. Fix error
20247 message for address constraints. Update after changes to
20248 validate_exp, constraint_data and compute_test_codes.
20249 (process_define_constraint): Update accordingly.
20250 (process_define_register_constraint): Likewise.
20251
20252 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20253
20254 * genoutput.c (data): Use a file_location to record the source
20255 position.
20256 (nothing): Delete.
20257 (idata, idata_end): Remove initialization.
20258 (constraint_data): Replace lineno with a file_location.
20259 (output_insn_data): Update after changes to data.
20260 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20261 (scan_operands): Likewise, using *_at rather than *_with_line
20262 functions.
20263 (process_template): Likewise.
20264 (validate_insn_alternatives): Likewise.
20265 (validate_insn_operands): Likewise.
20266 (validate_optab_operands): Likewise.
20267 (init_insn_for_nothing): Initialize idata and idata_end.
20268 (note_constraint): Update after changes to constraint_data,
20269 using at rather than with_line functions.
20270 (mdep_constraint_len): Take a file_location rather than a
20271 line number. Use at rather than with_line functions.
20272
20273 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20274
20275 * read-md.h (fatal_at): Declare.
20276 * read-md.c (fatal_at): New function.
20277 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20278 to record the source position.
20279 (check_attr_test): Take a file_location instead of a line number.
20280 Use fatal_at instead of fatal.
20281 (check_attr_value): Update after above changes, using "at"
20282 rather than "with_line" reporting functions.
20283 (convert_set_attr_alternative): Likewise.
20284 (gen_attr): Likewise.
20285 (check_defs): Likewise. Don't assign to read_md_filename.
20286 (gen_insn): Update initialization after above changes.
20287 (gen_delay): Likewise.
20288 (write_insn_cases): Print the filename for a define_peephole.
20289 (gen_insn_reserv): Take a line number as argument and update
20290 the call to check_attr_test.
20291 (main): Pass a line number to gen_insn_reserv.
20292
20293 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20294
20295 * read-md.h (file_location): New structure.
20296 (directive_handler_t): Take a file_location rather than a line number.
20297 (message_at, error_at): Declare.
20298 (read_skip_construct): Delete.
20299 * read-md.c (message_with_line_1): Replace with...
20300 (message_at_1): ...this new function.
20301 (message_at, error_at): New functions.
20302 (message_with_line, error_with_line): Update to use message_at_1.
20303 (handle_enum): Take a file_location rather than a line number
20304 and use error_at for error reporting.
20305 (handle_include): Likewise.
20306 (read_skip_construct): Likewise. Make static.
20307 (handle_file): Update after above changes. Pass a file_location
20308 rather than a line number to handle_directive.
20309 * gensupport.c (queue_elem): Replace separate filename and lineno
20310 with a file_location.
20311 (queue_pattern): Replace filename and lineno arguments with a
20312 file_location. Update after change to queue_elem.
20313 (process_define_predicate): Replace lineno argument with a
20314 file_location and use error_at for error reporting. Update
20315 after above changes.
20316 (process_rtx): Likewise.
20317 (subst_pattern_match): Likewise.
20318 (get_alternatives_number): Likewise.
20319 (alter_predicate_for_insn): Likewise.
20320 (rtx_handle_directive): Likewise.
20321 (is_predicable): Update after above changes, using error_at rather
20322 than error_with_line.
20323 (has_subst_attribute): Likewise.
20324 (identify_predicable_attribute): Likewise.
20325 (alter_attrs_for_subst_insn): Likewise.
20326 (process_one_cond_exec): Likewise.
20327 (process_substs_on_one_elem): Likewise.
20328 (process_define_subst): Likewise.
20329 (check_define_attr_duplicates): Likewise.
20330 (read_md_rtx): Update after change to queue_elem.
20331
20332 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20333
20334 * genoutput.c (next_index_number): Delete.
20335 (data): Remove index_number.
20336 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20337 (main): Remove manipulation of next_index_number.
20338
20339 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20340
20341 * genattrtab.c (check_attr_value): Remove handling of null attrs.
20342 (make_canonical): Likewise.
20343
20344 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
20345
20346 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20347 instead of adjust_address_nv.
20348 (restore_stack_nonlocal): Likewise.
20349 (nonlocal_goto): Likewise.
20350
20351 2015-07-16 Tom de Vries <tom@codesourcery.com>
20352
20353 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20354 not have a corresponding loop header phi.
20355
20356 2015-07-16 Tom de Vries <tom@codesourcery.com>
20357
20358 * tree-parloops.c (create_loads_for_reductions): Handle case that
20359 reduction is unused.
20360
20361 2015-07-16 Richard Biener <rguenther@suse.de>
20362
20363 PR tree-optimization/66894
20364 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20365 about deriving NE_EXPR from truncated values.
20366
20367 2015-07-16 Martin Liska <mliska@suse.cz>
20368
20369 * alloc-pool.h
20370 (object_allocator): Add new class.
20371 (pool_allocator::initialize): Use the underlying class.
20372 (pool_allocator::allocate): Likewise.
20373 (pool_allocator::remove): Likewise.
20374 (operator new): A new generic allocator.
20375 * asan.c (struct asan_mem_ref): Remove unused members.
20376 (asan_mem_ref_new): Replace new operator with
20377 object_allocator::allocate.
20378 (free_mem_ref_resources): Change deallocation.
20379 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20380 with object_allocator.
20381 * config/sh/sh.c (add_constant): Replace new operator with
20382 object_allocator::allocate.
20383 (sh_reorg): Change call to a release method.
20384 * cselib.c (struct elt_list): Remove unused members.
20385 (new_elt_list): Replace new operator with
20386 object_allocator::allocate.
20387 (new_elt_loc_list): Likewise.
20388 (new_cselib_val): Likewise.
20389 (unchain_one_elt_list): Change delete operator with remove method.
20390 (unchain_one_elt_loc_list): Likewise.
20391 (unchain_one_value): Likewise.
20392 (cselib_finish): Release newly added static allocators.
20393 * cselib.h (struct cselib_val): Remove unused members.
20394 (struct elt_loc_list): Likewise.
20395 * df-problems.c (df_chain_alloc): Replace pool_allocator with
20396 object_allocator.
20397 * df-scan.c (struct df_scan_problem_data): Likewise.
20398 (df_scan_alloc): Likewise.
20399 * df.h (struct dataflow): Likewise.
20400 * dse.c (struct read_info_type): Likewise.
20401 (struct insn_info_type): Likewise.
20402 (struct dse_bb_info_type): Likewise.
20403 (struct group_info): Likewise.
20404 (struct deferred_change): Likewise.
20405 (get_group_info): Likewise.
20406 (delete_dead_store_insn): Likewise.
20407 (free_read_records): Likewise.
20408 (replace_read): Likewise.
20409 (check_mem_read_rtx): Likewise.
20410 (scan_insn): Likewise.
20411 (dse_step1): Likewise.
20412 (dse_step7): Likewise.
20413 * et-forest.c (struct et_occ): Remove unused members.
20414 (et_new_occ): Use allocate instead of new operator.
20415 (et_new_tree): Likewise.
20416 (et_free_tree): Call release method explicitly.
20417 (et_free_tree_force): Likewise.
20418 (et_free_pools): Likewise.
20419 (et_split): Use remove instead of delete operator.
20420 * et-forest.h (struct et_node): Remove unused members.
20421 * ipa-cp.c: Change pool_allocator to object_allocator.
20422 * ipa-inline-analysis.c: Likewise.
20423 * ipa-profile.c: Likewise.
20424 * ipa-prop.c: Likewise.
20425 * ipa-prop.h: Likewise.
20426 * ira-build.c (initiate_cost_vectors): Cast return value.
20427 (ira_allocate_cost_vector): Likewise.
20428 * ira-color.c (struct update_cost_record): Remove unused members.
20429 * lra-int.h (struct lra_live_range): Likewise.
20430 (struct lra_copy): Likewise.
20431 (struct lra_insn_reg): Likewise.
20432 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
20433 * lra.c (new_insn_reg): Replace new operator with allocate method.
20434 (free_insn_regs): Same for operator delete.
20435 (finish_insn_regs): Release new static allocator.
20436 (finish_insn_recog_data): Likewise.
20437 (lra_free_copies): Replace delete operator with remove method.
20438 (lra_create_copy): Replace operator new with allocate method.
20439 (invalidate_insn_data_regno_info): Same for remove method.
20440 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
20441 (free_debug_insn_changes): Replace delete operator with remove method.
20442 (replace_oldest_value_reg): Replace operator new with allocate method.
20443 (pass_cprop_hardreg::execute): Release new static variable.
20444 * sched-deps.c (sched_deps_init): Change pool_allocator to
20445 object_allocator.
20446 * sel-sched-ir.c: Likewise.
20447 * sel-sched-ir.h: Likewise.
20448 * stmt.c (expand_case): Likewise.
20449 (expand_sjlj_dispatch_table): Likewise.
20450 * tree-sra.c (struct access): Remove unused members.
20451 (struct assign_link): Likewise.
20452 (sra_deinitialize): Release newly added static pools.
20453 (create_access_1):Replace operator new with allocate method.
20454 (build_accesses_from_assign): Likewise.
20455 (create_artificial_child_access): Likewise.
20456 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
20457 pool_allocator to object_allocator.
20458 * tree-ssa-pre.c: Likewise.
20459 * tree-ssa-reassoc.c: Likewise.
20460 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
20461 * tree-ssa-strlen.c: Likewise.
20462 * tree-ssa-structalias.c: Likewise.
20463 * var-tracking.c (onepart_pool_allocate): New function.
20464 (unshare_variable): Use the newly added function.
20465 (variable_merge_over_cur): Likewise.
20466 (variable_from_dropped): Likewise.
20467 (variable_was_changed): Likewise.
20468 (set_slot_part): Likewise.
20469 (emit_notes_for_differences_1): Likewise.
20470 (vt_finalize): Release newly added static pools.
20471
20472 2015-07-16 Martin Jambor <mjambor@suse.cz>
20473
20474 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
20475 all uses. Fix two typos in its general comment.
20476 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
20477
20478 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
20479
20480 * config/i386/linux-common.h (LINK_MPX): New.
20481 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
20482 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
20483 indicating '-z bndplt' support by linker.
20484 * configure: Regenerate.
20485 * config.in: Regenerate.
20486
20487 2015-07-16 Richard Biener <rguenther@suse.de>
20488
20489 * fold-const.c (fold_widened_comparison): Remove.
20490 (fold_sign_changed_comparison): Likewise.
20491 (fold_comparison): Move widened and sign-changed comparison
20492 simplification ...
20493 * match.pd: ... to patterns here.
20494 * generic-match-head.c: Include target.h.
20495 * gimple-match-head.c: Likewise.
20496
20497 2015-07-16 Richard Biener <rguenther@suse.de>
20498
20499 * tree-ssa-dom.c (dom_valueize): New function.
20500 (record_temporary_equivalences): Also record equivalences
20501 for dominating stmts that have uses of equivalences we are
20502 about to record.
20503
20504 2015-07-16 Bin Cheng <bin.cheng@arm.com>
20505
20506 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
20507 add_autoinc_candidates.
20508 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
20509 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
20510 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
20511 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
20512 Call new function.
20513 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
20514 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
20515 Remove parameter struct iv*. Call add_autoinc_candidates here.
20516 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
20517 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
20518 Call new function.
20519 (find_iv_candidates): Call new functions.
20520
20521 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
20522
20523 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
20524 uninitialized-variable warning.
20525
20526 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
20527
20528 PR target/65249
20529 * config/sh/sh.md (movdi): Split simple reg move to two movsi
20530 when the destination is R0.
20531
20532 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
20533
20534 PR target/66866
20535 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
20536 * config/i386/i386.c (ix86_expand_pextr): New function.
20537 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
20538 for non-lowpart subregs.
20539 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
20540 (insv<mode>): Use SWI248 mode iterator.
20541 (insv<mode>_1): Ditto.
20542
20543 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20544 Sebastian Pop <s.pop@samsung.com>
20545
20546 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
20547 iterator to use_stmt.
20548
20549 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20550 Sebastian Pop <s.pop@samsung.com>
20551
20552 * graphite-scop-detection.c (build_scops_1): Discard scops for
20553 which entry==exit.
20554
20555 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20556 Sebastian Pop <s.pop@samsung.com>
20557
20558 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
20559 case of a return statement in scop.
20560
20561 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20562 Sebastian Pop <s.pop@samsung.com>
20563
20564 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
20565 INTEGER_TYPE parameters.
20566 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
20567 VECTOR_CST in scan_tree_for_params.
20568 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
20569
20570 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20571
20572 * gimple-pretty-print.h: Don't include pretty-print.h.
20573 * tree-streamer.h: Don't include lto-streamer.h.
20574 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
20575 * gimple-streamer-in.c: Remove redundant includes.
20576 * gimple-streamer-out.c: Likewise.
20577 * ipa-devirt.c: Likewise.
20578 * ipa-icf.c: Likewise.
20579 * ipa-inline-analysis.c: Likewise.
20580 * ipa-polymorphic-call.c: Likewise.
20581 * ipa-profile.c: Likewise.
20582 * ipa-prop.c: Likewise.
20583 * ipa-pure-const.c: Likewise.
20584 * lto-cgraph.c: Likewise.
20585 * lto-streamer-in.c: Likewise.
20586 * lto-streamer-out.c: Likewise.
20587 * lto-streamer.c: Likewise.
20588 * tree-streamer-in.c: Likewise.
20589 * tree-streamer-out.c: Likewise.
20590 * tree-streamer.c: Likewise.
20591
20592 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20593
20594 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
20595 include input.h.
20596 * opts.c: Remove multiline #include comment.
20597
20598 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
20599
20600 * config/nvptx/mkoffload.c (process): Add C++ protection to
20601 emitted code.
20602
20603 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20604
20605 PR target/66854
20606 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
20607 null before IEEE 128-bit floating point support patch.
20608
20609 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20610
20611 * simplify-rtx.c (simplify_ternary_operation): Add simplification
20612 for (!c) != {0,...,0} ? a : b for vector modes.
20613
20614 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
20615 Martin Jambor <mjambor@suse.cz>
20616
20617 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
20618 struct func_body_info* instead of struct ipa_node_params*, expecting
20619 fbi->info to be filled in. Replace throughout. Adjust call to
20620 ipa_load_from_parm_agg.
20621 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
20622 instead of struct ipa_node_params*. Adjust calls to other functions
20623 so that they pass either fbi or fbi->info.
20624 (set_switch_stmt_execution_predicate): Likewise.
20625 (will_be_nonconstant_predicate): Likewise.
20626 (compute_bb_predicates): Likewise.
20627 (estimate_function_body_sizes): Move asserts earlier. Fill in
20628 struct func_body_info, replace parms_info with fbi.info. Adjust
20629 calls to functions that now accept struct func_body_info.
20630 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
20631 (struct func_body_info): Likewise.
20632 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
20633 remove static. Adjust callers.
20634 (ipa_load_from_parm_agg): Remove.
20635 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
20636 (func_body_info): Likewise.
20637 (ipa_load_from_parm_agg): Adjust prototype.
20638
20639 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20640
20641 * gensupport.c (rtx_handle_directive): Adjust.
20642 * read-rtl.c (apply_iterators): Take vector to add rtxs to
20643 instead of expr list rtx.
20644 (add_define_attr_for_define_subst): Likewise.
20645 (add_define_subst_attr): Likewise.
20646 (read_subst_mapping): Likewise.
20647 (read_rtx): Likewise.
20648 * rtl.h (read_rtx): Adjust.
20649
20650 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20651
20652 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
20653
20654 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20655
20656 PR target/58066
20657 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
20658 (*tls_local_dynamic_base_64_<mode>): Ditto.
20659 (*tls_local_dynamic_base_64_largepic): Ditto.
20660 (tls_global_dynamic_64_<mode>): Update expander pattern.
20661 (tls_local_dynamic_base_64_<mode>): Ditto.
20662
20663 2015-07-15 Richard Biener <rguenther@suse.de>
20664
20665 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
20666 and bool_var == 1 -> bool_var simplifications ...
20667 * match.pd: ... to patterns here. Factor out negate_expr_p
20668 cases from the A - B -> A + (-B) patterns as negate_expr_p
20669 predicate and add a -(A + B) -> (-B) - A pattern.
20670
20671 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20672
20673 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
20674
20675 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
20676 Robert Suchanek <robert.suchanek@imgtec.com>
20677
20678 * config/mips/mips.c (mips_int_mask): New enum.
20679 (mips_shadow_set): Likewise.
20680 (int_mask): New variable.
20681 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
20682 (machine_function): Add int_mask and use_shadow_register_set.
20683 (mips_attribute_table): Add attribute handlers for interrupt and
20684 use_shadow_register_set.
20685 (mips_interrupt_mask): New static function.
20686 (mips_handle_interrupt_attr): Likewise.
20687 (mips_handle_use_shadow_register_set_attr): Likewise.
20688 (mips_use_shadow_register_set): Change return type to enum
20689 mips_shadow_set. Add argument handling for use_shadow_register_set
20690 attribute.
20691 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
20692 compare with mips_shadow_set enum.
20693 (mips_compute_frame_info): Add interrupt mask and
20694 use_shadow_register_set to per-function information structure.
20695 Add a stack slot for EPC unconditionally.
20696 (mips_expand_prologue): Compare use_shadow_register_set value
20697 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
20698 masked interrupt register but in EIC mode use K0 and save Cause in K0.
20699 EPC saved and restored unconditionally. Use PMODE_INSN macro when
20700 copying the stack pointer from the shadow register set.
20701 * config/mips/mips.h (SR_IM0): New define.
20702 * config/mips/mips.md (mips_rdpgpr): Rename to...
20703 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
20704 * doc/extend.texi (Declaring Attributes of Functions): Document
20705 optional arguments for interrupt and use_shadow_register_set
20706 attributes.
20707
20708 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20709
20710 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
20711 interrupt attribute.
20712 (mips_expand_prologue): Disable the floating point unit in an ISR.
20713 * config/mips/mips.h (SR_COP1): New define.
20714
20715 2015-07-15 Richard Biener <rguenther@suse.de>
20716
20717 * genmatch.c (parser::peek, parser::peek_ident): Add argument
20718 to tell how many tokens to peek ahead (default 1).
20719 (parser::eat_token, parser::eat_ident): Return token consumed.
20720 (parser::parse_result): Parse new switch statement.
20721 * match.pd: Use case statements where appropriate.
20722
20723 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20724
20725 PR rtl-optimization/58066
20726 * calls.c (expand_call): Precompute register parameters before stack
20727 alignment is performed.
20728
20729 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20730
20731 PR rtl-optimization/66838
20732 * postreload.c (reload_cse_move2add): Also process
20733 CALL_INSN_FUNCTION_USAGE when resetting information of
20734 call-clobbered registers.
20735
20736 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20737 Cesar Philippidis <cesar@codesourcery.com>
20738 Chung-Lin Tang <cltang@codesourcery.com>
20739
20740 * config/nios2/constraints.md (U, v): New constraints.
20741 * config/nios2/predicates.md (rdprs_dcache_operand): New.
20742 (ldstex_memory_operand): New.
20743 * config/nios2/sync.md: New file.
20744 * config/nios2/nios2.md (unspecv): Add new builtin function
20745 UNSPECV codes.
20746 (rdprs, flushd, flushda, wrpie, eni): New patterns.
20747 (top-level): Include sync.md.
20748 * config/nios2/nios2.c (N2_FTYPES): Add function types for
20749 new builtins.
20750 (N2_BUILTINS): Add arch field setting, add new builtins.
20751 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
20752 for arch field.
20753 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
20754 Also handle ldex/stex/ldsex/stsex builtins.
20755 (nios2_expand_rdprs_builtin): New function.
20756 (nios2_expand_cache_builtin): New function.
20757 (nios2_expand_wrpie_builtin): New function.
20758 (nios2_expand_eni_builtin): New function.
20759 (nios2_expand_builtin): Add arch field handling and new builtin
20760 cases.
20761 * doc/extend.texi (Altera Nios II Built-in Functions): Document
20762 new builtins.
20763 * doc/md.texi (Machine Constraints): Document U and v constraints.
20764
20765 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20766 Cesar Philippidis <cesar@codesourcery.com>
20767 Chung-Lin Tang <cltang@codesourcery.com>
20768
20769 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
20770 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
20771 callee_save_reg_size and uses_anonymous_args fields.
20772 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
20773 (nios2_create_cfa_notes): New function.
20774 (nios2_adjust_stack): New function for adjusting stack.
20775 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
20776 Use nios2_adjust_stack.
20777 (nios2_expand_epilogue): Likewise.
20778 (nios2_expand_return): New function.
20779 (nios2_can_use_return_insn): Update for CDX pop.n usage.
20780 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
20781 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
20782 * config/nios2/nios2.md (return): Use nios2_expand_return.
20783
20784 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20785 Cesar Philippidis <cesar@codesourcery.com>
20786 Chung-Lin Tang <cltang@codesourcery.com>
20787
20788 * config/nios2/predicates.md (pop_operation): New.
20789 (ldwm_operation, stwm_operation): New.
20790 (nios2_hard_register_operand): New.
20791 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
20792 (ldstwm_operation_p): Declare.
20793 (gen_ldstwm_peep): Declare.
20794 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
20795 (base_reg_adjustment_p): New.
20796 (pop_operation_p): New.
20797 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
20798 (nios2_ldstwm_regset_p): New.
20799 (ldstwm_operation_p): New.
20800 (gen_ldst): New.
20801 (nios2_ldst_parallel): New.
20802 (struct ldswm_operand): Declare.
20803 (compare_ldstwm_operands): New.
20804 (can_use_cdx_ldstw): New.
20805 (gen_ldstwm_peep): New.
20806 * config/nios2/nios2-ldstwm.sml: New.
20807 * config/nios2/nios2.md: Include ldstwm.md.
20808 * config/nios2/ldstwm.md: Generated.
20809
20810 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20811 Cesar Philippidis <cesar@codesourcery.com>
20812 Chung-Lin Tang <cltang@codesourcery.com>
20813
20814 * config/nios2/nios2.h (LABEL_ALIGN): Define.
20815 (REG_ALLOC_ORDER): Define.
20816 (ADJUST_REG_ALLOC_ORDER): Define.
20817 (HONOR_REG_ALLOC_ORDER): Define.
20818 (CDX_REG_P): Define.
20819 (ANDCLEAR_INT): Define.
20820 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
20821 (nios2_label_align): Declare.
20822 (nios2_cdx_narrow_form_p): Declare.
20823 (nios2_adjust_reg_alloc_order): Declare.
20824 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
20825 operation.
20826 (nios2_large_unspec_reloc_p): New function, split from...
20827 (nios2_legitimate_pic_operand_p): ...here.
20828 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
20829 (nios2_print_operand_punct_valid_p): New.
20830 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
20831 (split_mem_address): New.
20832 (split_alu_insn): New.
20833 (cdxreg): New.
20834 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
20835 (enum nios2_add_insn_kind): New.
20836 (nios2_add_insn_names, nios2_add_insn_narrow): New.
20837 (nios2_add_insn_classify): New.
20838 (nios2_add_insn_asm): New.
20839 (nios2_cdx_narrow_form_p): New.
20840 (label_align, min_labelno, max_labelno): New.
20841 (nios2_reorg): New.
20842 (nios2_label_align): New.
20843 (nios2_adjust_reg_alloc_order): New.
20844 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20845 (TARGET_MACHINE_DEPENDENT_REORG): Define.
20846 * config/nios2/constraints.md (P): New constraint.
20847 * config/nios2/predicates.md (const_and_operand): New.
20848 (and_operand): New.
20849 (stack_memory_operand): New.
20850 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
20851 (length): Update to use nios2_cdx_narrow_form_p().
20852 (type): Add new insn type values.
20853 (control, alu, st, ld, shift): Update insn reservations with
20854 new insn type values.
20855 (*high, *lo_sum): Define new insn patterns for constant generation.
20856 (movqi_internal, movhi_internal, movsi_internal): Reduce
20857 alternatives, update asm template to handle CDX variants, update
20858 type attributes.
20859 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
20860 template, update type attributes.
20861 (extendhisi2, extendqi<mode>2): Likewise.
20862 (addsi3): Change to use function for asm string.
20863 (subsi3): Add CDX notation to asm template, update type attributes.
20864 (negsi3, one_cmplsi3): Likewise.
20865 (andsi3): New pattern, specialized from logical patterns.
20866 (<code>si3): Remove and case, combine alternatives, update asm
20867 template.
20868 (<shift_op>si3): Add CDX notation, update type attributes.
20869 (rotrsi3): Update type attribute.
20870 (*merge, extzv, insv): New insn patterns.
20871 (return): Change to define_expand.
20872 (simple_return): Add CDX notation, update type attributes.
20873 (indirect_jump): Add CDX notation.
20874 (jump): Update asm cases, update length attribute expression.
20875 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
20876 (nios2_cbranch): Update asm cases and length attribute expression
20877 to handle CDX variants.
20878 (nios2_cmp<code>): Update asm template.
20879 (nop): Add CDX notation, update type attributes.
20880 (trap): Add CDX notation.
20881 (ctrapsi4): Update asm cases and length attribute expression to
20882 handle CDX variant.
20883 * doc/md.texi (Machine Constraints): Document P constraint.
20884
20885 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20886 Cesar Philippidis <cesar@codesourcery.com>
20887 Chung-Lin Tang <cltang@codesourcery.com>
20888
20889 * config/nios2/nios2.h (SMALL_INT12): New macro.
20890 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
20891 (nios2_valid_addr_expr_p): Use it.
20892 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
20893 with implicit "io" instructions on R2.
20894 * config/nios2/constraints.md (w): New constraint.
20895 * config/nios2/predicates.md (ldstio_memory_operand): New.
20896 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
20897 operand predicate and constraint.
20898 (ld<bh>io_signed, st<bhw>io>): Likewise.
20899 * doc/md.texi (Machine Constraints): Document w constraint.
20900
20901 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20902 Cesar Philippidis <cesar@codesourcery.com>
20903 Chung-Lin Tang <cltang@codesourcery.com>
20904
20905 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
20906 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
20907 Nios II architecture level.
20908 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
20909 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
20910 (OPTION_DEFAULT_SPECS): Define.
20911 (ASM_SPEC): Add -march= spec strings.
20912 * config/nios2/nios2.c (nios2_option_override): Check for
20913 conflicts involving new options.
20914 * config.gcc (nios2*-*-*): Support --with-arch=.
20915 * doc/invoke.texi (Option Summary, Nios II Options): Document
20916 -march=, -mbmx, and -mcdx.
20917
20918 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
20919
20920 PR rtl-optimization/66626
20921 * lra-constraints.c (lra_constraints): Prevent equivalence
20922 substitution for static chain pseudo in functions with nonlocal
20923 goto.
20924
20925 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20926
20927 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
20928 (nios2_emit_stack_limit_check): Add size parameter. Handle
20929 -fstack-limit-symbol as well as -fstack-limit-register.
20930 (nios2_expand_prologue): Emit only a single stack limit check,
20931 even if multiple stack adjustments are required.
20932 (nios2_option_override): Diagnose unsupported combination of -fpic
20933 and -stack-limit-symbol.
20934
20935 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
20936
20937 * Makefile.in (top_srcdir): New.
20938 * configure.ac: Use AM_ZLIB.
20939 * configure: Regeneated.
20940
20941 2015-07-14 Matthias Klose <doko@ubuntu.com>
20942
20943 PR target/66840
20944 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
20945
20946 2015-07-14 Richard Biener <rguenther@suse.de>
20947
20948 PR tree-optimization/66863
20949 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
20950 what we record for conversion use stmt lhs inequalities.
20951
20952 2015-07-14 Richard Biener <rguenther@suse.de>
20953
20954 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
20955 (decision_tree::gen_gimple): Likewise.
20956
20957 2015-07-14 Tom de Vries <tom@codesourcery.com>
20958
20959 * gcc.c (greater_than_spec_func): Declare forward.
20960 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
20961 -ftree-parallelize-loops={0,1}.
20962 (static_spec_functions): Add greater_than_spec_func function with name
20963 "gt".
20964 (greater_than_spec_func): New function.
20965
20966 2015-07-14 Richard Biener <rguenther@suse.de>
20967
20968 * tree-ssa-dom.c (record_temporary_equivalences): Merge
20969 wideing type conversion case from record_equivalences_from_incoming_edge
20970 and use record_equality to record equivalences.
20971 (record_equivalences_from_incoming_edge): Call
20972 record_temporary_equivalences.
20973
20974 2015-07-14 Richard Biener <rguenther@suse.de>
20975
20976 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
20977 (struct if_expr): New.
20978 (struct with_expr): Likewise.
20979 (is_a_helper): Add helpers for if_expr and with_expr.
20980 (struct simplify): Add simplify_kind enum and member. Remove
20981 ifexpr_vec member.
20982 (simplify::simplify): Adjust.
20983 (lower_commutative): Adjust.
20984 (lower_opt_convert): Likewise.
20985 (lower_cond): Likewise.
20986 (replace_id): Handle with_expr and if_expr.
20987 (lower_for): Adjust.
20988 (dt_simplify::gen_1): New recursive worker, split out from ...
20989 (dt_simplify::gen): ... here. Deal with if and with expansion
20990 recursively.
20991 (capture_info::capture_info): Take context argument
20992 (capture_info::walk_result): Only analyze specific result.
20993 (parser::parse_result): New function.
20994 (parser::parse_simplify): Adjust to parse ifs with then end
20995 else case.
20996 (parser::parse_if): Simplify.
20997 (parser::parse_pattern): Pass down simplify kind.
20998 * match.pd: Convert if structure to new syntax.
20999
21000 2015-07-13 Marek Polacek <polacek@redhat.com>
21001
21002 * rtl.c (rtx_equal_p_cb): Fix typo.
21003
21004 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
21005
21006 * omega.h: Don't include config.h, don't include params.h again if
21007 omega.h has already been included.
21008 * graphite-poly.h: Include sese.h.
21009 * graphite.c: Don't include sese.h, remove needless includes and
21010 minimize includes outside #ifdef HAVE_isl block.
21011 * graphite-blocking.c: Don't include sese.h, remove needless includes,
21012 and wrap entire file in #ifdef HAVE_isl
21013 * graphite-dependences.c: Likewise.
21014 * graphite-interchange.c: Likewise.
21015 * graphite-isl-ast-to-gimple.c: Likewise.
21016 * graphite-optimize-isl.c: Likewise.
21017 * graphite-poly.c: Likewise.
21018 * graphite-scop-detection.c: Likewise.
21019 * graphite-sese-to-poly.c: Likewise.
21020
21021 2015-07-13 Tom de Vries <tom@codesourcery.com>
21022
21023 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21024
21025 2015-07-13 Renlin Li <renlin.li@arm.com>
21026
21027 PR rtl/66556
21028 * simplify-rtx.c (simplify_const_relational_operation): Add
21029 side_effects_p checks.
21030
21031 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
21032
21033 * bitmap.h: Fix double word typos.
21034 * builtins.c: Same.
21035 * calls.c: Same.
21036 * cfgloopmanip.c: Same.
21037 * cgraph.c: Same.
21038 * cgraph.h: Same.
21039 * cgraphclones.c: Same.
21040 * combine.c: Same.
21041 * config/aarch64/aarch64-protos.h: Same.
21042 * config/aarch64/aarch64.c: Same.
21043 * config/aarch64/aarch64.md: Same.
21044 * config/arm/arm.md: Same.
21045 * config/arm/arm1020e.md: Same.
21046 * config/arm/arm1026ejs.md: Same.
21047 * config/arm/arm926ejs.md: Same.
21048 * config/arm/fa526.md: Same.
21049 * config/arm/fa606te.md: Same.
21050 * config/arm/fa626te.md: Same.
21051 * config/arm/fa726te.md: Same.
21052 * config/arm/fmp626.md: Same.
21053 * config/darwin.c: Same.
21054 * config/epiphany/epiphany.c: Same.
21055 * config/frv/frv.c: Same.
21056 * config/ft32/ft32.c: Same.
21057 * config/gnu-user.h: Same.
21058 * config/h8300/constraints.md: Same.
21059 * config/i386/i386.c: Same.
21060 * config/i386/i386.md: Same.
21061 * config/iq2000/iq2000.md: Same.
21062 * config/mips/mips.c: Same.
21063 * config/mmix/mmix.md: Same.
21064 * config/moxie/moxie.c: Same.
21065 * config/nds32/nds32.md: Same.
21066 * config/pa/pa.h: Same.
21067 * config/rs6000/aix.h: Same.
21068 * config/rs6000/rs6000.h: Same.
21069 * config/sh/sh.c: Same.
21070 * config/tilegx/tilegx.md: Same.
21071 * config/tilepro/gen-mul-tables.cc: Same.
21072 * cse.c: Same.
21073 * dbxout.c: Same.
21074 * doc/invoke.texi: Same.
21075 * dse.c: Same.
21076 * dwarf2out.c: Same.
21077 * final.c: Same.
21078 * gcc.c: Same.
21079 * genmatch.c: Same.
21080 * gimplify.c: Same.
21081 * hash-table.h: Same.
21082 * internal-fn.c: Same.
21083 * ipa-cp.c: Same.
21084 * ipa-devirt.c: Same.
21085 * ipa-icf.c: Same.
21086 * ipa-icf.h: Same.
21087 * ipa-profile.c: Same.
21088 * ipa-prop.c: Same.
21089 * ipa-prop.h: Same.
21090 * ira.c: Same.
21091 * omp-low.c: Same.
21092 * reg-stack.c: Same.
21093 * regcprop.c: Same.
21094 * reorg.c: Same.
21095 * rtl.h: Same.
21096 * sbitmap.h: Same.
21097 * tree-eh.c: Same.
21098 * tree-inline.c: Same.
21099 * tree-sra.c: Same.
21100 * tree-ssa-dom.c: Same.
21101 * tree-ssa-loop-ivopts.c: Same.
21102 * tree-ssa-structalias.c: Same.
21103 * tree-ssa-tail-merge.c: Same.
21104 * tree-ssa-ter.c: Same.
21105 * tree-ssa-threadupdate.c: Same.
21106 * tree-ssa-uninit.c: Same.
21107 * tree-ssanames.c: Same.
21108 * tree-vect-loop-manip.c: Same.
21109 * tree-vrp.c: Same.
21110 * tree.c: Same.
21111 * valtrack.c: Same.
21112 * vec.h: Same.
21113
21114 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21115
21116 PR middle-end/66726
21117 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21118 tree_ssa_phiopt_worker): Call it.
21119
21120 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21121
21122 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21123 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21124 REG_EQUAL note.
21125
21126 2015-07-11 Marek Polacek <polacek@redhat.com>
21127
21128 PR middle-end/66353
21129 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21130 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21131 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21132 rather than bb_has_abnormal_call_pred.
21133 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21134 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21135 rather than bb_has_abnormal_call_pred.
21136
21137 2015-07-10 Anatoly Sokolov <aesok@post.ru>
21138
21139 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21140 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21141 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21142 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21143 v850_legitimate_address_p): New functions.
21144 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21145
21146 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
21147
21148 PR target/66819
21149 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21150 indirect sibcall with register arguments if register available
21151 for argument passing.
21152 (init_cumulative_args): Set cfun->machine->arg_reg_available
21153 to (cum->nregs > 0) or to true if function has a variable
21154 argument list.
21155 (function_arg_advance_32): Set cfun->machine->arg_reg_available
21156 to false if cum->nregs <= 0.
21157 * config/i386/i386.h (machine_function): Add arg_reg_available.
21158
21159 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21160
21161 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21162 and gen_higpart instead of gen_rtx_SUBREG.
21163 * config/i386/i386.md
21164 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21165 (read-modify peephole2): Use gen_lowpart instead of
21166 gen_rtx_SUBREG for operand 5.
21167
21168 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21169
21170 * config/tilepro/gen-mul-tables.cc (main): Change include list for
21171 generated files.
21172 * config/tilepro/mul-tables.c: Regenerate.
21173 * config/tilegx/mul-tables.c: Regenerate.
21174
21175 2015-07-10 Richard Biener <rguenther@suse.de>
21176
21177 * fold-const.c (distribute_bit_expr): Remove.
21178 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21179 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21180 to A & (B | C) and simplifying A << C1 << C2 to ...
21181 * match.pd: ... patterns here.
21182
21183 2015-07-10 Jiong Wang <jiong.wang@arm.com>
21184
21185 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21186 Mark mem as READONLY and NOTRAP for PIC symbol.
21187
21188 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21189
21190 * gimple-predict.h: New file.
21191 (gimple_predict_predictor, gimple_predict_set_predictor,
21192 gimple_predict_outcome, gimple_predict_set_outcome,
21193 gimple_build_predict): Relocate here.
21194 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21195 gimple_predict_outcome, gimple_predict_set_outcome): Move to
21196 gimple-predict.h.
21197 * gimple.c (gimple_build_predict): Move to gimple-predict.h
21198 * basic-block.h: Don't include cfghooks.h.
21199 * backend.h: Don't include predict.h.
21200 * cfghooks.h: Include predict.h.
21201 * gimple-pretty-print.c: Include gimple-predict.h.
21202 * gimplify.c: Likwise.
21203 * predict.c: Adjust includes.
21204 * tree-inline.c: Likewise.
21205 * asan.c: Likewise.
21206 * auto-inc-dec.c: Likewise.
21207 * auto-profile.c: Likewise.
21208 * bb-reorder.c: Likewise.
21209 * builtins.c: Likewise.
21210 * caller-save.c: Likewise.
21211 * calls.c: Likewise.
21212 * cfganal.c: Likewise.
21213 * cfgbuild.c: Likewise.
21214 * cfg.c: Likewise.
21215 * cfgcleanup.c: Likewise.
21216 * cfgexpand.c: Likewise.
21217 * cfghooks.c: Likewise.
21218 * cfgloopanal.c: Likewise.
21219 * cfgloop.c: Likewise.
21220 * cfgloopmanip.c: Likewise.
21221 * cfgrtl.c: Likewise.
21222 * cgraph.c: Likewise.
21223 * cgraphunit.c: Likewise.
21224 * combine.c: Likewise.
21225 * cprop.c: Likewise.
21226 * cse.c: Likewise.
21227 * dce.c: Likewise.
21228 * dojump.c: Likewise.
21229 * dse.c: Likewise.
21230 * except.c: Likewise.
21231 * expmed.c: Likewise.
21232 * expr.c: Likewise.
21233 * final.c: Likewise.
21234 * fold-const.c: Likewise.
21235 * function.c: Likewise.
21236 * fwprop.c: Likewise.
21237 * gcc-plugin.h: Likewise.
21238 * gcse.c: Likewise.
21239 * genattrtab.c: Likewise.
21240 * genemit.c: Likewise.
21241 * gengtype.c: Likewise.
21242 * genopinit.c: Likewise.
21243 * genoutput.c: Likewise.
21244 * genpreds.c: Likewise.
21245 * genrecog.c: Likewise.
21246 * gimple-fold.c: Likewise.
21247 * gimple-iterator.c: Likewise.
21248 * gimple-ssa-isolate-paths.c: Likewise.
21249 * gimple-ssa-strength-reduction.c: Likewise.
21250 * graph.c: Likewise.
21251 * graphite-blocking.c: Likewise.
21252 * graphite.c: Likewise.
21253 * graphite-dependences.c: Likewise.
21254 * graphite-interchange.c: Likewise.
21255 * graphite-isl-ast-to-gimple.c: Likewise.
21256 * graphite-optimize-isl.c: Likewise.
21257 * graphite-poly.c: Likewise.
21258 * graphite-scop-detection.c: Likewise.
21259 * graphite-sese-to-poly.c: Likewise.
21260 * haifa-sched.c: Likewise.
21261 * ifcvt.c: Likewise.
21262 * internal-fn.c: Likewise.
21263 * ipa-cp.c: Likewise.
21264 * ipa-profile.c: Likewise.
21265 * ipa-split.c: Likewise.
21266 * ipa-utils.c: Likewise.
21267 * ira-build.c: Likewise.
21268 * ira-color.c: Likewise.
21269 * ira-conflicts.c: Likewise.
21270 * ira-costs.c: Likewise.
21271 * ira-emit.c: Likewise.
21272 * ira-lives.c: Likewise.
21273 * jump.c: Likewise.
21274 * loop-doloop.c: Likewise.
21275 * loop-init.c: Likewise.
21276 * loop-invariant.c: Likewise.
21277 * loop-unroll.c: Likewise.
21278 * lower-subreg.c: Likewise.
21279 * lra-assigns.c: Likewise.
21280 * lra.c: Likewise.
21281 * lra-coalesce.c: Likewise.
21282 * lra-constraints.c: Likewise.
21283 * lra-lives.c: Likewise.
21284 * lto-cgraph.c: Likewise.
21285 * lto-streamer-in.c: Likewise.
21286 * mode-switching.c: Likewise.
21287 * modulo-sched.c: Likewise.
21288 * omp-low.c: Likewise.
21289 * optabs.c: Likewise.
21290 * passes.c: Likewise.
21291 * postreload.c: Likewise.
21292 * postreload-gcse.c: Likewise.
21293 * profile.c: Likewise.
21294 * recog.c: Likewise.
21295 * regstat.c: Likewise.
21296 * reload1.c: Likewise.
21297 * reorg.c: Likewise.
21298 * rtlanal.c: Likewise.
21299 * sched-ebb.c: Likewise.
21300 * sel-sched-ir.c: Likewise.
21301 * sese.c: Likewise.
21302 * shrink-wrap.c: Likewise.
21303 * simplify-rtx.c: Likewise.
21304 * stmt.c: Likewise.
21305 * store-motion.c: Likewise.
21306 * tracer.c: Likewise.
21307 * trans-mem.c: Likewise.
21308 * tree-call-cdce.c: Likewise.
21309 * tree-cfg.c: Likewise.
21310 * tree-cfgcleanup.c: Likewise.
21311 * tree-chkp.c: Likewise.
21312 * tree-complex.c: Likewise.
21313 * tree-eh.c: Likewise.
21314 * tree-if-conv.c: Likewise.
21315 * tree-loop-distribution.c: Likewise.
21316 * tree-outof-ssa.c: Likewise.
21317 * tree-parloops.c: Likewise.
21318 * tree-predcom.c: Likewise.
21319 * tree-pretty-print.c: Likewise.
21320 * tree-profile.c: Likewise.
21321 * tree-sra.c: Likewise.
21322 * tree-ssa.c: Likewise.
21323 * tree-ssa-coalesce.c: Likewise.
21324 * tree-ssa-dce.c: Likewise.
21325 * tree-ssa-dom.c: Likewise.
21326 * tree-ssa-forwprop.c: Likewise.
21327 * tree-ssa-ifcombine.c: Likewise.
21328 * tree-ssa-loop-ch.c: Likewise.
21329 * tree-ssa-loop-im.c: Likewise.
21330 * tree-ssa-loop-ivcanon.c: Likewise.
21331 * tree-ssa-loop-ivopts.c: Likewise.
21332 * tree-ssa-loop-manip.c: Likewise.
21333 * tree-ssa-loop-prefetch.c: Likewise.
21334 * tree-ssa-loop-unswitch.c: Likewise.
21335 * tree-ssa-math-opts.c: Likewise.
21336 * tree-ssa-phiopt.c: Likewise.
21337 * tree-ssa-pre.c: Likewise.
21338 * tree-ssa-reassoc.c: Likewise.
21339 * tree-ssa-sink.c: Likewise.
21340 * tree-ssa-tail-merge.c: Likewise.
21341 * tree-ssa-threadedge.c: Likewise.
21342 * tree-ssa-threadupdate.c: Likewise.
21343 * tree-switch-conversion.c: Likewise.
21344 * tree-tailcall.c: Likewise.
21345 * tree-vect-data-refs.c: Likewise.
21346 * tree-vect-loop.c: Likewise.
21347 * tree-vect-loop-manip.c: Likewise.
21348 * tree-vectorizer.c: Likewise.
21349 * tree-vrp.c: Likewise.
21350 * ubsan.c: Likewise.
21351 * value-prof.c: Likewise.
21352 * varasm.c: Likewise.
21353 * var-tracking.c: Likewise.
21354 * config/aarch64/aarch64-builtins.c: Likewise.
21355 * config/aarch64/aarch64.c: Likewise.
21356 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21357 * config/alpha/alpha.c: Likewise.
21358 * config/arc/arc.c: Likewise.
21359 * config/arm/arm.c: Likewise.
21360 * config/avr/avr.c: Likewise.
21361 * config/bfin/bfin.c: Likewise.
21362 * config/c6x/c6x.c: Likewise.
21363 * config/cr16/cr16.c: Likewise.
21364 * config/cris/cris.c: Likewise.
21365 * config/darwin.c: Likewise.
21366 * config/darwin-c.c: Likewise.
21367 * config/epiphany/epiphany.c: Likewise.
21368 * config/epiphany/mode-switch-use.c: Likewise.
21369 * config/epiphany/resolve-sw-modes.c: Likewise.
21370 * config/fr30/fr30.c: Likewise.
21371 * config/frv/frv.c: Likewise.
21372 * config/ft32/ft32.c: Likewise.
21373 * config/h8300/h8300.c: Likewise.
21374 * config/i386/i386.c: Likewise.
21375 * config/i386/winnt.c: Likewise.
21376 * config/ia64/ia64.c: Likewise.
21377 * config/iq2000/iq2000.c: Likewise.
21378 * config/lm32/lm32.c: Likewise.
21379 * config/m32c/m32c.c: Likewise.
21380 * config/m32r/m32r.c: Likewise.
21381 * config/m68k/m68k.c: Likewise.
21382 * config/mcore/mcore.c: Likewise.
21383 * config/mep/mep.c: Likewise.
21384 * config/microblaze/microblaze.c: Likewise.
21385 * config/mips/mips.c: Likewise.
21386 * config/mmix/mmix.c: Likewise.
21387 * config/mn10300/mn10300.c: Likewise.
21388 * config/moxie/moxie.c: Likewise.
21389 * config/msp430/msp430.c: Likewise.
21390 * config/nds32/nds32.c: Likewise.
21391 * config/nds32/nds32-cost.c: Likewise.
21392 * config/nds32/nds32-fp-as-gp.c: Likewise.
21393 * config/nds32/nds32-intrinsic.c: Likewise.
21394 * config/nds32/nds32-isr.c: Likewise.
21395 * config/nds32/nds32-md-auxiliary.c: Likewise.
21396 * config/nds32/nds32-memory-manipulation.c: Likewise.
21397 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21398 * config/nds32/nds32-predicates.c: Likewise.
21399 * config/nios2/nios2.c: Likewise.
21400 * config/nvptx/nvptx.c: Likewise.
21401 * config/pa/pa.c: Likewise.
21402 * config/pdp11/pdp11.c: Likewise.
21403 * config/rl78/rl78.c: Likewise.
21404 * config/rs6000/rs6000.c: Likewise.
21405 * config/rx/rx.c: Likewise.
21406 * config/s390/s390.c: Likewise.
21407 * config/sh/sh.c: Likewise.
21408 * config/sh/sh-mem.cc: Likewise.
21409 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21410 * config/sh/sh_treg_combine.cc: Likewise.
21411 * config/sparc/sparc.c: Likewise.
21412 * config/spu/spu.c: Likewise.
21413 * config/stormy16/stormy16.c: Likewise.
21414 * config/tilegx/tilegx.c: Likewise.
21415 * config/tilepro/tilepro.c: Likewise.
21416 * config/v850/v850.c: Likewise.
21417 * config/vax/vax.c: Likewise.
21418 * config/visium/visium.c: Likewise.
21419 * config/xtensa/xtensa.c: Likewise.
21420
21421 2015-07-10 Richard Biener <rguenther@suse.de>
21422
21423 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21424 (decision_tree::gen_gimple): Likewise.
21425 (decision_tree::gen_generic): Likewise.
21426
21427 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21428
21429 PR target/66813
21430 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
21431 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
21432
21433 2015-07-10 Jakub Jelinek <jakub@redhat.com>
21434
21435 PR middle-end/66820
21436 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
21437 or ORT_TASK contexts.
21438 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
21439 is non-zero.
21440
21441 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21442
21443 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
21444 above function.
21445
21446 2015-07-10 Tom de Vries <tom@codesourcery.com>
21447
21448 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
21449 insert nit + 1 bound.
21450
21451 2015-07-10 Richard Biener <rguenther@suse.de>
21452
21453 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
21454 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
21455 (if_convertible_loop_p_1): For this always compute bb predicates.
21456 (if_convertible_loop_p): And free them.
21457
21458 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21459
21460 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
21461 in dump message.
21462
21463 2015-07-10 Richard Biener <rguenther@suse.de>
21464
21465 PR tree-optimization/66823
21466 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
21467 inverted predicate.
21468
21469 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
21470
21471 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
21472 to handle mips[32|64]r3 and mips[32|64]r5.
21473
21474 2015-07-09 Jakub Jelinek <jakub@redhat.com>
21475
21476 PR middle-end/66633
21477 * tree-nested.c (get_static_chain): Or in a flag into
21478 info->static_chain_added.
21479 (get_frame_field, get_nonlocal_debug_decl): Likewise.
21480 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
21481 2015-07-01 changes.
21482 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
21483 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
21484 add it to clauses.
21485
21486 PR tree-optimization/66718
21487 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
21488 field.
21489 (vect_simd_lane_linear): New function.
21490 (vectorizable_simd_clone_call): Support using linear arguments for
21491 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
21492
21493 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21494
21495 PR target/66821
21496 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
21497
21498 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
21499
21500 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
21501 Use machine mode, not enum machine_mode in the prototype.
21502
21503 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
21504 classify 128-bit floating point support.
21505 (FLOAT128_IBM_P): Likewise.
21506 (FLOAT128_VECTOR_P): Likewise.
21507 (FLOAT128_2REG_P): Likewise.
21508 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
21509 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
21510 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
21511 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
21512
21513 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
21514 tests against TFmode/TDmode, since those modes do not use VSX
21515 addresses.
21516 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
21517 support.
21518 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
21519 tests against TFmode, etc.
21520 (invalid_e500_subreg): Add tests against IFmode/KFmode.
21521 (reg_offset_addressing_ok_p): Likewise.
21522 (rs6000_legitimate_offset_address_p): Likewise.
21523 (rs6000_legitimize_address): Likewise.
21524 (rs6000_legitimize_reload_address): Likewise.
21525 (rs6000_legitimate_address_p): Clean up tests against TFmode and
21526 TDmode to use the new helper macros, which will include IFmode and
21527 KFmode.
21528 (rs6000_emit_move): Likewise.
21529 (rs6000_darwin64_record_arg_recurse): Likewise.
21530 (print_operand): Likewise.
21531 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
21532 that uses a single vector register as a vector and not as a
21533 floating point register in terms of the calling sequence.
21534 (rs6000_discover_homogeneous_aggregate): Likewise.
21535 (rs6000_return_in_memory): Likewise.
21536 (init_cumulative_args): Likewise.
21537 (rs6000_function_arg_boundary): Likewise.
21538 (rs6000_function_arg_advance_1): Likewise.
21539 (rs6000_function_arg): Likewise.
21540 (rs6000_pass_by_reference): Likewise.
21541 (rs6000_gimplify_va_arg): Likewise.
21542 (rs6000_secondary_reload_memory): Use machine_mode not enum
21543 machine mode.
21544 (rs6000_split_multireg_move): Use new helper macros.
21545 (spe_func_has_64bit_regs_p): Likewise.
21546 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
21547 (output_toc): Use new helper macros.
21548 (rs6000_register_move_cost): Likewise.
21549 (rs6000_function_value): Add IEEE 128-bit floating point calling
21550 sequence support.
21551 (rs6000_libcall_value): Likewise.
21552 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
21553 floating point support.
21554 (rs6000_vector_mode_supported_p): Likewise.
21555
21556 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
21557
21558 PR rtl-optimization/66782
21559 * lra-int.h (struct lra_insn_recog_data): Add comment about
21560 clobbered hard regs for arg_hard_regs.
21561 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
21562 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
21563 Add condition for processing used hard regs.
21564 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
21565 Process clobbered hard regs.
21566
21567 2015-07-09 Michael Matz <matz@suse.de>
21568
21569 * genmatch.c (fprintf_indent): New function.
21570 (operand::gen_transform): Add indent parameter.
21571 (expr::gen_transform, c_expr::gen_transform,
21572 capture::gen_transform): Ditto and use fprintf_indent.
21573 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
21574 (dt_operand::gen, dt_operand::gen_predicate,
21575 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
21576 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
21577 (decision_tree::gen_gimple): Adjust calls and indent generated
21578 code.
21579 (decision_tree::gen_generic): Ditto.
21580 (write_predicate): Ditto.
21581
21582 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21583
21584 PR target/66814
21585 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
21586 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
21587 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
21588 {GENERAL,SSE,MMX}_REG_P where appropriate.
21589
21590 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21591
21592 * lto-streamer.h: Don't include target.h and alloc-pool.h.
21593 * builtins.c: Adjust includes.
21594 * gimple.c: Likewise.
21595 * ipa-icf.c: Likewise.
21596 * lto-opts.c: Likewise.
21597 * ipa-reference.c: Likewise.
21598 * lto-section-out.c: Likewise.
21599 * lto-streamer-in.c: Likewise.
21600 * lto-streamer-out.c: Likewise.
21601 * opts-global.c: Likewise.
21602 * symtab.c: Likewise.
21603 * tree-chkp.c: Likewise.
21604 * tree-ssa-live.c: Likewise.
21605 * tree-streamer-in.c: Likewise.
21606 * tree-streamer-out.c: Likewise.
21607 * config/darwin.c: Likewise.
21608 * config/i386/winnt.c: Likewise.
21609
21610 2015-07-09 Richard Biener <rguenther@suse.de>
21611
21612 * genmatch.c (struct expr): Add force_single_use flag.
21613 (expr::expr): Add copy constructor.
21614 (capture_info::walk_match): Gather force_single_use captures.
21615 (expr::gen_transform): Use possibly NULLified sequence.
21616 (dt_simplify::gen): Apply single-use restrictions by NULLifying
21617 seq if any constrained expr is not single-use.
21618 (parser::parse_expr): Refactor to allow multiple flags. Handle
21619 's' flag to force an expression have a single-use if the pattern
21620 simplifies to more than one statement.
21621 * match.pd: Convert most single_use conditionals to :s flags.
21622
21623 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21624
21625 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
21626 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21627 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
21628
21629 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21630
21631 * flags.h: Don't include flag-types.h or options.h.
21632 * opts-common.c: Adjust includes.
21633 * opts-global.c: Likewise.
21634 * common/config/epiphany/epiphany-common.c: Likewise.
21635
21636 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21637
21638 PR target/66818
21639 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
21640 for IA MCU.
21641
21642 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21643
21644 PR target/66817
21645 * config/i386/i386.c (ix86_return_in_memory): Return true
21646 if int_size_in_bytes returns negative for IA MCU.
21647
21648 2015-07-09 Marek Polacek <polacek@redhat.com>
21649
21650 PR tree-optimization/66718
21651 * Makefile.in (OBJS): Add gimple-laddress.o.
21652 * passes.def: Schedule pass_laddress.
21653 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
21654 * tree-pass.h (make_pass_laddress): Declare.
21655 * gimple-laddress.c: New file.
21656
21657 2015-07-09 Richard Biener <rguenther@suse.de>
21658
21659 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
21660
21661 2015-07-09 Richard Biener <rguenther@suse.de>
21662
21663 PR tree-optimization/66807
21664 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
21665
21666 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
21667
21668 * function.c (stack_protect_epilogue): Use if rather than switch for
21669 check targetm.have_stack_protect_test.
21670
21671 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21672
21673 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
21674 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
21675 * config/arc/arc.h: Likewise.
21676 * config/arm/arm.h: Likewise.
21677 * config/bfin/bfin.h: Likewise.
21678 * config/epiphany/epiphany.h: Likewise.
21679 * config/frv/frv.h: Likewise.
21680 * config/ia64/ia64.h: Likewise.
21681 * config/iq2000/iq2000.h: Likewise.
21682 * config/lm32/lm32.h: Likewise.
21683 * config/m32r/m32r.h: Likewise.
21684 * config/mcore/mcore.h: Likewise.
21685 * config/mep/mep.h: Likewise.
21686 * config/microblaze/microblaze.h: Likewise.
21687 * config/mips/mips.h: Likewise.
21688 * config/mmix/mmix.h: Likewise.
21689 * config/mn10300/mn10300.h: Likewise.
21690 * config/nds32/nds32.h: Likewise.
21691 * config/nios2/nios2.h: Likewise.
21692 * config/pa/pa.h: Likewise.
21693 * config/rl78/rl78.h: Likewise.
21694 * config/sh/sh.h: Likewise.
21695 * config/sparc/sparc.h: Likewise.
21696 * config/stormy16/stormy16.h: Likewise.
21697 * config/tilegx/tilegx.h: Likewise.
21698 * config/tilepro/tilepro.h: Likewise.
21699 * config/v850/v850.h: Likewise.
21700 * config/xtensa/xtensa.h: Likewise.
21701 * doc/tm.texi: Regenerate.
21702 * doc/tm.texi.in: Adjust.
21703 * combine.c (simplify_set): Likewise.
21704 (simplify_comparison): Likewise.
21705 * expr.c (store_constructor): Likewise.
21706 * internal-fn.c (expand_arith_overflow): Likewise.
21707 * reload.c (push_reload): Likewise.
21708 (find_reloads): Likewise.
21709 (find_reloads_subreg_address): Likewise.
21710 * reload1.c (eliminate_regs_1): Likewise.
21711 * rtlanal.c (nonzero_bits1): Likewise.
21712 (num_sign_bit_copies1): Likewise.
21713 * simplify-rtx.c (simplify_truncation): Likewise.
21714
21715 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21716
21717 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
21718 of AUTO_INC_DEC with the preprocessor.
21719 * combine.c (combine_instructions): Likewise.
21720 (can_combine_p): Likewise.
21721 (try_combine): Likewise.
21722 * emit-rtl.c (try_split): Likewise.
21723 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21724 * lower-subreg.c (resolve_simple_move): Likewise.
21725 * lra.c (update_inc_notes): Likewise.
21726 * recog.c (asm_operand_ok): Likewise.
21727 (constrain_operands): Likewise.
21728 * regrename.c (scan_rtx_address): Likewise.
21729 * reload.c (update_auto_inc_notes): Likewise.
21730 (reg_inc_found_and_valid_p): Likewise.
21731 * reload1.c (reload): Likewise.
21732 (emit_input_reload_insns): Likewise.
21733 (delete_output_reload): Likewise.
21734 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21735 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21736
21737 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21738
21739 * rtl.h: Always define AUTO_INC_DEC.
21740 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
21741 * combine.c (combine_instructions): Likewise.
21742 (can_combine_p): Likewise.
21743 (try_combine): Likewise.
21744 * emit-rtl.c (try_split): Likewise.
21745 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21746 * lower-subreg.c (resolve_simple_move): Likewise.
21747 * lra.c (update_inc_notes): Likewise.
21748 * recog.c (asm_operand_ok): Likewise.
21749 (constrain_operands): Likewise.
21750 * regrename.c (scan_rtx_address): Likewise.
21751 * reload.c (update_auto_inc_notes): Likewise.
21752 (find_equiv_reg): Likewise.
21753 * reload1.c (reload): Likewise.
21754 (reload_as_needed): Likewise.
21755 (choose_reload_regs): Likewise.
21756 (emit_input_reload_insns): Likewise.
21757 (delete_output_reload): Likewise.
21758 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21759 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21760
21761 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21762
21763 * combine.c (can_combine_def_p): Don't check the value of
21764 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
21765 (combinable_i3pat): Likewise.
21766 (mark_used_regs_combine): Likewise.
21767 * regrename.c (rename_chains): Likewise.
21768 * reload.c (find_reloads_address): Likewise.
21769 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21770
21771 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21772
21773 * combine.c (update_rsp_from_reg_equal): Don't check if
21774 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
21775 (reg_nonzero_bits_for_combine): Likewise.
21776 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
21777 1.
21778 * config/frv/frv.h: Likewise.
21779 * config/lm32/lm32.h: Likewise.
21780 * config/mep/mep.h: Likewise.
21781 * config/mips/mips.h: Likewise.
21782 * config/rs6000/rs6000.h: Likewise.
21783 * config/sh/sh.h: Likewise.
21784 * config/tilegx/tilegx.h (enum reg_class): Likewise.
21785 * config/tilepro/tilepro.h: Likewise.
21786 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
21787 * doc/tm.texi: Regenerate.
21788 * doc/tm.texi.in: Adjust.
21789 * rtlanal.c (nonzero_bits1): Likewise.
21790
21791 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21792
21793 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
21794 with the preprocessor.
21795 (combine_instructions): Likewise.
21796 (try_combine): Likewise.
21797 (subst): Likewise.
21798 (distribute_notes): Likewise.
21799
21800 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21801
21802 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
21803 defined.
21804 (simplify_set): Likewise.
21805 * cse.c (cse_insn): Likewise.
21806 * fold-const.c (fold_single_bit_test): Likewise.
21807 (fold_unary_loc): Likewise.
21808 * postreload.c (reload_cse_simplify_set): Likewise.
21809 (reload_cse_simplify_operands): Likewise.
21810
21811 2015-07-08 Jiong Wang <jiong.wang@arm.com>
21812
21813 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
21814 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
21815
21816 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
21817
21818 PR target/66746
21819 * config/i386/x86intrin.h: Include <adxintrin.h> even if
21820 __iamcu__ is defined.
21821
21822 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21823
21824 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
21825
21826 2015-07-08 Iain Sandoe <iain@codesourcery.com>
21827
21828 PR target/66523
21829 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
21830 names from preservation.
21831
21832 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
21833
21834 PR target/66806
21835 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
21836 change for IAMCU.
21837 (function_arg_advance_32): Don't pass vectors in registers for
21838 IAMCU.
21839 (function_arg_32): Likewise.
21840 (ix86_return_in_memory): Don't return vectors in registers for
21841 IAMCU.
21842
21843 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
21844
21845 PR middle-end/66334
21846 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
21847 hard regno live at the start of BB with incoming abnormal edges.
21848 * lra-lives.c (process_bb_lives): Ditto.
21849
21850 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
21851
21852 PR libgomp/65099
21853 * config/nvptx/mkoffload.c (main): Create an offload image only in
21854 64-bit configurations.
21855
21856 2015-07-08 Martin Liska <mliska@suse.cz>
21857
21858 PR bootstrap/66744
21859 * tree-sra.c (create_access_1): Call ctor without brackets.
21860 (create_artificial_child_access): Likewise.
21861
21862 2015-07-08 Richard Biener <rguenther@suse.de>
21863
21864 PR tree-optimization/66793
21865 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
21866 Properly split the block after stmts ending it.
21867
21868 2015-07-08 Richard Biener <rguenther@suse.de>
21869
21870 PR tree-optimization/66794
21871 * passes.c (execute_function_todo): Assert that post-dominators
21872 are not computed.
21873 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
21874 Free post-dominators.
21875
21876 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21877
21878 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
21879 with early exit.
21880
21881 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21882
21883 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
21884 more than or equal 8 and less than 32 when optimizing for size.
21885
21886 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21887
21888 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
21889 COSTS_N_INSNS (1) and increment it appropriately throughout the
21890 function.
21891
21892 2015-07-08 Richard Biener <rguenther@suse.de>
21893
21894 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
21895
21896 2015-07-08 Alan Modra <amodra@gmail.com>
21897
21898 * target.def (rtx_costs): Remove "code" param, add "mode".
21899 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
21900 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
21901 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
21902 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
21903 call. Track mode when given in rtx.
21904 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
21905 (default_address_cost): Pass Pmode to rtx_cost.
21906 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
21907 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
21908 with NULL set.
21909 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
21910 (notreg_cost): Add mode param. Use it.
21911 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
21912 mode param and pass to set_src_cost. Update all calls.
21913 (hash_scan_set): Formatting.
21914 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
21915 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
21916 * hooks.h: Ditto.
21917 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
21918 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
21919 emit_store_flag): Update set_src_cost and rtx_cost calls.
21920 * auto-inc-dec.c (attempt_change): Likewise.
21921 * calls.c (precompute_register_parameters): Likewise.
21922 * combine.c (expand_compound_operation, make_extraction,
21923 force_to_mode, distribute_and_simplify_rtx): Likewise.
21924 * dojump.c (prefer_and_bit_test): Likewise.
21925 * dse.c (find_shift_sequence): Likewise.
21926 * expr.c (compress_float_constant): Likewise.
21927 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
21928 * ifcvt.c (noce_try_sign_mask): Likewise.
21929 * loop-doloop.c (doloop_optimize): Likewise.
21930 * loop-invariant.c (create_new_invariant): Likewise.
21931 * lower-subreg.c (shift_cost, compute_costs): Likewise.
21932 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
21933 lshift_cheap_p): Likewise.
21934 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
21935 try_replace_in_use, reload_cse_move2add): Likewise.
21936 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
21937 Likewise.
21938 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
21939 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
21940 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
21941 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21942 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
21943 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
21944 to rtx_cost calls.
21945 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
21946 * config/arc/arc.c (arc_rtx_costs): Likewise.
21947 * config/arm/arm.c (arm_rtx_costs): Likewise.
21948 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
21949 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
21950 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
21951 * config/cris/cris.c (cris_rtx_costs): Likewise.
21952 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
21953 * config/frv/frv.c (frv_rtx_costs): Likewise.
21954 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
21955 * config/i386/i386.c (ix86_rtx_costs): Likewise.
21956 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
21957 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
21958 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
21959 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
21960 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
21961 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
21962 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
21963 * config/mep/mep.c (mep_rtx_cost): Likewise.
21964 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
21965 * config/mips/mips.c (mips_rtx_costs): Likewise.
21966 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
21967 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
21968 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
21969 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
21970 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
21971 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
21972 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
21973 * config/pa/pa.c (hppa_rtx_costs): Likewise.
21974 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
21975 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
21976 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
21977 * config/s390/s390.c (s390_rtx_costs): Likewise.
21978 * config/sh/sh.c (sh_rtx_costs): Likewise.
21979 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
21980 * config/spu/spu.c (spu_rtx_costs): Likewise.
21981 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
21982 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
21983 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
21984 * config/v850/v850.c (v850_rtx_costs): Likewise.
21985 * config/vax/vax.c (vax_rtx_costs): Likewise.
21986 * config/visium/visium.c (visium_rtx_costs): Likewise.
21987 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
21988 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
21989 "code" param, and pass as outer_code to first rtx_cost call. Pass
21990 mode to rtx_cost calls.
21991 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
21992 calls.
21993 (aarch64_rtx_costs_wrapper): Update.
21994 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
21995 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
21996 rtx_cost calls.
21997 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
21998 and rtx_cost calls.
21999 (avr_operand_rtx_cost): Similarly.
22000 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22001 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22002 * config/mips/mips.c (mips_stack_address_p): Comment typo.
22003 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22004 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22005 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22006 rtx_cost.
22007 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22008 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22009 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22010 * doc/tm.texi: Regenerate.
22011
22012 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
22013
22014 * tree-core.h: Include symtab.h.
22015 * rtl.h: Include hard-reg-set.h but not flags.h.
22016 (HARD_CONST): Remove condition compilation involving HARD_CONST since
22017 hard-reg-set.h is always included.
22018 * regs.h: Don't include hard-reg-set.h or rtl.h.
22019 * cfg.h: Include dominance.h.
22020 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22021 * backend.h: New. Aggregate commonly used backend header files.
22022 * gimple-ssa.h: Don't include tree-hasher.h.
22023 * ssa.h: New. Aggregate commonly used SSA header files.
22024 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22025 * sel-sched-ir.h: Flatten includes.
22026 * lra-int.h: Flatten completely.
22027 * sel-sched-dump.h: Flatten includes.
22028 * ira-int.h: Flatten includes.
22029 * gimple-streamer.h: Remove all includes.
22030 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22031 * resource.h: Flatten hard-reg-set.h and df.h.
22032 * sched-int.h: Flatten insn-arrt.h and df.h.
22033 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22034 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22035 * genattrtab.c (write_header): Adjust generated includes.
22036 * genautomata.c (main): Likewise.
22037 * genconditions.c (write-header): Likewise.
22038 * genemit.c (main): Likewise.
22039 * gengtype.c (open_base_files): Likewise.
22040 * genopinit.c (main): Likewise.
22041 * genoutput.c (output_prologue): Likewise.
22042 * genpeep.c (main): Likewise.
22043 * genpreds.c (write_insn_preds_c): Likewise.
22044 * genrecog.c (write_header): Likewise.
22045 * alias.c: Adjust includes.
22046 * asan.c: Likewise.
22047 * attribs.c: Likewise.
22048 * auto-inc-dec.c: Likewise.
22049 * auto-profile.c: Likewise.
22050 * bb-reorder.c: Likewise.
22051 * bt-load.c: Likewise.
22052 * builtins.c: Likewise.
22053 * caller-save.c: Likewise.
22054 * calls.c: Likewise.
22055 * ccmp.c: Likewise.
22056 * cfg.c: Likewise.
22057 * cfganal.c: Likewise.
22058 * cfgbuild.c: Likewise.
22059 * cfgcleanup.c: Likewise.
22060 * cfgexpand.c: Likewise.
22061 * cfghooks.c: Likewise.
22062 * cfgloop.c: Likewise.
22063 * cfgloopanal.c: Likewise.
22064 * cfgloopmanip.c: Likewise.
22065 * cfgrtl.c: Likewise.
22066 * cgraph.c: Likewise.
22067 * cgraphbuild.c: Likewise.
22068 * cgraphclones.c: Likewise.
22069 * cgraphunit.c: Likewise.
22070 * cilk-common.c: Likewise.
22071 * combine-stack-adj.c: Likewise.
22072 * combine.c: Likewise.
22073 * compare-elim.c: Likewise.
22074 * convert.c: Likewise.
22075 * coverage.c: Likewise.
22076 * cppbuiltin.c: Likewise.
22077 * cprop.c: Likewise.
22078 * cse.c: Likewise.
22079 * cselib.c: Likewise.
22080 * data-streamer-in.c: Likewise.
22081 * data-streamer-out.c: Likewise.
22082 * data-streamer.c: Likewise.
22083 * dbxout.c: Likewise.
22084 * dce.c: Likewise.
22085 * ddg.c: Likewise.
22086 * debug.c: Likewise.
22087 * df-core.c: Likewise.
22088 * df-problems.c: Likewise.
22089 * df-scan.c: Likewise.
22090 * dfp.c: Likewise.
22091 * dojump.c: Likewise.
22092 * dominance.c: Likewise.
22093 * domwalk.c: Likewise.
22094 * double-int.c: Likewise.
22095 * dse.c: Likewise.
22096 * dumpfile.c: Likewise.
22097 * dwarf2asm.c: Likewise.
22098 * dwarf2cfi.c: Likewise.
22099 * dwarf2out.c: Likewise.
22100 * emit-rtl.c: Likewise.
22101 * et-forest.c: Likewise.
22102 * except.c: Likewise.
22103 * explow.c: Likewise.
22104 * expmed.c: Likewise.
22105 * expr.c: Likewise.
22106 * final.c: Likewise.
22107 * fixed-value.c: Likewise.
22108 * fold-const.c: Likewise.
22109 * function.c: Likewise.
22110 * fwprop.c: Likewise.
22111 * gcc-plugin.h: Likewise.
22112 * gcse-common.c: Likewise.
22113 * gcse.c: Likewise.
22114 * generic-match-head.c: Likewise.
22115 * ggc-page.c: Likewise.
22116 * gimple-builder.c: Likewise.
22117 * gimple-expr.c: Likewise.
22118 * gimple-fold.c: Likewise.
22119 * gimple-iterator.c: Likewise.
22120 * gimple-low.c: Likewise.
22121 * gimple-match-head.c: Likewise.
22122 * gimple-pretty-print.c: Likewise.
22123 * gimple-ssa-isolate-paths.c: Likewise.
22124 * gimple-ssa-strength-reduction.c: Likewise.
22125 * gimple-streamer-in.c: Likewise.
22126 * gimple-streamer-out.c: Likewise.
22127 * gimple-walk.c: Likewise.
22128 * gimple.c: Likewise.
22129 * gimplify-me.c: Likewise.
22130 * gimplify.c: Likewise.
22131 * godump.c: Likewise.
22132 * graph.c: Likewise.
22133 * graphite-blocking.c: Likewise.
22134 * graphite-dependences.c: Likewise.
22135 * graphite-interchange.c: Likewise.
22136 * graphite-isl-ast-to-gimple.c: Likewise.
22137 * graphite-optimize-isl.c: Likewise.
22138 * graphite-poly.c: Likewise.
22139 * graphite-scop-detection.c: Likewise.
22140 * graphite-sese-to-poly.c: Likewise.
22141 * graphite.c: Likewise.
22142 * haifa-sched.c: Likewise.
22143 * hw-doloop.c: Likewise.
22144 * ifcvt.c: Likewise.
22145 * init-regs.c: Likewise.
22146 * internal-fn.c: Likewise.
22147 * ipa-chkp.c: Likewise.
22148 * ipa-comdats.c: Likewise.
22149 * ipa-cp.c: Likewise.
22150 * ipa-devirt.c: Likewise.
22151 * ipa-icf-gimple.c: Likewise.
22152 * ipa-icf.c: Likewise.
22153 * ipa-inline-analysis.c: Likewise.
22154 * ipa-inline-transform.c: Likewise.
22155 * ipa-inline.c: Likewise.
22156 * ipa-polymorphic-call.c: Likewise.
22157 * ipa-profile.c: Likewise.
22158 * ipa-prop.c: Likewise.
22159 * ipa-pure-const.c: Likewise.
22160 * ipa-ref.c: Likewise.
22161 * ipa-reference.c: Likewise.
22162 * ipa-split.c: Likewise.
22163 * ipa-utils.c: Likewise.
22164 * ipa-visibility.c: Likewise.
22165 * ipa.c: Likewise.
22166 * ira-build.c: Likewise.
22167 * ira-color.c: Likewise.
22168 * ira-conflicts.c: Likewise.
22169 * ira-costs.c: Likewise.
22170 * ira-emit.c: Likewise.
22171 * ira-lives.c: Likewise.
22172 * ira.c: Likewise.
22173 * jump.c: Likewise.
22174 * langhooks.c: Likewise.
22175 * lcm.c: Likewise.
22176 * loop-doloop.c: Likewise.
22177 * loop-init.c: Likewise.
22178 * loop-invariant.c: Likewise.
22179 * loop-iv.c: Likewise.
22180 * loop-unroll.c: Likewise.
22181 * lower-subreg.c: Likewise.
22182 * lra-assigns.c: Likewise.
22183 * lra-coalesce.c: Likewise.
22184 * lra-constraints.c: Likewise.
22185 * lra-eliminations.c: Likewise.
22186 * lra-lives.c: Likewise.
22187 * lra-remat.c: Likewise.
22188 * lra-spills.c: Likewise.
22189 * lra.c: Likewise.
22190 * lto-cgraph.c: Likewise.
22191 * lto-compress.c: Likewise.
22192 * lto-opts.c: Likewise.
22193 * lto-section-in.c: Likewise.
22194 * lto-section-out.c: Likewise.
22195 * lto-streamer-in.c: Likewise.
22196 * lto-streamer-out.c: Likewise.
22197 * lto-streamer.c: Likewise.
22198 * mcf.c: Likewise.
22199 * mode-switching.c: Likewise.
22200 * modulo-sched.c: Likewise.
22201 * omega.c: Likewise.
22202 * omp-low.c: Likewise.
22203 * optabs.c: Likewise.
22204 * opts-global.c: Likewise.
22205 * passes.c: Likewise.
22206 * plugin.c: Likewise.
22207 * postreload-gcse.c: Likewise.
22208 * postreload.c: Likewise.
22209 * predict.c: Likewise.
22210 * print-rtl.c: Likewise.
22211 * print-tree.c: Likewise.
22212 * profile.c: Likewise.
22213 * real.c: Likewise.
22214 * realmpfr.c: Likewise.
22215 * recog.c: Likewise.
22216 * ree.c: Likewise.
22217 * reg-stack.c: Likewise.
22218 * regcprop.c: Likewise.
22219 * reginfo.c: Likewise.
22220 * regrename.c: Likewise.
22221 * regstat.c: Likewise.
22222 * reload.c: Likewise.
22223 * reload1.c: Likewise.
22224 * reorg.c: Likewise.
22225 * resource.c: Likewise.
22226 * rtl-chkp.c: Likewise.
22227 * rtlanal.c: Likewise.
22228 * rtlhooks.c: Likewise.
22229 * sanopt.c: Likewise.
22230 * sched-deps.c: Likewise.
22231 * sched-ebb.c: Likewise.
22232 * sched-rgn.c: Likewise.
22233 * sched-vis.c: Likewise.
22234 * sdbout.c: Likewise.
22235 * sel-sched-dump.c: Likewise.
22236 * sel-sched-ir.c: Likewise.
22237 * sel-sched.c: Likewise.
22238 * sese.c: Likewise.
22239 * shrink-wrap.c: Likewise.
22240 * simplify-rtx.c: Likewise.
22241 * stack-ptr-mod.c: Likewise.
22242 * stmt.c: Likewise.
22243 * stor-layout.c: Likewise.
22244 * store-motion.c: Likewise.
22245 * stringpool.c: Likewise.
22246 * symtab.c: Likewise.
22247 * target-globals.c: Likewise.
22248 * targhooks.c: Likewise.
22249 * toplev.c: Likewise.
22250 * tracer.c: Likewise.
22251 * trans-mem.c: Likewise.
22252 * tree-affine.c: Likewise.
22253 * tree-browser.c: Likewise.
22254 * tree-call-cdce.c: Likewise.
22255 * tree-cfg.c: Likewise.
22256 * tree-cfgcleanup.c: Likewise.
22257 * tree-chkp-opt.c: Likewise.
22258 * tree-chkp.c: Likewise.
22259 * tree-chrec.c: Likewise.
22260 * tree-complex.c: Likewise.
22261 * tree-data-ref.c: Likewise.
22262 * tree-dfa.c: Likewise.
22263 * tree-diagnostic.c: Likewise.
22264 * tree-dump.c: Likewise.
22265 * tree-eh.c: Likewise.
22266 * tree-emutls.c: Likewise.
22267 * tree-if-conv.c: Likewise.
22268 * tree-inline.c: Likewise.
22269 * tree-into-ssa.c: Likewise.
22270 * tree-iterator.c: Likewise.
22271 * tree-loop-distribution.c: Likewise.
22272 * tree-nested.c: Likewise.
22273 * tree-nrv.c: Likewise.
22274 * tree-object-size.c: Likewise.
22275 * tree-outof-ssa.c: Likewise.
22276 * tree-parloops.c: Likewise.
22277 * tree-phinodes.c: Likewise.
22278 * tree-predcom.c: Likewise.
22279 * tree-pretty-print.c: Likewise.
22280 * tree-profile.c: Likewise.
22281 * tree-scalar-evolution.c: Likewise.
22282 * tree-sra.c: Likewise.
22283 * tree-ssa-address.c: Likewise.
22284 * tree-ssa-alias.c: Likewise.
22285 * tree-ssa-ccp.c: Likewise.
22286 * tree-ssa-coalesce.c: Likewise.
22287 * tree-ssa-copy.c: Likewise.
22288 * tree-ssa-copyrename.c: Likewise.
22289 * tree-ssa-dce.c: Likewise.
22290 * tree-ssa-dom.c: Likewise.
22291 * tree-ssa-dse.c: Likewise.
22292 * tree-ssa-forwprop.c: Likewise.
22293 * tree-ssa-ifcombine.c: Likewise.
22294 * tree-ssa-live.c: Likewise.
22295 * tree-ssa-loop-ch.c: Likewise.
22296 * tree-ssa-loop-im.c: Likewise.
22297 * tree-ssa-loop-ivcanon.c: Likewise.
22298 * tree-ssa-loop-ivopts.c: Likewise.
22299 * tree-ssa-loop-manip.c: Likewise.
22300 * tree-ssa-loop-niter.c: Likewise.
22301 * tree-ssa-loop-prefetch.c: Likewise.
22302 * tree-ssa-loop-unswitch.c: Likewise.
22303 * tree-ssa-loop.c: Likewise.
22304 * tree-ssa-math-opts.c: Likewise.
22305 * tree-ssa-operands.c: Likewise.
22306 * tree-ssa-phiopt.c: Likewise.
22307 * tree-ssa-phiprop.c: Likewise.
22308 * tree-ssa-pre.c: Likewise.
22309 * tree-ssa-propagate.c: Likewise.
22310 * tree-ssa-reassoc.c: Likewise.
22311 * tree-ssa-sccvn.c: Likewise.
22312 * tree-ssa-scopedtables.c: Likewise.
22313 * tree-ssa-sink.c: Likewise.
22314 * tree-ssa-strlen.c: Likewise.
22315 * tree-ssa-structalias.c: Likewise.
22316 * tree-ssa-tail-merge.c: Likewise.
22317 * tree-ssa-ter.c: Likewise.
22318 * tree-ssa-threadedge.c: Likewise.
22319 * tree-ssa-threadupdate.c: Likewise.
22320 * tree-ssa-uncprop.c: Likewise.
22321 * tree-ssa-uninit.c: Likewise.
22322 * tree-ssa.c: Likewise.
22323 * tree-ssanames.c: Likewise.
22324 * tree-stdarg.c: Likewise.
22325 * tree-streamer-in.c: Likewise.
22326 * tree-streamer-out.c: Likewise.
22327 * tree-streamer.c: Likewise.
22328 * tree-switch-conversion.c: Likewise.
22329 * tree-tailcall.c: Likewise.
22330 * tree-vect-data-refs.c: Likewise.
22331 * tree-vect-generic.c: Likewise.
22332 * tree-vect-loop-manip.c: Likewise.
22333 * tree-vect-loop.c: Likewise.
22334 * tree-vect-patterns.c: Likewise.
22335 * tree-vect-slp.c: Likewise.
22336 * tree-vect-stmts.c: Likewise.
22337 * tree-vectorizer.c: Likewise.
22338 * tree-vrp.c: Likewise.
22339 * tree.c: Likewise.
22340 * tsan.c: Likewise.
22341 * ubsan.c: Likewise.
22342 * valtrack.c: Likewise.
22343 * value-prof.c: Likewise.
22344 * var-tracking.c: Likewise.
22345 * varasm.c: Likewise.
22346 * varpool.c: Likewise.
22347 * vmsdbgout.c: Likewise.
22348 * vtable-verify.c: Likewise.
22349 * web.c: Likewise.
22350 * wide-int.cc: Likewise.
22351 * xcoffout.c: Likewise.
22352 * config/aarch64/aarch64-builtins.c: Likewise.
22353 * config/aarch64/aarch64.c: Likewise.
22354 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22355 * config/alpha/alpha.c: Likewise.
22356 * config/arc/arc.c: Likewise.
22357 * config/arm/aarch-common.c: Likewise.
22358 * config/arm/arm-builtins.c: Likewise.
22359 * config/arm/arm-c.c: Likewise.
22360 * config/arm/arm.c: Likewise.
22361 * config/avr/avr-c.c: Likewise.
22362 * config/avr/avr-log.c: Likewise.
22363 * config/avr/avr.c: Likewise.
22364 * config/bfin/bfin.c: Likewise.
22365 * config/c6x/c6x.c: Likewise.
22366 * config/cr16/cr16.c: Likewise.
22367 * config/cris/cris.c: Likewise.
22368 * config/darwin-c.c: Likewise.
22369 * config/darwin.c: Likewise.
22370 * config/epiphany/epiphany.c: Likewise.
22371 * config/epiphany/mode-switch-use.c: Likewise.
22372 * config/epiphany/resolve-sw-modes.c: Likewise.
22373 * config/fr30/fr30.c: Likewise.
22374 * config/frv/frv.c: Likewise.
22375 * config/ft32/ft32.c: Likewise.
22376 * config/h8300/h8300.c: Likewise.
22377 * config/i386/i386-c.c: Likewise.
22378 * config/i386/i386.c: Likewise.
22379 * config/i386/msformat-c.c: Likewise.
22380 * config/i386/winnt-cxx.c: Likewise.
22381 * config/i386/winnt-stubs.c: Likewise.
22382 * config/i386/winnt.c: Likewise.
22383 * config/ia64/ia64-c.c: Likewise.
22384 * config/ia64/ia64.c: Likewise.
22385 * config/iq2000/iq2000.c: Likewise.
22386 * config/lm32/lm32.c: Likewise.
22387 * config/m32c/m32c-pragma.c: Likewise.
22388 * config/m32c/m32c.c: Likewise.
22389 * config/m32r/m32r.c: Likewise.
22390 * config/m68k/m68k.c: Likewise.
22391 * config/mcore/mcore.c: Likewise.
22392 * config/mep/mep-pragma.c: Likewise.
22393 * config/mep/mep.c: Likewise.
22394 * config/microblaze/microblaze-c.c: Likewise.
22395 * config/microblaze/microblaze.c: Likewise.
22396 * config/mips/mips.c: Likewise.
22397 * config/mmix/mmix.c: Likewise.
22398 * config/mn10300/mn10300.c: Likewise.
22399 * config/moxie/moxie.c: Likewise.
22400 * config/msp430/msp430-c.c: Likewise.
22401 * config/msp430/msp430.c: Likewise.
22402 * config/nds32/nds32-cost.c: Likewise.
22403 * config/nds32/nds32-fp-as-gp.c: Likewise.
22404 * config/nds32/nds32-intrinsic.c: Likewise.
22405 * config/nds32/nds32-isr.c: Likewise.
22406 * config/nds32/nds32-md-auxiliary.c: Likewise.
22407 * config/nds32/nds32-memory-manipulation.c: Likewise.
22408 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22409 * config/nds32/nds32-predicates.c: Likewise.
22410 * config/nds32/nds32.c: Likewise.
22411 * config/nios2/nios2.c: Likewise.
22412 * config/nvptx/nvptx.c: Likewise.
22413 * config/pa/pa.c: Likewise.
22414 * config/pdp11/pdp11.c: Likewise.
22415 * config/rl78/rl78-c.c: Likewise.
22416 * config/rl78/rl78.c: Likewise.
22417 * config/rs6000/rs6000-c.c: Likewise.
22418 * config/rs6000/rs6000.c: Likewise.
22419 * config/rx/rx.c: Likewise.
22420 * config/s390/s390-c.c: Likewise.
22421 * config/s390/s390.c: Likewise.
22422 * config/sh/sh-c.c: Likewise.
22423 * config/sh/sh-mem.cc: Likewise.
22424 * config/sh/sh.c: Likewise.
22425 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22426 * config/sh/sh_treg_combine.cc: Likewise.
22427 * config/sol2-c.c: Likewise.
22428 * config/sol2-cxx.c: Likewise.
22429 * config/sol2-stubs.c: Likewise.
22430 * config/sol2.c: Likewise.
22431 * config/sparc/sparc-c.c: Likewise.
22432 * config/sparc/sparc.c: Likewise.
22433 * config/spu/spu-c.c: Likewise.
22434 * config/spu/spu.c: Likewise.
22435 * config/stormy16/stormy16.c: Likewise.
22436 * config/tilegx/mul-tables.c: Likewise.
22437 * config/tilegx/tilegx-c.c: Likewise.
22438 * config/tilegx/tilegx.c: Likewise.
22439 * config/tilepro/mul-tables.c: Likewise.
22440 * config/tilepro/tilepro-c.c: Likewise.
22441 * config/tilepro/tilepro.c: Likewise.
22442 * config/v850/v850-c.c: Likewise.
22443 * config/v850/v850.c: Likewise.
22444 * config/vax/vax.c: Likewise.
22445 * config/visium/visium.c: Likewise.
22446 * config/vms/vms-c.c: Likewise.
22447 * config/vms/vms.c: Likewise.
22448 * config/vxworks.c: Likewise.
22449 * config/xtensa/xtensa.c: Likewise.
22450
22451 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
22452
22453 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
22454 Remove operand constraints. Change operand 2 predicate to
22455 nonmemory operand. Limit const_int values to mode bitsize. Only
22456 allow const_int values less than 32 when optimizing for size.
22457 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
22458 Remove operand constraints.
22459 (*bt<mode>): Use SImode for const_int values less than 32.
22460 (regmode): Remove mode attribute.
22461
22462 2015-07-07 Anatoly Sokolov <aesok@post.ru>
22463
22464 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22465 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
22466 moxie_legitimate_address_p): New functions.
22467 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22468
22469 2015-07-07 Tom de Vries <tom@codesourcery.com>
22470
22471 PR tree-optimization/66642
22472 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
22473 header comment. Rename split_edge variable to edge_at_split. Split
22474 exit edge to create new loop exit bb. Insert loop exit phis in new
22475 loop exit bb.
22476
22477 2015-07-07 Tom de Vries <tom@codesourcery.com>
22478
22479 * tree-cfg.c (get_virtual_phi): New function.
22480 * tree-cfg.h (get_virtual_phi): Declare.
22481 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
22482 (rewrite_virtuals_into_loop_closed_ssa): New function.
22483 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
22484 Declare.
22485 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
22486 (transform_to_exit_first_loop_alt): Use
22487 rewrite_virtuals_into_loop_closed_ssa.
22488
22489 2015-07-07 Richard Biener <rguenther@suse.de>
22490
22491 * fold-const.c (fold_binary_loc): Move
22492 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
22493 * match.pd: ... here.
22494 Add (X * C1) % C2 -> 0 simplification pattern derived from
22495 extract_muldiv_1.
22496
22497 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
22498
22499 PR target/66780
22500 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
22501 change for target/65249.
22502
22503 2015-07-07 Paulo Matos <pmatos@broadcom.com>
22504
22505 * symtab.c (address_matters_1): Fix typo in comment above.
22506 (can_increase_alignment_p): Likewise.
22507
22508 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22509
22510 * function.c (free_after_compilation): Clear PROP_cfg in
22511 f->curr_properties.
22512
22513 2015-07-07 Richard Biener <rguenther@suse.de>
22514
22515 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
22516 add which use to.
22517 (add_control_edge): Remove excessive vertical space in dumping.
22518 (process_ssa_edge_worklist): Simulate at most one statement and
22519 return whether we did. Do not simulate PHIs if they are in a
22520 BB not yet simulated.
22521 (ssa_propagate): Adjust to always drain the BB worklist whenever
22522 a BB is available there, likewise the VARYING edges list before
22523 the interesting edge list.
22524
22525 2015-07-07 Christian Bruel <christian.bruel@st.com>
22526
22527 PR target/52144
22528 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
22529
22530 2015-07-07 Richard Biener <rguenther@suse.de>
22531
22532 PR middle-end/66739
22533 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
22534 A - B.
22535
22536 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22537
22538 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
22539 modes for operands 0 and 3. Use SImode for operands 2 and 3.
22540 Copy operand 0 to a temporary if !ext_register_operand. Remove
22541 ancient extract_bit_field workaround.
22542 (insv<mode>_1): Rename from mov<mode>_insv_1.
22543 (*insvqi): Rename from *movqi_insv_2.
22544 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
22545 for renamed insvsi_1.
22546 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
22547
22548 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
22549
22550 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
22551 call to nvptx_reorg_subreg.
22552
22553 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
22554
22555 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
22556 * graphite-dependencies.c, graphite-interchange.c,
22557 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
22558 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
22559 Likewise.
22560
22561 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
22562
22563 * match.pd: Remove element_mode inside HONOR_*.
22564 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
22565 (~X | X -> -1, ~X ^ X -> -1): Merge.
22566 * tree.c (build_each_one_cst): New function.
22567 * tree.h (build_each_one_cst): Likewise.
22568
22569 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22570
22571 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22572 PROCESSOR_IAMCU.
22573
22574 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
22575
22576 * config.gcc <mips*-*-*>: Add fused-madd.opt.
22577 * config/mips/mips.opt (mfused-madd): Remove.
22578 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
22579 * config/mips/mips.h (TARGET_MIPS8000): New.
22580 (ISA_HAS_FP_MADD4_MSUB4): Remove.
22581 (ISA_HAS_FP_MADDF_MSUBF): Remove.
22582 (ISA_HAS_FP_MADD3_MSUB3): Remove.
22583 (ISA_HAS_NMADD4_NMSUB4): Remove.
22584 (ISA_HAS_NMADD3_NMSUB3): Remove.
22585 (ISA_HAS_FUSED_MADD4): New.
22586 (ISA_HAS_UNFUSED_MADD4): New.
22587 (ISA_HAS_FUSED_MADDF): New.
22588 (ISA_HAS_FUSED_MADD3): New.
22589 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
22590 (*fma<mode>4_madd3) New.
22591 (*fma<mode>4_madd4) New.
22592 (*fma<mode>4_maddf) New.
22593 (fms<mode>4) New.
22594 (*fms<mode>4_msub3) New.
22595 (*fms<mode>4_msub4) New.
22596 (fnma<mode>4) New.
22597 (*fnma<mode>4_nmadd3) New.
22598 (*fnma<mode>4_nmadd4) New.
22599 (fnms<mode>4) New.
22600 (*fnms<mode>4_nmsub3) New.
22601 (*fnms<mode>4_nmsub4) New.
22602 (*madd4<mode>) Modify to be unfused only.
22603 (*msub4<mode>) Modify to be unfused only.
22604 (*nmadd4<mode>) Modify to be unfused only.
22605 (*nmsub4<mode>) Modify to be unfused only.
22606 (*madd3<mode>) Remove.
22607 (*msub3<mode>) Remove.
22608 (*nmadd3<mode>) Remove.
22609 (*nmsub3<mode>) Remove.
22610 (*nmadd3<mode>_fastmath) Remove.
22611 (*nmsub3<mode>_fastmath) Remove.
22612 (*nmadd4<mode>_fastmath) Update condition.
22613 (*nmsub4<mode>_fastmath) Update condition.
22614
22615 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22616
22617 PR target/65956
22618 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
22619 alignment attribute, exploring one level down for records and arrays.
22620
22621 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22622
22623 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
22624 modes for operands 0 and 1. Use SImode for operands 2 and 3.
22625 Copy operand 1 to a temporary if !ext_register_operand. Remove
22626 ancient extract_bit_field workaround.
22627 (*extv<mode>): Rename from *mov<mode>_extv_1.
22628 (*extvqi): Rename from *movqi_extv_1.
22629 (extzv<mode>): Rename from extzv. Use SWI248 modes for
22630 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
22631 to a temporary if !ext_register_operand. Remove ancient
22632 extract_bit_field workaround.
22633 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
22634 (*extzvqi): Rename from *movqi_extzv_2.
22635 (*testqi_ext_3): Remove modes from const_int_operand predicated
22636 operands. Add "n" constraint.
22637 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
22638 operand. Add "J" constraint.
22639 (*btsq, *btrq, *btcq peephole2s): Remove mode from
22640 const_0_to_63 predicated operand.
22641 (regmode): New insn attribute.
22642 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
22643 to nonmemory_operand. Use regmode insn attribute.
22644 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
22645 (*jcc_bt<mode>_mask): Remove mode from operand 3.
22646 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
22647 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
22648 operands. Use "N" constraint instead of "n".
22649
22650 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22651
22652 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
22653
22654 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22655
22656 PR target/66749
22657 * config/i386/i386.c (iamcu_cost): New.
22658 (m_IAMCU): Likewise.
22659 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
22660 (processor_target_table): Add an entry for "iamcu".
22661 (processor_alias_table): Likewise.
22662 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
22663 (ix86_adjust_cost): Likewise.
22664 (ia32_multipass_dfa_lookahead): Likewise.
22665 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
22666 * config/i386/x86-tune.def: Updated for m_IAMCU.
22667
22668 2015-07-06 Richard Biener <rguenther@suse.de>
22669
22670 PR tree-optimization/66772
22671 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
22672 values are available in the PHI node BB when there are
22673 still unexecutable edges.
22674
22675 2015-07-06 Richard Biener <rguenther@suse.de>
22676
22677 PR tree-optimization/66767
22678 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
22679 Make sure to build the alignment test on a SSA name without
22680 final alignment info valid only if the alignment test
22681 evaluates to true.
22682
22683 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
22684
22685 PR target/66620
22686 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
22687 loop start when inserting LSETUP.
22688
22689 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22690
22691 PR target/53383
22692 * config/i386/i386.c (ix86_option_override_internal): Allow
22693 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
22694
22695 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22696
22697 * read-md.c (decimal_string): Rename to ...
22698 (md_decimal_string): ... this.
22699 (handle_enum): Reflect this.
22700
22701 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
22702
22703 PR target/66731
22704 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
22705
22706 2015-07-06 Richard Biener <rguenther@suse.de>
22707
22708 PR middle-end/66759
22709 * match.pd: Add missing constraint of y to REAL_CST in
22710 REAL_CST - x CMP y to y - CST CMP x simplification.
22711
22712 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
22713
22714 PR tree-optimization/66757
22715 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
22716
22717 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
22718 Sandra Loosemore <sandra@codesourcery.com>
22719
22720 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
22721 Delete extern declaration.
22722 (gprel_constant_p): Add extern declaration.
22723 * config/nios2/constraints.md ("S"): Use gprel_constant_p
22724 instead of nios2_symbol_ref_in_small_data_p.
22725 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
22726 (nios2_symbol_ref_in_small_data_p): Make static.
22727 (gprel_constant_p): Make non-static.
22728
22729 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
22730
22731 * doc/fragments.texi (Target Fragment): Convert debian.org
22732 link to use https.
22733 * doc/install.texi (Configuration): Ditto.
22734
22735 2015-07-05 Jakub Jelinek <jakub@redhat.com>
22736
22737 PR tree-optimization/66718
22738 * tree-vect-stmts.c (vectorizable_call): Replace uses of
22739 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
22740
22741 PR tree-optimization/66718
22742 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
22743 vectorizable_load, vectorizable_condition): Move vectype,
22744 nunits, ncopies computation after checking what kind of statement
22745 stmt is.
22746
22747 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22748
22749 * target-insns.def (extv, extzv, insv): New targetm instruction
22750 patterns.
22751 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
22752 interface.
22753 * recog.c (simplify_while_replacing): Likewise.
22754
22755 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22756
22757 * target-insns.def (doloop_begin, doloop_end): New targetm
22758 instruction patterns.
22759 * loop-init.c: Include target.h.
22760 (pass_loop2::gate): Use the new targetm patterns instead of
22761 HAVE_*/gen_* interface.
22762 (pass_rtl_doloop::gate): Likewise.
22763 (pass_rtl_doloop::execute): Remove preprocessor condition.
22764 * hw-doloop.c: Build unconditionally.
22765 * loop-doloop.c: Likewise.
22766 (doloop_optimize): Use the new targetm patterns instead of
22767 HAVE_*/gen_* interface.
22768 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
22769 * modulo-sched.c (doloop_register_get): Likewise.
22770
22771 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22772
22773 * target-insns.def (clear_cache): New targetm instruction pattern.
22774 * builtins.c (expand_builtin___clear_cache): Use it instead of
22775 HAVE_*/gen_* interface.
22776
22777 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22778
22779 * target-insns.def (allocate_stack, check_stack, probe_stack)
22780 (probe_stack_address, split_stack_prologue, split_stack_space_check):
22781 New targetm instruction patterns.
22782 * explow.c (allocate_dynamic_stack_space): Use them instead of
22783 HAVE_*/gen_* interface.
22784 (emit_stack_probe): Likewise.
22785 (probe_stack_range): Likewise.
22786 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22787
22788 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22789
22790 * target-insns.def (stack_protect_set, stack_protect_test): New
22791 targetm instruction patterns.
22792 * cfgexpand.c (stack_protect_prologue): Use them instead of
22793 HAVE_*/gen_* interface.
22794 * function.c (stack_protect_epilogue): Likewise.
22795
22796 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22797
22798 * expr.h (gen_move_insn_uncast): Delete.
22799 * expr.c (gen_move_insn_uncast): Delete.
22800
22801 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22802
22803 * target-insns.def (restore_stack_block, restore_stack_function)
22804 (restore_stack_nonlocal, save_stack_block, save_stack_function)
22805 (save_stack_nonlocal): New targetm instruction patterns.
22806 * builtins.c (expand_builtin_apply): Use them instead of
22807 HAVE_*/gen_* interface.
22808 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
22809
22810 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22811
22812 * target-insns.def (trap): New targetm instruction pattern.
22813 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
22814 interface.
22815 * explow.c (allocate_dynamic_stack_space): Likewise.
22816 * ifcvt.c (find_if_header): Likewise.
22817
22818 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22819
22820 * target-insns.def (prefetch): New targetm instruction pattern.
22821 * tree-ssa-loop-prefetch.c: Include targeth.
22822 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
22823 of HAVE_*/gen_* interface.
22824 * builtins.c (expand_builtin_prefetch): Likewise.
22825 * toplev.c (process_options): Likewise.
22826
22827 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22828
22829 * target-insns.def (untyped_call, untyped_return): New targetm
22830 instruction patterns.
22831 * builtins.c (expand_builtin_apply): Use them instead of
22832 HAVE_*/gen_* interface.
22833 (result_vector): Define unconditionally.
22834
22835 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22836
22837 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
22838 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
22839 (nonlocal_goto_receiver): New targetm instruction patterns.
22840 * builtins.c (expand_builtin_setjmp_setup): Use them instead
22841 of HAVE_*/gen_* interface.
22842 (expand_builtin_setjmp_receiver): Likewise.
22843 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
22844 * except.c (expand_dw2_landing_pad_for_region): Likewise.
22845
22846 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22847
22848 * target.def: Add code_for_* hooks.
22849 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
22850 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
22851 * target-insns.def (casesi, tablejump): New targetm instruction
22852 patterns.
22853 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
22854 (do_tablejump): Likewise.
22855 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
22856 (expand_sjlj_dispatch_table): Likewise.
22857 * targhooks.c (default_case_values_threshold): Likewise.
22858
22859 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
22860
22861 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
22862 Use rtx_insn * instead of rtx.
22863 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
22864 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
22865 (nios2_call_tls_get_addr): Likewise.
22866 (nios2_emit_expensive_div): Likewise.
22867 (nios2_emit_move_sequence): Change return type to bool.
22868 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
22869 Change return type to bool.
22870
22871 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
22872
22873 PR target/66747
22874 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
22875
22876 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
22877
22878 PR target/66114
22879 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
22880 of register_operand. Remove constraint.
22881
22882 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
22883
22884 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
22885 the first argument.
22886
22887 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
22888
22889 * attribs.c (decl_attributes): Guard inform with the return value
22890 of the preceding warning.
22891
22892 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22893
22894 * doc/invoke.texi (moverride): Move to correct section.
22895
22896 2015-07-03 Richard Biener <rguenther@suse.de>
22897
22898 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
22899 Copy from tree.c
22900 (dt_operand::gen_gimple_expr): After valueizing operands
22901 re-canonicalize operand order for commutative tree codes.
22902
22903 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
22904
22905 PR target/66746.
22906 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
22907 is defined.
22908 (__crc32w): Likewise.
22909 (__crc32d): Likewise.
22910 (__rdpmc): Likewise.
22911 (__rdtscp): Likewise.
22912 (_rdpmc): Likewise.
22913 (_rdtscp): Likewise.
22914 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
22915 is defined.
22916
22917 2015-07-03 Richard Biener <rguenther@suse.de>
22918
22919 * fold-const.c (fold_mathfn_compare): Remove.
22920 (fold_inf_compare): Likewise.
22921 (fold_comparison): Move floating point comparison simplifications...
22922 * match.pd: ... to patterns here. Introduce simple_comparisons
22923 operator list and use it for patterns formerly in fold_comparison.
22924
22925 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
22926
22927 PR tree-optimization/66119
22928 * toplev.c (process_options): Don't set up default values for
22929 the sra_max_scalarization_size_{speed,size} parameters.
22930 * tree-sra (analyze_all_variable_accesses): If no values
22931 have been set for the sra_max_scalarization_size_{speed,size}
22932 parameters, call get_move_ratio to get target defaults.
22933
22934 2015-07-03 Richard Biener <rguenther@suse.de>
22935
22936 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
22937 * match.pd: ... here.
22938
22939 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
22940
22941 PR target/37072
22942 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
22943 is not actually the default on FreeBSD.
22944
22945 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22946
22947 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
22948 definition.
22949 (CMPGE_8HI): Likewise.
22950 (CMPGE_4SI): Likewise.
22951 (CMPGE_2DI): Likewise.
22952 (CMPGE_U16QI): Likewise.
22953 (CMPGE_U8HI): Likewise.
22954 (CMPGE_U4SI): Likewise.
22955 (CMPGE_U2DI): Likewise.
22956 (CMPLE_16QI): Likewise.
22957 (CMPLE_8HI): Likewise.
22958 (CMPLE_4SI): Likewise.
22959 (CMPLE_2DI): Likewise.
22960 (CMPLE_U16QI): Likewise.
22961 (CMPLE_U8HI): Likewise.
22962 (CMPLE_U4SI): Likewise.
22963 (CMPLE_U2DI): Likewise.
22964 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22965 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
22966 ALTIVEC_BUILTIN_VEC_CMPLE.
22967 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
22968 floating-point vector modes.
22969 (vector_nlt<mode>): New define_expand.
22970 (vector_nltu<mode>): Likewise.
22971 (vector_ngt<mode>): Likewise.
22972 (vector_ngtu<mode>): Likewise.
22973
22974 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
22975
22976 PR rtl-optimization/66706
22977 * combine.c (make_compound_operation): If an AND of SUBREG of
22978 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
22979
22980 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
22981
22982 * tree-pass.h (make_pass_ch_vect): New.
22983 * passes.def: Add pass_ch_vect just before pass_if_conversion.
22984
22985 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
22986 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
22987 make_pass_ch_vect): New.
22988 (pass_ch): Extend ch_base.
22989
22990 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
22991 (ch_base::copy_headers): ...here.
22992
22993 2015-07-02 Richard Biener <rguenther@suse.de>
22994
22995 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
22996 * fold-const.c (get_pointer_modulus_and_residue): Remove.
22997 (fold_binary_loc): Implement (T)ptr & CST in terms of
22998 get_pointer_alignment_1.
22999 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23000 Make sure to build the alignment test on a SSA name without
23001 final alignment info valid only after the prologue.
23002
23003 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
23004
23005 * config/cris/cris.md ("epilogue"): Remove condition.
23006 ("prologue"): Ditto.
23007
23008 2015-07-02 Richard Biener <rguenther@suse.de>
23009
23010 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23011 parameter to record a condition that is false.
23012 (record_conditions): When recording an extra NE_EXPR that is
23013 true also record a EQ_EXPR that is false.
23014
23015 2015-07-02 Bin Cheng <bin.cheng@arm.com>
23016
23017 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23018 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23019 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
23020 (set_iv, find_interesting_uses_address, add_candidate_1): New
23021 argument to alloc_iv.
23022 (find_interesting_uses_op, find_interesting_uses_cond): Don't
23023 duplicate struct iv.
23024 (free_loop_data): Don't free struct iv explicitly.
23025 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23026
23027 2015-07-01 DJ Delorie <dj@redhat.com>
23028
23029 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23030 (LIB_SPEC): Add.
23031 (SUPPORTS_DISCRIMINATOR): Define.
23032
23033 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23034
23035 PR bootstrap/66685
23036 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23037 there are no CALLs in the same pattern.
23038
23039 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
23040
23041 PR rtl-optimization/61047
23042 * rtlanal.c (get_initial_register_offset): New function.
23043 (rtx_addr_can_trap_p_1): Check offsets of stack references.
23044
23045 2015-07-01 Richard Biener <rguenther@suse.de>
23046
23047 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23048 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23049 ~X CMP C -> X CMP' ~C to ...
23050 * match.pd: ... patterns here.
23051
23052 2015-07-01 Nick Clifton <nickc@redhat.com>
23053
23054 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23055 a 16-bit value into a 20-bit memory slot.
23056
23057 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23058
23059 * doc/sourcebuild.texi (AArch64-specific attributes): Document
23060 "aarch64_tiny", "aarch64_small", "aarch64_large",
23061 "aarch64_little_endian", "aarch64_big_endian".
23062
23063 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23064
23065 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23066 Document "aarch64_small_fpic".
23067
23068 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23069
23070 * configure.ac: Add check for aarch64 assembler -fpic relocation
23071 modifier support.
23072 * configure: Regenerate.
23073 * config.in: Regenerate.
23074 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23075 to -fPIC if not support of -fpic relocation modifier in assembler.
23076
23077 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23078
23079 PR bootstrap/66685
23080 * rtl.c (classify_insn): Handle returns in PARALLELs.
23081
23082 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
23083
23084 PR middle-end/66633
23085 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23086 to true if the function is nested and if not optimizing.
23087 (convert_local_omp_clauses): Initialize need_frame to true if the
23088 function contains nested functions and if not optimizing.
23089
23090 2015-07-01 Richard Biener <rguenther@suse.de>
23091
23092 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23093 (X & Y) ^ Y -> ~X & Y transforms to ...
23094 * match.pd: ... here.
23095
23096 2015-07-01 Richard Biener <rguenther@suse.de>
23097
23098 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23099 of converts to avoid uninteresting noise from the conversion
23100 simplifying patterns.
23101
23102 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
23103
23104 * config/c6x/c6x.c (try_rename_operands): Do not depend on
23105 gcc_assert evaluating its argument for side-effect.
23106
23107 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
23108
23109 PR target/64833
23110 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23111 flag_pic is set.
23112
23113 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23114
23115 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23116 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23117 (hash_scc): Add this_ref_p and ref_p parameters and pass them
23118 to the inner DFS walk.
23119
23120 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23121
23122 * target-insns.def (jump): New targetm instruction pattern.
23123 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23124 instead of gen_jump.
23125 (fix_up_crossing_landing_pad): Likewise.
23126 (add_labels_and_missing_jumps): Likewise.
23127 (fix_crossing_conditional_branches): Likewise.
23128 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23129 (force_nonfallthru_and_redirect): Likewise.
23130 * cse.c (cse_insn): Likewise.
23131 * expmed.c (expand_divmod): Likewise.
23132 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23133 * haifa-sched.c (init_before_recovery): Likewise.
23134 (sched_create_recovery_edges): Likewise.
23135 * ifcvt.c (find_cond_trap): Likewise.
23136 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23137 (expand_float, expand_fix): Likewise.
23138 * stmt.c (emit_jump): Likewise.
23139
23140 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23141
23142 * defaults.h (HAVE_load_multiple, gen_load_multiple)
23143 (HAVE_store_multiple, gen_store_multiple): Delete.
23144 * target-insns.def (load_multiple, store_multiple): New targetm
23145 instruction patterns.
23146 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23147 of HAVE_*/gen_* interface.
23148
23149 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23150
23151 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23152 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23153 (gen_mem_signal_fence): Delete.
23154 * target-insns.def (mem_signal_fence, mem_thread_fence)
23155 (memory_barrier): New targetm instruction patterns.
23156 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23157 interface.
23158 (expand_mem_signal_fence): Likewise.
23159
23160 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23161
23162 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23163 * target-insns.def (epilogue, prologue, sibcall_prologue): New
23164 targetm instruction patterns.
23165 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23166 interface.
23167 * calls.c (expand_call): Likewise.
23168 * cfgrtl.c (cfg_layout_finalize): Likewise.
23169 * df-scan.c (df_get_entry_block_def_set): Likewise.
23170 (df_get_exit_block_use_set): Likewise.
23171 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23172 * final.c (final_start_function): Likewise.
23173 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23174 (reposition_prologue_and_epilogue_notes): Likewise.
23175 * reorg.c (find_end_label): Likewise.
23176 * toplev.c (process_options): Likewise.
23177
23178 2015-06-30 David Malcolm <dmalcolm@redhat.com>
23179
23180 * typed-splay-tree.h: New file.
23181
23182 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
23183
23184 PR debug/66691
23185 * lra-int.h (lra_substitute_pseudo): Add a parameter.
23186 (lra_substitute_pseudo_within_insn): Ditto.
23187 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
23188 of constant.
23189 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
23190 to lra_substitute_pseudo.
23191 * lra-lives.c (process_bb_lives): Add an argument to
23192 lra_substitute_pseudo_within_insn call.
23193 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23194 argument to lra_substitute_pseudo and
23195 lra_substitute_pseudo_within_insn calls.
23196 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23197
23198 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23199
23200 * configure: Regenerated.
23201
23202 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23203
23204 * config.gcc: Support i[34567]86-*-elfiamcu target.
23205 * config/i386/iamcu.h: New.
23206 * config/i386/i386.opt: Add -miamcu.
23207 * doc/invoke.texi: Document -miamcu.
23208 * common/config/i386/i386-common.c (ix86_handle_option): Turn
23209 off x87/MMX/SSE/AVX codegen for -miamcu.
23210 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23211 __iamcu/__iamcu__ for -miamcu.
23212 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23213 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23214 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23215 * config/i386/i386.c (ix86_option_override_internal): Ignore and
23216 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
23217 MCU by default. Default long double to 64-bit for Intel MCU.
23218 Turn on -freg-struct-return for Intel MCU. Issue an error when
23219 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23220 AVX is turned on.
23221 (function_arg_advance_32): Pass value whose size is no larger
23222 than 8 bytes in registers for Intel MCU.
23223 (function_arg_32): Likewise.
23224 (ix86_return_in_memory): Return value whose size is no larger
23225 than 8 bytes in registers for Intel MCU.
23226 (iamcu_alignment): New function.
23227 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23228 true.
23229 (ix86_local_alignment): Don't increase alignment for Intel MCU.
23230 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23231 true.
23232
23233 2015-06-30 Marek Polacek <polacek@redhat.com>
23234
23235 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
23236 both operands of the resulting expression.
23237
23238 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
23239 the final expression with the operand's type and then convert
23240 it to the type of the expression.
23241
23242 2015-06-30 Richard Biener <rguenther@suse.de>
23243
23244 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23245 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23246 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23247 * match.pd: ... to patterns here.
23248
23249 2015-06-30 Richard Biener <rguenther@suse.de>
23250
23251 PR tree-optimization/66704
23252 * tree-vect-data-refs.c (vect_setup_realignment): Use
23253 make_ssa_name for non-SSA name source.
23254
23255 2015-06-30 Jakub Jelinek <jakub@redhat.com>
23256
23257 PR middle-end/66702
23258 * omp-low.c (simd_clone_adjust): Handle addressable linear
23259 or uniform parameters or non-gimple type uniform parameters.
23260
23261 2015-06-30 Richard Biener <rguenther@suse.de>
23262
23263 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23264 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23265 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23266 * match.pd: ... here.
23267 Add a few cases of A - B -> A + (-B) when B "easily" negates.
23268 Move (x & y) | x -> x and friends before
23269 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23270
23271 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23272
23273 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23274 -mfix-ut699 is not specified.
23275 (leon3_load): Rename into...
23276 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
23277 is specified.
23278
23279 2015-06-30 Marek Polacek <polacek@redhat.com>
23280
23281 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23282 * match.pd: ... here.
23283
23284 2015-06-30 Richard Biener <rguenther@suse.de>
23285
23286 * target-insns.def (canonicalize_funcptr_for_compare): Add.
23287 * fold-const.c (build_range_check): Replace uses of
23288 HAVE_canonicalize_funcptr_for_compare.
23289 (fold_widened_comparison): Likewise.
23290 (fold_sign_changed_comparison): Likewise.
23291 * dojump.c: Include "target.h".
23292 (do_compare_and_jump): Replace uses of
23293 HAVE_canonicalize_funcptr_for_compare and
23294 gen_canonicalize_funcptr_for_compare.
23295 * expr.c (do_store_flag): Likewise.
23296
23297 2015-06-30 Tom de Vries <tom@codesourcery.com>
23298
23299 PR tree-optimization/66652
23300 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23301 max_loop_iterations to determine if nit + 1 overflows.
23302
23303 2015-06-30 Richard Biener <rguenther@suse.de>
23304
23305 * tree-vrp.c (register_edge_assert_for_2): Also register
23306 asserts for dominating conversion results.
23307
23308 2015-06-30 Bin Cheng <bin.cheng@arm.com>
23309
23310 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23311 field in struct iv.
23312
23313 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
23314
23315 PR target/66509
23316 * configure.ac: Fix filds and fildq test for 64-bit.
23317 * configure: Regenerated.
23318
23319 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
23320
23321 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23322 (nvptx_reorg): Here. Keep the non-subreg pieces.
23323
23324 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
23325
23326 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23327 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23328
23329 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
23330
23331 * config/i386/i386.md (*jcc_1): Use %! in asm template.
23332 Set attribute "length_nobnd" instead of "length".
23333 (*jcc_2): Ditto.
23334 (jump): Ditto.
23335 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23336
23337 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
23338
23339 * config/nios2/nios2.c (nios2_delegitimize_address): Make
23340 assert less restrictive.
23341
23342 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
23343
23344 PR fortran/66605
23345 * cgraphunit.c (cgraph_node::finalize_function): Do not call
23346 do_warn_unused_parameter.
23347 * function.c (do_warn_unused_parameter): Move from here.
23348 * function.h (do_warn_unused_parameter): Do not declare.
23349
23350 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23351
23352 PR target/65697
23353 * gcc.target/arm/armv-sync-comp-swap.c: New.
23354 * gcc.target/arm/armv-sync-op-acquire.c: New.
23355 * gcc.target/arm/armv-sync-op-full.c: New.
23356 * gcc.target/arm/armv-sync-op-release.c: New.
23357
23358 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23359
23360 PR target/65697
23361 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23362 initial acquire barrier with final barrier.
23363
23364 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23365
23366 PR target/65697
23367 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23368 initial acquire barrier with final barrier.
23369
23370 2015-06-29 Richard Henderson <rth@redhat.com>
23371
23372 * config/i386/constraints.md (Bf): New constraint.
23373 * config/i386/i386-c.c (ix86_target_macros): Define
23374 __GCC_ASM_FLAG_OUTPUTS__.
23375 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23376 as flags outputs.
23377 * doc/extend.texi (FlagOutputOperands): Document them.
23378
23379 2015-06-29 Jiong Wang <jiong.wang@arm.com>
23380
23381 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23382 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23383 unspec name.
23384 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23385 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23386 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23387 (aarch64_symbol_context): Ditto.
23388 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23389 and use new pattern name.
23390 (aarch64_expand_mov_immediate): Ditto.
23391 (aarch64_print_operand): Ditto.
23392 (aarch64_classify_tls_symbol): Ditto.
23393
23394 2015-06-29 Marek Polacek <polacek@redhat.com>
23395 Marc Glisse <marc.glisse@inria.fr>
23396
23397 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23398 * match.pd: ... pattern here.
23399
23400 2015-06-29 Tom de Vries <tom@codesourcery.com>
23401
23402 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23403 function structure.
23404
23405 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23406
23407 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23408 feature description, split out the native option, add a link to
23409 the feature documentation, rearrange and slightly rewrite text.
23410 (Aarch64 options, -mcpu): Likewise.
23411 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
23412 +rdma implies Adv. SIMD.
23413
23414 2015-06-29 Marek Polacek <polacek@redhat.com>
23415
23416 PR c/66322
23417 * function.c (stack_protect_epilogue): Remove a cast to int.
23418 * doc/invoke.texi: Update -Wswitch-bool description.
23419
23420 2015-06-29 Richard Biener <rguenther@suse.de>
23421
23422 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23423 * fold-const.c (fold_binary_loc): Move &A - &B simplification
23424 via ptr_difference_const ...
23425 * match.pd: ... here.
23426 When matching (X ^ Y) == Y also match with swapped operands.
23427
23428 2015-06-29 Richard Biener <rguenther@suse.de>
23429
23430 * lto-streamer.h (LTO_major_version): Bump to 5.
23431
23432 2015-06-29 Richard Biener <rguenther@suse.de>
23433
23434 PR tree-optimization/66677
23435 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
23436 STMT_VINFO_VEC_STMT clobbering less strict.
23437
23438 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
23439
23440 PR middle-end/64130
23441 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
23442 division, compute max and min when value ranges for dividend and
23443 divisor are available.
23444
23445 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
23446 Sandra Loosemore <sandra@codesourcery.com>
23447
23448 * regrename.h (regrename_do_replace): Change to return bool.
23449 * regrename.c (rename_chains): Check return value of
23450 regname_do_replace.
23451 (regrename_do_replace): Re-validate the modified insns and
23452 return bool status.
23453 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
23454 Update to match rename_chains changes.
23455 * config/c6x/c6x.c (try_rename_operands): Assert that
23456 regrename_do_replace returns true.
23457
23458 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
23459
23460 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
23461 operand 2 here. Use copy_addr_to_reg to copy non-index
23462 register operand 2 to a temporary.
23463 (<mode>_stx): Ditto for operand 1.
23464 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
23465 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
23466 (ix86_store_bounds): Ditto.
23467
23468 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
23469
23470 * print-tree.c (print_node) [TREE_VEC]: Print its length.
23471
23472 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
23473
23474 * gimple.c (gimple_call_set_fndecl): Remove.
23475 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
23476 build1_loc directly instead of build_fold_addr_expr_loc.
23477
23478 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23479
23480 * hash-map.h (hash_map::traverse): Use the definition of the
23481 Key typedef rather than the typedef itself.
23482
23483 2015-06-26 Martin Jambor <mjambor@suse.cz>
23484
23485 PR debug/66301
23486 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
23487 NULL instead of calling dump_enabled_p.
23488
23489 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23490
23491 * config/aarch64/aarch64.opt: (override): New.
23492 * doc/invoke.texi (override): Document.
23493 * config/aarch64/aarch64.c (aarch64_flag_desc): New
23494 (aarch64_fusible_pairs): Likewise.
23495 (aarch64_tuning_flags): Likewise.
23496 (aarch64_tuning_override_function): Likewise.
23497 (aarch64_tuning_override_functions): Likewise.
23498 (aarch64_parse_one_option_token): Likewise.
23499 (aarch64_parse_boolean_options): Likewise.
23500 (aarch64_parse_fuse_string): Likewise.
23501 (aarch64_parse_tune_string): Likewise.
23502 (aarch64_parse_one_override_token): Likewise.
23503 (aarch64_parse_override_string): Likewise.
23504 (aarch64_override_options): Parse the -override string if it
23505 is present.
23506
23507 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23508
23509 * config/aarch64/aarch64-protos.h (tune_params): Remove
23510 const from members.
23511 (aarch64_tune_params): Remove const, change to no longer be
23512 a pointer.
23513 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
23514 change to no longer be a pointer, initialize to generic_tunings.
23515 (aarch64_min_divisions_for_recip_mul): Change dereference of
23516 aarch64_tune_params to member access.
23517 (aarch64_reassociation_width): Likewise.
23518 (aarch64_rtx_mult_cost): Likewise.
23519 (aarch64_address_cost): Likewise.
23520 (aarch64_branch_cost): Likewise.
23521 (aarch64_rtx_costs): Likewise.
23522 (aarch64_register_move_cost): Likewise.
23523 (aarch64_memory_move_cost): Likewise.
23524 (aarch64_sched_issue_rate): Likewise.
23525 (aarch64_builtin_vectorization_cost): Likewise.
23526 (aarch64_override_options): Take a copy of the selected tuning
23527 struct in to aarch64_tune_params, rather than just setting
23528 a pointer, change dereferences of aarch64_tune_params to member
23529 accesses.
23530 (aarch64_override_options_after_change): Change dereferences of
23531 aarch64_tune_params to member access.
23532 (aarch64_macro_fusion_p): Likewise.
23533 (aarch_macro_fusion_pair_p): Likewise.
23534 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
23535
23536 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23537
23538 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
23539 (aarch64_tune_flags): Likewise.
23540 (AARCH64_TUNE_FMA_STEERING): Likewise.
23541 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
23542 to AARCH64_FL_USE_FMA_STEERING_PASS.
23543 (cortex-a57.cortex-a53): Likewise.
23544 (cortex-a72): Use cortexa72_tunings.
23545 (cortex-a72.cortex-a53): Likewise.
23546 (exynos-m1): Likewise.
23547 * config/aarch64/aarch64-protos.h (tune_params): Add
23548 a field: extra_tuning_flags.
23549 * config/aarch64/aarch64-tuning-flags.def: New.
23550 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
23551 (aarch64_extra_tuning_flags): Likewise.
23552 (aarch64_tune_params): Declare here.
23553 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
23554 (cortexa53_tunings): Likewise.
23555 (cortexa57_tunings): Likewise.
23556 (thunderx_tunings): Likewise.
23557 (xgene1_tunings): Likewise.
23558 (cortexa72_tunings): New.
23559 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
23560 (gate): Check against aarch64_tune_params.
23561 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
23562 aarch64-protos.h.
23563
23564 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23565
23566 * config/aarch64/aarch64-fusion-pairs.def: New.
23567 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
23568 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
23569 aarch64_fusion_pairs.
23570 (AARCH64_FUSE_MOV_MOVK): Likewise.
23571 (AARCH64_FUSE_ADRP_ADD): Likewise.
23572 (AARCH64_FUSE_MOVK_MOVK): Likewise.
23573 (AARCH64_FUSE_ADRP_LDR): Likewise.
23574 (AARCH64_FUSE_CMP_BRANCH): Likewise.
23575
23576 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23577
23578 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
23579 SYMBOL_SMALL_GOT_28K.
23580 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
23581 relocation modifiers.
23582 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
23583 (ldr_got_small_28k_<mode>): New.
23584 (ldr_got_small_28k_sidi): New.
23585 * config/aarch64/iterators.md (got_modifier): New mode iterator.
23586 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
23587 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
23588 SYMBOL_SMALL_GOT_28K.
23589 (aarch64_rtx_costs): Add costs for new instruction sequences.
23590 (initialize_aarch64_code_model): Initialize new model.
23591 (aarch64_classify_symbol): Recognize new model and new symbol classification.
23592 (aarch64_asm_preferred_eh_data_format): Support new model.
23593 (aarch64_load_symref_appropriately): Generate new instruction
23594 sequences for -fpic.
23595 (TARGET_USE_PSEUDO_PIC_REG): New definition.
23596 (aarch64_use_pseudo_pic_reg): New function.
23597
23598 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23599
23600 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
23601 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
23602 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
23603 (aarch64_expand_mov_immediate): Ditto.
23604 (aarch64_print_operand): Ditto.
23605 (aarch64_classify_symbol): Ditto.
23606
23607 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
23608
23609 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
23610
23611 2015-06-26 Bin Cheng <bin.cheng@arm.com>
23612
23613 PR bootstrap/66638
23614 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
23615 assertion failed. Remove assertion itself.
23616
23617 2015-06-26 Richard Biener <rguenther@suse.de>
23618
23619 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
23620 and -A CMP CST -> A CMP -CST which is redundant with a pattern
23621 in match.pd.
23622 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
23623 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
23624 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
23625 * match.pd: ... patterns here.
23626
23627 2015-06-26 Marek Polacek <polacek@redhat.com>
23628
23629 * match.pd ((x | y) & ~(x & y) -> x ^ y,
23630 (x | y) & (~x ^ y) -> x & y): New patterns.
23631
23632 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23633
23634 * rtl.h (emit): Add an optional boolean parameter to control
23635 whether barriers are emitted.
23636 * emit-rtl.c (emit): Likewise.
23637 * gensupport.c (get_emit_function): Return null rather than "emit".
23638 * genemit.c (gen_emit_seq): Handle the null return value.
23639 Don't emit barriers after the final instruction in the sequence.
23640 * gentarget-def.c (main): Don't emit barriers after the instruction.
23641
23642 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23643
23644 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
23645 TARGET_UNIFIED_ASM.
23646
23647 2015-06-26 Richard Biener <rguenther@suse.de>
23648
23649 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
23650
23651 2015-06-26 Richard Biener <rguenther@suse.de>
23652
23653 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
23654 irrespective on whether the inner operation has a single use
23655 of both off are constant.
23656
23657 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
23658 Segher Boessenkool <segher@kernel.crashing.org>
23659
23660 PR target/66412
23661 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
23662 before doing PUT_MODE or PUT_CODE on operands to avoid
23663 in-place RTX modification.
23664
23665 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23666
23667 * gentarget-def.c (def_target_insn): Cast return of strtol to
23668 unsigned int.
23669
23670 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23671
23672 * gimple.h (gimple_call_set_fn): Move inline function.
23673 * gimple.c (gimple_call_set_fn): Relocate here.
23674
23675 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
23676
23677 PR target/65979
23678 PR target/66611
23679 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
23680 the replacement insn will work.
23681
23682 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23683
23684 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
23685 by default.
23686
23687 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23688
23689 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
23690 * cgraph.h: Include ipa-ref.h and plugin-api.h.
23691 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
23692 (symtab_node::address_can_be_compared_p): Move function.
23693 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
23694 definition here.
23695 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
23696 * auto-profile.c: Likewise.
23697 * bb-reorder.c: Likewise.
23698 * builtins.c: Likewise.
23699 * calls.c: Likewise.
23700 * cfgexpand.c: Likewise.
23701 * cgraphbuild.c: Likewise.
23702 * cgraphclones.c: Likewise.
23703 * cgraphunit.c: Likewise.
23704 * combine.c: Likewise.
23705 * coverage.c: Likewise.
23706 * data-streamer-in.c: Likewise.
23707 * data-streamer-out.c: Likewise.
23708 * data-streamer.c: Likewise.
23709 * dbxout.c: Likewise.
23710 * dwarf2out.c: Likewise.
23711 * except.c: Likewise.
23712 * expr.c: Likewise.
23713 * final.c: Likewise.
23714 * fold-const.c: Likewise.
23715 * ggc-page.c: Likewise.
23716 * gimple-fold.c: Likewise.
23717 * gimple-iterator.c: Likewise.
23718 * gimple-pretty-print.c: Likewise.
23719 * gimple-streamer-in.c: Likewise.
23720 * gimple-streamer-out.c: Likewise.
23721 * gimple.c: Likewise.
23722 * gimplify.c: Likewise.
23723 * ipa-chkp.c: Likewise.
23724 * ipa-comdats.c: Likewise.
23725 * ipa-cp.c: Likewise.
23726 * ipa-devirt.c: Likewise.
23727 * ipa-icf-gimple.c: Likewise.
23728 * ipa-icf.c: Likewise.
23729 * ipa-inline-analysis.c: Likewise.
23730 * ipa-inline-transform.c: Likewise.
23731 * ipa-inline.c: Likewise.
23732 * ipa-polymorphic-call.c: Likewise.
23733 * ipa-profile.c: Likewise.
23734 * ipa-prop.c: Likewise.
23735 * ipa-pure-const.c: Likewise.
23736 * ipa-ref.c: Likewise.
23737 * ipa-reference.c: Likewise.
23738 * ipa-split.c: Likewise.
23739 * ipa-utils.c: Likewise.
23740 * ipa-visibility.c: Likewise.
23741 * ipa.c: Likewise.
23742 * langhooks.c: Likewise.
23743 * lto-cgraph.c: Likewise.
23744 * lto-compress.c: Likewise.
23745 * lto-opts.c: Likewise.
23746 * lto-section-in.c: Likewise.
23747 * lto-section-out.c: Likewise.
23748 * lto-streamer-in.c: Likewise.
23749 * lto-streamer-out.c: Likewise.
23750 * lto-streamer.c: Likewise.
23751 * omp-low.c: Likewise.
23752 * opts-global.c: Likewise.
23753 * passes.c: Likewise.
23754 * predict.c: Likewise.
23755 * print-tree.c: Likewise.
23756 * profile.c: Likewise.
23757 * ree.c: Likewise.
23758 * sanopt.c: Likewise.
23759 * stor-layout.c: Likewise.
23760 * symtab.c: Likewise.
23761 * toplev.c: Likewise.
23762 * trans-mem.c: Likewise.
23763 * tree-cfg.c: Likewise.
23764 * tree-chkp.c: Likewise.
23765 * tree-eh.c: Likewise.
23766 * tree-emutls.c: Likewise.
23767 * tree-inline.c: Likewise.
23768 * tree-nested.c: Likewise.
23769 * tree-parloops.c: Likewise.
23770 * tree-pretty-print.c: Likewise.
23771 * tree-profile.c: Likewise.
23772 * tree-sra.c: Likewise.
23773 * tree-ssa-alias.c: Likewise.
23774 * tree-ssa-live.c: Likewise.
23775 * tree-ssa-loop-ivcanon.c: Likewise.
23776 * tree-ssa-loop-ivopts.c: Likewise.
23777 * tree-ssa-pre.c: Likewise.
23778 * tree-ssa-sccvn.c: Likewise.
23779 * tree-ssa-strlen.c: Likewise.
23780 * tree-ssa-structalias.c: Likewise.
23781 * tree-streamer-in.c: Likewise.
23782 * tree-streamer-out.c: Likewise.
23783 * tree-streamer.c: Likewise.
23784 * tree-switch-conversion.c: Likewise.
23785 * tree-tailcall.c: Likewise.
23786 * tree-vect-data-refs.c: Likewise.
23787 * tree-vect-stmts.c: Likewise.
23788 * tree-vectorizer.c: Likewise.
23789 * tree.c: Likewise.
23790 * tsan.c: Likewise.
23791 * ubsan.c: Likewise.
23792 * value-prof.c: Likewise.
23793 * varasm.c: Likewise.
23794 * varpool.c: Likewise.
23795 * config/arm/arm.c: Likewise.
23796 * config/bfin/bfin.c: Likewise.
23797 * config/c6x/c6x.c: Likewise.
23798 * config/cris/cris.c: Likewise.
23799 * config/darwin-c.c: Likewise.
23800 * config/darwin.c: Likewise.
23801 * config/i386/i386.c: Likewise.
23802 * config/i386/winnt.c: Likewise.
23803 * config/microblaze/microblaze.c: Likewise.
23804 * config/mips/mips.c: Likewise.
23805 * config/rs6000/rs6000.c: Likewise.
23806 * config/rx/rx.c: Likewise.
23807 * config/s390/s390.c: Likewise.
23808 * config/tilegx/mul-tables.c: Likewise.
23809
23810 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23811
23812 * config/aarch64/aarch64.c, config/alpha/alpha.c,
23813 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
23814 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
23815 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
23816 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23817 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23818 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23819 config/microblaze/microblaze.c, config/mips/mips.c,
23820 config/mmix/mmix.c, config/mn10300/mn10300.c,
23821 config/moxie/moxie.c, config/msp430/msp430.c,
23822 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23823 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23824 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23825 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23826 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23827 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23828 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
23829 target-def.h include.
23830 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
23831
23832 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23833
23834 * Makefile.in (TARGET_DEF): Add target-insns.def.
23835 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
23836 (build/gentarget-def.o): New rule.
23837 (genprogrtl): Add target-def.
23838 * target-insns.def, gentarget-def.c: New files.
23839 * target.def: Add targetm.have_* and targetm.gen_* hooks,
23840 based on the contents of target-insns.def.
23841 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
23842 (HAVE_return, gen_return): Delete.
23843 * target-def.h: Include insn-target-def.h.
23844 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
23845 instead of direct calls. Rely on them to do the appropriate assertions.
23846 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
23847 (convert_jumps_to_returns): Use targetm interface instead of
23848 direct calls.
23849 (thread_prologue_and_epilogue_insns): Likewise.
23850 * reorg.c (find_end_label, dbr_schedule): Likewise.
23851 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
23852 * shrink-wrap.c (convert_to_simple_return): Likewise.
23853 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
23854
23855 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23856
23857 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
23858 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23859 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
23860 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
23861 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
23862 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
23863 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
23864 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
23865 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
23866 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
23867 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
23868 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
23869 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
23870 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
23871 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
23872 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
23873 includes to end.
23874
23875 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23876
23877 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
23878 (unbounded_int_hashmap_traits::key_type): Likewise.
23879 * hash-map.h (hash_map): Get the key type from the traits.
23880 * hash-traits.h (default_hash_traits): By default, inherit from the
23881 template parameter.
23882 * alias.c (alias_set_traits): Delete.
23883 (alias_set_entry_d::children): Use alias_set_hash as the first
23884 template parameter.
23885 (record_alias_subset): Update accordingly.
23886 * except.c (tree_hash_traits): Delete.
23887 (type_to_runtime_map): Use tree_hash as the first template parameter.
23888 (init_eh): Update accordingly.
23889 * genmatch.c (capture_id_map_hasher): Delete.
23890 (cid_map_t): Use nofree_string_hash as first template parameter.
23891 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
23892 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
23893 Use symbol_compare_hash as the first template parameter in
23894 subdivide_hash_map.
23895 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
23896 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
23897 template parameter.
23898 * passes.c (pass_registry_hasher): Delete.
23899 (name_to_pass_map): Use nofree_string_hash as the first template
23900 parameter.
23901 (register_pass_name): Update accordingly.
23902 * sanopt.c (sanopt_tree_map_traits): Delete.
23903 (sanopt_tree_triplet_map_traits): Delete.
23904 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
23905 template parameter.
23906 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
23907 the first template parameter.
23908 * sese.c (rename_map_hasher): Delete.
23909 (rename_map_type): Use tree_ssa_name_hash as the first template
23910 parameter.
23911 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
23912 (function_summary::m_map): Use map_hash as the first template
23913 parameter.
23914 (function_summary::release): Update accordingly.
23915 * tree-if-conv.c (phi_args_hash_traits): Delete.
23916 (predicate_scalar_phi): Use tree_operand_hash as the first template
23917 parameter to phi_arg_map.
23918 * tree-inline.h (dependence_hasher): Delete.
23919 (copy_body_data::dependence_map): Use dependence_hash as the first
23920 template parameter.
23921 * tree-inline.c (remap_dependence_clique): Update accordingly.
23922 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
23923 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
23924 parameter.
23925 (addr_stridxptr): Update accordingly.
23926 * value-prof.c (profile_id_traits): Delete.
23927 (cgraph_node_map): Use profile_id_hash as the first template
23928 parameter.
23929 (init_node_map): Update accordingly.
23930 * config/alpha/alpha.c (string_traits): Delete.
23931 (machine_function::links): Use nofree_string_hash as the first
23932 template parameter.
23933 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
23934 * config/m32c/m32c.c (pragma_traits): Delete.
23935 (pragma_htab): Use nofree_string_hash as the first template parameter.
23936 (m32c_note_pragma_address): Update accordingly.
23937 * config/mep/mep.c (pragma_traits): Delete.
23938 (pragma_htab): Use nofree_string_hash as the first template parameter.
23939 (mep_note_pragma_flag): Update accordingly.
23940 * config/mips/mips.c (mips16_flip_traits): Delete.
23941 (mflip_mips16_htab): Use nofree_string_hash as the first template
23942 parameter.
23943 (mflip_mips16_use_mips16_p): Update accordingly.
23944 (local_alias_traits): Delete.
23945 (mips16_local_aliases): Use nofree_string_hash as the first template
23946 parameter.
23947 (mips16_local_alias): Update accordingly.
23948
23949 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23950
23951 * hash-map-traits.h (default_hashmap_traits): Delete.
23952
23953 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23954
23955 * hash-map-traits.h (unbounded_hashmap_traits): New class.
23956 (unbounded_int_hashmap_traits): Likewise.
23957 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
23958
23959 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23960
23961 * ipa-icf.h (symbol_compare_hash): New class.
23962 (symbol_compare_hashmap_traits): Use it.
23963 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
23964 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
23965 (mem_alloc_description::reverse_mem_map_t): Remove redundant
23966 default_hashmap_traits.
23967 * sanopt.c (sanopt_tree_triplet_hash): New class.
23968 (sanopt_tree_triplet_map_traits): Use it.
23969
23970 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23971
23972 * gengtype-parse.c (require_template_declaration): Allow '+' in
23973 template parameters. Consolidate cases.
23974 * hash-traits.h (int_hash): New class.
23975 * alias.c (alias_set_hash): New structure.
23976 (alias_set_traits): Use it.
23977 * symbol-summary.h (function_summary::map_hash): New class.
23978 (function_summary::summary_hashmap_traits): Use it.
23979 * tree-inline.h (dependence_hash): New class.
23980 (dependence_hasher): Use it.
23981 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
23982 * value-prof.c (profile_id_hash): New class.
23983 (profile_id_traits): Use it.
23984
23985 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23986
23987 * config/mips/mips.c (mips16_flip_traits): Use it.
23988 (local_alias_traits, mips16_local_aliases): Convert from a map of
23989 rtxes to a map of symbol names.
23990 (mips16_local_alias): Update accordingly.
23991
23992 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
23993
23994 * hash-traits.h (string_hash, nofree_string_hash): New classes.
23995 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
23996 * passes.c (pass_registry_hasher): Likewise.
23997 * config/alpha/alpha.c (string_traits): Likewise.
23998 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
23999 * config/m32c/m32c.c (pragma_traits): Likewise.
24000 * config/mep/mep.c (pragma_traits): Likewise.
24001
24002 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24003
24004 * tree-hash-traits.h (tree_hash): New class.
24005 * except.c: Include tree-hash-traits.h.
24006 (tree_hash_traits): Use tree_hash.
24007
24008 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24009
24010 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24011 * sese.c: Include tree-hash-traits.h.
24012 (rename_map_hasher): Use tree_ssa_name_hasher.
24013
24014 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24015
24016 * tree-hash-traits.h (tree_decl_hash): New class.
24017 * tree-ssa-strlen.c: Include tree-hash-traits.h.
24018 (stridxlist_hash_traits): Use tree_decl_hash.
24019
24020 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24021
24022 * tree-hash-traits.h: New file.
24023 (tree_operand_hash): New class.
24024 * sanopt.c: Include tree-hash-traits.h.
24025 (sanopt_tree_map_traits): Use tree_operand_hash.
24026 * tree-if-conv.c: Include tree-hash-traits.h.
24027 (phi_args_hash_traits): Use tree_operand_hash.
24028 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24029 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24030
24031 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24032
24033 * hash-map-traits.h: Include hash-traits.h.
24034 (simple_hashmap_traits): New class.
24035 * mem-stats.h (hash_map): Change the default traits to
24036 simple_hashmap_traits<default_hash_traits<Key> >.
24037
24038 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24039
24040 * hash-table.h: Update comments.
24041
24042 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24043
24044 * hash-traits.h (default_hash_traits): New structure.
24045 * hash-set.h (default_hashset_traits): Delete.
24046 (hash_set): Use default_hash_traits<Key> instead of
24047 default_hashset_traits. Delete hash_entry type and use Key directly.
24048 * ipa-devirt.c (pair_traits): Delete.
24049 (default_hash_traits <type_pair>): Override.
24050 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24051 (odr_types_equivalent_p, add_type_duplicate): Likewise.
24052
24053 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24054
24055 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24056
24057 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24058
24059 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24060 (has_is_empty, is_empty_helper): Delete.
24061 (has_mark_deleted, mark_deleted_helper): Delete.
24062 (has_mark_empty, mark_empty_helper): Delete.
24063 (hash_table::is_deleted): Call the Descriptor unconditionally.
24064 (hash_table::is_empty): Likewise.
24065 (hash_table::mark_deleted): Likewise.
24066 (hash_table::mark_empty): Likewise.
24067
24068 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24069
24070 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
24071 redundant typedefs and members.
24072 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
24073 redundant typedefs.
24074 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24075 * ipa-devirt.c (odr_name_hasher): Likewise.
24076 (polymorphic_call_target_hasher): Likewise.
24077 * ira-costs.c (cost_classes_hasher): Likewise.
24078 * statistics.c (stats_counter_hasher): Likewise.
24079 * trans-mem.c (log_entry_hasher): Likewise.
24080 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24081 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24082 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24083 * var-tracking.c (variable_hasher): Likewise.
24084 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24085 Remove redundant typedefs and members.
24086
24087 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24088
24089 * hash-traits.h (ggc_cache_hasher): Rename to...
24090 (ggc_cache_remove): ...this and remove typedefs.
24091 (ggc_cache_ptr_hash): New class.
24092 * hash-table.h: Update commentary.
24093 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24094 rather than ggc_cache_hasher.
24095 (const_wide_int_hasher, reg_attr_hasher): Likewise.
24096 (const_double_hasher, const_fixed_hasher): Likewise.
24097 * function.c (insn_cache_hasher): Likewise.
24098 * trans-mem.c (tm_wrapper_hasher): Likewise.
24099 * tree.h (tree_decl_map_cache_hasher): Likewise.
24100 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24101 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24102 * ubsan.c (tree_type_map_cache_hasher): Likewise.
24103 * varasm.c (tm_clone_hasher): Likewise.
24104 * config/i386/i386.c (dllimport_hasher): Likewise.
24105 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24106 (tree_hasher): Likewise.
24107
24108 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24109
24110 * hash-traits.h (ggc_hasher): Rename to...
24111 (ggc_remover): ...this and remove typedefs.
24112 (ggc_cache_hasher): Update accordingly. Add typedefs.
24113 (ggc_ptr_hash): New class.
24114 * hash-table.h: Update comment.
24115 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24116 ggc_hasher.
24117 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24118 (tree_descriptor_hasher): Likewise.
24119 * cgraph.c (function_version_hasher): Likewise.
24120 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24121 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24122 (dw_loc_list_hasher, addr_hasher): Likewise.
24123 * function.h (used_type_hasher): Likewise.
24124 * function.c (temp_address_hasher): Likewise.
24125 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24126 * libfuncs.h (libfunc_hasher): Likewise.
24127 * lto-streamer.h (decl_state_hasher): Likewise.
24128 * optabs.c (libfunc_decl_hasher): Likewise.
24129 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24130 * varasm.c (section_hasher, object_block_hasher): Likewise.
24131 (const_rtx_desc_hasher): Likewise.
24132 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24133 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24134
24135 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24136
24137 * hash-traits.h (free_ptr_hash): New class.
24138 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24139 rather than typed_free_remove. Remove redudant typedefs.
24140 (external_ref_hasher): Likewise.
24141 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24142 (ehspec_hasher): Likewise.
24143 * ggc-common.c (saving_hasher): Likewise.
24144 * gimplify.c (gimplify_hasher): Likewise.
24145 * haifa-sched.c (delay_i2_hasher): Likewise.
24146 * loop-invariant.c (invariant_expr_hasher): Likewise.
24147 * loop-iv.c (biv_entry_hasher): Likewise.
24148 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24149 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24150 * tree-cfg.c (locus_discrim_hasher): Likewise.
24151 * tree-eh.c (finally_tree_hasher): Likewise.
24152 * tree-into-ssa.c (var_info_hasher): Likewise.
24153 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24154 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24155 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24156 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24157 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24158 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24159 (shared_bitmap_hasher): Likewise.
24160 * tree-ssa-threadupdate.c (redirection_data): Likewise.
24161 * tree-vectorizer.h (peel_info_hasher): Likewise.
24162 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24163 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24164
24165 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24166
24167 * hash-table.h: Update comments.
24168 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24169 (nofree_ptr_hash): New class.
24170 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24171 than typed_noop_remove. Remove redudant typedefs.
24172 * attribs.c (attribute_hasher): Likewise.
24173 * cfg.c (bb_copy_hasher): Likewise.
24174 * cselib.c (cselib_hasher): Likewise.
24175 * dse.c (invariant_group_base_hasher): Likewise.
24176 * dwarf2cfi.c (trace_info_hasher): Likewise.
24177 * dwarf2out.c (macinfo_entry_hasher): Likewise.
24178 (comdat_type_hasher, loc_list_hasher): Likewise.
24179 * gcse.c (pre_ldst_expr_hasher): Likewise.
24180 * genmatch.c (id_base): Likewise.
24181 * genrecog.c (test_pattern_hasher): Likewise.
24182 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24183 * haifa-sched.c (delay_i1_hasher): Likewise.
24184 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24185 * ipa-icf.h (congruence_class_group_hash): Likewise.
24186 * ipa-profile.c (histogram_hash): Likewise.
24187 * ira-color.c (allocno_hard_regs_hasher): Likewise.
24188 * lto-streamer.h (string_slot_hasher): Likewise.
24189 * lto-streamer.c (tree_entry_hasher): Likewise.
24190 * plugin.c (event_hasher): Likewise.
24191 * postreload-gcse.c (expr_hasher): Likewise.
24192 * store-motion.c (st_expr_hasher): Likewise.
24193 * tree-sra.c (uid_decl_hasher): Likewise.
24194 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24195 (ssa_name_var_hash): Likewise.
24196 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24197 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24198 * tree-ssa-pre.c (pre_expr_d): Likewise.
24199 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24200 * vtable-verify.h (registration_hasher): Likewise.
24201 * vtable-verify.c (vtbl_map_hasher): Likewise.
24202 * config/arm/arm.c (libcall_hasher): Likewise.
24203 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24204 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24205 * config/sol2.c (comdat_entry_hasher): Likewise.
24206 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24207 (print_fold_checksum, fold_checksum_tree): Likewise.
24208 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24209 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24210 (fold_build_call_array_loc): Likewise.
24211 * tree-ssa-ccp.c (gimple_htab): Likewise.
24212 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24213 rather than pointer_type.
24214
24215 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24216
24217 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24218 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24219
24220 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24221
24222 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24223 (ggc_hasher::ggc_mx): Likewise.
24224 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
24225 that duplicate ggc_hasher ones.
24226
24227 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24228
24229 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24230 (gt_cleare_cache): Check here for deleted and empty entries.
24231 Replace handle_cache_entry with a call to keep_cache_entry.
24232 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24233 (ggc_cache_hasher::keep_cache_entry): New function.
24234 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24235 (tm_wrapper_hasher::keep_cache_entry): New function.
24236 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24237 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24238 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24239 (type_cache_hasher::keep_cache_entry): New function.
24240 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24241 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24242 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24243 (tree_type_map_cache_hasher::keep_cache_entry): New function.
24244 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24245 (tm_clone_hasher::keep_cache_entry): New function.
24246 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24247 (dllimport_hasher::keep_cache_entry): New function.
24248
24249 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24250
24251 * hash-table.h: Include hash-traits.h.
24252 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24253 (ggc_cache_hasher): Move to...
24254 * hash-traits.h: ...this new file.
24255
24256 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24257
24258 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24259 struct cl_optimization.
24260 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24261 * tree.c (make_node_stat): Allocate cl_optimization struct.
24262 (copy_node_stat): Allocate and copy cl_optimization struct.
24263
24264 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24265
24266 * function.h (struct incoming_args): Move struct.
24267 (pass_by_reference, reference_callee_copied): Remove prototypes.
24268 * emit-rtl.h (struct incoming_args): Relocate struct here.
24269 * calls.h (pass_by_reference, reference_callee_copied): Relocate
24270 prototypes here.
24271 * function.c (pass_by_reference, reference_callee_copied): Move.
24272 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24273 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24274 * ipa-chkp.c: Include calls.h.
24275
24276 2015-06-25 Andrew Macleod <amacleod@redhat.com>
24277
24278 * alias.h (alias_set_type): Move typedef.
24279 * coretypes.h (alias_set_type): Relocate typedef here.
24280 * rtl.h: Don't include alias.h.
24281
24282 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24283
24284 * cgraph.h (cgraph_rtl_info): Move to rtl.h
24285 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24286 and instance.
24287 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24288 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24289 doesn't exist.
24290 * calls.c: Include hard-reg-set.h before rtl.h.
24291 * ira.c: Likewise.
24292
24293 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24294 Vladimir Makarov <vmakarov@redhat.com>
24295
24296 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24297 Add assert.
24298
24299 2015-06-25 Richard Biener <rguenther@suse.de>
24300
24301 * fold-const.c (fold_binary_loc): Move simplification of
24302 (X <<>> C1) & C2 ...
24303 * match.pd: ... here.
24304
24305 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
24306
24307 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24308
24309 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24310
24311 * match.pd: Add patterns for vec_conds between 1 and 0.
24312
24313 2015-06-25 Richard Biener <rguenther@suse.de>
24314
24315 * tree-vect-stmts.c (vectorizable_conversion): Do not set
24316 STMT_VINFO_VEC_STMT for SLP.
24317 (vectorizable_store): Likewise.
24318 (vectorizable_load): Likewise.
24319 (vect_transform_stmt): Catch SLP vectorization clobbering
24320 STMT_VINFO_VEC_STMT.
24321
24322 2015-06-25 Richard Biener <rguenther@suse.de>
24323
24324 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24325 dumping.
24326 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24327 cleanup resulting dead code and parameters.
24328 (vect_transform_slp_perm_load): Adjust.
24329
24330 2015-06-25 Nick Clifton <nickc@redhat.com>
24331
24332 * config/bfin/bfin.c (bfin_expand_prologue): Set
24333 current_function_static_stack_size if flag_stack_usage_info is set.
24334 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24335 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24336 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24337 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24338
24339 2015-06-25 Tom de Vries <tom@codesourcery.com>
24340
24341 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24342 comment that the generated IV is unsigned.
24343
24344 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24345
24346 PR target/29693
24347 * config/arm/arm.c (arm_dbx_register_number): Return
24348 DWARF_FRAME_REGISTERS by default.
24349
24350 2015-06-25 Tom de Vries <tom@codesourcery.com>
24351
24352 * dominance.c (calculate_dominance_info): Fix verify_dominators call
24353 argument. Call verify_dominator when reusing dominator info.
24354
24355 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
24356
24357 PR target/66563
24358 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24359 an additional element of the unspec vector. Modify indices
24360 of operands.
24361 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24362 * config/sh/sh.c (prepare_move_operands): Pass incremented
24363 const_int to gen_GOTaddr2picreg.
24364 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24365
24366 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24367
24368 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24369 Condition on TARGET_FLOAT.
24370
24371 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24372
24373 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24374 and (no)crypto.
24375
24376 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24377
24378 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24379
24380 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24381 aarch64_err_no_fpadvsimd.
24382
24383 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24384 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24385 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24386 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24387 Turn error into assert, test TARGET_FLOAT.
24388 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24389 TARGET_FLOAT.
24390
24391 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
24392
24393 PR debug/66482
24394 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24395
24396 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
24397
24398 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24399
24400 2015-06-24 Renlin Li <renlin.li@arm.com>
24401
24402 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24403 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24404
24405 2015-06-24 Richard Biener <rguenther@suse.de>
24406
24407 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24408 (main): Likewise.
24409 (lower_opt_convert): Support lowering of conditional view_convert.
24410 (parser::parse_operation): Likewise.
24411 (parser::parse_for): Likewise.
24412
24413 2015-06-24 Renlin Li <renlin.li@arm.com>
24414
24415 * varasm.c (emit_local): Use unsigned int for align variable.
24416
24417 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24418
24419 PR target/63408
24420 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24421 for negative numbers.
24422
24423 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24424
24425 PR rtl-optimization/66306
24426 * reload.c (find_reloads): Swap the match_dup info for
24427 commutative operands.
24428
24429 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24430
24431 * config/s390/vx-builtins.md
24432 ("vec_scatter_element<mode>_<non_vec_int>")
24433 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
24434 attribute with bhfgq.
24435
24436 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24437
24438 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
24439
24440 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24441
24442 * config/s390/s390-builtin-types.def: Add flag to indicate the
24443 options under which the function type is needed.
24444 * config/s390/s390-builtins.def: Add flag to indicate the options
24445 under which the builtin is enabled.
24446 * config/s390/s390-builtins.h: Add flags parameter to macro
24447 definitions.
24448 (bflags_for_builtin): New function.
24449 (flags_for_builtin): Renamed to ...
24450 (opflags_for_builtin): ... this.
24451 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
24452 flags_for_builtin to bflags_for_builtin and
24453 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
24454 * config/s390/s390.c: Add initialization of bflags_builtin and
24455 opflags_builtin arrays.
24456 Remove code for flags_builtin.
24457 (s390_init_builtins): Only create builtin function types if one of
24458 their flags is active.
24459 Only create builtins if all of their flags are active.
24460 (s390_expand_builtin): Rename flags_for_builtin to
24461 opflags_for_builtin.
24462
24463 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24464
24465 * config/s390/vecintrin.h: Remove internal builtins.
24466
24467 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24468
24469 * config/s390/s390.c (s390_secondary_reload): Fix check for
24470 GENERAL_REGS register class.
24471
24472 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24473
24474 * config/s390/s390.c (s390_support_vector_misalignment): Call
24475 default implementation for !TARGET_VX.
24476
24477 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24478
24479 * config/s390/s390.c (s390_legitimate_constant_p): Add
24480 TARGET_VX check.
24481
24482 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24483
24484 * config/s390/s390.c (s390_vector_abi): New variable definition.
24485 (s390_check_type_for_vector_abi): New function.
24486 (TARGET_ASM_FILE_END): New macro definition.
24487 (s390_asm_file_end): New function.
24488 (s390_function_arg): Call s390_check_type_for_vector_abi.
24489 (s390_gimplify_va_arg): Likewise.
24490 * configure: Regenerate.
24491 * configure.ac: Check for .gnu_attribute Binutils feature.
24492
24493 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
24494
24495 PR target/65803
24496 * config/bfin/bfin.c (hwloop_optimize): Initialize
24497 JUMP_LABEL for newly created jump.
24498
24499 2015-06-23 Tristan Gingold <gingold@adacore.com>
24500
24501 * collect-utils.c (collect_wait): Unlink the response file here
24502 instead of...
24503 (do_wait): ...here.
24504 (utils_cleanup): ...and here.
24505
24506 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
24507
24508 * df-scan.c: Don't include target-def.h.
24509 * targhooks.c: Likewise.
24510 * config/arm/arm-c.c: Likewise.
24511 * config/i386/i386-c.c: Likewise.
24512 * config/nds32/nds32-cost.c: Likewise.
24513 * config/nds32/nds32-fp-as-gp.c: Likewise.
24514 * config/nds32/nds32-intrinsic.c: Likewise.
24515 * config/nds32/nds32-isr.c: Likewise.
24516 * config/nds32/nds32-md-auxiliary.c: Likewise.
24517 * config/nds32/nds32-memory-manipulation.c: Likewise.
24518 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24519 * config/nds32/nds32-predicates.c: Likewise.
24520
24521 2015-06-23 Richard Biener <rguenther@suse.de>
24522
24523 PR tree-optimization/66636
24524 * tree-vect-stmts.c (vectorizable_store): Properly compute the
24525 def type for further defs for strided stores.
24526
24527 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
24528
24529 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
24530 conditional selects.
24531 (setcc_int<mode>, setcc_float<mode>): Reformat.
24532
24533 2015-06-23 Marek Polacek <polacek@redhat.com>
24534
24535 * match.pd ((x + y) - (x | y) -> x & y,
24536 (x + y) - (x & y) -> x | y): New patterns.
24537
24538 2015-06-23 Ludovic Courtès <ludo@gnu.org>
24539
24540 PR 65711
24541 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
24542 '-dynamic-linker' within %{!shared: ...}.
24543
24544 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
24545
24546 PR target/66560
24547 * config/i386/predicates.md (addsub_vm_operator): New predicate.
24548 (addsub_vs_operator): Ditto.
24549 (addsub_vs_parallel): Ditto.
24550 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
24551 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
24552 Put minus RTX before plus and adjust vec_merge selector.
24553 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
24554 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
24555 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
24556 (addsub vec_merge splitters): New combiner splitters.
24557 (addsub vec_select/vec_concat splitters): Ditto.
24558
24559 2015-06-23 Bin Cheng <bin.cheng@arm.com>
24560
24561 PR tree-optimization/66449
24562 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
24563 POINTER_PLUS_EXPR for pointers.
24564
24565 2015-06-23 Alan Modra <amodra@gmail.com>
24566
24567 * rtlanal.c (commutative_operand_precedence): Correct comments.
24568 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
24569 declaration. Return an int. Distinguish REG,REG return from
24570 others.
24571 (struct simplify_plus_minus_op_data): Make local to function.
24572 (simplify_plus_minus): Don't set canonicalized if merely sorting
24573 registers. Avoid packing ops if nothing changes. White space fixes.
24574
24575 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
24576
24577 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
24578 -fdump-ada-spec is passed but not if -fsyntax-only is.
24579
24580 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
24581
24582 PR bootstrap/63740
24583 * lra-lives.c (process_bb_lives): Check insn copying the same
24584 reload pseudo and don't create a copy for it.
24585
24586 2015-06-22 Tom de Vries <tom@codesourcery.com>
24587
24588 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
24589 for cond_stmt.
24590
24591 2015-06-22 Tom de Vries <tom@codesourcery.com>
24592
24593 * builtins.def (DEF_GOMP_BUILTIN): Test
24594 'flag_tree_parallelize_loops > 1' instead of
24595 'flag_tree_parallelize_loops'. Test flag_cilkplus.
24596
24597 2015-06-22 Tom de Vries <tom@codesourcery.com>
24598
24599 * dominance.c (calculate_dominance_info): Verify dominators if
24600 early-out.
24601
24602 2015-06-22 Marek Polacek <polacek@redhat.com>
24603
24604 * match.pd ((x ^ y) ^ (x | y) -> x & y,
24605 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
24606 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
24607 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
24608
24609 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
24610
24611 PR target/65871
24612 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
24613 cost of embedded comparison.
24614
24615 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24616
24617 PR target/65914
24618 * config/rs6000/predicates.md (altivec_register_operand): Permit
24619 virtual stack registers.
24620 (vsx_register_operand): Likewise.
24621 (vfloat_operand): Likewise.
24622 (vint_operand): Likewise.
24623 (vlogical_operand): Likewise.
24624
24625 2015-06-22 Richard Biener <rguenther@suse.de>
24626
24627 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
24628 and single_scalar_iteration_cost members.
24629 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
24630 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
24631 (vect_get_single_scalar_iteration_cost): Remove.
24632 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24633 Use LOOP_VINFO_SCALAR_ITERATION_COST.
24634 * tree-vect-loop.c (destroy_loop_vec_info): Free
24635 scalar_cost_vec.
24636 (vect_get_single_scalar_iteration_cost): Compute result into
24637 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
24638 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
24639 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
24640 (vect_estimate_min_profitable_iters): Use them.
24641
24642 2015-06-22 Christian Bruel <christian.bruel@st.com>
24643
24644 PR target/52144
24645 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
24646 (TARGET_INSERT_ATTRIBUTES): Define.
24647 (thumb_flipper): New var.
24648 * config/arm/arm.opt (-mflip-thumb): New switch.
24649
24650 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24651 Martin Liska <mliska@suse.cz>
24652
24653 PR ipa/65908
24654 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
24655 construction of arg_types.
24656 (sem_function::sem_function): Likewise.
24657 (sem_function::~sem_function): Remove destruction of arg_types.
24658 (sem_function::compatible_parm_types_p): New function.
24659 (sem_function::equals_wpa): Reorg matching of return values
24660 and parameter types.
24661 (sem_function::equals_private): Reorg mathcing of argument types.
24662 (sem_function::parse_tree_args): Remove.
24663 * ipa-icf.h (init_wpa): Do not call it.
24664 (parse_tree_args): Remove.
24665 (compatible_parm_types_p): Declare.
24666 (result_type): Remove.
24667 (arg_types): Remove.
24668
24669 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24670
24671 PR ipa/66351
24672 * ipa-polymorphic-call.c
24673 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
24674 initializing alias oracle; fix formating; set base_alias_set if it
24675 is known.
24676
24677 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
24678
24679 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
24680 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
24681 (find_inc): Likewise.
24682 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
24683 swapping.
24684 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
24685 * df-scan.c (df_swap_refs): Remove.
24686 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
24687 * dominance.c (link_roots): Use std::swap instead of manually swapping.
24688 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
24689 * fold-const.c (fold_relational_const): Likewise.
24690 * genattrtab.c (simplify_test_exp): Likewise.
24691 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
24692 gimple_simplify): Likewise.
24693 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
24694 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
24695 * ipa-devirt.c (add_type_duplicate): Likewise.
24696 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
24697 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
24698 * lra.c (lra_create_copy): Likewise.
24699 * lto-streamer-out.c (DFS::DFS): Likewise.
24700 * modulo-sched.c (get_sched_window): Likewise.
24701 * omega.c (omega_pretty_print_problem): Likewise.
24702 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
24703 * reload1.c (reloads_unique_chain_p): Likewise.
24704 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
24705 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
24706 use std::swap.
24707 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
24708 manually swapping.
24709 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
24710 predicate_mem_writes): Likewise.
24711 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
24712 * tree-predcom.c (combine_chains): Likewise.
24713 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
24714 refs_may_alias_p_1): Likewise.
24715 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
24716 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24717 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
24718 number_of_iterations_cond): Likewise.
24719 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24720 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
24721 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
24722 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
24723 * tree-vrp.c (extract_range_from_binary_expr_1,
24724 extract_range_from_unary_expr_1): Likewise.
24725
24726 2015-06-20 Marek Polacek <polacek@redhat.com>
24727
24728 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
24729
24730 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
24731
24732 PR target/66591
24733 * config/sh/sh.c (prepare_move_operands): Replace subreg
24734 index term with R0 for base and index addressing.
24735
24736 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
24737
24738 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
24739 op1 is an fp zero.
24740 (movsf_aarch64): Change condition from register_operand to
24741 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
24742 load1. Change type for alternative 7 to store1.
24743 (movdf_aarch64): Likewise.
24744
24745 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
24746
24747 * config/vax/vax.md: Adjust sign/zero extend patterns to
24748 handle SUBREGs in operands[1].
24749
24750 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24751
24752 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
24753 of manually swapping.
24754 (expand_vec_perm_interleave2): Likewise.
24755
24756 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
24757
24758 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
24759 reuse bounds created for abnormal ssa names.
24760
24761 2015-06-19 Jakub Jelinek <jakub@redhat.com>
24762
24763 * config/nvptx/nvptx.md (allocate_stack): Rename to...
24764 (allocate_stack_<mode>): ... this, and add :P on both
24765 match_operand and unspec.
24766 (allocate_stack): New expander.
24767
24768 2015-06-19 Christian Bruel <christian.bruel@st.com>
24769
24770 PR target/66541
24771 PR target/52144
24772 * config/arm/arm.c (arm_set_current_function): Handle
24773 explicit default options.
24774
24775 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24776
24777 * config/i386/i386.md (*movsicc_noc_zext): New insn.
24778 (zero-extended cmove with mem peephole2): New pattern.
24779 (cmove with mem peephole2): Merge patterns.
24780
24781 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
24782
24783 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
24784
24785 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
24786
24787 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
24788 * config/mips/mips.md (*madd4<mode>): Ditto.
24789 (*nmadd3<mode>) Ditto.
24790 (*nmadd4<mode>_fastmath): Ditto.
24791 (*nmadd3<mode>_fastmath): Ditto.
24792 (*nmsub4<mode>): Ditto.
24793 (*nmsub3<mode>): Ditto.
24794 (*nmsub4<mode>_fastmath): Ditto.
24795 (*nmsub3<mode>_fastmath): Ditto.
24796
24797 2015-06-18 Michael Matz <matz@suse.de>
24798
24799 PR middle-end/66253
24800 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
24801 grouped strided stores.
24802 (vectorizable_load): Don't use the DR from first_stmt in
24803 the non-SLP grouped strided case.
24804
24805 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24806
24807 PR target/66569
24808 * function.c (assign_bounds): Add arguments assign_regs,
24809 assign_special, assign_bt.
24810 (assign_parms): For vararg functions handle bounds in BT
24811 and special slots after incoming vararg bounds.
24812
24813 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24814
24815 PR middle-end/66568
24816 * cfgexpand.c (expand_return): Handle missing bounds.
24817 (expand_gimple_stmt_1): Likewise.
24818 * tree-chkp.c (chkp_expand_zero_bounds): New.
24819 * tree-chkp.h (chkp_expand_zero_bounds): New.
24820
24821 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24822
24823 PR middle-end/66567
24824 * ipa-chkp.c (chkp_maybe_create_clone): Require
24825 functions to be instrumentable.
24826 * tree-chkp.c (chkp_replace_function_pointer): Use
24827 chkp_instrumentable_p instead of attribute check.
24828
24829 2015-06-18 Richard Biener <rguenther@suse.de>
24830
24831 PR tree-optimization/66510
24832 * tree-vect-stmts.c (vectorizable_load): Properly compute the
24833 number of vector loads for SLP permuted loads.
24834 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
24835 check the stride for loop vectorization.
24836 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
24837 vectorization factor.
24838 (vect_analyze_group_access): If the group size is not a power
24839 of two require a epilogue loop.
24840 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
24841 compute and optimizing and alias test pruning after final
24842 vectorization factor computation.
24843 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
24844 vector alignment.
24845 (vect_transform_slp_perm_load): Properly compute the original
24846 number of vector load stmts.
24847
24848 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24849
24850 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
24851 "unlikely character , in @var" warning.
24852
24853 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
24854
24855 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
24856 (ix86_function_arg_advance): Ditto.
24857 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
24858
24859 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24860
24861 * function.h (struct rtl_data): Remove struct and accessor macros.
24862 * emit-rtl.h (struct rtl_data): Relocate to here.
24863 * Makefile.in (GTFILES): Add emit-rtl.h.
24864 * df-core.c: Include emit-rtl.h.
24865 * genattrtab.c: Likewise.
24866 * genconditions.c: Likewise.
24867 * genpreds.c: Likewise.
24868 * genrecog.c: Likewise.
24869 * regcprop.c: Likewise.
24870 * resource.c: Likewise.
24871 * sched-rgn.c: Likewise.
24872 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24873 * config/i386/winnt.c: Likewise.
24874
24875 2015-06-17 Jakub Jelinek <jakub@redhat.com>
24876
24877 PR middle-end/66429
24878 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
24879 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
24880 and has_force_vectorize_loops flags from cfun into
24881 child_cfun.
24882 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
24883 if simduid is non-NULL.
24884 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
24885 * passes.def (pass_simduid_cleanup): Add new pass after loop
24886 passes.
24887 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
24888 indirection from htab argument's type.
24889 (shrink_simd_arrays): New function.
24890 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
24891 Don't call adjust_simduid_builtins if there are no loops.
24892 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
24893 (pass_simduid_cleanup::execute): New method.
24894 (make_pass_simduid_cleanup): New function.
24895
24896 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
24897
24898 * tree-core.h (tree_target_option): Make opts field a pointer to a
24899 cl_target_option instead of an instance of the struct.
24900 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
24901 the structure.
24902 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
24903 TARGET_OPTION_NODE.
24904 (copy_node_stat): Allocate and copy struct cl_target_option.
24905
24906 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24907
24908 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
24909 Remove conditional exposure of prototypes.
24910 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
24911 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
24912 definitions in tree.h with functions.
24913 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
24914 anon_aggrname_p.
24915 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
24916
24917 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
24918
24919 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
24920 (*cmp<mode>_signed): ... this.
24921 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
24922 (*cmp<mode>_unsigned): ... this. Remove %b.
24923
24924 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
24925
24926 * coretypes.h: Include input.h and as-a.h.
24927 * rtl.h: Include input.h and as-a.h for generator files.
24928 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
24929 * vec.c: Don't include diagnostic-core.h.
24930 * alias.c: Do not include input.h, line-map.h or is-a.h.
24931 * asan.c: Likewise.
24932 * attribs.c: Likewise.
24933 * auto-inc-dec.c: Likewise.
24934 * auto-profile.c: Likewise.
24935 * bb-reorder.c: Likewise.
24936 * bt-load.c: Likewise.
24937 * builtins.c: Likewise.
24938 * caller-save.c: Likewise.
24939 * calls.c: Likewise.
24940 * ccmp.c: Likewise.
24941 * cfg.c: Likewise.
24942 * cfganal.c: Likewise.
24943 * cfgbuild.c: Likewise.
24944 * cfgcleanup.c: Likewise.
24945 * cfgexpand.c: Likewise.
24946 * cfghooks.c: Likewise.
24947 * cfgloop.c: Likewise.
24948 * cfgloop.h: Likewise.
24949 * cfgloopanal.c: Likewise.
24950 * cfgloopmanip.c: Likewise.
24951 * cfgrtl.c: Likewise.
24952 * cgraph.c: Likewise.
24953 * cgraphbuild.c: Likewise.
24954 * cgraphclones.c: Likewise.
24955 * cgraphunit.c: Likewise.
24956 * cilk-common.c: Likewise.
24957 * combine-stack-adj.c: Likewise.
24958 * combine.c: Likewise.
24959 * compare-elim.c: Likewise.
24960 * convert.c: Likewise.
24961 * coverage.c: Likewise.
24962 * cppbuiltin.c: Likewise.
24963 * cprop.c: Likewise.
24964 * cse.c: Likewise.
24965 * cselib.c: Likewise.
24966 * data-streamer-in.c: Likewise.
24967 * data-streamer-out.c: Likewise.
24968 * data-streamer.c: Likewise.
24969 * dbxout.c: Likewise.
24970 * dce.c: Likewise.
24971 * ddg.c: Likewise.
24972 * debug.c: Likewise.
24973 * df-core.c: Likewise.
24974 * df-problems.c: Likewise.
24975 * df-scan.c: Likewise.
24976 * df.h: Likewise.
24977 * dfp.c: Likewise.
24978 * diagnostic-core.h: Likewise.
24979 * diagnostic.c: Likewise.
24980 * dojump.c: Likewise.
24981 * dominance.c: Likewise.
24982 * domwalk.c: Likewise.
24983 * double-int.c: Likewise.
24984 * dse.c: Likewise.
24985 * dumpfile.c: Likewise.
24986 * dumpfile.h: Likewise.
24987 * dwarf2asm.c: Likewise.
24988 * dwarf2cfi.c: Likewise.
24989 * dwarf2out.c: Likewise.
24990 * emit-rtl.c: Likewise.
24991 * et-forest.c: Likewise.
24992 * except.c: Likewise.
24993 * explow.c: Likewise.
24994 * expmed.c: Likewise.
24995 * expr.c: Likewise.
24996 * final.c: Likewise.
24997 * fixed-value.c: Likewise.
24998 * fold-const.c: Likewise.
24999 * function.c: Likewise.
25000 * fwprop.c: Likewise.
25001 * gcc-plugin.h: Likewise.
25002 * gcse.c: Likewise.
25003 * generic-match-head.c: Likewise.
25004 * ggc-page.c: Likewise.
25005 * gimple-builder.c: Likewise.
25006 * gimple-expr.c: Likewise.
25007 * gimple-fold.c: Likewise.
25008 * gimple-iterator.c: Likewise.
25009 * gimple-low.c: Likewise.
25010 * gimple-match-head.c: Likewise.
25011 * gimple-pretty-print.c: Likewise.
25012 * gimple-ssa-isolate-paths.c: Likewise.
25013 * gimple-ssa-strength-reduction.c: Likewise.
25014 * gimple-streamer-in.c: Likewise.
25015 * gimple-streamer-out.c: Likewise.
25016 * gimple-streamer.h: Likewise.
25017 * gimple-walk.c: Likewise.
25018 * gimple.c: Likewise.
25019 * gimplify-me.c: Likewise.
25020 * gimplify.c: Likewise.
25021 * godump.c: Likewise.
25022 * graph.c: Likewise.
25023 * graphite-blocking.c: Likewise.
25024 * graphite-dependences.c: Likewise.
25025 * graphite-interchange.c: Likewise.
25026 * graphite-isl-ast-to-gimple.c: Likewise.
25027 * graphite-optimize-isl.c: Likewise.
25028 * graphite-poly.c: Likewise.
25029 * graphite-scop-detection.c: Likewise.
25030 * graphite-sese-to-poly.c: Likewise.
25031 * graphite.c: Likewise.
25032 * haifa-sched.c: Likewise.
25033 * hw-doloop.c: Likewise.
25034 * ifcvt.c: Likewise.
25035 * init-regs.c: Likewise.
25036 * input.c: Likewise.
25037 * internal-fn.c: Likewise.
25038 * ipa-chkp.c: Likewise.
25039 * ipa-comdats.c: Likewise.
25040 * ipa-cp.c: Likewise.
25041 * ipa-devirt.c: Likewise.
25042 * ipa-icf-gimple.c: Likewise.
25043 * ipa-icf.c: Likewise.
25044 * ipa-inline-analysis.c: Likewise.
25045 * ipa-inline-transform.c: Likewise.
25046 * ipa-inline.c: Likewise.
25047 * ipa-polymorphic-call.c: Likewise.
25048 * ipa-profile.c: Likewise.
25049 * ipa-prop.c: Likewise.
25050 * ipa-pure-const.c: Likewise.
25051 * ipa-ref.c: Likewise.
25052 * ipa-reference.c: Likewise.
25053 * ipa-split.c: Likewise.
25054 * ipa-utils.c: Likewise.
25055 * ipa-visibility.c: Likewise.
25056 * ipa.c: Likewise.
25057 * ira-build.c: Likewise.
25058 * ira-color.c: Likewise.
25059 * ira-conflicts.c: Likewise.
25060 * ira-costs.c: Likewise.
25061 * ira-emit.c: Likewise.
25062 * ira-lives.c: Likewise.
25063 * ira.c: Likewise.
25064 * jump.c: Likewise.
25065 * langhooks.c: Likewise.
25066 * lcm.c: Likewise.
25067 * loop-doloop.c: Likewise.
25068 * loop-init.c: Likewise.
25069 * loop-invariant.c: Likewise.
25070 * loop-iv.c: Likewise.
25071 * loop-unroll.c: Likewise.
25072 * lower-subreg.c: Likewise.
25073 * lra-assigns.c: Likewise.
25074 * lra-coalesce.c: Likewise.
25075 * lra-constraints.c: Likewise.
25076 * lra-eliminations.c: Likewise.
25077 * lra-lives.c: Likewise.
25078 * lra-remat.c: Likewise.
25079 * lra-spills.c: Likewise.
25080 * lra.c: Likewise.
25081 * lto-cgraph.c: Likewise.
25082 * lto-compress.c: Likewise.
25083 * lto-opts.c: Likewise.
25084 * lto-section-in.c: Likewise.
25085 * lto-section-out.c: Likewise.
25086 * lto-streamer-in.c: Likewise.
25087 * lto-streamer-out.c: Likewise.
25088 * lto-streamer.c: Likewise.
25089 * mcf.c: Likewise.
25090 * mode-switching.c: Likewise.
25091 * modulo-sched.c: Likewise.
25092 * omega.c: Likewise.
25093 * omp-low.c: Likewise.
25094 * optabs.c: Likewise.
25095 * opts-global.c: Likewise.
25096 * opts.h: Likewise.
25097 * passes.c: Likewise.
25098 * plugin.c: Likewise.
25099 * postreload-gcse.c: Likewise.
25100 * postreload.c: Likewise.
25101 * predict.c: Likewise.
25102 * pretty-print.h: Likewise.
25103 * print-rtl.c: Likewise.
25104 * print-tree.c: Likewise.
25105 * profile.c: Likewise.
25106 * real.c: Likewise.
25107 * realmpfr.c: Likewise.
25108 * recog.c: Likewise.
25109 * ree.c: Likewise.
25110 * reg-stack.c: Likewise.
25111 * regcprop.c: Likewise.
25112 * reginfo.c: Likewise.
25113 * regrename.c: Likewise.
25114 * regstat.c: Likewise.
25115 * reload.c: Likewise.
25116 * reload1.c: Likewise.
25117 * reorg.c: Likewise.
25118 * resource.c: Likewise.
25119 * rtl-chkp.c: Likewise.
25120 * rtl-error.c: Likewise.
25121 * rtlanal.c: Likewise.
25122 * rtlhooks.c: Likewise.
25123 * sanopt.c: Likewise.
25124 * sched-deps.c: Likewise.
25125 * sched-ebb.c: Likewise.
25126 * sched-rgn.c: Likewise.
25127 * sched-vis.c: Likewise.
25128 * sdbout.c: Likewise.
25129 * sel-sched-dump.c: Likewise.
25130 * sel-sched-ir.c: Likewise.
25131 * sel-sched.c: Likewise.
25132 * sese.c: Likewise.
25133 * shrink-wrap.c: Likewise.
25134 * simplify-rtx.c: Likewise.
25135 * stack-ptr-mod.c: Likewise.
25136 * statistics.c: Likewise.
25137 * stmt.c: Likewise.
25138 * stor-layout.c: Likewise.
25139 * store-motion.c: Likewise.
25140 * streamer-hooks.c: Likewise.
25141 * stringpool.c: Likewise.
25142 * symtab.c: Likewise.
25143 * target-globals.c: Likewise.
25144 * targhooks.c: Likewise.
25145 * toplev.c: Likewise.
25146 * tracer.c: Likewise.
25147 * trans-mem.c: Likewise.
25148 * tree-affine.c: Likewise.
25149 * tree-browser.c: Likewise.
25150 * tree-call-cdce.c: Likewise.
25151 * tree-cfg.c: Likewise.
25152 * tree-cfgcleanup.c: Likewise.
25153 * tree-chkp-opt.c: Likewise.
25154 * tree-chkp.c: Likewise.
25155 * tree-chrec.c: Likewise.
25156 * tree-complex.c: Likewise.
25157 * tree-data-ref.c: Likewise.
25158 * tree-dfa.c: Likewise.
25159 * tree-diagnostic.c: Likewise.
25160 * tree-dump.c: Likewise.
25161 * tree-eh.c: Likewise.
25162 * tree-emutls.c: Likewise.
25163 * tree-if-conv.c: Likewise.
25164 * tree-inline.c: Likewise.
25165 * tree-into-ssa.c: Likewise.
25166 * tree-iterator.c: Likewise.
25167 * tree-loop-distribution.c: Likewise.
25168 * tree-nested.c: Likewise.
25169 * tree-nrv.c: Likewise.
25170 * tree-object-size.c: Likewise.
25171 * tree-outof-ssa.c: Likewise.
25172 * tree-parloops.c: Likewise.
25173 * tree-phinodes.c: Likewise.
25174 * tree-predcom.c: Likewise.
25175 * tree-pretty-print.c: Likewise.
25176 * tree-profile.c: Likewise.
25177 * tree-scalar-evolution.c: Likewise.
25178 * tree-sra.c: Likewise.
25179 * tree-ssa-address.c: Likewise.
25180 * tree-ssa-alias.c: Likewise.
25181 * tree-ssa-ccp.c: Likewise.
25182 * tree-ssa-coalesce.c: Likewise.
25183 * tree-ssa-copy.c: Likewise.
25184 * tree-ssa-copyrename.c: Likewise.
25185 * tree-ssa-dce.c: Likewise.
25186 * tree-ssa-dom.c: Likewise.
25187 * tree-ssa-dse.c: Likewise.
25188 * tree-ssa-forwprop.c: Likewise.
25189 * tree-ssa-ifcombine.c: Likewise.
25190 * tree-ssa-live.c: Likewise.
25191 * tree-ssa-loop-ch.c: Likewise.
25192 * tree-ssa-loop-im.c: Likewise.
25193 * tree-ssa-loop-ivcanon.c: Likewise.
25194 * tree-ssa-loop-ivopts.c: Likewise.
25195 * tree-ssa-loop-manip.c: Likewise.
25196 * tree-ssa-loop-niter.c: Likewise.
25197 * tree-ssa-loop-prefetch.c: Likewise.
25198 * tree-ssa-loop-unswitch.c: Likewise.
25199 * tree-ssa-loop.c: Likewise.
25200 * tree-ssa-math-opts.c: Likewise.
25201 * tree-ssa-operands.c: Likewise.
25202 * tree-ssa-phiopt.c: Likewise.
25203 * tree-ssa-phiprop.c: Likewise.
25204 * tree-ssa-pre.c: Likewise.
25205 * tree-ssa-propagate.c: Likewise.
25206 * tree-ssa-reassoc.c: Likewise.
25207 * tree-ssa-sccvn.c: Likewise.
25208 * tree-ssa-scopedtables.c: Likewise.
25209 * tree-ssa-sink.c: Likewise.
25210 * tree-ssa-strlen.c: Likewise.
25211 * tree-ssa-structalias.c: Likewise.
25212 * tree-ssa-tail-merge.c: Likewise.
25213 * tree-ssa-ter.c: Likewise.
25214 * tree-ssa-threadedge.c: Likewise.
25215 * tree-ssa-threadupdate.c: Likewise.
25216 * tree-ssa-uncprop.c: Likewise.
25217 * tree-ssa-uninit.c: Likewise.
25218 * tree-ssa.c: Likewise.
25219 * tree-ssanames.c: Likewise.
25220 * tree-stdarg.c: Likewise.
25221 * tree-streamer-in.c: Likewise.
25222 * tree-streamer-out.c: Likewise.
25223 * tree-streamer.c: Likewise.
25224 * tree-switch-conversion.c: Likewise.
25225 * tree-tailcall.c: Likewise.
25226 * tree-vect-data-refs.c: Likewise.
25227 * tree-vect-generic.c: Likewise.
25228 * tree-vect-loop-manip.c: Likewise.
25229 * tree-vect-loop.c: Likewise.
25230 * tree-vect-patterns.c: Likewise.
25231 * tree-vect-slp.c: Likewise.
25232 * tree-vect-stmts.c: Likewise.
25233 * tree-vectorizer.c: Likewise.
25234 * tree-vrp.c: Likewise.
25235 * tree.c: Likewise.
25236 * tsan.c: Likewise.
25237 * ubsan.c: Likewise.
25238 * valtrack.c: Likewise.
25239 * value-prof.c: Likewise.
25240 * var-tracking.c: Likewise.
25241 * varasm.c: Likewise.
25242 * varpool.c: Likewise.
25243 * vmsdbgout.c: Likewise.
25244 * vtable-verify.c: Likewise.
25245 * web.c: Likewise.
25246 * wide-int.cc: Likewise.
25247 * xcoffout.c: Likewise.
25248 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25249 * common/common-targhooks.c: Likewise.
25250 * config/aarch64/aarch64-builtins.c: Likewise.
25251 * config/aarch64/aarch64.c: Likewise.
25252 * config/alpha/alpha.c: Likewise.
25253 * config/arc/arc.c: Likewise.
25254 * config/arm/aarch-common.c: Likewise.
25255 * config/arm/arm-builtins.c: Likewise.
25256 * config/arm/arm-c.c: Likewise.
25257 * config/arm/arm.c: Likewise.
25258 * config/avr/avr-c.c: Likewise.
25259 * config/avr/avr-log.c: Likewise.
25260 * config/avr/avr.c: Likewise.
25261 * config/bfin/bfin.c: Likewise.
25262 * config/c6x/c6x.c: Likewise.
25263 * config/cr16/cr16.c: Likewise.
25264 * config/cris/cris.c: Likewise.
25265 * config/darwin-c.c: Likewise.
25266 * config/darwin.c: Likewise.
25267 * config/default-c.c: Likewise.
25268 * config/epiphany/epiphany.c: Likewise.
25269 * config/epiphany/mode-switch-use.c: Likewise.
25270 * config/epiphany/resolve-sw-modes.c: Likewise.
25271 * config/fr30/fr30.c: Likewise.
25272 * config/frv/frv.c: Likewise.
25273 * config/ft32/ft32.c: Likewise.
25274 * config/glibc-c.c: Likewise.
25275 * config/h8300/h8300.c: Likewise.
25276 * config/i386/i386-c.c: Likewise.
25277 * config/i386/i386.c: Likewise.
25278 * config/i386/msformat-c.c: Likewise.
25279 * config/i386/winnt-cxx.c: Likewise.
25280 * config/i386/winnt-stubs.c: Likewise.
25281 * config/i386/winnt.c: Likewise.
25282 * config/ia64/ia64-c.c: Likewise.
25283 * config/ia64/ia64.c: Likewise.
25284 * config/iq2000/iq2000.c: Likewise.
25285 * config/lm32/lm32.c: Likewise.
25286 * config/m32c/m32c-pragma.c: Likewise.
25287 * config/m32c/m32c.c: Likewise.
25288 * config/m32r/m32r.c: Likewise.
25289 * config/m68k/m68k.c: Likewise.
25290 * config/mcore/mcore.c: Likewise.
25291 * config/mep/mep-pragma.c: Likewise.
25292 * config/mep/mep.c: Likewise.
25293 * config/microblaze/microblaze-c.c: Likewise.
25294 * config/microblaze/microblaze.c: Likewise.
25295 * config/mips/mips.c: Likewise.
25296 * config/mmix/mmix.c: Likewise.
25297 * config/mn10300/mn10300.c: Likewise.
25298 * config/moxie/moxie.c: Likewise.
25299 * config/msp430/msp430-c.c: Likewise.
25300 * config/msp430/msp430.c: Likewise.
25301 * config/nds32/nds32-cost.c: Likewise.
25302 * config/nds32/nds32-fp-as-gp.c: Likewise.
25303 * config/nds32/nds32-intrinsic.c: Likewise.
25304 * config/nds32/nds32-isr.c: Likewise.
25305 * config/nds32/nds32-md-auxiliary.c: Likewise.
25306 * config/nds32/nds32-memory-manipulation.c: Likewise.
25307 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25308 * config/nds32/nds32-predicates.c: Likewise.
25309 * config/nds32/nds32.c: Likewise.
25310 * config/nios2/nios2.c: Likewise.
25311 * config/nvptx/nvptx.c: Likewise.
25312 * config/pa/pa.c: Likewise.
25313 * config/pdp11/pdp11.c: Likewise.
25314 * config/rl78/rl78-c.c: Likewise.
25315 * config/rl78/rl78.c: Likewise.
25316 * config/rs6000/rs6000-c.c: Likewise.
25317 * config/rs6000/rs6000.c: Likewise.
25318 * config/rx/rx.c: Likewise.
25319 * config/s390/s390-c.c: Likewise.
25320 * config/s390/s390.c: Likewise.
25321 * config/sh/sh-c.c: Likewise.
25322 * config/sh/sh-mem.cc: Likewise.
25323 * config/sh/sh.c: Likewise.
25324 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25325 * config/sh/sh_treg_combine.cc: Likewise.
25326 * config/sol2-c.c: Likewise.
25327 * config/sol2-cxx.c: Likewise.
25328 * config/sol2-stubs.c: Likewise.
25329 * config/sol2.c: Likewise.
25330 * config/sparc/sparc-c.c: Likewise.
25331 * config/sparc/sparc.c: Likewise.
25332 * config/spu/spu-c.c: Likewise.
25333 * config/spu/spu.c: Likewise.
25334 * config/stormy16/stormy16.c: Likewise.
25335 * config/tilegx/mul-tables.c: Likewise.
25336 * config/tilegx/tilegx-c.c: Likewise.
25337 * config/tilegx/tilegx.c: Likewise.
25338 * config/tilepro/mul-tables.c: Likewise.
25339 * config/tilepro/tilepro-c.c: Likewise.
25340 * config/tilepro/tilepro.c: Likewise.
25341 * config/v850/v850-c.c: Likewise.
25342 * config/v850/v850.c: Likewise.
25343 * config/vax/vax.c: Likewise.
25344 * config/visium/visium.c: Likewise.
25345 * config/vms/vms-c.c: Likewise.
25346 * config/vms/vms.c: Likewise.
25347 * config/vxworks.c: Likewise.
25348 * config/winnt-c.c: Likewise.
25349 * config/xtensa/xtensa.c: Likewise.
25350
25351 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
25352
25353 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25354 function.
25355 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25356
25357 2015-06-17 Richard Biener <rguenther@suse.de>
25358
25359 PR tree-optimization/66251
25360 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25361 stmts for SLP strided stores.
25362
25363 Revert
25364 2015-05-22 Richard Biener <rguenther@suse.de>
25365
25366 PR tree-optimization/66251
25367 * tree-vect-stmts.c (vectorizable_conversion): Properly
25368 set STMT_VINFO_VEC_STMT even for the SLP case.
25369
25370 2015-05-26 Michael Matz <matz@suse.de>
25371
25372 PR middle-end/66251
25373 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25374 STMT_VINFO_VEC_STMT, also with SLP.
25375
25376 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
25377
25378 PR target/56766
25379 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25380 (*avx_addsubv4df3_1s): Ditto.
25381 (*sse3_addsubv2df3_1): Ditto.
25382 (*sse3_addsubv2df3_1s): Ditto.
25383 (*avx_addsubv8sf3_1): Ditto.
25384 (*avx_addsubv8sf3_1s): Ditto.
25385 (*sse3_addsubv4sf3_1): Ditto.
25386 (*sse3_addsubv4sf3_1s): Ditto.
25387
25388 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
25389
25390 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25391 (SYSROOT_SUFFIX_SPEC): Update.
25392 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25393 (STARTFILE_PREFIX_SPEC): Update.
25394 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25395 (MULTILIB_REQUIRED): New.
25396 (MULTILIB_OSDIRNAMES): New.
25397 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25398 (MULTILIB_REQUIRED): New.
25399 (MULTILIB_OSDIRNAMES): New.
25400
25401 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
25402
25403 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25404 * config/aarch64/aarch64-options-extensions.def: Update "fP",
25405 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
25406 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25407 (AARCH64_FL_PAN): New.
25408 (AARCH64_FL_LOR): New.
25409 (AARCH64_FL_RDMA): New.
25410 (AARCH64_FL_FOR_ARCH8_1): New.
25411 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25412 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25413
25414 2015-06-16 Martin Liska <mliska@suse.cz>
25415
25416 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25417 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25418 guard.
25419
25420 2015-06-16 Richard Biener <rguenther@suse.de>
25421
25422 * tree-vect-stmts.c (vectorizable_store): Adjust.
25423 (vectorizable_load): Likewise.
25424 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25425 Simplify.
25426 (vect_create_data_ref_ptr): Likewise.
25427 (bump_vector_ptr): Adjust.
25428
25429 2015-06-16 Richard Biener <rguenther@suse.de>
25430
25431 * tree-vect-stmts.c (vectorizable_load): Properly start loads
25432 with the first element if this is grouped loads.
25433
25434 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
25435
25436 * config/arm/arm-protos.h (struct tune_params): Rename
25437 log_op_non_sc to log_op_non_short_circuit, and rename enum
25438 values to expand SC to SHORT_CIRCUIT.
25439 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
25440 to LOG_OP_NON_SHORT_CIRCUIT.
25441 (arm_fastmul_tune):Likewise
25442 (arm_strongarm_tune): Likewise.
25443 (arm_xscale_tune): Likewise.
25444 (arm_9e_tune): Likewise.
25445 (arm_marvell_pj4_tune): Likewise.
25446 (arm_v6t2_tune): Likewise.
25447 (arm_cortex_tune): Likewise.
25448 (arm_cortex_a8_tune): Likewise.
25449 (arm_cortex_a7_tune): Likewise.
25450 (arm_cortex_a15_tune): Likewise.
25451 (arm_cortex_a53_tune): Likewise.
25452 (arm_cortex_a57_tune): Likewise.
25453 (arm_xgene1_tune): Likewise.
25454 (arm_cortex_a5_tune): Likewise.
25455 (arm_cortex_a9_tune): Likewise.
25456 (arm_cortex_a12_tune): Likewise.
25457 (arm_v7m_tune): Likewise.
25458 (arm_cortex_m7_tune): Likewise.
25459 (arm_v6m_tune): Likewise.
25460 (arm_fa726te_tune): Likewise.
25461
25462 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
25463
25464 * altivec.md: Delete UNSPEC_VMLADDUHM.
25465 (mulv4si3_p8): New pattern.
25466 (mulv4si3): Use it for POWER8.
25467 (mulv8hi3): Use vmladduhm with zero addend.
25468 (altivec_vmladduhm): Descriptive RTL.
25469
25470 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
25471
25472 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
25473 to use neon_move instead of mov_imm.
25474 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
25475 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
25476
25477 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
25478 aarch64_float_const_zero_rtx_p check before TFmode check.
25479 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
25480 an fp zero.
25481 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
25482 code and attributes to match. Change condition from register_operand
25483 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
25484 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
25485 to store2.
25486
25487 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
25488
25489 PR debug/66535
25490 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
25491 there is no parent.
25492
25493 2015-06-14 Shiva Chen <shiva0217@gmail.com>
25494
25495 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
25496 HOST_WIDE_INT parameter.
25497
25498 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
25499
25500 PR ipa/66181
25501 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
25502 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
25503 TYPE_NO_FORCE_BLK.
25504 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
25505
25506 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
25507
25508 * rtl.h (classify_insn): Declare.
25509 * emit-rtl.c (classify_insn): Move to...
25510 * rtl.c: ...here and add generator support.
25511 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
25512 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
25513 * genemit.c (gen_emit_seq): New function.
25514 (gen_expand, gen_split): Use it.
25515
25516 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
25517
25518 * tree.c (make_vector_stat): Fix comment to state that the
25519 function returns a VECTOR_CST.
25520
25521 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
25522
25523 * gensupport.h (add_implicit_parallel): Declare.
25524 * genrecog.c (add_implicit_parallel): Move to...
25525 * gensupport.c (add_implicit_parallel): ...here.
25526 (process_one_cond_exec): Use it.
25527 * genemit.c (gen_insn): Likewise.
25528
25529 2015-06-13 Iain Sandoe <iain@codesourcery.com>
25530
25531 PR bootstrap/66448
25532 * passes.c (rest_of_decl_compilation): Do not register globals for
25533 early debug if they are declared in built-ins.
25534
25535 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
25536
25537 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
25538
25539 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25540
25541 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
25542 manually swapping.
25543 (noce_try_cmove_arith): Likewise.
25544 (noce_get_alt_condition): Likewise.
25545
25546 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25547
25548 * common/config/i386/i386-common.c
25549 (OPTION_MASK_ISA_MWAITX_SET): New.
25550 (ix86_handle_option): Handle mwaitx.
25551 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
25552 (x86_64-*-*): Likewise.
25553 * config/i386/mwaitxintrin.h: New header.
25554 * config/i386/cpuid.h (bit_MWAITX): Define.
25555 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25556 MWAITX support.
25557 * config/i386/i386.opt (mwaitx): New.
25558 * config/i386/i386-builtin-types.def
25559 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
25560 * config/i386/i386-c.c: Define __MWAITX__ if needed.
25561 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
25562 (PTA_MWAITX): New.
25563 (ix86_option_override_internal): Handle new option.
25564 (processor_alias_table): Added PTA_MWAITX.
25565 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
25566 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
25567 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
25568 IX86_BUILTIN_MONITORX built-ins.
25569 * config/i386/i386.h (TARGET_MWAITX): New.
25570 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
25571 UNSPEC_MONITORX.
25572 (mwaitx): New pattern.
25573 (monitorx_<mode>): New pattern.
25574 * config/i386/x86intrin.h: Include mwaitxintrin.h.
25575 * doc/extend.texi: Document monitorx and mwaitx builtins.
25576 * doc/invoke.texi: Document -mmwaitx option.
25577
25578 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
25579
25580 * emit-rtl.c (need_atomic_barrier_p): Mask model with
25581 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
25582
25583 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25584
25585 * dbxout.c (xcoff_debug_hooks): Provide a function for
25586 register_main_translation_unit hook.
25587
25588 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25589
25590 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
25591 variants cases from switch.
25592 (rs6000_post_atomic_barrier): Same.
25593 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
25594 (rs6000_expand_atomic_exchange): Same.
25595 (rs6000_expand_atomic_op): Same.
25596 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
25597 SYNC variants cases from switch.
25598 (atomic_load): Same.
25599 (atomic_store): Same.
25600
25601 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
25602
25603 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
25604 CONST_INT for goto.
25605
25606 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
25607
25608 PR bootstrap/66448
25609 * dwarf2out.c (check_die): Check for common duplicate attributes.
25610 (add_location_or_const_value_attribute): Do not add duplicate
25611 attributes.
25612 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
25613 time around.
25614 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
25615 (gen_type_die_with_usage): Call check_die.
25616 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
25617
25618 2015-06-11 Jason Merrill <jason@redhat.com>
25619
25620 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
25621 dies.
25622
25623 2015-06-11 Marek Polacek <polacek@redhat.com>
25624
25625 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
25626
25627 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
25628
25629 PR bootstrap/66252
25630 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
25631 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
25632 (*addx_extend_sp32): Fix pasto.
25633 (*subx_extend): Rename into...
25634 (*subx_extend_sp32): ...this.
25635 (*adddi3_extend_sp32): Add earlyclobber.
25636 (*subdi3_insn_sp32): Likewise.
25637 (*subdi3_extend_sp32): Likewise.
25638 (*and_not_di_sp32): Likewise.
25639 (*or_not_di_sp32): Likewise.
25640 (*xor_not_di_sp32): Likewise.
25641 (*negdi2_sp32): Likewise.
25642 (*one_cmpldi2_sp32): Likewise.
25643
25644 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
25645
25646 * debug.h (struct gcc_debug_hooks): Add a
25647 register_main_translation_unit hook.
25648 * debug.c (do_nothing_debug_hooks): Provide a function for this
25649 new hook.
25650 * dbxout.c (dbx_debug_hooks): Likewise.
25651 * sdbout.c (sdb_debug_hooks): Likewise.
25652 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25653 * dwarf2out.c (main_translation_unit): New global variable.
25654 (dwarf2out_register_main_translation_unit): New function
25655 implementing the new hook.
25656 (dwarf2_debug_hooks): Assign
25657 dwarf2out_register_main_translation_unit to this new hook.
25658 (dwarf2out_init): Associate any main translation unit to
25659 comp_unit_die ().
25660
25661 2015-06-11 Marek Polacek <polacek@redhat.com>
25662
25663 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
25664
25665 2015-06-11 Marek Polacek <polacek@redhat.com>
25666
25667 * match.pd: Use single_use throughout.
25668
25669 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25670
25671 * config/arm/arm.c (arm_option_params_internal): When optimising
25672 for speed set max_insns_skipped when arm_restrict_it.
25673
25674 2015-06-11 Christian Bruel <christian.bruel@st.com>
25675
25676 PR target/52144
25677 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
25678 macros in ...
25679 (arm_cpu_builtins): New function.
25680 (arm_pragma_target_parse): Call arm_cpu_builtins.
25681 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
25682 (arm_register_target_pragmas): Likewise.
25683 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
25684 Call arm_register_target_pragmas.
25685 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
25686 (arm_pragma_target_parse): Likewise.
25687
25688 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
25689
25690 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
25691 of the second operand.
25692
25693 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
25694
25695 PR target/66473
25696 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
25697 to prepare mask operand for AVX512 modes.
25698
25699 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25700
25701 PR target/66474
25702 * doc/md.texi (Machine Constraints): Document that on the PowerPC
25703 if you use a constraint that targets a VSX register, you must use
25704 %x<n> in the template.
25705
25706 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
25707
25708 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
25709 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
25710 (define_insn "trap"): New definition.
25711
25712 2015-06-10 Richard Biener <rguenther@suse.de>
25713
25714 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
25715 out from ...
25716 (vect_supported_load_permutation_p): ... here. Handle
25717 supportable permutations in reductions.
25718 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
25719 for vectorizing strided group loads.
25720
25721 2015-06-10 Jakub Jelinek <jakub@redhat.com>
25722
25723 PR target/66470
25724 * config/i386/i386.c (ix86_split_long_move): For collisions
25725 involving direct tls segment refs, move the UNSPEC_TP possibly
25726 wrapped in ZERO_EXTEND out of the address for lea, to each of
25727 the memory loads.
25728
25729 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25730
25731 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
25732 dmb sy. Adjust tabs.
25733
25734 2015-06-10 Tom de Vries <tom@codesourcery.com>
25735
25736 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
25737
25738 2015-06-10 Martin Liska <mliska@suse.cz>
25739
25740 PR bootstrap/66471
25741 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
25742 all enum values in mem_alloc_origin.
25743 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
25744 name.
25745 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
25746 * bitmap.c (bitmap_register): Likewise.
25747 (dump_bitmap_statistics): Likewise.
25748 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
25749 (ggc_record_overhead): Likewise.
25750 * hash-map.h: Likewise.
25751 * hash-set.h: Likewise.
25752 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
25753 * hash-table.h: Likewise.
25754 * vec.c (vec_prefix::register_overhead): Likewise.
25755 (vec_prefix::release_overhead): Likewise.
25756 (dump_vec_loc_statistics): Likewise.
25757
25758 2015-06-09 Christian Bruel <christian.bruel@st.com>
25759
25760 PR target/52144
25761 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
25762 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
25763 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
25764 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
25765 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
25766 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
25767 (arm_valid_target_attribute_p): Likewise.
25768 (arm_set_current_function, arm_can_inline_p): Likewise.
25769 (arm_valid_target_attribute_rec): Likewise.
25770 (arm_previous_fndecl): New variable.
25771 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
25772 (TARGET_CAN_INLINE_P): Define.
25773 (arm_asm_trampoline_template): Emit mode.
25774 (arm_file_start): Don't set unified syntax.
25775 (arm_declare_function_name): Set unified syntax and mode.
25776 (arm_option_override): Init target_option_default_node.
25777 and target_option_current_node.
25778 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
25779 (*call_symbol): Likewise.
25780 * doc/extend.texi: Document ARM/Thumb target attribute.
25781 * doc/invoke.texi: Likewise.
25782
25783 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25784
25785 Revert:
25786 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25787 PR rtl-optimization/64164
25788 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25789 * tree-ssa-copyrename.c: Removed.
25790 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25791 -ftree-coalesce-vars.
25792 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25793 * common.opt (ftree-copyrename): Ignore.
25794 (ftree-coalesce-inlined-vars): Likewise.
25795 * doc/invoke.texi: Remove the ignored options above.
25796 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25797 * tree-ssa-coalesce.h: ... here.
25798 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25799 headers required by it.
25800 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25801 across variables when flag_tree_coalesce_vars. Check register
25802 use and promoted modes to allow coalescing. Moved to
25803 tree-ssa-coalesce.c.
25804 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25805 with its member functions to tree-ssa-coalesce.c.
25806 (var_map_base_init): Likewise. Renamed to
25807 compute_samebase_partition_bases.
25808 (partition_view_normal): Drop want_bases parameter.
25809 (partition_view_bitmap): Likewise.
25810 * tree-ssa-live.h: Adjust declarations.
25811 * tree-ssa-coalesce.c: Include explow.h.
25812 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25813 default defs at the entry point.
25814 (dump_part_var_map): New.
25815 (compute_optimized_partition_bases): New, called by...
25816 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25817 of compute_samebase_partition_bases. Adjust.
25818 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25819 * cfgexpand.c (leader_merge): New.
25820 (get_rtl_for_parm_ssa_default_def): New.
25821 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
25822 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
25823 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
25824 redundant MEM attr setting.
25825 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
25826 from...
25827 (expand_one_stack_var): ... this. New wrapper to check and
25828 skip already expanded SSA partitions.
25829 (record_alignment_for_reg_var): New, factored out of...
25830 (expand_one_var): ... this.
25831 (expand_one_ssa_partition): New.
25832 (adjust_one_expanded_partition_var): New.
25833 (expand_one_register_var): Check and skip already expanded SSA
25834 partitions.
25835 (expand_used_vars): Don't create DECLs for anonymous SSA
25836 names. Expand all SSA partitions, then adjust all SSA names.
25837 (pass::execute): Replace the loops that set
25838 SA.partition_to_pseudo from partition leaders and cleared
25839 DECL_RTL for multi-location variables, and that which used to
25840 rename vars and set attrs, with one that clears DECL_RTL and
25841 checks that PARMs and RESULTs default_defs match DECL_RTL.
25842 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
25843 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
25844 * explow.c (promote_ssa_mode): New.
25845 * explow.h (promote_ssa_mode): Declare.
25846 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
25847 * function.c: Include cfgexpand.h.
25848 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
25849 (use_register_for_parm_decl): Wrapper for the above to
25850 special-case the result_ptr.
25851 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
25852 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
25853 multiple locations.
25854 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
25855 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
25856 (assign_parm_setup_block): Prefer SSA-assigned location.
25857 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
25858 if stack_parm is NULL.
25859 (assign_parm_setup_stack): Prefer SSA-assigned location.
25860 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
25861 rtl before testing for pointer bounds. Special-case result_ptr.
25862 (expand_function_start): Maybe reset DECL_RTL of result.
25863 Prefer SSA-assigned location for result and static chain.
25864 Factor out DECL_RESULT and SET_DECL_RTL.
25865 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
25866 anonymous SSA names. Use promote_ssa_mode.
25867 (get_temp_reg): Likewise.
25868 (remove_ssa_form): Adjust.
25869 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
25870 and get its reg_usage for reg invalidation.
25871 (compute_bb_dataflow): Pass it insn.
25872 (emit_notes_in_bb): Likewise.
25873 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
25874 fail assert on conversion between unsigned types.
25875
25876 2015-06-09 Tom de Vries <tom@codesourcery.com>
25877
25878 PR tree-optimization/65460
25879 * omp-low.c (expand_omp_target): Set parallelized_function on
25880 cgraph_node for child_fn.
25881
25882 2015-06-09 Tom de Vries <tom@codesourcery.com>
25883
25884 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
25885 parallelized_function before add_new_function.
25886
25887 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
25888
25889 * gcc-plugin.h: Move decls to plugin.h and include it.
25890 * plugin.h: Relocate decls from gcc-plugin.h
25891 * ggc-page.c: Include required header files.
25892 * passes.c: Likewise.
25893 * cgraphunit.c: Likewise.
25894
25895 2015-06-09 Tom de Vries <tom@codesourcery.com>
25896
25897 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
25898
25899 2015-06-09 Jason Merrill <jason@redhat.com>
25900
25901 PR bootstrap/66448
25902 * toplev.c (check_global_declaration): Don't warn about a clone.
25903
25904 2015-06-09 Marek Polacek <polacek@redhat.com>
25905
25906 PR tree-optimization/66299
25907 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
25908 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
25909 patterns.
25910
25911 2015-06-09 Richard Biener <rguenther@suse.de>
25912
25913 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
25914 (vect_analyze_slp_instance): Instead do not falsely drop
25915 load permutations.
25916
25917 2015-06-09 Richard Biener <rguenther@suse.de>
25918
25919 PR middle-end/66423
25920 * match.pd: Handle A % (unsigned)(1 << B).
25921
25922 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
25923
25924 * varasm.c (output_object_block_htab): Remove.
25925 (output_object_block_compare): New.
25926 (output_object_blocks): Sort named object_blocks before outputting
25927 them.
25928
25929 2015-06-09 Richard Biener <rguenther@suse.de>
25930
25931 PR tree-optimization/66419
25932 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
25933 consider GROUP_GAP when detecting a perfect subchain.
25934
25935 2015-06-09 Nick Clifton <nickc@redhat.com>
25936
25937 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
25938 place read only data in the .frodata section.
25939
25940 2015-06-09 Shiva Chen <shiva0217@gmail.com>
25941
25942 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
25943 (atomic_store<mode>): Likewise.
25944
25945 2015-06-09 Richard Biener <rguenther@suse.de>
25946
25947 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
25948
25949 2015-06-09 Richard Biener <rguenther@suse.de>
25950
25951 PR middle-end/66413
25952 * tree-inline.c (insert_init_debug_bind): Unshare value.
25953
25954 2015-06-09 Richard Biener <rguenther@suse.de>
25955
25956 PR tree-optimization/66396
25957 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
25958 Rename virtual operands.
25959
25960 2015-06-09 Tom de Vries <tom@codesourcery.com>
25961
25962 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
25963 always return false.
25964
25965 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25966
25967 PR rtl-optimization/64164
25968 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25969 * tree-ssa-copyrename.c: Removed.
25970 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25971 -ftree-coalesce-vars.
25972 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25973 * common.opt (ftree-copyrename): Ignore.
25974 (ftree-coalesce-inlined-vars): Likewise.
25975 * doc/invoke.texi: Remove the ignored options above.
25976 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25977 * tree-ssa-coalesce.h: ... here.
25978 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25979 headers required by it.
25980 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25981 across variables when flag_tree_coalesce_vars. Check register
25982 use and promoted modes to allow coalescing. Moved to
25983 tree-ssa-coalesce.c.
25984 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25985 with its member functions to tree-ssa-coalesce.c.
25986 (var_map_base_init): Likewise. Renamed to
25987 compute_samebase_partition_bases.
25988 (partition_view_normal): Drop want_bases parameter.
25989 (partition_view_bitmap): Likewise.
25990 * tree-ssa-live.h: Adjust declarations.
25991 * tree-ssa-coalesce.c: Include explow.h.
25992 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
25993 default defs at the entry point.
25994 (dump_part_var_map): New.
25995 (compute_optimized_partition_bases): New, called by...
25996 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
25997 of compute_samebase_partition_bases. Adjust.
25998 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
25999 * cfgexpand.c (leader_merge): New.
26000 (get_rtl_for_parm_ssa_default_def): New.
26001 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26002 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26003 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26004 redundant MEM attr setting.
26005 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26006 from...
26007 (expand_one_stack_var): ... this. New wrapper to check and
26008 skip already expanded SSA partitions.
26009 (record_alignment_for_reg_var): New, factored out of...
26010 (expand_one_var): ... this.
26011 (expand_one_ssa_partition): New.
26012 (adjust_one_expanded_partition_var): New.
26013 (expand_one_register_var): Check and skip already expanded SSA
26014 partitions.
26015 (expand_used_vars): Don't create DECLs for anonymous SSA
26016 names. Expand all SSA partitions, then adjust all SSA names.
26017 (pass::execute): Replace the loops that set
26018 SA.partition_to_pseudo from partition leaders and cleared
26019 DECL_RTL for multi-location variables, and that which used to
26020 rename vars and set attrs, with one that clears DECL_RTL and
26021 checks that PARMs and RESULTs default_defs match DECL_RTL.
26022 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26023 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26024 * explow.c (promote_ssa_mode): New.
26025 * explow.h (promote_ssa_mode): Declare.
26026 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26027 * function.c: Include cfgexpand.h.
26028 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26029 (use_register_for_parm_decl): Wrapper for the above to
26030 special-case the result_ptr.
26031 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26032 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26033 multiple locations.
26034 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26035 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26036 (assign_parm_setup_block): Prefer SSA-assigned location.
26037 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26038 if stack_parm is NULL.
26039 (assign_parm_setup_stack): Prefer SSA-assigned location.
26040 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26041 rtl before testing for pointer bounds. Special-case result_ptr.
26042 (expand_function_start): Maybe reset DECL_RTL of result.
26043 Prefer SSA-assigned location for result and static chain.
26044 Factor out DECL_RESULT and SET_DECL_RTL.
26045 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26046 anonymous SSA names. Use promote_ssa_mode.
26047 (get_temp_reg): Likewise.
26048 (remove_ssa_form): Adjust.
26049 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26050 and get its reg_usage for reg invalidation.
26051 (compute_bb_dataflow): Pass it insn.
26052 (emit_notes_in_bb): Likewise.
26053 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26054 fail assert on conversion between unsigned types.
26055
26056 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26057
26058 PR debug/58315
26059 * tree-inline.c (reset_debug_binding): New.
26060 (reset_debug_bindings): Likewise.
26061 (expand_call_inline): Call it.
26062
26063 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26064
26065 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26066 TYPE_STRING_FLAG.
26067
26068 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26069
26070 * lto-streamer-out.c (lto_output_location): Stream
26071 reserved locations correctly.
26072 * lto-streamer-in.c (lto_output_location): Likewise.
26073
26074 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
26075
26076 * coretypes.h: Include hash-table.h and hash-set.h for host files.
26077 * ggc.h: Don't include statistics.h>
26078 * hash-map.h: Remove all includes.
26079 * hash-set.h: Likewise.
26080 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26081 the include list. Remove <new>.
26082 * inchash.h: Remove all includes.
26083 * mem-stats.h: Likewise.
26084 * vec.h: No special processing for generators or ggc.
26085 * alias.c : Adjust include files.
26086 * alloc-pool.c : Likewise.
26087 * alloc-pool.h : Likewise.
26088 * asan.c : Likewise.
26089 * attribs.c : Likewise.
26090 * auto-inc-dec.c : Likewise.
26091 * auto-profile.c : Likewise.
26092 * bb-reorder.c : Likewise.
26093 * bitmap.c : Likewise.
26094 * bitmap.h : Likewise.
26095 * bt-load.c : Likewise.
26096 * builtins.c : Likewise.
26097 * caller-save.c : Likewise.
26098 * calls.c : Likewise.
26099 * ccmp.c : Likewise.
26100 * cfg.c : Likewise.
26101 * cfganal.c : Likewise.
26102 * cfgbuild.c : Likewise.
26103 * cfgcleanup.c : Likewise.
26104 * cfgexpand.c : Likewise.
26105 * cfghooks.c : Likewise.
26106 * cfgloop.c : Likewise.
26107 * cfgloop.h : Likewise.
26108 * cfgloopanal.c : Likewise.
26109 * cfgloopmanip.c : Likewise.
26110 * cfgrtl.c : Likewise.
26111 * cgraph.c : Likewise.
26112 * cgraphbuild.c : Likewise.
26113 * cgraphclones.c : Likewise.
26114 * cgraphunit.c : Likewise.
26115 * cilk-common.c : Likewise.
26116 * combine-stack-adj.c : Likewise.
26117 * combine.c : Likewise.
26118 * compare-elim.c : Likewise.
26119 * context.c : Likewise.
26120 * convert.c : Likewise.
26121 * coverage.c : Likewise.
26122 * cppbuiltin.c : Likewise.
26123 * cprop.c : Likewise.
26124 * cse.c : Likewise.
26125 * cselib.c : Likewise.
26126 * data-streamer-in.c : Likewise.
26127 * data-streamer-out.c : Likewise.
26128 * data-streamer.c : Likewise.
26129 * data-streamer.h : Likewise.
26130 * dbxout.c : Likewise.
26131 * dce.c : Likewise.
26132 * ddg.c : Likewise.
26133 * debug.c : Likewise.
26134 * df-core.c : Likewise.
26135 * df-problems.c : Likewise.
26136 * df-scan.c : Likewise.
26137 * df.h : Likewise.
26138 * dfp.c : Likewise.
26139 * dojump.c : Likewise.
26140 * dominance.c : Likewise.
26141 * domwalk.c : Likewise.
26142 * double-int.c : Likewise.
26143 * dse.c : Likewise.
26144 * dumpfile.c : Likewise.
26145 * dwarf2asm.c : Likewise.
26146 * dwarf2cfi.c : Likewise.
26147 * dwarf2out.c : Likewise.
26148 * emit-rtl.c : Likewise.
26149 * et-forest.c : Likewise.
26150 * except.c : Likewise.
26151 * except.h : Likewise.
26152 * explow.c : Likewise.
26153 * expmed.c : Likewise.
26154 * expr.c : Likewise.
26155 * final.c : Likewise.
26156 * fixed-value.c : Likewise.
26157 * fold-const.c : Likewise.
26158 * function.c : Likewise.
26159 * fwprop.c : Likewise.
26160 * gcc-plugin.h : Likewise.
26161 * gcc.c : Likewise.
26162 * gcse-common.c : Likewise.
26163 * gcse.c : Likewise.
26164 * genattrtab.c : Likewise.
26165 * genautomata.c : Likewise.
26166 * genconditions.c : Likewise.
26167 * genemit.c : Likewise.
26168 * generic-match-head.c : Likewise.
26169 * genextract.c : Likewise.
26170 * gengtype-state.c : Likewise.
26171 * gengtype.c : Likewise.
26172 * genhooks.c : Likewise.
26173 * genmatch.c : Likewise.
26174 * genmodes.c : Likewise.
26175 * genrecog.c : Likewise.
26176 * gensupport.c : Likewise.
26177 * ggc-common.c : Likewise.
26178 * ggc-internal.h : Likewise.
26179 * ggc-none.c : Likewise.
26180 * ggc-page.c : Likewise.
26181 * gimple-builder.c : Likewise.
26182 * gimple-expr.c : Likewise.
26183 * gimple-fold.c : Likewise.
26184 * gimple-iterator.c : Likewise.
26185 * gimple-low.c : Likewise.
26186 * gimple-match-head.c : Likewise.
26187 * gimple-pretty-print.c : Likewise.
26188 * gimple-ssa-isolate-paths.c : Likewise.
26189 * gimple-ssa-strength-reduction.c : Likewise.
26190 * gimple-ssa.h : Likewise.
26191 * gimple-streamer-in.c : Likewise.
26192 * gimple-streamer-out.c : Likewise.
26193 * gimple-streamer.h : Likewise.
26194 * gimple-walk.c : Likewise.
26195 * gimple.c : Likewise.
26196 * gimplify-me.c : Likewise.
26197 * gimplify.c : Likewise.
26198 * godump.c : Likewise.
26199 * graph.c : Likewise.
26200 * graphds.c : Likewise.
26201 * graphite-blocking.c : Likewise.
26202 * graphite-dependences.c : Likewise.
26203 * graphite-interchange.c : Likewise.
26204 * graphite-isl-ast-to-gimple.c : Likewise.
26205 * graphite-optimize-isl.c : Likewise.
26206 * graphite-poly.c : Likewise.
26207 * graphite-scop-detection.c : Likewise.
26208 * graphite-sese-to-poly.c : Likewise.
26209 * graphite.c : Likewise.
26210 * haifa-sched.c : Likewise.
26211 * hard-reg-set.h : Likewise.
26212 * hw-doloop.c : Likewise.
26213 * ifcvt.c : Likewise.
26214 * inchash.c : Likewise.
26215 * incpath.c : Likewise.
26216 * init-regs.c : Likewise.
26217 * input.c : Likewise.
26218 * internal-fn.c : Likewise.
26219 * ipa-chkp.c : Likewise.
26220 * ipa-comdats.c : Likewise.
26221 * ipa-cp.c : Likewise.
26222 * ipa-devirt.c : Likewise.
26223 * ipa-icf-gimple.c : Likewise.
26224 * ipa-icf.c : Likewise.
26225 * ipa-inline-analysis.c : Likewise.
26226 * ipa-inline-transform.c : Likewise.
26227 * ipa-inline.c : Likewise.
26228 * ipa-polymorphic-call.c : Likewise.
26229 * ipa-profile.c : Likewise.
26230 * ipa-prop.c : Likewise.
26231 * ipa-pure-const.c : Likewise.
26232 * ipa-ref.c : Likewise.
26233 * ipa-reference.c : Likewise.
26234 * ipa-split.c : Likewise.
26235 * ipa-utils.c : Likewise.
26236 * ipa-visibility.c : Likewise.
26237 * ipa.c : Likewise.
26238 * ira-build.c : Likewise.
26239 * ira-color.c : Likewise.
26240 * ira-conflicts.c : Likewise.
26241 * ira-costs.c : Likewise.
26242 * ira-emit.c : Likewise.
26243 * ira-lives.c : Likewise.
26244 * ira.c : Likewise.
26245 * jump.c : Likewise.
26246 * langhooks.c : Likewise.
26247 * lcm.c : Likewise.
26248 * libfuncs.h : Likewise.
26249 * lists.c : Likewise.
26250 * loop-doloop.c : Likewise.
26251 * loop-init.c : Likewise.
26252 * loop-invariant.c : Likewise.
26253 * loop-iv.c : Likewise.
26254 * loop-unroll.c : Likewise.
26255 * lower-subreg.c : Likewise.
26256 * lra-assigns.c : Likewise.
26257 * lra-coalesce.c : Likewise.
26258 * lra-constraints.c : Likewise.
26259 * lra-eliminations.c : Likewise.
26260 * lra-lives.c : Likewise.
26261 * lra-remat.c : Likewise.
26262 * lra-spills.c : Likewise.
26263 * lra.c : Likewise.
26264 * lto-cgraph.c : Likewise.
26265 * lto-compress.c : Likewise.
26266 * lto-opts.c : Likewise.
26267 * lto-section-in.c : Likewise.
26268 * lto-section-out.c : Likewise.
26269 * lto-streamer-in.c : Likewise.
26270 * lto-streamer-out.c : Likewise.
26271 * lto-streamer.c : Likewise.
26272 * lto-streamer.h : Likewise.
26273 * mcf.c : Likewise.
26274 * mode-switching.c : Likewise.
26275 * modulo-sched.c : Likewise.
26276 * omega.c : Likewise.
26277 * omp-low.c : Likewise.
26278 * optabs.c : Likewise.
26279 * opts-global.c : Likewise.
26280 * opts.h : Likewise.
26281 * passes.c : Likewise.
26282 * plugin.c : Likewise.
26283 * postreload-gcse.c : Likewise.
26284 * postreload.c : Likewise.
26285 * predict.c : Likewise.
26286 * print-rtl.c : Likewise.
26287 * print-tree.c : Likewise.
26288 * profile.c : Likewise.
26289 * read-md.c : Likewise.
26290 * read-md.h : Likewise.
26291 * read-rtl.c : Likewise.
26292 * real.c : Likewise.
26293 * realmpfr.c : Likewise.
26294 * recog.c : Likewise.
26295 * ree.c : Likewise.
26296 * reg-stack.c : Likewise.
26297 * regcprop.c : Likewise.
26298 * reginfo.c : Likewise.
26299 * regrename.c : Likewise.
26300 * regstat.c : Likewise.
26301 * reload.c : Likewise.
26302 * reload1.c : Likewise.
26303 * reorg.c : Likewise.
26304 * resource.c : Likewise.
26305 * rtl-chkp.c : Likewise.
26306 * rtl.c : Likewise.
26307 * rtl.h : Likewise.
26308 * rtlanal.c : Likewise.
26309 * rtlhash.c : Likewise.
26310 * rtlhash.h : Likewise.
26311 * rtlhooks.c : Likewise.
26312 * sanopt.c : Likewise.
26313 * sched-deps.c : Likewise.
26314 * sched-ebb.c : Likewise.
26315 * sched-rgn.c : Likewise.
26316 * sched-vis.c : Likewise.
26317 * sdbout.c : Likewise.
26318 * sel-sched-dump.c : Likewise.
26319 * sel-sched-ir.c : Likewise.
26320 * sel-sched-ir.h : Likewise.
26321 * sel-sched.c : Likewise.
26322 * sese.c : Likewise.
26323 * shrink-wrap.c : Likewise.
26324 * shrink-wrap.h : Likewise.
26325 * simplify-rtx.c : Likewise.
26326 * stack-ptr-mod.c : Likewise.
26327 * statistics.c : Likewise.
26328 * stmt.c : Likewise.
26329 * stor-layout.c : Likewise.
26330 * store-motion.c : Likewise.
26331 * stringpool.c : Likewise.
26332 * symtab.c : Likewise.
26333 * target-globals.c : Likewise.
26334 * targhooks.c : Likewise.
26335 * tlink.c : Likewise.
26336 * toplev.c : Likewise.
26337 * tracer.c : Likewise.
26338 * trans-mem.c : Likewise.
26339 * tree-affine.c : Likewise.
26340 * tree-affine.h : Likewise.
26341 * tree-browser.c : Likewise.
26342 * tree-call-cdce.c : Likewise.
26343 * tree-cfg.c : Likewise.
26344 * tree-cfgcleanup.c : Likewise.
26345 * tree-chkp-opt.c : Likewise.
26346 * tree-chkp.c : Likewise.
26347 * tree-chrec.c : Likewise.
26348 * tree-complex.c : Likewise.
26349 * tree-data-ref.c : Likewise.
26350 * tree-dfa.c : Likewise.
26351 * tree-diagnostic.c : Likewise.
26352 * tree-dump.c : Likewise.
26353 * tree-eh.c : Likewise.
26354 * tree-eh.h : Likewise.
26355 * tree-emutls.c : Likewise.
26356 * tree-hasher.h : Likewise.
26357 * tree-if-conv.c : Likewise.
26358 * tree-inline.c : Likewise.
26359 * tree-inline.h : Likewise.
26360 * tree-into-ssa.c : Likewise.
26361 * tree-iterator.c : Likewise.
26362 * tree-loop-distribution.c : Likewise.
26363 * tree-nested.c : Likewise.
26364 * tree-nrv.c : Likewise.
26365 * tree-object-size.c : Likewise.
26366 * tree-outof-ssa.c : Likewise.
26367 * tree-parloops.c : Likewise.
26368 * tree-phinodes.c : Likewise.
26369 * tree-predcom.c : Likewise.
26370 * tree-pretty-print.c : Likewise.
26371 * tree-profile.c : Likewise.
26372 * tree-scalar-evolution.c : Likewise.
26373 * tree-sra.c : Likewise.
26374 * tree-ssa-address.c : Likewise.
26375 * tree-ssa-alias.c : Likewise.
26376 * tree-ssa-ccp.c : Likewise.
26377 * tree-ssa-coalesce.c : Likewise.
26378 * tree-ssa-copy.c : Likewise.
26379 * tree-ssa-copyrename.c : Likewise.
26380 * tree-ssa-dce.c : Likewise.
26381 * tree-ssa-dom.c : Likewise.
26382 * tree-ssa-dse.c : Likewise.
26383 * tree-ssa-forwprop.c : Likewise.
26384 * tree-ssa-ifcombine.c : Likewise.
26385 * tree-ssa-live.c : Likewise.
26386 * tree-ssa-loop-ch.c : Likewise.
26387 * tree-ssa-loop-im.c : Likewise.
26388 * tree-ssa-loop-ivcanon.c : Likewise.
26389 * tree-ssa-loop-ivopts.c : Likewise.
26390 * tree-ssa-loop-manip.c : Likewise.
26391 * tree-ssa-loop-niter.c : Likewise.
26392 * tree-ssa-loop-prefetch.c : Likewise.
26393 * tree-ssa-loop-unswitch.c : Likewise.
26394 * tree-ssa-loop.c : Likewise.
26395 * tree-ssa-math-opts.c : Likewise.
26396 * tree-ssa-operands.c : Likewise.
26397 * tree-ssa-phiopt.c : Likewise.
26398 * tree-ssa-phiprop.c : Likewise.
26399 * tree-ssa-pre.c : Likewise.
26400 * tree-ssa-propagate.c : Likewise.
26401 * tree-ssa-reassoc.c : Likewise.
26402 * tree-ssa-sccvn.c : Likewise.
26403 * tree-ssa-scopedtables.c : Likewise.
26404 * tree-ssa-sink.c : Likewise.
26405 * tree-ssa-strlen.c : Likewise.
26406 * tree-ssa-structalias.c : Likewise.
26407 * tree-ssa-tail-merge.c : Likewise.
26408 * tree-ssa-ter.c : Likewise.
26409 * tree-ssa-threadedge.c : Likewise.
26410 * tree-ssa-threadupdate.c : Likewise.
26411 * tree-ssa-uncprop.c : Likewise.
26412 * tree-ssa-uninit.c : Likewise.
26413 * tree-ssa.c : Likewise.
26414 * tree-ssanames.c : Likewise.
26415 * tree-stdarg.c : Likewise.
26416 * tree-streamer-in.c : Likewise.
26417 * tree-streamer-out.c : Likewise.
26418 * tree-streamer.c : Likewise.
26419 * tree-streamer.h : Likewise.
26420 * tree-switch-conversion.c : Likewise.
26421 * tree-tailcall.c : Likewise.
26422 * tree-vect-data-refs.c : Likewise.
26423 * tree-vect-generic.c : Likewise.
26424 * tree-vect-loop-manip.c : Likewise.
26425 * tree-vect-loop.c : Likewise.
26426 * tree-vect-patterns.c : Likewise.
26427 * tree-vect-slp.c : Likewise.
26428 * tree-vect-stmts.c : Likewise.
26429 * tree-vectorizer.c : Likewise.
26430 * tree-vectorizer.h : Likewise.
26431 * tree-vrp.c : Likewise.
26432 * tree.c : Likewise.
26433 * tsan.c : Likewise.
26434 * ubsan.c : Likewise.
26435 * valtrack.c : Likewise.
26436 * valtrack.h : Likewise.
26437 * value-prof.c : Likewise.
26438 * var-tracking.c : Likewise.
26439 * varasm.c : Likewise.
26440 * varpool.c : Likewise.
26441 * vec.c: Likewise.
26442 * vmsdbgout.c : Likewise.
26443 * vtable-verify.c : Likewise.
26444 * vtable-verify.h : Likewise.
26445 * web.c : Likewise.
26446 * wide-int.cc : Likewise.
26447 * xcoffout.c : Likewise.
26448 * config/aarch64/aarch64-builtins.c : Likewise.
26449 * config/aarch64/aarch64.c : Likewise.
26450 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
26451 * config/alpha/alpha.c : Likewise.
26452 * config/arc/arc.c : Likewise.
26453 * config/arm/aarch-common.c : Likewise.
26454 * config/arm/arm-builtins.c : Likewise.
26455 * config/arm/arm-c.c : Likewise.
26456 * config/arm/arm.c : Likewise.
26457 * config/avr/avr-c.c : Likewise.
26458 * config/avr/avr-log.c : Likewise.
26459 * config/avr/avr.c : Likewise.
26460 * config/bfin/bfin.c : Likewise.
26461 * config/c6x/c6x.c : Likewise.
26462 * config/cr16/cr16.c : Likewise.
26463 * config/cris/cris.c : Likewise.
26464 * config/darwin-c.c : Likewise.
26465 * config/darwin.c : Likewise.
26466 * config/default-c.c : Likewise.
26467 * config/epiphany/epiphany.c : Likewise.
26468 * config/epiphany/mode-switch-use.c : Likewise.
26469 * config/epiphany/resolve-sw-modes.c : Likewise.
26470 * config/fr30/fr30.c : Likewise.
26471 * config/frv/frv.c : Likewise.
26472 * config/ft32/ft32.c : Likewise.
26473 * config/glibc-c.c : Likewise.
26474 * config/h8300/h8300.c : Likewise.
26475 * config/i386/i386-c.c : Likewise.
26476 * config/i386/i386.c : Likewise.
26477 * config/i386/msformat-c.c : Likewise.
26478 * config/i386/winnt-cxx.c : Likewise.
26479 * config/i386/winnt-stubs.c : Likewise.
26480 * config/i386/winnt.c : Likewise.
26481 * config/ia64/ia64-c.c : Likewise.
26482 * config/ia64/ia64.c : Likewise.
26483 * config/iq2000/iq2000.c : Likewise.
26484 * config/lm32/lm32.c : Likewise.
26485 * config/m32c/m32c-pragma.c : Likewise.
26486 * config/m32c/m32c.c : Likewise.
26487 * config/m32r/m32r.c : Likewise.
26488 * config/m68k/m68k.c : Likewise.
26489 * config/mcore/mcore.c : Likewise.
26490 * config/mep/mep-pragma.c : Likewise.
26491 * config/mep/mep.c : Likewise.
26492 * config/microblaze/microblaze-c.c : Likewise.
26493 * config/microblaze/microblaze.c : Likewise.
26494 * config/mips/mips.c : Likewise.
26495 * config/mmix/mmix.c : Likewise.
26496 * config/mn10300/mn10300.c : Likewise.
26497 * config/moxie/moxie.c : Likewise.
26498 * config/msp430/msp430-c.c : Likewise.
26499 * config/msp430/msp430.c : Likewise.
26500 * config/nds32/nds32-cost.c : Likewise.
26501 * config/nds32/nds32-fp-as-gp.c : Likewise.
26502 * config/nds32/nds32-intrinsic.c : Likewise.
26503 * config/nds32/nds32-isr.c : Likewise.
26504 * config/nds32/nds32-md-auxiliary.c : Likewise.
26505 * config/nds32/nds32-memory-manipulation.c : Likewise.
26506 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
26507 * config/nds32/nds32-predicates.c : Likewise.
26508 * config/nds32/nds32.c : Likewise.
26509 * config/nios2/nios2.c : Likewise.
26510 * config/nvptx/nvptx.c : Likewise.
26511 * config/pa/pa.c : Likewise.
26512 * config/pdp11/pdp11.c : Likewise.
26513 * config/rl78/rl78-c.c : Likewise.
26514 * config/rl78/rl78.c : Likewise.
26515 * config/rs6000/rs6000-c.c : Likewise.
26516 * config/rs6000/rs6000.c : Likewise.
26517 * config/rx/rx.c : Likewise.
26518 * config/s390/s390-c.c : Likewise.
26519 * config/s390/s390.c : Likewise.
26520 * config/sh/sh-c.c : Likewise.
26521 * config/sh/sh-mem.cc : Likewise.
26522 * config/sh/sh.c : Likewise.
26523 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
26524 * config/sh/sh_treg_combine.cc : Likewise.
26525 * config/sol2-c.c : Likewise.
26526 * config/sol2-cxx.c : Likewise.
26527 * config/sol2-stubs.c : Likewise.
26528 * config/sol2.c : Likewise.
26529 * config/sparc/sparc-c.c : Likewise.
26530 * config/sparc/sparc.c : Likewise.
26531 * config/spu/spu-c.c : Likewise.
26532 * config/spu/spu.c : Likewise.
26533 * config/stormy16/stormy16.c : Likewise.
26534 * config/tilegx/mul-tables.c : Likewise.
26535 * config/tilegx/tilegx-c.c : Likewise.
26536 * config/tilegx/tilegx.c : Likewise.
26537 * config/tilepro/mul-tables.c : Likewise.
26538 * config/tilepro/tilepro-c.c : Likewise.
26539 * config/tilepro/tilepro.c : Likewise.
26540 * config/v850/v850-c.c : Likewise.
26541 * config/v850/v850.c : Likewise.
26542 * config/vax/vax.c : Likewise.
26543 * config/visium/visium.c : Likewise.
26544 * config/vms/vms-c.c : Likewise.
26545 * config/vms/vms.c : Likewise.
26546 * config/vxworks.c : Likewise.
26547 * config/winnt-c.c : Likewise.
26548 * config/xtensa/xtensa.c : Likewise.
26549
26550 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26551
26552 PR lto/65378
26553 * ipa-utils.h (warn_types_mismatch): Update prototype.
26554 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
26555 parameters.
26556 (type_mismatch_p): New function.
26557 (warn_types_mismatch): Reorg to work better on non-C++ types.
26558 (odr_types_equivalent_p): Add loc1/loc2 parameters.
26559 (add_type_duplicate): Update.
26560
26561 2015-06-08 Tom de Vries <tom@codesourcery.com>
26562
26563 PR rtl-optimization/66444
26564 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
26565 call_used_regs.
26566
26567 2015-06-08 Richard Biener <rguenther@suse.de>
26568
26569 PR tree-optimization/66422
26570 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
26571 block after inserted gcc_unreachable.
26572
26573 2015-06-08 Nick Clifton <nickc@redhat.com>
26574
26575 * config/rx/rx.c (rx_function_value): Do not promote vector types.
26576 (rx_promote_function_mode): Likewise.
26577 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
26578
26579 2015-06-08 Jakub Jelinek <jakub@redhat.com>
26580
26581 * genattrtab.c (insn_alternatives): Change type from int *
26582 to uint64_t *.
26583 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
26584 (get_attr_value): Change type of num_alt to uint64_t.
26585 (compute_alternative_mask): Change return type from
26586 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
26587 (make_alternative_compare, mk_attr_alt): Change argument type
26588 from int to uint64_t.
26589 (simplify_test_exp): Change type of i from int to uint64_t.
26590 Shift ((uint64_t) 1) instead of 1 up.
26591 (main): Adjust oballocvec first argument from int to uint64_t.
26592 Shift ((uint64_t) 1) instead of 1 up.
26593
26594 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
26595
26596 PR other/65366
26597 * gdbhooks.py: Import sys.
26598 (intptr): New function. Replace int(...) by intptr(...).
26599
26600 2015-06-08 Richard Biener <rguenther@suse.de>
26601
26602 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
26603 adjustment for gaps at the end of a SLP load group properly.
26604 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
26605 all permutations we can generate.
26606 (vect_transform_slp_perm_load): Use the correct group-size.
26607
26608 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
26609
26610 * genmatch.c (expr::gen_transform): For conditions, guess the type
26611 from the second operand.
26612
26613 2015-06-08 Tom de Vries <tom@codesourcery.com>
26614
26615 PR tree-optimization/66442
26616 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
26617 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
26618 if the loop latch is not a singleton. Use
26619 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
26620
26621 2015-06-08 Marek Polacek <polacek@redhat.com>
26622
26623 PR sanitizer/66452
26624 * toplev.c (check_global_declaration): Don't warn about artificial
26625 decls.
26626
26627 2015-06-08 Tom de Vries <tom@codesourcery.com>
26628
26629 PR tree-optimization/66436
26630 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
26631 dump file.
26632 * gimplify.c: Add tree-dump.h include.
26633 (gimplify_function_tree): Dump function to gimple dump file.
26634 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
26635 dump file.
26636
26637 2015-06-08 Tom de Vries <tom@codesourcery.com>
26638
26639 PR tree-optimization/66435
26640 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
26641 function.
26642
26643 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
26644
26645 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
26646 of ptr_type_node to not be ptr_to_node.
26647 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
26648 TREE_TYPE of pointers.
26649 * gimple-expr.c (useless_type_conversion): Reorder the check for
26650 function pointers and TYPE_CANONICAL.
26651
26652 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
26653
26654 PR bootstrap/66319
26655 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
26656 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
26657 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
26658 later.
26659 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
26660 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
26661 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
26662 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
26663 and non iso if unix2003.
26664
26665 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
26666
26667 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
26668
26669 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
26670
26671 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
26672 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
26673 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
26674 except.c, final.c, function.c, gcse-common.c, genemit.c,
26675 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
26676 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
26677 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
26678 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
26679 more derived ones.
26680
26681 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
26682
26683 * combine.c (combine_split_insns): Remove cast.
26684 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
26685 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
26686 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
26687 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
26688 * genemit.c (gen_split): Change return type of generated functions to
26689 rtx_insn.
26690 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
26691 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
26692 gen_peephole2_* functions.
26693 (print_subroutine, main): Likewise.
26694 * recog.c (peephole2_optimize): Remove cast.
26695 (peep2_next_insn): Promote return type to rtx_insn.
26696 * recog.h (peep2_next_insn): Fix prototype.
26697 * rtl.h (try_split, split_insns): Likewise.
26698
26699 2015-06-06 DJ Delorie <dj@redhat.com>
26700
26701 * config/msp430/msp430.c (msp430_asm_integer): Support addition
26702 and subtraction too.
26703
26704 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
26705
26706 PR target/66410
26707 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
26708 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
26709 instead of Snd. Disparage Sid/z alternative with '^'.
26710
26711 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
26712
26713 * dwarf2out.c: Remove deferred_locations*.
26714 (dwarf2_debug_hooks): Add early_finish hook.
26715 Remove global_decl hook.
26716 Add early_global_decl and late_global_decl hook.
26717 New global early_dwarf.
26718 New structure set_early_dwarf.
26719 (output_die): Indicate whether a DIE was generated early
26720 when generating assembly with -dA.
26721 (struct limbo_die_struct): Document created_for field.
26722 Remove file_table_last_lookup.
26723 (remove_AT): Return TRUE if successful.
26724 (remove_child_TAG): Clear die_parent.
26725 (reparent_child): New function abstracted from...
26726 (splice_child_die): ...here.
26727 (new_die): ICE if a DIE ends up in limbo too late.
26728 (check_die): New.
26729 (defer_location): Remove.
26730 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
26731 (fill_variable_array_bounds): New.
26732 (decl_start_label): Call fill_variable_array_bounds.
26733 (gen_formal_parameter_die): Rewrite to reuse previously generated
26734 DIEs.
26735 (gen_subprogram_die): Same.
26736 (gen_variable_die): Same.
26737 (gen_const_die): Same.
26738 (gen_label_die): Same.
26739 (gen_lexical_block_die): Same.
26740 (decl_will_get_specification_p): New.
26741 (local_function_static): New.
26742 (gen_struct_or_union_type_die): Fill in variable-length fields.
26743 (gen_typedef_die): Fill in variable-length typedefs.
26744 (gen_tagged_type_die): Gracefully return on error_mark_node.
26745 Handle re-entrancy.
26746 (gen_type_die_with_usage): Handle variable-length types.
26747 Remove duplicate code for ARRAY_TYPE case.
26748 (process_scope_var): Only process imported modules during early
26749 dwarf.
26750 (dwarf2out_early_global_decl): New.
26751 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
26752 (dwarf2out_type_decl): Set early_dwarf while calling
26753 dwarf2out_decl.
26754 (dwarf2out_decl): Verify that we did not recreate a previously
26755 generated DIE.
26756 Do not return on DECL_EXTERNALs in VAR_DECLs.
26757 Abstract some code to local_function_static.
26758 (lookup_filename): Remove use of file_table_last_lookup.
26759 Gracefully exit on missing file_name.
26760 (dwarf2out_finish): Verify limbo list.
26761 Remove deferred_locations_list use.
26762 Move deferred_asm_name and limbo flushing to...
26763 (dwarf2out_early_finish): ...here. New.
26764 (dwarf2out_c_finalize): Remove set of deferred_location_list,
26765 deferred_asm_name, and file_table_last_lookup.
26766 * cgraph.h (referred_to_p): Add default argument.
26767 * cgraphunit.c (referred_to_p): Add and handle include_self
26768 argument.
26769 (analyze_functions): Add first_time argument.
26770 Call check_global_declaration for all symbols.
26771 Call late_global_decl for nodes for moribund nodes.
26772 (finalize_compilation_unit): Add new argument to
26773 analyze_functions.
26774 Call early_global_decl for functions.
26775 Call early_finish debug hook.
26776 * dbxout.c (dbxout_early_global_decl): New.
26777 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
26778 (dbx_debug_hooks): Add new hooks.
26779 (xcoff_debug_hooks): Same.
26780 * debug.c (do_nothing_debug_hooks): Add early_finish field.
26781 Add early and late debug hooks.
26782 Remove global_decl hook.
26783 * debug.h (struct gcc_debug_hooks): Add early_finish,
26784 early_global_decl, and late_global_decl fields.
26785 Remove global_decl field.
26786 Document gcc_debug_hooks.
26787 * gengtype.c (output_typename): Remove.
26788 * godump.c (go_early_global_decl): New.
26789 (go_late_global_decl): New.
26790 (go_global_decl): Remove.
26791 (dump_go_spec_init): Remove global_decl. Add
26792 {early,late}_global_decl.
26793 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
26794 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
26795 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
26796 (write_global_declarations): Remove.
26797 (global_decl_processing): New.
26798 * langhooks.h (struct lang_hooks_for_decls): Remove
26799 final_write_globals field.
26800 Add post_compilation_parsing_cleanups field.
26801 * passes.c (rest_of_decl_compilation): Call early_global_decl.
26802 * sdbout.c: Add early and late_global_decl hooks. Remove
26803 sdbout_global_decl hook.
26804 Add early_finish field for sdb_debug_hooks.
26805 (sdbout_global_decl): Remove.
26806 (sdbout_early_global_decl): New.
26807 (sdbout_late_global_decl): New.
26808 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
26809 * toplev.c (check_global_declaration): Rename from
26810 check_global_declaration_1.
26811 Adapt to use symtab infrastructure.
26812 (check_global_declarations): Remove.
26813 (emit_debug_global_declarations): Remove.
26814 (compile_file): Remove call to final_write_globals langhook.
26815 Run the actual compilation process.
26816 Perform any post compilation parser cleanups.
26817 Generate late debug info.
26818 * toplev.h (check_global_declaration): New.
26819 (check_global_declaration_1): Remove.
26820 (check_global_declarations): Remove.
26821 (write_global_declarations): Remove.
26822 (emit_debug_global_declarations): Remove.
26823 (global_decl_processing): New.
26824 * tree-core.h (struct tree_block): Add DIE field.
26825 * tree.h (BLOCK_DIE): New.
26826 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
26827 throughout.
26828 (vmsdbgout_early_global_decl): New.
26829 (vmsdbgout_late_global_decl): New.
26830 Add early_finish debug hook field to vmsdbg_debug_hooks.
26831 Remove vmsdbgout_decl to vmsdbgout_function_decl.
26832 Add early and late_global_decl debug hooks.
26833
26834 2015-06-05 Julian Brown <julian@codesourcery.com>
26835 Sandra Loosemore <sandra@codesourcery.com>
26836
26837 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
26838 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
26839 to print-sysroot-suffix.sh script.
26840
26841 2015-06-05 Tom de Vries <tom@codesourcery.com>
26842
26843 merge from gomp4 branch:
26844 2015-05-28 Tom de Vries <tom@codesourcery.com>
26845
26846 PR tree-optimization/65443
26847 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
26848 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
26849 (try_transform_to_exit_first_loop_alt): New function.
26850 (transform_to_exit_first_loop): Use
26851 try_transform_to_exit_first_loop_alt.
26852
26853 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
26854
26855 * builtins.c (expand_builtin_atomic_compare_exchange): Call
26856 emit_cmp_and_jump_insns with the mode of target.
26857
26858 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26859
26860 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
26861
26862 2015-06-04 DJ Delorie <dj@redhat.com>
26863
26864 * config/msp430/msp430.md (movsi_s): New. Special case for
26865 storing a 20-bit symbol into a 32-bit register.
26866 * config/msp430/msp430.c (msp430_subreg): Add support for it.
26867 * config/msp430/predicates.md (msp430_symbol_operand): New.
26868
26869 2015-06-04 Sriraman Tallam <tmsriram@google.com>
26870
26871 * c-family/c-common.c (noplt): New attribute.
26872 (handle_noplt_attribute): New handler.
26873 * calls.c (prepare_call_address): Check for noplt
26874 attribute.
26875 * config/i386/i386.c (ix86_expand_call): Check
26876 for noplt attribute.
26877 (ix86_nopic_noplt_attribute_p): New function.
26878 (ix86_output_call_insn): Output indirect call for non-pic
26879 no plt calls.
26880 * doc/extend.texi (noplt): Document new attribute.
26881 * doc/invoke.texi: Document new attribute.
26882
26883 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
26884
26885 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
26886 real.h, and fixed-value.h when included in host source files.
26887 * double-int.h: Remove redundant #includes listed above.
26888 * fixed-value.h: Likewise.
26889 * real.h: Likewise.
26890 * wide-int.h: Likewise.
26891 * inchash.h: Likewise.
26892 * rtl.h: Add some include files When included from a generator file.
26893 * target.h: Remove wide-int.h and insn-modes.h from the include list.
26894 * internal-fn.h: Don't include coretypes.h.
26895 * alias.c: Adjust includes for restructured coretypes.h.
26896 * asan.c: Likewise.
26897 * attribs.c: Likewise.
26898 * auto-inc-dec.c: Likewise.
26899 * auto-profile.c: Likewise.
26900 * bb-reorder.c: Likewise.
26901 * bt-load.c: Likewise.
26902 * builtins.c: Likewise.
26903 * caller-save.c: Likewise.
26904 * calls.c: Likewise.
26905 * ccmp.c: Likewise.
26906 * cfg.c: Likewise.
26907 * cfganal.c: Likewise.
26908 * cfgbuild.c: Likewise.
26909 * cfgcleanup.c: Likewise.
26910 * cfgexpand.c: Likewise.
26911 * cfghooks.c: Likewise.
26912 * cfgloop.c: Likewise.
26913 * cfgloop.h: Likewise.
26914 * cfgloopanal.c: Likewise.
26915 * cfgloopmanip.c: Likewise.
26916 * cfgrtl.c: Likewise.
26917 * cgraph.c: Likewise.
26918 * cgraphbuild.c: Likewise.
26919 * cgraphclones.c: Likewise.
26920 * cgraphunit.c: Likewise.
26921 * cilk-common.c: Likewise.
26922 * combine-stack-adj.c: Likewise.
26923 * combine.c: Likewise.
26924 * compare-elim.c: Likewise.
26925 * convert.c: Likewise.
26926 * coverage.c: Likewise.
26927 * cppbuiltin.c: Likewise.
26928 * cprop.c: Likewise.
26929 * cse.c: Likewise.
26930 * cselib.c: Likewise.
26931 * data-streamer-in.c: Likewise.
26932 * data-streamer-out.c: Likewise.
26933 * data-streamer.c: Likewise.
26934 * dbxout.c: Likewise.
26935 * dce.c: Likewise.
26936 * ddg.c: Likewise.
26937 * debug.c: Likewise.
26938 * df-core.c: Likewise.
26939 * df-problems.c: Likewise.
26940 * df-scan.c: Likewise.
26941 * df.h: Likewise.
26942 * dfp.c: Likewise.
26943 * dojump.c: Likewise.
26944 * dominance.c: Likewise.
26945 * domwalk.c: Likewise.
26946 * double-int.c: Likewise.
26947 * dse.c: Likewise.
26948 * dumpfile.c: Likewise.
26949 * dwarf2asm.c: Likewise.
26950 * dwarf2cfi.c: Likewise.
26951 * dwarf2out.c: Likewise.
26952 * dwarf2out.h: Likewise.
26953 * emit-rtl.c: Likewise.
26954 * et-forest.c: Likewise.
26955 * except.c: Likewise.
26956 * explow.c: Likewise.
26957 * expmed.c: Likewise.
26958 * expr.c: Likewise.
26959 * final.c: Likewise.
26960 * fixed-value.c: Likewise.
26961 * fold-const.c: Likewise.
26962 * function.c: Likewise.
26963 * fwprop.c: Likewise.
26964 * gcc-plugin.h: Likewise.
26965 * gcse.c: Likewise.
26966 * generic-match-head.c: Likewise.
26967 * ggc-page.c: Likewise.
26968 * gimple-builder.c: Likewise.
26969 * gimple-expr.c: Likewise.
26970 * gimple-fold.c: Likewise.
26971 * gimple-iterator.c: Likewise.
26972 * gimple-low.c: Likewise.
26973 * gimple-match-head.c: Likewise.
26974 * gimple-pretty-print.c: Likewise.
26975 * gimple-ssa-isolate-paths.c: Likewise.
26976 * gimple-ssa-strength-reduction.c: Likewise.
26977 * gimple-streamer-in.c: Likewise.
26978 * gimple-streamer-out.c: Likewise.
26979 * gimple-streamer.h: Likewise.
26980 * gimple-walk.c: Likewise.
26981 * gimple.c: Likewise.
26982 * gimplify-me.c: Likewise.
26983 * gimplify.c: Likewise.
26984 * godump.c: Likewise.
26985 * graph.c: Likewise.
26986 * graphite-blocking.c: Likewise.
26987 * graphite-dependences.c: Likewise.
26988 * graphite-interchange.c: Likewise.
26989 * graphite-isl-ast-to-gimple.c: Likewise.
26990 * graphite-optimize-isl.c: Likewise.
26991 * graphite-poly.c: Likewise.
26992 * graphite-scop-detection.c: Likewise.
26993 * graphite-sese-to-poly.c: Likewise.
26994 * graphite.c: Likewise.
26995 * haifa-sched.c: Likewise.
26996 * hooks.h: Likewise.
26997 * hw-doloop.c: Likewise.
26998 * ifcvt.c: Likewise.
26999 * incpath.c: Likewise.
27000 * init-regs.c: Likewise.
27001 * internal-fn.c: Likewise.
27002 * ipa-chkp.c: Likewise.
27003 * ipa-comdats.c: Likewise.
27004 * ipa-cp.c: Likewise.
27005 * ipa-devirt.c: Likewise.
27006 * ipa-icf-gimple.c: Likewise.
27007 * ipa-icf.c: Likewise.
27008 * ipa-inline-analysis.c: Likewise.
27009 * ipa-inline-transform.c: Likewise.
27010 * ipa-inline.c: Likewise.
27011 * ipa-polymorphic-call.c: Likewise.
27012 * ipa-profile.c: Likewise.
27013 * ipa-prop.c: Likewise.
27014 * ipa-pure-const.c: Likewise.
27015 * ipa-ref.c: Likewise.
27016 * ipa-reference.c: Likewise.
27017 * ipa-split.c: Likewise.
27018 * ipa-utils.c: Likewise.
27019 * ipa-visibility.c: Likewise.
27020 * ipa.c: Likewise.
27021 * ira-build.c: Likewise.
27022 * ira-color.c: Likewise.
27023 * ira-conflicts.c: Likewise.
27024 * ira-costs.c: Likewise.
27025 * ira-emit.c: Likewise.
27026 * ira-lives.c: Likewise.
27027 * ira.c: Likewise.
27028 * jump.c: Likewise.
27029 * langhooks.c: Likewise.
27030 * lcm.c: Likewise.
27031 * loop-doloop.c: Likewise.
27032 * loop-init.c: Likewise.
27033 * loop-invariant.c: Likewise.
27034 * loop-iv.c: Likewise.
27035 * loop-unroll.c: Likewise.
27036 * lower-subreg.c: Likewise.
27037 * lra-assigns.c: Likewise.
27038 * lra-coalesce.c: Likewise.
27039 * lra-constraints.c: Likewise.
27040 * lra-eliminations.c: Likewise.
27041 * lra-lives.c: Likewise.
27042 * lra-remat.c: Likewise.
27043 * lra-spills.c: Likewise.
27044 * lra.c: Likewise.
27045 * lto-cgraph.c: Likewise.
27046 * lto-compress.c: Likewise.
27047 * lto-opts.c: Likewise.
27048 * lto-section-in.c: Likewise.
27049 * lto-section-out.c: Likewise.
27050 * lto-streamer-in.c: Likewise.
27051 * lto-streamer-out.c: Likewise.
27052 * lto-streamer.c: Likewise.
27053 * mcf.c: Likewise.
27054 * mode-switching.c: Likewise.
27055 * modulo-sched.c: Likewise.
27056 * omega.c: Likewise.
27057 * omp-low.c: Likewise.
27058 * optabs.c: Likewise.
27059 * opts-global.c: Likewise.
27060 * passes.c: Likewise.
27061 * plugin.c: Likewise.
27062 * postreload-gcse.c: Likewise.
27063 * postreload.c: Likewise.
27064 * predict.c: Likewise.
27065 * print-rtl.c: Likewise.
27066 * print-tree.c: Likewise.
27067 * profile.c: Likewise.
27068 * real.c: Likewise.
27069 * realmpfr.c: Likewise.
27070 * realmpfr.h: Likewise.
27071 * recog.c: Likewise.
27072 * ree.c: Likewise.
27073 * reg-stack.c: Likewise.
27074 * regcprop.c: Likewise.
27075 * reginfo.c: Likewise.
27076 * regrename.c: Likewise.
27077 * regs.h: Likewise.
27078 * regstat.c: Likewise.
27079 * reload.c: Likewise.
27080 * reload1.c: Likewise.
27081 * reorg.c: Likewise.
27082 * resource.c: Likewise.
27083 * rtl-chkp.c: Likewise.
27084 * rtlanal.c: Likewise.
27085 * rtlhooks.c: Likewise.
27086 * sanopt.c: Likewise.
27087 * sched-deps.c: Likewise.
27088 * sched-ebb.c: Likewise.
27089 * sched-rgn.c: Likewise.
27090 * sched-vis.c: Likewise.
27091 * sdbout.c: Likewise.
27092 * sel-sched-dump.c: Likewise.
27093 * sel-sched-ir.c: Likewise.
27094 * sel-sched.c: Likewise.
27095 * sese.c: Likewise.
27096 * shrink-wrap.c: Likewise.
27097 * shrink-wrap.h: Likewise.
27098 * simplify-rtx.c: Likewise.
27099 * stack-ptr-mod.c: Likewise.
27100 * statistics.c: Likewise.
27101 * stmt.c: Likewise.
27102 * stor-layout.c: Likewise.
27103 * store-motion.c: Likewise.
27104 * stringpool.c: Likewise.
27105 * symtab.c: Likewise.
27106 * target-globals.c: Likewise.
27107 * targhooks.c: Likewise.
27108 * toplev.c: Likewise.
27109 * tracer.c: Likewise.
27110 * trans-mem.c: Likewise.
27111 * tree-affine.c: Likewise.
27112 * tree-affine.h: Likewise.
27113 * tree-browser.c: Likewise.
27114 * tree-call-cdce.c: Likewise.
27115 * tree-cfg.c: Likewise.
27116 * tree-cfgcleanup.c: Likewise.
27117 * tree-chkp-opt.c: Likewise.
27118 * tree-chkp.c: Likewise.
27119 * tree-chrec.c: Likewise.
27120 * tree-complex.c: Likewise.
27121 * tree-data-ref.c: Likewise.
27122 * tree-dfa.c: Likewise.
27123 * tree-diagnostic.c: Likewise.
27124 * tree-dump.c: Likewise.
27125 * tree-eh.c: Likewise.
27126 * tree-emutls.c: Likewise.
27127 * tree-if-conv.c: Likewise.
27128 * tree-inline.c: Likewise.
27129 * tree-into-ssa.c: Likewise.
27130 * tree-iterator.c: Likewise.
27131 * tree-loop-distribution.c: Likewise.
27132 * tree-nested.c: Likewise.
27133 * tree-nrv.c: Likewise.
27134 * tree-object-size.c: Likewise.
27135 * tree-outof-ssa.c: Likewise.
27136 * tree-parloops.c: Likewise.
27137 * tree-phinodes.c: Likewise.
27138 * tree-predcom.c: Likewise.
27139 * tree-pretty-print.c: Likewise.
27140 * tree-pretty-print.h: Likewise.
27141 * tree-profile.c: Likewise.
27142 * tree-scalar-evolution.c: Likewise.
27143 * tree-sra.c: Likewise.
27144 * tree-ssa-address.c: Likewise.
27145 * tree-ssa-alias.c: Likewise.
27146 * tree-ssa-ccp.c: Likewise.
27147 * tree-ssa-coalesce.c: Likewise.
27148 * tree-ssa-copy.c: Likewise.
27149 * tree-ssa-copyrename.c: Likewise.
27150 * tree-ssa-dce.c: Likewise.
27151 * tree-ssa-dom.c: Likewise.
27152 * tree-ssa-dse.c: Likewise.
27153 * tree-ssa-forwprop.c: Likewise.
27154 * tree-ssa-ifcombine.c: Likewise.
27155 * tree-ssa-live.c: Likewise.
27156 * tree-ssa-loop-ch.c: Likewise.
27157 * tree-ssa-loop-im.c: Likewise.
27158 * tree-ssa-loop-ivcanon.c: Likewise.
27159 * tree-ssa-loop-ivopts.c: Likewise.
27160 * tree-ssa-loop-manip.c: Likewise.
27161 * tree-ssa-loop-niter.c: Likewise.
27162 * tree-ssa-loop-prefetch.c: Likewise.
27163 * tree-ssa-loop-unswitch.c: Likewise.
27164 * tree-ssa-loop.c: Likewise.
27165 * tree-ssa-loop.h: Likewise.
27166 * tree-ssa-math-opts.c: Likewise.
27167 * tree-ssa-operands.c: Likewise.
27168 * tree-ssa-phiopt.c: Likewise.
27169 * tree-ssa-phiprop.c: Likewise.
27170 * tree-ssa-pre.c: Likewise.
27171 * tree-ssa-propagate.c: Likewise.
27172 * tree-ssa-reassoc.c: Likewise.
27173 * tree-ssa-sccvn.c: Likewise.
27174 * tree-ssa-scopedtables.c: Likewise.
27175 * tree-ssa-sink.c: Likewise.
27176 * tree-ssa-strlen.c: Likewise.
27177 * tree-ssa-structalias.c: Likewise.
27178 * tree-ssa-tail-merge.c: Likewise.
27179 * tree-ssa-ter.c: Likewise.
27180 * tree-ssa-threadedge.c: Likewise.
27181 * tree-ssa-threadupdate.c: Likewise.
27182 * tree-ssa-uncprop.c: Likewise.
27183 * tree-ssa-uninit.c: Likewise.
27184 * tree-ssa.c: Likewise.
27185 * tree-ssanames.c: Likewise.
27186 * tree-stdarg.c: Likewise.
27187 * tree-streamer-in.c: Likewise.
27188 * tree-streamer-out.c: Likewise.
27189 * tree-streamer.c: Likewise.
27190 * tree-switch-conversion.c: Likewise.
27191 * tree-tailcall.c: Likewise.
27192 * tree-vect-data-refs.c: Likewise.
27193 * tree-vect-generic.c: Likewise.
27194 * tree-vect-loop-manip.c: Likewise.
27195 * tree-vect-loop.c: Likewise.
27196 * tree-vect-patterns.c: Likewise.
27197 * tree-vect-slp.c: Likewise.
27198 * tree-vect-stmts.c: Likewise.
27199 * tree-vectorizer.c: Likewise.
27200 * tree-vrp.c: Likewise.
27201 * tree.c: Likewise.
27202 * tsan.c: Likewise.
27203 * ubsan.c: Likewise.
27204 * valtrack.c: Likewise.
27205 * value-prof.c: Likewise.
27206 * var-tracking.c: Likewise.
27207 * varasm.c: Likewise.
27208 * varpool.c: Likewise.
27209 * vmsdbgout.c: Likewise.
27210 * vtable-verify.c: Likewise.
27211 * web.c: Likewise.
27212 * wide-int-print.cc: Likewise.
27213 * wide-int-print.h: Likewise.
27214 * wide-int.cc: Likewise.
27215 * xcoffout.c: Likewise.
27216 * config/aarch64/aarch64-builtins.c: Likewise.
27217 * config/aarch64/aarch64.c: Likewise.
27218 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27219 * config/alpha/alpha.c: Likewise.
27220 * config/arc/arc.c: Likewise.
27221 * config/arm/aarch-common.c: Likewise.
27222 * config/arm/arm-builtins.c: Likewise.
27223 * config/arm/arm-c.c: Likewise.
27224 * config/arm/arm.c: Likewise.
27225 * config/avr/avr-c.c: Likewise.
27226 * config/avr/avr-log.c: Likewise.
27227 * config/avr/avr.c: Likewise.
27228 * config/bfin/bfin.c: Likewise.
27229 * config/c6x/c6x.c: Likewise.
27230 * config/cr16/cr16.c: Likewise.
27231 * config/cris/cris.c: Likewise.
27232 * config/darwin-c.c: Likewise.
27233 * config/darwin.c: Likewise.
27234 * config/default-c.c: Likewise.
27235 * config/epiphany/epiphany.c: Likewise.
27236 * config/epiphany/mode-switch-use.c: Likewise.
27237 * config/epiphany/resolve-sw-modes.c: Likewise.
27238 * config/fr30/fr30.c: Likewise.
27239 * config/frv/frv.c: Likewise.
27240 * config/ft32/ft32.c: Likewise.
27241 * config/glibc-c.c: Likewise.
27242 * config/h8300/h8300.c: Likewise.
27243 * config/i386/i386-c.c: Likewise.
27244 * config/i386/i386.c: Likewise.
27245 * config/i386/msformat-c.c: Likewise.
27246 * config/i386/winnt-cxx.c: Likewise.
27247 * config/i386/winnt-stubs.c: Likewise.
27248 * config/i386/winnt.c: Likewise.
27249 * config/ia64/ia64-c.c: Likewise.
27250 * config/ia64/ia64.c: Likewise.
27251 * config/iq2000/iq2000.c: Likewise.
27252 * config/lm32/lm32.c: Likewise.
27253 * config/m32c/m32c-pragma.c: Likewise.
27254 * config/m32c/m32c.c: Likewise.
27255 * config/m32r/m32r.c: Likewise.
27256 * config/m68k/m68k.c: Likewise.
27257 * config/mcore/mcore.c: Likewise.
27258 * config/mep/mep-pragma.c: Likewise.
27259 * config/mep/mep.c: Likewise.
27260 * config/microblaze/microblaze-c.c: Likewise.
27261 * config/microblaze/microblaze.c: Likewise.
27262 * config/mips/mips.c: Likewise.
27263 * config/mmix/mmix.c: Likewise.
27264 * config/mn10300/mn10300.c: Likewise.
27265 * config/moxie/moxie.c: Likewise.
27266 * config/msp430/msp430-c.c: Likewise.
27267 * config/msp430/msp430.c: Likewise.
27268 * config/nds32/nds32-cost.c: Likewise.
27269 * config/nds32/nds32-fp-as-gp.c: Likewise.
27270 * config/nds32/nds32-intrinsic.c: Likewise.
27271 * config/nds32/nds32-isr.c: Likewise.
27272 * config/nds32/nds32-md-auxiliary.c: Likewise.
27273 * config/nds32/nds32-memory-manipulation.c: Likewise.
27274 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27275 * config/nds32/nds32-predicates.c: Likewise.
27276 * config/nds32/nds32.c: Likewise.
27277 * config/nios2/nios2.c: Likewise.
27278 * config/nvptx/nvptx.c: Likewise.
27279 * config/pa/pa.c: Likewise.
27280 * config/pdp11/pdp11.c: Likewise.
27281 * config/rl78/rl78-c.c: Likewise.
27282 * config/rl78/rl78.c: Likewise.
27283 * config/rs6000/rs6000-c.c: Likewise.
27284 * config/rs6000/rs6000.c: Likewise.
27285 * config/rx/rx.c: Likewise.
27286 * config/s390/s390-c.c: Likewise.
27287 * config/s390/s390.c: Likewise.
27288 * config/sh/sh-c.c: Likewise.
27289 * config/sh/sh-mem.cc: Likewise.
27290 * config/sh/sh.c: Likewise.
27291 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27292 * config/sh/sh_treg_combine.cc: Likewise.
27293 * config/sol2-c.c: Likewise.
27294 * config/sol2-cxx.c: Likewise.
27295 * config/sol2-stubs.c: Likewise.
27296 * config/sol2.c: Likewise.
27297 * config/sparc/sparc-c.c: Likewise.
27298 * config/sparc/sparc.c: Likewise.
27299 * config/spu/spu-c.c: Likewise.
27300 * config/spu/spu.c: Likewise.
27301 * config/stormy16/stormy16.c: Likewise.
27302 * config/tilegx/mul-tables.c: Likewise.
27303 * config/tilegx/tilegx-c.c: Likewise.
27304 * config/tilegx/tilegx.c: Likewise.
27305 * config/tilepro/mul-tables.c: Likewise.
27306 * config/tilepro/tilepro-c.c: Likewise.
27307 * config/tilepro/tilepro.c: Likewise.
27308 * config/v850/v850-c.c: Likewise.
27309 * config/v850/v850.c: Likewise.
27310 * config/vax/vax.c: Likewise.
27311 * config/visium/visium.c: Likewise.
27312 * config/vms/vms-c.c: Likewise.
27313 * config/vms/vms.c: Likewise.
27314 * config/vxworks.c: Likewise.
27315 * config/winnt-c.c: Likewise.
27316 * config/xtensa/xtensa.c: Likewise.
27317 * common/config/bfin/bfin-common.c: Likewise.
27318
27319 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
27320
27321 * tree.h (tree_code_for_canonical_type_merging): New function.
27322 * tree.c (gimple_canonical_types_compatible_p): Use
27323 tree_code_for_canonical_type_merging..
27324
27325 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27326
27327 PR c++/66192
27328 PR target/66200
27329 * doc/tm.texi: Regenerate.
27330 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27331 * target.def (TARGET_RELAXED_ORDERING): Likewise.
27332 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27333 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27334 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27335 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27336 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27337 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27338 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27339
27340 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27341
27342 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27343 register fma steering pass.
27344 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27345 AARCH64_TUNE_FMA_STEERING.
27346
27347 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
27348
27349 * tree.c (verify_type_variant): Verify that type and variant is
27350 compatible.
27351 (gimple_canonical_types_compatible_p): Look for main variants.
27352
27353 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27354
27355 * config.gcc (powerpc*-*-*): Add support for a new configure
27356 option --with-advance-toolchain=<xxx> which overrides using the
27357 default header files, libraries and dynamic linker.
27358
27359 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27360 specs to support the configure --with-advance-toolchain=<xxx>
27361 option.
27362 (INCLUDE_EXTRA_SPEC): Likewise.
27363 (LINK_OS_EXTRA_SPEC32): Likewise.
27364 (LINK_OK_EXTRA_SPEC64): Likewise.
27365 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27366 (DYNAMIC_LINKER_PREFIX): Likewise.
27367 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27368 toolchain support.
27369 (GLIBC_DYNAMIC_LINKER32): Likewise.
27370 (GLIBC_DYNAMIC_LINKER64): Likewise.
27371 (LINK_OS_LINUX_SPEC32): Likewise.
27372 (LINK_OS_LINUX_SPEC64): Likewise.
27373
27374 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27375 configuration option.
27376
27377 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
27378
27379 PR target/66275
27380 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27381 to determine current function ABI.
27382 (ix86_function_value_regno_p): Ditto.
27383
27384 2015-06-03 Martin Liska <mliska@suse.cz>
27385
27386 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27387 * bitmap.h (struct bitmap_usage): Likewise.
27388 * ggc-common.c (struct ggc_usage): Likewise.
27389 * mem-stats.h (struct mem_location): Likewise.
27390 (struct mem_usage): Likewise.
27391 * vec.c (struct vec_usage): Likewise.
27392
27393 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
27394
27395 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27396 -Bsymbolic.
27397
27398 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
27399
27400 * doc/plugins.texi (enum plugin_event): New event.
27401 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27402 and PLUGIN_FINISH_FUNCTION.
27403 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27404 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27405
27406 2015-06-03 Richard Biener <rguenther@suse.de>
27407
27408 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27409 compute GROUP_GAP for the first element.
27410 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27411 on in-group gaps.
27412
27413 2015-06-03 Nick Clifton <nickc@redhat.com>
27414
27415 * config/rl78/rl78-real.md: Add peepholes to avoid a register
27416 copy when calling a function.
27417 * config/rl78/rl78.c (need_to_save): Do not push the frame
27418 pointer in an interrupt handler prologue if it is never used.
27419
27420 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27421
27422 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27423
27424 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27425
27426 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27427 reference when cloning alias node.
27428
27429 2015-06-03 Martin Liska <mliska@suse.cz>
27430
27431 * alloc-pool.h (struct pool_usage): Correct space padding.
27432 * ggc-page.c (ggc_print_statistics): Align columns in a report.
27433 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
27434 * tree.c (dump_tree_statistics): Align columns in a report.
27435
27436 2015-06-03 Martin Liska <mliska@suse.cz>
27437
27438 * alloc-pool.c (allocate_pool_descriptor): Remove.
27439 (struct pool_output_info): Likewise.
27440 (print_alloc_pool_statistics): Likewise.
27441 (dump_alloc_pool_statistics): Likewise.
27442 * alloc-pool.h (struct pool_usage): New struct.
27443 (pool_allocator::initialize): Change usage of memory statistics
27444 to a new interface.
27445 (pool_allocator::release): Likewise.
27446 (pool_allocator::allocate): Likewise.
27447 (pool_allocator::remove): Likewise.
27448 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
27449 for a pool allocator.
27450 * mem-stats.h (struct mem_location): Add new ctor.
27451 (struct mem_usage): Add counter for number of
27452 instances.
27453 (mem_alloc_description::register_descriptor): New overload of
27454 * mem-stats.h (mem_location::to_string): New function.
27455 * bitmap.h (struct bitmap_usage): Use this new function.
27456 * ggc-common.c (struct ggc_usage): Likewise.
27457 the function.
27458
27459 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27460
27461 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
27462 of GCC_INSN_FLAGS_H block.
27463
27464 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
27465
27466 * explow.c (plus_constant): Update check after force_const_mem call
27467 to see if the value returned is not a NULL_RTX.
27468
27469 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27470
27471 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
27472 remove instumentation thunks calling reachable functions.
27473 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
27474 * lto/lto-partition.c (privatize_symbol_name_1): New.
27475 (privatize_symbol_name): Privatize both decl and orig_decl
27476 names for instrumented functions.
27477 * cgraph.c (cgraph_node::verify_node): Add transparent
27478 alias chain check for instrumented node.
27479
27480 2015-06-03 Marek Polacek <polacek@redhat.com>
27481
27482 PR c/64223
27483 PR c/29358
27484 * tree.c (attribute_value_equal): Handle attribute format.
27485 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
27486
27487 2015-06-03 Richard Biener <rguenther@suse.de>
27488
27489 PR tree-optimization/63916
27490 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
27491 Forward-propagate non-invariant addresses by splicing their
27492 reference ops if the result isn't going to be used by PRE.
27493 (vn_reference_lookup_3): Remove pointless assert.
27494
27495 2015-06-03 Richard Biener <rguenther@suse.de>
27496
27497 PR tree-optimization/66375
27498 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
27499 add to the evolution before following SSA edges.
27500
27501 2015-06-03 Bin Cheng <bin.cheng@arm.com>
27502
27503 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
27504 (dump_use, dump_cand, find_induction_variables): Pass new argument
27505 to dump_iv.
27506 (record_use): Preserve the ssa name information in IV.
27507
27508 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27509
27510 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
27511 NO_MODE_TEST.
27512 (add_mode_tests): Don't add mode tests if the predicate only
27513 accepts scalar constant integers. Otherwise, allow the mode
27514 of "op" to be VOIDmode if the predicate does accept such integers.
27515
27516 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
27517
27518 PR target/66258
27519 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
27520 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
27521 (aarch64_secondary_reload): Likewise
27522 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
27523 to !TARGET_FLOAT.
27524 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
27525 Likewise.
27526
27527 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
27528 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27529
27530 PR target/65768
27531 * cprop.c (try_replace_reg): Check cost of constants before propagating.
27532
27533 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27534
27535 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
27536 provide access to the IBM extended double floating point mode if
27537 long double is IEEE 128-bit floating point.
27538 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
27539 point if long double is the IBM extended double type.
27540
27541 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
27542 enable adding IEEE 128-bit floating point support.
27543 (-mfloat128-software): Likewise.
27544 (-mfloat128-sw): Likewise.
27545
27546 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
27547 128-bit floating point types to occupy any register if
27548 -mlong-double-64. Do not allow use of IFmode/KFmode unless
27549 -mfloat128-software is enabled.
27550 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
27551 support.
27552 (rs6000_option_override_internal): Add -mfloat128-* support.
27553 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
27554
27555 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
27556 and float128 type nodes.
27557 (ieee128_float_type_node): Likewise.
27558 (ibm128_float_type_node): Likewise.
27559
27560 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27561
27562 PR target/66136
27563 * config/aarch64/geniterators.sh: Rewrite in awk.
27564
27565 2015-06-02 Martin Liska <mliska@suse.cz>
27566
27567 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
27568 values to avoid -Wmaybe-uninitialized errors.
27569
27570 2015-06-02 Richard Biener <rguenther@suse.de>
27571
27572 PR debug/65549
27573 * dwarf2out.c (lookup_context_die): New function.
27574 (resolve_addr): Avoid forcing a full DIE for the
27575 target of a DW_TAG_GNU_call_site during late compilation.
27576 Instead create a stub DIE without a type if we have a
27577 context DIE present.
27578
27579 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
27580
27581 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
27582
27583 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27584
27585 PR tree-optimization/48052
27586 * cfgloop.h (struct control_iv): New.
27587 (struct loop): New field control_ivs.
27588 * tree-ssa-loop-niter.c : Include "stor-layout.h".
27589 (number_of_iterations_lt): Set no_overflow information.
27590 (number_of_iterations_exit): Init control iv in niter struct.
27591 (record_control_iv): New.
27592 (estimate_numbers_of_iterations_loop): Call record_control_iv.
27593 (loop_exits_before_overflow): New. Interface factored out of
27594 scev_probably_wraps_p.
27595 (scev_probably_wraps_p): Factor loop niter related code into
27596 loop_exits_before_overflow.
27597 (free_numbers_of_iterations_estimates_loop): Free control ivs.
27598 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
27599
27600 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
27601
27602 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
27603 the target doesn't belong to the current function.
27604
27605 2015-06-02 Marek Polacek <polacek@redhat.com>
27606
27607 PR middle-end/66345
27608 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
27609 get_maxval_strlen does not produce an INTEGER_CST.
27610
27611 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
27612
27613 * config/arc/constraints.md: Use lower-case names in match_code.
27614 * config/mmix/constraints.md: Likewise.
27615
27616 2015-06-02 Richard Biener <rguenther@suse.de>
27617
27618 PR tree-optimization/65961
27619 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
27620 check and clarify dump message.
27621 (vect_build_slp_tree): If all children are built up from scalars
27622 build up the parent from scalars instead.
27623 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
27624
27625 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
27626
27627 PR other/65366
27628 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
27629 instead of print ... .
27630
27631 2015-06-02 Alan Modra <amodra@gmail.com>
27632
27633 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
27634 2014-08-11 change.
27635
27636 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27637
27638 PR tree-optimization/52563
27639 PR tree-optimization/62173
27640 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
27641 (alloc_iv, set_iv): New parameter.
27642 (determine_biv_step): Delete.
27643 (find_bivs): Inline original determine_biv_step. Pass new
27644 argument to set_iv.
27645 (idx_find_step): Use no_overflow information for conversion.
27646 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
27647 resolve_mixers handle folded_casts.
27648 (instantiate_scev_name): Change bool parameter to bool pointer.
27649 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
27650 (instantiate_array_ref, instantiate_scev_not): Ditto.
27651 (instantiate_scev_3, instantiate_scev_2): Ditto.
27652 (instantiate_scev_1, instantiate_scev_r): Ditto.
27653 (instantiate_scev_convert, ): Change parameter. Pass argument
27654 to chrec_convert_aggressive.
27655 (instantiate_scev): Change argument.
27656 (resolve_mixers): New parameter and set it.
27657 (scev_const_prop): New argument.
27658 * tree-scalar-evolution.h (resolve_mixers): New parameter.
27659 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
27660 of chrec_conert_1.
27661 (chrec_convert): New parameter. Move definition below.
27662 (chrec_convert_aggressive): New parameter and set it. Call
27663 convert_affine_scev.
27664 * tree-chrec.h (chrec_convert): New parameter.
27665 (chrec_convert_aggressive): Ditto.
27666
27667 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27668
27669 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
27670 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
27671 the LHS of a no-return call if its type has variable size.
27672 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
27673 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
27674
27675 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
27676
27677 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
27678 * config.in: Regenerate.
27679
27680 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27681
27682 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
27683 consecutive accesses within outer-loop with force_vectorize
27684 for references with zero step in inner-loop.
27685
27686 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27687
27688 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
27689 rather than from gcc/build directory.
27690
27691 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27692
27693 PR target/65697
27694 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
27695 for __sync memory models, emit initial loads and final barriers as
27696 appropriate.
27697
27698 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27699
27700 PR target/65697
27701 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
27702 (aarch64_split_atomic_op): Check for __sync memory models, emit
27703 appropriate initial loads and final barriers.
27704
27705 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27706
27707 * Makefile.in: Fix gcov dependencies that should
27708 not point to a build folder.
27709
27710 2015-06-01 Richard Biener <rguenther@suse.de>
27711
27712 Revert
27713 2015-05-29 Richard Biener <rguenther@suse.de>
27714
27715 PR tree-optimization/66314
27716 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27717 parameter that says which loop the new block belongs to.
27718 (ssa_create_duplicates): Blocks duplicated for the threaded
27719 path belong to the loop of the thread destination.
27720
27721 2015-06-01 Martin Liska <mliska@suse.cz>
27722
27723 * sched-deps.c: Include pool-alloc.h before
27724 cselib.h header file is included.
27725
27726 2015-06-01 Richard Biener <rguenther@suse.de>
27727
27728 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
27729 functions.
27730
27731 2015-06-01 Martin Liska <mliska@suse.cz>
27732
27733 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
27734 a function local variable.
27735
27736 2015-06-01 Martin Liska <mliska@suse.cz>
27737
27738 * alloc-pool.c (create_alloc_pool): Remove.
27739 (empty_alloc_pool): Likewise.
27740 (free_alloc_pool): Likewise.
27741 (free_alloc_pool_if_empty): Likewise.
27742 (pool_alloc): Likewise.
27743 (pool_free): Likewise.
27744 * alloc-pool.h: Remove old declarations.
27745
27746 2015-06-01 Martin Liska <mliska@suse.cz>
27747
27748 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
27749 (ira_create_object): Likewise.
27750 (ira_create_allocno): Likewise.
27751 (ira_create_live_range): Likewise.
27752 (copy_live_range): Likewise.
27753 (ira_finish_live_range): Likewise.
27754 (ira_free_allocno_costs): Likewise.
27755 (finish_allocno): Likewise.
27756 (finish_allocnos): Likewise.
27757 (initiate_prefs): Likewise.
27758 (ira_create_pref): Likewise.
27759 (finish_pref): Likewise.
27760 (finish_prefs): Likewise.
27761 (initiate_copies): Likewise.
27762 (ira_create_copy): Likewise.
27763 (finish_copy): Likewise.
27764 (finish_copies): Likewise.
27765 (finish_prefs): Likewise.
27766
27767 2015-06-01 Martin Liska <mliska@suse.cz>
27768
27769 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
27770 (allocate_and_init_ipcp_value): Likewise.
27771 (ipcp_lattice::add_value): Likewise.
27772 (merge_agg_lats_step): Likewise.
27773 (ipcp_driver): Likewise.
27774 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
27775 (ipa_free_all_structures_after_iinln): Likewise.
27776 * ipa-prop.h: Likewise.
27777
27778 2015-06-01 Martin Liska <mliska@suse.cz>
27779
27780 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
27781 pool allocator.
27782 (set_hint_predicate): Likewise.
27783 (inline_summary_alloc): Likewise.
27784 (reset_inline_edge_summary): Likewise.
27785 (reset_inline_summary): Likewise.
27786 (set_cond_stmt_execution_predicate): Likewise.
27787 (set_switch_stmt_execution_predicate): Likewise.
27788 (compute_bb_predicates): Likewise.
27789 (estimate_function_body_sizes): Likewise.
27790 (inline_free_summary): Likewise.
27791
27792 2015-06-01 Martin Liska <mliska@suse.cz>
27793
27794 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
27795 (ipa_edge_duplication_hook): Likewise.
27796 (ipa_free_all_structures_after_ipa_cp): Likewise.
27797 (ipa_free_all_structures_after_iinln): Likewise.
27798
27799 2015-06-01 Martin Liska <mliska@suse.cz>
27800
27801 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
27802 (ipa_profile_generate_summary): Likewise.
27803 (ipa_profile_read_summary): Likewise.
27804 (ipa_profile): Likewise.
27805
27806 2015-06-01 Martin Liska <mliska@suse.cz>
27807
27808 * tree-ssa-structalias.c (new_var_info): Use new type-based
27809 pool allocator.
27810 (new_constraint): Likewise.
27811 (init_alias_vars): Likewise.
27812 (delete_points_to_sets): Likewise.
27813
27814 2015-06-01 Martin Liska <mliska@suse.cz>
27815
27816 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
27817 (free_strinfo): Likewise.
27818 (pass_strlen::execute): Likewise.
27819
27820 2015-06-01 Martin Liska <mliska@suse.cz>
27821
27822 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
27823 pool allocator.
27824 (vn_reference_insert_pieces): Likewise.
27825 (vn_phi_insert): Likewise.
27826 (visit_reference_op_call): Likewise.
27827 (copy_phi): Likewise.
27828 (copy_reference): Likewise.
27829 (process_scc): Likewise.
27830 (allocate_vn_table): Likewise.
27831 (free_vn_table): Likewise.
27832
27833 2015-06-01 Martin Liska <mliska@suse.cz>
27834
27835 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
27836 pool allocator.
27837 (add_repeat_to_ops_vec): Likewise.
27838 (get_ops): Likewise.
27839 (maybe_optimize_range_tests): Likewise.
27840 (init_reassoc): Likewise.
27841 (fini_reassoc): Likewise.
27842
27843 2015-06-01 Martin Liska <mliska@suse.cz>
27844
27845 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
27846 pool allocator.
27847 (bitmap_set_new): Likewise.
27848 (get_or_alloc_expr_for_constant): Likewise.
27849 (get_or_alloc_expr_for): Likewise.
27850 (phi_translate_1): Likewise.
27851 (compute_avail): Likewise.
27852 (init_pre): Likewise.
27853 (fini_pre): Likewise.
27854
27855 2015-06-01 Martin Liska <mliska@suse.cz>
27856
27857 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
27858 (delete_dep_node): Likewise.
27859 (create_deps_list): Likewise.
27860 (free_deps_list): Likewise.
27861 (sched_deps_init): Likewise.
27862 (sched_deps_finish): Likewise.
27863
27864 2015-06-01 Martin Liska <mliska@suse.cz>
27865
27866 * regcprop.c (free_debug_insn_changes): Use new type-based
27867 pool allocator.
27868 (replace_oldest_value_reg): Likewise.
27869 (pass_cprop_hardreg::execute): Likewise.
27870
27871 2015-06-01 Martin Liska <mliska@suse.cz>
27872
27873 * ira-build.c (initiate_cost_vectors): Use new type-based
27874 pool allocator.
27875 (ira_allocate_cost_vector): Likewise.
27876 (ira_free_cost_vector): Likewise.
27877 (finish_cost_vectors): Likewise.
27878
27879 2015-06-01 Martin Liska <mliska@suse.cz>
27880
27881 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
27882 pool allocator.
27883 (free_sched_pools): Likewise.
27884 * sel-sched-ir.h (_list_alloc): Likewise.
27885 (_list_remove): Likewise.
27886
27887 2015-06-01 Martin Liska <mliska@suse.cz>
27888
27889 * stmt.c (add_case_node): Use new type-based pool allocator.
27890 (expand_case): Likewise.
27891 (expand_sjlj_dispatch_table): Likewise.
27892
27893 2015-06-01 Martin Liska <mliska@suse.cz>
27894
27895 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
27896 (free_bb): Likewise.
27897 (pass_cse_reciprocals::execute): Likewise.
27898
27899 2015-06-01 Martin Liska <mliska@suse.cz>
27900
27901 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
27902 (sra_deinitialize) Likewise.
27903 (create_access_1) Likewise.
27904 (build_accesses_from_assign) Likewise.
27905 (create_artificial_child_access) Likewise.
27906
27907 2015-06-01 Martin Liska <mliska@suse.cz>
27908
27909 * dse.c (get_group_info):Use new type-based pool allocator.
27910 (dse_step0) Likewise.
27911 (free_store_info) Likewise.
27912 (delete_dead_store_insn) Likewise.
27913 (free_read_records) Likewise.
27914 (record_store) Likewise.
27915 (replace_read) Likewise.
27916 (check_mem_read_rtx) Likewise.
27917 (scan_insn) Likewise.
27918 (dse_step1) Likewise.
27919 (dse_step7) Likewise.
27920
27921 2015-06-01 Martin Liska <mliska@suse.cz>
27922
27923 * df-scan.c (struct df_scan_problem_data):Use new type-based
27924 pool allocator.
27925 (df_scan_free_internal) Likewise.
27926 (df_scan_alloc) Likewise.
27927 (df_grow_reg_info) Likewise.
27928 (df_free_ref) Likewise.
27929 (df_insn_create_insn_record) Likewise.
27930 (df_mw_hardreg_chain_delete) Likewise.
27931 (df_insn_info_delete) Likewise.
27932 (df_free_collection_rec) Likewise.
27933 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
27934 (df_sort_and_compress_mws) Likewise.
27935 (df_ref_create_structure) Likewise.
27936 (df_ref_record) Likewise.
27937
27938 2015-06-01 Martin Liska <mliska@suse.cz>
27939
27940 * df-problems.c (df_chain_create):Use new type-based pool allocator.
27941 (df_chain_unlink_1) Likewise.
27942 (df_chain_unlink) Likewise.
27943 (df_chain_remove_problem) Likewise.
27944 (df_chain_alloc) Likewise.
27945 (df_chain_free) Likewise.
27946 * df.h (struct dataflow) Likewise.
27947
27948 2015-06-01 Martin Liska <mliska@suse.cz>
27949
27950 * cselib.c (new_elt_list):Use new type-based pool allocator.
27951 (new_elt_loc_list) Likewise.
27952 (unchain_one_elt_list) Likewise.
27953 (unchain_one_elt_loc_list) Likewise.
27954 (unchain_one_value) Likewise.
27955 (new_cselib_val) Likewise.
27956 (cselib_init) Likewise.
27957 (cselib_finish) Likewise.
27958
27959 2015-06-01 Martin Liska <mliska@suse.cz>
27960
27961 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
27962 (sh_reorg) Likewise.
27963
27964 2015-06-01 Martin Liska <mliska@suse.cz>
27965
27966 * cfg.c (initialize_original_copy_tables):Use new type-based
27967 pool allocator.
27968 (free_original_copy_tables) Likewise.
27969 (copy_original_table_clear) Likewise.
27970 (copy_original_table_set) Likewise.
27971
27972 2015-06-01 Martin Liska <mliska@suse.cz>
27973
27974 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
27975 pool allocator.
27976 (asan_mem_ref_new) Likewise.
27977 (free_mem_ref_resources) Likewise.
27978
27979 2015-06-01 Martin Liska <mliska@suse.cz>
27980
27981 * var-tracking.c (variable_htab_free):Use new type-based
27982 pool allocator.
27983 (attrs_list_clear) Likewise.
27984 (attrs_list_insert) Likewise.
27985 (attrs_list_copy) Likewise.
27986 (shared_hash_unshare) Likewise.
27987 (shared_hash_destroy) Likewise.
27988 (unshare_variable) Likewise.
27989 (var_reg_delete_and_set) Likewise.
27990 (var_reg_delete) Likewise.
27991 (var_regno_delete) Likewise.
27992 (drop_overlapping_mem_locs) Likewise.
27993 (variable_union) Likewise.
27994 (insert_into_intersection) Likewise.
27995 (canonicalize_values_star) Likewise.
27996 (variable_merge_over_cur) Likewise.
27997 (dataflow_set_merge) Likewise.
27998 (remove_duplicate_values) Likewise.
27999 (variable_post_merge_new_vals) Likewise.
28000 (dataflow_set_preserve_mem_locs) Likewise.
28001 (dataflow_set_remove_mem_locs) Likewise.
28002 (variable_from_dropped) Likewise.
28003 (variable_was_changed) Likewise.
28004 (set_slot_part) Likewise.
28005 (clobber_slot_part) Likewise.
28006 (delete_slot_part) Likewise.
28007 (loc_exp_insert_dep) Likewise.
28008 (notify_dependents_of_changed_value) Likewise.
28009 (emit_notes_for_differences_1) Likewise.
28010 (vt_emit_notes) Likewise.
28011 (vt_initialize) Likewise.
28012 (vt_finalize) Likewise.
28013
28014 2015-06-01 Martin Liska <mliska@suse.cz>
28015
28016 * ira-color.c (init_update_cost_records):Use new type-based
28017 pool allocator.
28018 (get_update_cost_record) Likewise.
28019 (free_update_cost_record_list) Likewise.
28020 (finish_update_cost_records) Likewise.
28021 (initiate_cost_update) Likewise.
28022
28023 2015-06-01 Martin Liska <mliska@suse.cz>
28024
28025 * lra.c (init_insn_regs): Use new type-based pool allocator.
28026 (new_insn_reg) Likewise.
28027 (free_insn_reg) Likewise.
28028 (free_insn_regs) Likewise.
28029 (finish_insn_regs) Likewise.
28030 (init_insn_recog_data) Likewise.
28031 (init_reg_info) Likewise.
28032 (finish_reg_info) Likewise.
28033 (lra_free_copies) Likewise.
28034 (lra_create_copy) Likewise.
28035 (invalidate_insn_data_regno_info) Likewise.
28036
28037 2015-06-01 Martin Liska <mliska@suse.cz>
28038
28039 * lra-lives.c (free_live_range): Use new type-based pool allocator.
28040 (free_live_range_list) Likewise.
28041 (create_live_range) Likewise.
28042 (copy_live_range) Likewise.
28043 (lra_merge_live_ranges) Likewise.
28044 (remove_some_program_points_and_update_live_ranges) Likewise.
28045 (lra_live_ranges_init) Likewise.
28046 (lra_live_ranges_finish) Likewise.
28047
28048 2015-06-01 Martin Liska <mliska@suse.cz>
28049
28050 * et-forest.c (et_new_occ): Use new type-based pool allocator.
28051 (et_new_tree): Likewise.
28052 (et_free_tree): Likewise.
28053 (et_free_tree_force): Likewise.
28054 (et_free_pools): Likewise.
28055 (et_split): Likewise.
28056
28057 2015-06-01 Martin Liska <mliska@suse.cz>
28058
28059 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28060 to header file.
28061 * alloc-pool.h (pool_allocator::pool_allocator): New function.
28062 (pool_allocator::release): Likewise.
28063 (inline pool_allocator::release_if_empty): Likewise.
28064 (inline pool_allocator::~pool_allocator): Likewise.
28065 (pool_allocator::allocate): Likewise.
28066 (pool_allocator::remove): Likewise.
28067
28068 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28069
28070 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28071 in comment.
28072
28073 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28074
28075 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28076 to fusible_ops.
28077 * config/arm/arm.c (arm_print_tune_info): Likewise.
28078 (arm_macro_fusion_p): Likewise.
28079 (arm_macro_fusion_pair_p): Likewise.
28080
28081 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28082
28083 * config/aarch64/aarch64-protos.h (tune_params): Rename
28084 fuseable_ops to fusible_ops.
28085 * config/aarch64/aarch64.c (generic_tunings): Rename
28086 fuseable_ops to fusible_ops.
28087 (cortexa53_tunings): Likewise.
28088 (cortexa57_tunings): Likewise.
28089 (thunderx_tunings): Likewise.
28090 (xgene1_tunings): Likewise.
28091 (aarch64_macro_fusion_p): Likewise.
28092 (aarch64_macro_fusion_pair_p): Likewise.
28093
28094 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
28095
28096 * config/s390/driver-native.c: New file.
28097 * config/s390/x-native: New file.
28098 * config.host: Add new files for s390.
28099 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28100 and -march=native
28101 * config.gcc: Likewise.
28102 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28103 * config/s390/s390-opts.h (enum processor_type): Ditto.
28104 * config/s390/s390.c (s390_option_override): Catch unhandled
28105 PROCESSOR_NATIVE
28106
28107 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
28108
28109 PR target/65527
28110 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28111 redirection for instrumented calls.
28112 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28113 (append_compiler_options): Append -fcheck-pointer-bounds.
28114 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28115 (chkp_redirect_edge): New.
28116 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28117 (chkp_redirect_edge): New.
28118
28119 2015-06-01 Richard Biener <rguenther@suse.de>
28120
28121 PR tree-optimization/66280
28122 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28123 def-use walking.
28124
28125 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28126
28127 * config/aarch64/aarch64.md
28128 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28129 logic_shift_imm.
28130
28131 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28132
28133 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28134 Remove obsolete kludge.
28135
28136 2015-06-01 Richard Biener <rguenther@suse.de>
28137
28138 * tree-ssa-reassoc.c (get_rank): Simplify.
28139
28140 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
28141
28142 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28143 * configure: Regenerated.
28144
28145 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
28146
28147 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28148 issue (add space between string literal and macro).
28149 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28150
28151 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
28152
28153 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28154 implict or explicit -fPIE or -fpie.
28155
28156 2015-05-30 Mike Frysinger <vapier@gentoo.org>
28157
28158 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28159
28160 2015-05-28 DJ Delorie <dj@redhat.com>
28161
28162 * expmed.c (extract_bit_field_1): Avoid clobbering a
28163 yet-to-be-used base/index register.
28164
28165 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
28166
28167 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28168 (alias_stats): Add num_universal.
28169 (alias_set_subset_of): Special case pointers; be ready for NULL
28170 children.
28171 (alias_sets_conflict_p): Special case pointers; be ready for NULL
28172 children.
28173 (init_alias_set_entry): Break out from ...
28174 (record_alias_subset): ... here; propagate new fields;
28175 allocate children only when really needed.
28176 (get_alias_set): Do less generous pointer globbing.
28177 (dump_alias_stats_in_alias_c): Update statistics.
28178
28179 2015-05-30 Alan Modra <amodra@gmail.com>
28180
28181 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28182 correct block for use of r12.
28183 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28184
28185 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28186
28187 PR target/66215
28188 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28189 with -mhotpatch=.
28190
28191 2015-05-29 Jakub Jelinek <jakub@redhat.com>
28192
28193 PR tree-optimization/66142
28194 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28195 virtual phis that feed themselves.
28196
28197 2015-05-29 Richard Biener <rguenther@suse.de>
28198
28199 PR tree-optimization/66314
28200 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28201 parameter that says which loop the new block belongs to.
28202 (ssa_create_duplicates): Blocks duplicated for the threaded
28203 path belong to the loop of the thread destination.
28204
28205 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28206
28207 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28208 to cleanup-saved-temps.
28209 * doc/sourcebuild.texi (Clean up generated test files): Expand
28210 introduction.
28211 (dg-keep-saved-temps): Document new proc.
28212 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28213 cleanup-saved-temps): Remove.
28214
28215 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
28216
28217 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28218 gcc_AC_CHECK_DECLS.
28219 * configure: Regenerate.
28220
28221 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28222
28223 * config/nios2/linux.h (CPP_SPEC): Define.
28224
28225 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28226
28227 * config/microblaze/linux.h (CPP_SPEC): Define.
28228
28229 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28230
28231 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28232 -pthread is specified.
28233
28234 2015-05-28 Richard Biener <rguenther@suse.de>
28235
28236 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28237 (vect_fixup_scalar_cycles_with_patterns): Likewise.
28238 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28239 after pattern recog.
28240 (vect_create_epilog_for_reduction): Properly handle reductions
28241 with patterns.
28242 (vectorizable_reduction): Likewise.
28243 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28244 reduction chains.
28245 (vect_get_constant_vectors): Create the correct number of
28246 initial values for reductions.
28247 (vect_schedule_slp_instance): Handle reduction chains that are
28248 type changing properly.
28249 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28250
28251 2015-05-28 Richard Biener <rguenther@suse.de>
28252
28253 PR tree-optimization/66142
28254 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28255 values better in memcpy destination handling. Handle non-aliasing
28256 we discover here.
28257
28258 2015-05-28 Lawrence Velázquez <vq@larryv.me>
28259
28260 PR target/63810
28261 * config/darwin-c.c (version_components): New global enum.
28262 (parse_version, version_as_legacy_macro)
28263 (version_as_modern_macro, macosx_version_as_macro): New functions.
28264 (version_as_macro): Remove.
28265 (darwin_cpp_builtins): Use new function.
28266
28267 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
28268
28269 * builtins.c (expand_builtin_acc_on_device): Mark parameters
28270 with ATTRIBUTE_UNUSED.
28271
28272 2015-05-28 Julian Brown <julian@codesourcery.com>
28273
28274 PR libgomp/65742
28275
28276 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28277 sequence for !ACCEL_COMPILER.
28278
28279 2015-05-28 Nick Clifton <nickc@redhat.com>
28280
28281 * config/rx/rx.c (push_regs): New function. Extracts code from...
28282 (rx_expand_prologue): ... here. Use push_regs to push even small
28283 spans of registers.
28284 (pop_regs): New function.
28285 (rx_expand_epilogue): Use pop_regs to pop even small spans of
28286 registers.
28287
28288 2015-05-28 Richard Biener <rguenther@suse.de>
28289
28290 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28291 member.
28292 (SLP_INSTANCE_BODY_COST_VEC): Remove.
28293 (vect_update_slp_costs_according_to_vf): Likewise.
28294 (vect_slp_analyze_operations): Update prototype.
28295 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28296 vect_update_slp_costs_according_to_vf, adjust.
28297 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28298 (vect_analyze_slp_cost_1): Likewise.
28299 (vect_analyze_slp_cost): Likewise. Properly deal with
28300 widening reduction ops. Commit body costs.
28301 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
28302 cost for loops from here.
28303 (vect_slp_analyze_operations): But do it from here when
28304 the vectorization factor is known and stmts are analyzed.
28305 (vect_bb_vectorization_profitable_p): Simplify.
28306 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28307 (vect_update_slp_costs_according_to_vf): Remove.
28308
28309 2015-05-27 Magnus Granberg <zorry@gentoo.org>
28310 H.J. Lu <hongjiu.lu@intel.com>
28311
28312 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28313 (BUILD_CFLAGS): Likewise.
28314 (BUILD_CXXFLAGS): Likewise.
28315 (LINKER): Add @NO_PIE_FLAG@.
28316 (BUILD_LDFLAGS): Likewise.
28317 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28318 --enable-default-pie.
28319 * common.opt (fPIE): Initialize to -1.
28320 (fpie): Likewise.
28321 (no-pie): New option.
28322 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28323 * configure.ac: Add --enable-default-pie.
28324 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
28325 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
28326 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
28327 * gcc.c (NO_PIE_SPEC): New.
28328 (PIE_SPEC): Likewise.
28329 (NO_FPIE1_SPEC): Likewise.
28330 (FPIE1_SPEC): Likewise.
28331 (NO_FPIE2_SPEC): Likewise.
28332 (FPIE2_SPEC): Likewise.
28333 (NO_FPIE2_SPEC): Likewise.
28334 (FPIE_SPEC): Likewise.
28335 (NO_FPIE_SPEC): Likewise.
28336 (NO_FPIC1_SPEC): Likewise.
28337 (FPIC1_SPEC): Likewise.
28338 (NO_FPIC2_SPEC): Likewise.
28339 (FPIC2_SPEC): Likewise.
28340 (NO_FPIC2_SPEC): Likewise.
28341 (FPIC_SPEC): Likewise.
28342 (NO_FPIC_SPEC): Likewise.
28343 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28344 (FPIE1_OR_FPIC1_SPEC): Likewise.
28345 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28346 (FPIE2_OR_FPIC2_SPEC): Likewise.
28347 (NO_FPIE_AND_FPIC_SPEC): Likewise.
28348 (FPIE_OR_FPIC_SPEC): Likewise.
28349 (LD_PIE_SPEC): Likewise.
28350 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
28351 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28352 * config/darwin.h (PIE_SPEC): Renamed to ...
28353 (DARWIN_PIE_SPEC): This.
28354 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28355 * config/darwin9.h (PIE_SPEC): Renamed to ...
28356 (DARWIN_PIE_SPEC): This.
28357 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28358 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28359 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28360 FPIE2_OR_FPIC2_SPEC.
28361 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28362 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28363 * config/sol2.h (ASM_PIC_SPEC): Likewise.
28364 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28365 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28366 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28367 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28368 * config/m32r/m32r.h (ASM_SPEC): Likewise.
28369 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28370 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28371 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28372 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28373 * config/sparc/linux.h (ASM_SPEC): Likewise.
28374 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28375 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28376 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28377 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28378 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28379 * config/sparc/sparc.h (ASM_SPEC): Likewise.
28380 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28381 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28382 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28383 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28384 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28385 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28386 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28387 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28388 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28389 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28390 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28391 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28392 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28393 * config/vax/linux.h (ASM_SPEC): Likewise.
28394 * doc/install.texi: Document --enable-default-pie.
28395 * doc/invoke.texi: Document -no-pie.
28396 * config.in: Regenerated.
28397 * configure: Likewise.
28398
28399 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28400
28401 PR rtl-optimization/66168
28402 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28403 can_move_invariant_reg.
28404
28405 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
28406
28407 PR target/66148
28408 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28409 REG_EQUAL note when doing insert.
28410
28411 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28412 instead of "%d" for 'o' operand.
28413
28414 2015-05-27 Nathan Sidwell <nathan@acm.org>
28415
28416 PR c++/66270
28417 * tree.c (build_pointer_type_for_mode): Canonical type does not
28418 inherit can_alias_all.
28419 (build_reference_type_for_mode): Likewise.
28420
28421 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
28422
28423 * expr.h (array_at_struct_end_p): Move to...
28424 (array_ref_element_size): Likewise.
28425 (component_ref_field_offset): Likewise.
28426 * tree.h (array_ref_element_size): ...here.
28427 (array_at_struct_end_p): Likewise.
28428 (component_ref_field_offset): Likewise.
28429 * expr.c (array_ref_element_size): Move to...
28430 (array_ref_low_bound): Likewise.
28431 (array_at_struct_end_p): Likewise.
28432 (array_ref_up_bound): Likewise.
28433 (component_ref_field_offset): Likewise.
28434 * tree.c (array_ref_element_size): ...here.
28435 (array_ref_low_bound): Likewise.
28436 (array_ref_up_bound): Likewise.
28437 (array_at_struct_end_p): Likewise.
28438 (component_ref_field_offset): Likewise.
28439
28440 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28441 Szabolcs Nagy <szabolcs.nagy@arm.com>
28442
28443 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
28444
28445 2015-05-27 Jason Merrill <jason@redhat.com>
28446
28447 PR bootstrap/66304
28448 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
28449 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
28450 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
28451
28452 2015-05-22 Aditya Kumar <hiraditya@msn.com>
28453
28454 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
28455 is true.
28456
28457 * statistics.c (statistics_fini_pass): Print pass name.
28458
28459 2015-05-27 Richard Biener <rguenther@suse.de>
28460
28461 PR tree-optimization/66272
28462 Revert parts of
28463 2014-08-15 Richard Biener <rguenther@suse.de>
28464
28465 PR tree-optimization/62031
28466 * tree-data-ref.c (dr_analyze_indices): Do not set
28467 DR_UNCONSTRAINED_BASE.
28468 (dr_may_alias_p): All indirect accesses have to go the
28469 formerly DR_UNCONSTRAINED_BASE path.
28470 * tree-data-ref.h (struct indices): Remove
28471 unconstrained_base member.
28472 (DR_UNCONSTRAINED_BASE): Remove.
28473
28474 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
28475
28476 * dwarf2out.c: Remove block_map.
28477 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
28478 (gen_lexical_block_die): Same.
28479 (dwarf2out_function_decl): Remove block_map use.
28480 (dwarf2out_c_finalize): Same.
28481 * tree-core.h (struct tree_block): Add die field.
28482 * tree.h (BLOCK_DIE): New.
28483
28484 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28485
28486 PR target/65358
28487 * expr.c (memory_load_overlap): New function.
28488 (emit_push_insn): When pushing partial args to the stack would
28489 clobber the register part load the overlapping part into a pseudo
28490 and put it into the hard reg after pushing. Change return type
28491 to bool. Add bool argument.
28492 * expr.h (emit_push_insn): Change return type to bool.
28493 Add bool argument.
28494 * calls.c (expand_call): Cancel sibcall optimization when encountering
28495 partial argument on targets with ARGS_GROW_DOWNWARD and
28496 !STACK_GROWS_DOWNWARD.
28497 (emit_library_call_value_1): Update callsite of emit_push_insn.
28498 (store_one_arg): Likewise.
28499
28500 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28501
28502 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
28503
28504 2015-05-27 Martin Liska <mliska@suse.cz>
28505
28506 * Makefile.in: Add additional dependencies related to memory report
28507 enhancement.
28508 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
28509 * bitmap.c (struct bitmap_descriptor_d): Remove.
28510 (struct loc): Likewise.
28511 (struct bitmap_desc_hasher): Likewise.
28512 (bitmap_desc_hasher::hash): Likewise.
28513 (bitmap_desc_hasher::equal): Likewise.
28514 (get_bitmap_descriptor): Likewise.
28515 (bitmap_register): User new memory descriptor API.
28516 (register_overhead): Likewise.
28517 (bitmap_find_bit): Register nsearches and search_iter statistics.
28518 (struct bitmap_output_info): Remove.
28519 (print_statistics): Likewise.
28520 (dump_bitmap_statistics): Use new memory descriptor.
28521 * bitmap.h (struct bitmap_usage): New class.
28522 * genmatch.c: Extend header file inclusion.
28523 * genpreds.c: Likewise.
28524 * ggc-common.c (struct ggc_usage): New class.
28525 (struct ggc_loc_desc_hasher): Remove.
28526 (ggc_loc_desc_hasher::hash): Likewise.
28527 (ggc_loc_desc_hasher::equal): Likewise.
28528 (struct ggc_ptr_hash_entry): Likewise.
28529 (struct ptr_hash_hasher): Likewise.
28530 (ptr_hash_hasher::hash): Likewise.
28531 (ptr_hash_hasher::equal): Likewise.
28532 (make_loc_descriptor): Likewise.
28533 (ggc_prune_ptr): Likewise.
28534 (dump_ggc_loc_statistics): Use new memory descriptor.
28535 (ggc_record_overhead): Likewise.
28536 (ggc_free_overhead): Likewise.
28537 (final_cmp_statistic): Remove.
28538 (cmp_statistic): Likewise.
28539 (ggc_add_statistics): Liekwise.
28540 (ggc_prune_overhead_list): Likewise.
28541 * hash-map-traits.h: New file.
28542 * hash-map.h (struct default_hashmap_traits): Move the traits to a
28543 separate header file.
28544 * hash-set.h: Pass memory statistics info to ctor.
28545 * hash-table.c (void dump_hash_table_loc_statistics): New function.
28546 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
28547 (hash_table::~hash_table): Register memory release operation.
28548 (hash_table::alloc_entries): Handle memory allocation operation.
28549 (hash_table::expand): Likewise.
28550 * inchash.c (iterative_hash_hashval_t): Move implementation to header
28551 file.
28552 (iterative_hash_host_wide_int): Likewise.
28553 * inchash.h (class hash): Likewise.
28554 * mem-stats-traits.h: New file.
28555 * mem-stats.h: New file.
28556 (mem_location): Add new class.
28557 (mem_usage): Likewise.
28558 (mem_alloc_description): Likewise.
28559 * sese.c: Add new header file inclusision.
28560 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
28561 and hash_set.
28562 * tree-sra.c: Add new header file inclusision.
28563 * vec.c (struct vec_descriptor): Remove.
28564 (hash_descriptor): Likewise.
28565 (struct vec_usage): Likewise.
28566 (struct ptr_hash_entry): Likewise.
28567 (hash_ptr): Likewise.
28568 (eq_ptr): Likewise.
28569 (vec_prefix::register_overhead): Use new memory descriptor API.
28570 (vec_prefix::release_overhead): Likewise.
28571 (add_statistics): Remove.
28572 (dump_vec_loc_statistics): Use new memory descriptor API.
28573 * vec.h (struct vec_prefix): Likewise.
28574 (va_heap::reserve): Likewise.
28575 (va_heap::release): Likewise.
28576 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
28577
28578 2015-05-27 Richard Biener <rguenther@suse.de>
28579
28580 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
28581 earlier and remove ??? comment.
28582 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
28583 and got called from loop analysis bail out. Always pass the SLP
28584 node to the vectorizable_* functions.
28585 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
28586 the premature SLP check here.
28587 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
28588 detected SLP stmts.
28589 (vect_detect_hybrid_slp_1): Likewise.
28590
28591 2015-05-26 Jeff Law <law@redhat.com>
28592
28593 * combine.c (find_split_point): Verify that the shift count is a
28594 constant when choosing (plus (ashift ...)) as a split point.
28595
28596 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
28597 No functional changes.
28598
28599 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
28600
28601 * ipa-polymorphic-call.c
28602 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
28603 case when call target is already known.
28604
28605 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
28606
28607 PR target/65979
28608 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
28609 take into account the case that operands[1] and operands[2]
28610 are the same register.
28611
28612 2015-05-26 Michael Matz <matz@suse.de>
28613
28614 PR middle-end/66251
28615
28616 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
28617 stores.
28618 (vect_create_vectorized_demotion_stmts): Always set
28619 STMT_VINFO_VEC_STMT, also with SLP.
28620 (vectorizable_store): Handle strided group stores.
28621
28622 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28623
28624 PR target/66049
28625 * config/aarch64/aarch64.md
28626 (*adds_shift_imm_<mode>): New pattern.
28627 (*subs_shift_imm_<mode>): Likewise.
28628 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28629 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28630 (*add_uxt<mode>_shift2): Likewise.
28631 (*add_uxtsi_shift2_uxtw): Likewise.
28632 (*sub_uxt<mode>_shift2): Likewise.
28633 (*sub_uxtsi_shift2_uxtw): Likewise.
28634
28635 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
28636
28637 * config/rs6000/constraints.md (Y, U): Use match_test.
28638
28639 2015-05-26 Christian Bruel <christian.bruel@st.com>
28640
28641 PR target/52144
28642 * config/arm/arm.c (arm_option_check_internal)
28643 (arm_option_params_internal): Check opts->target_flags to set macros.
28644 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28645 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
28646 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28647 (builtin_define): Replaced with def_or_undef_macro.
28648 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28649 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
28650 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28651 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
28652 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
28653 (TARGET_ARM_FEATURE_LDREX_P)
28654 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
28655 * config/arm/arm-c.c (def_or_undef_macro): New function.
28656 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
28657
28658 2015-05-26 Christian Bruel <christian.bruel@st.com>
28659
28660 * c-common.h (builtin_define_with_int_value)
28661 (builtin_define_type_sizeof): Declare.
28662 * c-cppbuiltin.c (builtin_define_with_int_value)
28663 (builtin_define_type_sizeof): Externalize.
28664 (builtin_define_std): Cleanup declaration.
28665 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
28666 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
28667 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
28668 (builtin_define, builtin_assert): New macros.
28669
28670 2015-05-26 Richard Biener <rguenther@suse.de>
28671
28672 PR tree-optimization/66142
28673 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
28674 MEM_REFs for the same base address.
28675
28676 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28677
28678 PR ipa/66181
28679 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
28680
28681 2015-05-26 Jason Merrill <jason@redhat.com>
28682
28683 * configure.ac: Set CXXFLAGS for ISL test.
28684 * configure: Regenerate.
28685
28686 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
28687 strstr and basename.
28688 * configure: Regenerate.
28689
28690 2015-05-26 Richard Biener <rguenther@suse.de>
28691
28692 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
28693 X % C -> X & (C - 1) for C being a power-of two to ...
28694 * match.pd: ... patterns.
28695
28696 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
28697
28698 * match.pd (swapped_tcc_comparison): New operator list.
28699 (-A CMP -B): New simplification.
28700 * fold-const.c (fold_comparison): Remove corresponding code.
28701
28702 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28703
28704 * caller-save.c (init_caller_save): Base temporary register numbers
28705 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
28706 * cfgloopanal.c (init_set_costs): Likewise.
28707 * dojump.c (prefer_and_bit_test): Likewise.
28708 * expr.c (init_expr_target): Likewise.
28709 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28710 * lower-subreg.c (init_lower_subreg): Likewise.
28711 * postreload.c (reload_cse_regs_1): Likewise.
28712
28713 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28714
28715 * gensupport.h (compute_test_codes): Declare.
28716 * gensupport.c (compute_predicate_codes): Rename to...
28717 (compute_test_codes): ...this. Generalize error message.
28718 (process_define_predicate): Update accordingly.
28719 * genpreds.c (compute_maybe_allows): Delete.
28720 (add_constraint): Use compute_test_codes to determine whether
28721 something can accept a SUBREG, REG or MEM.
28722
28723 2015-05-26 Torvald Riegel <triegel@redhat.com>
28724
28725 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
28726 'memory model' to align with C++11; fix description of memory orders;
28727 fix a few typos.
28728
28729 2015-05-26 Richard Biener <rguenther@suse.de>
28730
28731 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
28732 (vect_analyze_loop_operations): ... here. Remove slp parameter,
28733 detect whether we apply SLP. Remove call to
28734 vect_update_slp_costs_according_to_vf.
28735 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
28736 vect_update_slp_costs_according_to_vf from here. Dispatch
28737 to vect_slp_analyze_operations to analyze SLP stmts.
28738 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
28739 unused bb_vec_info parameter, adjust assert.
28740 (vect_slp_analyze_operations): Pass in the slp instance tree
28741 instead of bb_vec_info.
28742 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
28743 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
28744
28745 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28746
28747 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
28748 Q_REGS. Expand comment.
28749 (REG_CLASS_NAMES): Ditto.
28750 (REG_CLASS_CONTENTS): Ditto.
28751
28752 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
28753
28754 PR target/66274
28755 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
28756 when LEGACY_INT_REGNO_P is processed.
28757
28758 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28759
28760 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
28761
28762 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28763
28764 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
28765 register if not marked dead/unused, before return.
28766
28767 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28768
28769 PR lto/66180
28770 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
28771 is set; check for assembler name at LTO time.
28772 (type_in_anonymous_namespace): Remove hacks, check that all
28773 anonymous types are called "<anon>"
28774 (odr_type_p): Simplify; add check for "<anon>"
28775 (odr_subtypes_equivalent): Add odr_type_p check.
28776 * tree.c (need_assembler_name_p): Even anonymous namespace needs
28777 assembler name.
28778
28779 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28780
28781 * ipa-utils.h (method_class_type): Remove.
28782 * cgraphunit.c (walk_polymorphic_call_targets): Use
28783 TYPE_METHOD_BASETYPE.
28784 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
28785 on main variants only.
28786 (method_class_type): Remove.
28787 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
28788 (build_type_inheritance_graph): Likewise.
28789 * ipa-icf.c (sem_function::equals_wpa): Likewise.
28790 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
28791 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
28792
28793 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28794
28795 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
28796 is_typedef_decl, typedef_variant_p): Constify.
28797 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
28798 is_typedef_decl, typedef_variant_p): Constify.
28799
28800 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28801
28802 * defaults.h (gen_tablejump): New function.
28803 (HAVE_tablejump): Add default value.
28804 * expr.c: Adjust.
28805 * stmt.c: Likewise.
28806
28807 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28808
28809 * defaults.h (gen_store_multiple): New function.
28810 (HAVE_store_multiple): Add default value.
28811 * expr.c (move_block_from_reg): Adjust.
28812
28813 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28814
28815 * defaults.h (gen_load_multiple): New function.
28816 (HAVE_load_multiple): Add default value.
28817 * expr.c (move_block_to_reg): Adjust.
28818
28819 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28820
28821 * defaults.h (gen_mem_signal_fence): New function.
28822 (HAVE_mem_signal_fence): Add default value.
28823 * optabs.c: Adjust.
28824
28825 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28826
28827 * defaults.h (gen_memory_barrier): New function.
28828 (HAVE_memory_barrier): Add default value.
28829 * optabs.c: Adjust.
28830
28831 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28832
28833 * defaults.h (gen_mem_thread_fence): New function.
28834 (HAVE_mem_thread_fence): Add default definition.
28835 * optabs.c: Adjust.
28836
28837 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28838
28839 * combine.c (find_split_point): Check the value of HAVE_lo_sum
28840 instead of if it is defined.
28841 (combine_simplify_rtx): Likewise.
28842 * lra-constraints.c (process_address_1): Likewise.
28843 * config/darwin.c: Adjust.
28844 * genconfig.c (main): Always define HAVE_lo_sum.
28845
28846 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28847
28848 * genmatch.c (parser::parse_operation): Reject expanding
28849 operator-list inside 'for'.
28850
28851 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28852
28853 * genmatch.c (parser::parse_for): Reject iterator if used as
28854 operator-list.
28855
28856 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28857
28858 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
28859 after end of id-list.
28860
28861 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28862
28863 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
28864 we do not try to compute canonical type for type that does not need
28865 alias set.
28866 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
28867 FUNCITON_TYPE.
28868 * tree.h (type_with_alias_set_p): New.
28869
28870 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
28871
28872 * tree.c (gimple_canonical_types_compatible_p): Do not compare
28873 function attributes.
28874 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
28875
28876 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
28877
28878 * Makefile.in (check_gcc_parallelize): Delete.
28879 (lang_checks_parallelized): Update comment.
28880
28881 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
28882
28883 PR rtl-optimization/66237
28884 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
28885 location of an "as_a" cast.
28886
28887 2015-05-22 Jeff Law <law@redhat.com>
28888
28889 * config/pa/pa.md (non-canonical shift-add insns): Remove.
28890 (peepholes with non-canonical RTL sources): Remove.
28891 (peepholes for indexed stores of FP regs in integer modes): Match and
28892 generate canonical RTL.
28893
28894 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28895
28896 PR tree-optimization/63387
28897 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
28898 ((x ord x) & (y ord y) -> (x ord y),
28899 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
28900 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
28901 vectors like scalars.
28902
28903 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28904
28905 * convert.c (convert_to_integer, convert_to_vector): Include the
28906 types in the error message.
28907
28908 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
28909
28910 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
28911 simplifications.
28912
28913 2015-05-22 Jeff Law <law@redhat.com>
28914
28915 * config/pa/pa.md (integer_indexed_store splitters): Use
28916 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
28917 insns -- adjusting the constant 2nd operand accordingly.
28918
28919 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
28920 (plus (ashift X log2) Y) if it is a split point.
28921
28922 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
28923 out of hppa_legitimize_address to handle both forms of a multiply
28924 by 2, 4 or 8.
28925 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
28926 Always generate the ASHIFT variant as the result is not directly
28927 used in a MEM. Update comments and refactor slightly to improve
28928 readability.
28929
28930 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28931
28932 PR target/65491
28933 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
28934 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
28935 (aarch64_composite_type_p): Return false if given type and mode are
28936 for a short vector.
28937
28938 2015-05-22 Richard Biener <rguenther@suse.de>
28939
28940 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
28941 member.
28942 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
28943 patterns when determining whether SLP is pure.
28944 (vect_is_slp_reduction): Remove check for pattern stmts.
28945 (vect_is_simple_reduction_1): Remove dead code.
28946 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
28947 (vect_get_and_check_slp_defs): Pass in the stmt number.
28948 Allow the first def in a reduction to be not a pattern stmt when
28949 the rest of the stmts def are patterns.
28950 (vect_build_slp_tree_1): Allow tcc_expression codes like
28951 SAD_EXPR and DOT_PROD_EXPR.
28952 (vect_build_slp_tree): Adjust.
28953 (vect_analyze_slp): Refactor and move BB vect error message ...
28954 (vect_slp_analyze_bb_1): ... here.
28955
28956 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
28957
28958 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
28959 for CSWTCH temporary.
28960
28961 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28962
28963 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
28964 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
28965 unknown unspecs.
28966
28967 2015-05-22 Richard Biener <rguenther@suse.de>
28968
28969 PR tree-optimization/66251
28970 * tree-vect-stmts.c (vectorizable_conversion): Properly
28971 set STMT_VINFO_VEC_STMT even for the SLP case.
28972
28973 2015-05-22 Marek Polacek <polacek@redhat.com>
28974
28975 * doc/extend.texi: Use @pxref instead of @xref.
28976
28977 2015-05-22 hiraditya <hiraditya@msn.com>
28978
28979 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
28980 redundant if.
28981
28982 2015-05-22 Richard Biener <rguenther@suse.de>
28983
28984 PR tree-optimization/65701
28985 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
28986 Move peeling cost models into one place. Peel for alignment
28987 for single loads only if an aligned load is cheaper than
28988 an unaligned load.
28989
28990 2015-05-22 Marek Polacek <polacek@redhat.com>
28991
28992 PR c/47043
28993 * doc/extend.texi (Enumerator Attributes): New section.
28994 Document syntax of enumerator attributes.
28995
28996 2015-05-22 Richard Biener <rguenther@suse.de>
28997
28998 * tree-vect-loop.c (get_reduction_op): New function.
28999 (vect_model_reduction_cost): Use it, add reduc_index parameter.
29000 Make ready for BB reductions.
29001 (vect_create_epilog_for_reduction): Use get_reduction_op.
29002 (vectorizable_reduction): Init reduc_index to a valid value.
29003 Adjust vect_model_reduction_cost call.
29004 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29005 operand for reduction defaults. Add SAD_EXPR support.
29006 Assert we have a neutral op for SLP reductions.
29007 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29008 walking pattern stmt ops only recurse to SSA names.
29009
29010 2015-05-22 Richard Biener <rguenther@suse.de>
29011
29012 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29013 assert with guard, remove check on detected reduction.
29014 (vect_recog_sad_pattern): Likewise.
29015 (vect_recog_widen_sum_pattern): Likewise.
29016
29017 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29018
29019 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29020 __always_inline__ attribute.
29021 (vaesdq_u8): Likewise.
29022 (vaesmcq_u8): Likewise.
29023 (vaesimcq_u8): Likewise.
29024 (vsha1cq_u32): Likewise.
29025 (vsha1mq_u32): Likewise.
29026 (vsha1pq_u32): Likewise.
29027 (vsha1h_u32): Likewise.
29028 (vsha1su0q_u32): Likewise.
29029 (vsha1su1q_u32): Likewise.
29030 (vsha256hq_u32): Likewise.
29031 (vsha256h2q_u32): Likewise.
29032 (vsha256su0q_u32): Likewise.
29033 (vsha256su1q_u32): Likewise.
29034 (vmull_p64): Likewise.
29035 (vmull_high_p64): Likewise.
29036
29037 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29038
29039 * final.c (final_scan_insn): Don't check HAVE_peephole with the
29040 preprocessor.
29041 * output.h: Likewise.
29042 * genconfig.c (main): Alwways define HAVE_peephole.
29043 * genpeep.c: Don't emit checks of HAVE_peephole.
29044
29045 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29046
29047 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29048 check HAVE_conditional_move with the preprocessor.
29049
29050 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29051
29052 * genconfig.c (main): Always define HAVE_conditional_move.
29053 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29054 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29055 is defined.
29056
29057 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29058
29059 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29060 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29061 and FRAME_POINTER_REGNUM with the preprocessor.
29062
29063 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29064
29065 * defaults.h: Add default for STACK_PUSH_CODE.
29066 * expr.c: Don't redefine STACK_PUSH_CODE.
29067 * recog.c: Likewise.
29068
29069 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29070
29071 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29072 sched-deps.c: Use if instead of preprocessor checks with
29073 STACK_GROWS_DOWNWARD.
29074
29075 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29076
29077 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29078 is defined.
29079 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29080 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29081 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29082 * doc/tm.texi: Regenerate.
29083
29084 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
29085
29086 PR target/66232
29087 * config/i386/constraints.md (Bg): New constraint for GOT memory
29088 operand.
29089 * config/i386/i386.md (*call_got_x32): New pattern.
29090 (*call_value_got_x32): Likewise.
29091 * config/i386/predicates.md (GOT_memory_operand): New predicate.
29092
29093 2015-05-21 Jakub Jelinek <jakub@redhat.com>
29094
29095 PR tree-optimization/66233
29096 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29097 Simplify.
29098
29099 2015-05-21 Jeff Law <law@redhat.com>
29100
29101 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29102 than MULT for shadd sequences.
29103
29104 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
29105
29106 * alias.c (alias_stats): New static var.
29107 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29108 (dump_alias_stats_in_alias_c): New function.
29109 * alias.h (dump_alias_stats_in_alias_c): Declare.
29110 * tree-ssa-alias.c (dump_alias_stats): Call it.
29111
29112 2015-05-08 Michael Matz <matz@suse.de>
29113
29114 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29115 to strided_p.
29116 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29117 (STMT_VINFO_STRIDED_P): ... this.
29118 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29119 (vect_verify_datarefs_alignment): Likewise.
29120 (vect_enhance_data_refs_alignment): Likewise.
29121 (vect_analyze_data_ref_access): Likewise.
29122 (vect_analyze_data_refs): Accept strided stores.
29123 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29124 (vect_model_load_cost): Adjust for macro rename.
29125 (vectorizable_mask_load_store): Likewise.
29126 (vectorizable_load): Likewise.
29127 (vectorizable_store): Open code strided stores.
29128
29129 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29130
29131 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29132 Document sqrt_insn.
29133
29134 2015-05-21 Richard Biener <rguenther@suse.de>
29135
29136 PR c++/66211
29137 * match.pd: Guard pattern optimzing (int)(float)int
29138 conversions to apply only on GIMPLE.
29139
29140 2015-05-21 Jeff Law <law@redhat.com>
29141
29142 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29143 multiply-accumulate/shift-add insn generation.
29144
29145 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
29146
29147 PR target/54236
29148 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29149 operands[1] are the same.
29150
29151 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
29152
29153 PR middle-end/66221
29154 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29155 build_distinct_type_copy to copy bounds.
29156
29157 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
29158
29159 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29160 Change to unsigned int.
29161
29162 2015-05-20 Jeff Law <law@redhat.com>
29163
29164 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29165 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29166 (pa_shadd_constant_p): Allow constants for shadd insns rather
29167 than valid scaling constants for memory addresses.
29168 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29169 * config/pa/predicates.md (mem_shadd_operand): New predicate.
29170 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29171 (shift-add insns using ASHIFT): New patterns.
29172
29173 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
29174
29175 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29176 feasible.
29177 (fix_up_fall_thru_edges): Likewise.
29178 (fix_crossing_conditional_branches): Likewise. Promote jump targets
29179 from to rtx_insn to rtx_code_label where feasible.
29180 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29181 gen_move_insn (returned type changed to rtx_insn).
29182 * builtins.c (expand_errno_check): Fix arguments of
29183 do_compare_rtx_and_jump (now expects rtx_code_label).
29184 (expand_builtin_acc_on_device): Likewise.
29185 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29186 invert_jump (now exprects rtx_jump_insn).
29187 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29188 (construct_init_block): Use rtx_code_label.
29189 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29190 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29191 calling redirect_jump.
29192 (patch_jump_insn): Likewise.
29193 (redirect_branch_edge): Likewise.
29194 (force_nonfallthru_and_redirect): Likewise.
29195 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29196 when suitable.
29197 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29198 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29199 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29200 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29201 to store the value retured by gen_label_rtx.
29202 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29203 rtx_jump_insn.
29204 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29205 (split_branches): Fix calls of redirect_jump.
29206 * dojump.c (jumpifnot): Promote argument type from rtx to
29207 rtx_code_label.
29208 (jumpifnot_1): Likewise.
29209 (jumpif): Likewise.
29210 (jumpif_1): Likewise.
29211 (do_jump_1): Likewise.
29212 (do_jump): Likewise. Use rtx_code_label when feasible.
29213 (do_jump_by_parts_greater_rtx): Likewise.
29214 (do_jump_by_parts_zero_rtx): Likewise.
29215 (do_jump_by_parts_equality_rtx): Likewise.
29216 (do_compare_rtx_and_jump): Likewise.
29217 * dojump.h: Update function prototypes.
29218 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29219 returns rtx_insn).
29220 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29221 rtx_jump_insn.
29222 (emit_label_before): Likewise.
29223 (emit_jump_insn_after_noloc): Likewise.
29224 (emit_jump_insn_after_setloc): Likewise.
29225 (emit_jump_insn_after): Likewise
29226 (emit_jump_insn_before_setloc): Likewise.
29227 (emit_jump_insn_before): Likewise.
29228 (emit_label_before): Promote return type to rtx_code_label.
29229 (emit_label): Likewise.
29230 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29231 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29232 gen_move_insn.
29233 (emit_stack_restore): Likewise.
29234 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29235 (do_cmp_and_jump): Likewise.
29236 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29237 from rtx to rtx_code_label.
29238 (gen_move_insn_uncast): New function.
29239 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29240 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29241 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29242 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29243 invert_jump_1 and redirect_jump_1.
29244 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29245 do_compare_rtx_and_jump.
29246 (expand_addsub_overflow): Likewise.
29247 (expand_neg_overflow): Likewise.
29248 (expand_mul_overflow): Likewise.
29249 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29250 return value of gen_move_insn.
29251 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29252 * loop-doloop.c (add_test): Use rtx_code_label.
29253 (doloop_modify): Likewise.
29254 (doloop_optimize): Likewise.
29255 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29256 * lra-constraints.c (emit_spill_move): Remove cast of value returned
29257 by gen_move_insn.
29258 (inherit_reload_reg): Add cast when calling dump_insn_slim.
29259 (split_reg): Likewise.
29260 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29261 gen_move_insn.
29262 * optabs.c (expand_binop_directly): Remove casts of values returned by
29263 maybe_gen_insn.
29264 (expand_unop_direct): Likewise.
29265 (expand_abs): Likewise.
29266 (maybe_emit_unop_insn): Likewise.
29267 (maybe_gen_insn): Promote return type to rtx_insn.
29268 * optabs.h: Update prototype of maybe_gen_insn.
29269 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29270 redundant cast.
29271 * recog.c (struct peep2_insn_data): Promote type of insn field to
29272 rtx_insn.
29273 (peep2_reinit_state): Use NULL instead of NULL_RTX.
29274 (peep2_attempt): Remove casts of insn in peep2_insn_data.
29275 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29276 * recog.h (struct insn_gen_fn): Promote return types of function
29277 pointers and operator ().from rtx to rtx_insn.
29278 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29279 (fill_eager_delay_slots): Likewise.
29280 (relax_delay_slots): Likewise.
29281 (make_return_insns): Likewise.
29282 (dbr_schedule): Likewise.
29283 (optimize_skips): Likewise.
29284 (reorg_redirect_jump): Likewise.
29285 (fill_slots_from_thread): Likewise.
29286 * reorg.h: Update prototypes.
29287 * resource.c (find_dead_or_set_registers): Use dyn_cast to
29288 rtx_jump_insn instead of check. Use it's jump_target method.
29289 * rtl.h (rtx_jump_insn::jump_label): Define new method.
29290 (rtx_jump_insn::jump_target): Define new method.
29291 (rtx_jump_insn::set_jump_target): Define new method.
29292 * rtlanal.c (tablejump_p): Promote type of one local variable.
29293 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29294 (sched_analyze_insn): Likewise.
29295 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29296 (print_insn): Likewise.
29297 * stmt.c (label_rtx): Promote return type to rtx_insn.
29298 (force_label_rtx): Likewise.
29299 (jump_target_rtx): Define new function.
29300 (expand_label): Use it, get rid of one cast.
29301 (expand_naked_return): Promote rtx to rtx_code_label.
29302 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29303 (expand_case): Use rtx_code_label instread of rtx where feasible.
29304 (expand_sjlj_dispatch_table): Likewise.
29305 (emit_case_nodes): Likewise.
29306 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
29307 * store-motion.c (insert_store): Make use of new return type of
29308 gen_move_insn and remove a cast.
29309 (replace_store_insn): Likewise.
29310
29311 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
29312
29313 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29314 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29315
29316 2015-05-20 Jeff Law <law@redhat.com>
29317
29318 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29319 dispose of the jump thread path when the jump threading
29320 opportunity is cancelled.
29321
29322 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29323
29324 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29325 when printing the caret character.
29326
29327 2015-05-20 Marek Polacek <polacek@redhat.com>
29328
29329 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29330
29331 2015-05-20 Marek Polacek <polacek@redhat.com>
29332
29333 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29334 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29335 * gimple-fold.c (canonicalize_bool): Likewise.
29336 (same_bool_result_p): Likewise.
29337 * tree-if-conv.c (parse_predicate): Likewise.
29338
29339 2015-05-20 Marek Polacek <polacek@redhat.com>
29340
29341 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29342 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29343
29344 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29345
29346 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29347 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29348 values.
29349
29350 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
29351
29352 * config/mips/mips.h (micromips_globals): Declare.
29353
29354 2015-05-20 David Malcolm <dmalcolm@redhat.com>
29355
29356 * timevar.def (TV_INITIALIZE_RTL): New.
29357 * toplev.c (initialize_rtl): Use an auto_timevar to account this
29358 function's time to TV_INITIALIZE_RTL.
29359
29360 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
29361
29362 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29363 gimple_build_nop calls.
29364 (chkp_find_bounds_for_elem): Likewise.
29365 (chkp_get_zero_bounds): Likewise.
29366 (chkp_get_none_bounds): Likewise.
29367 (chkp_get_bounds_by_definition): Likewise.
29368 (chkp_generate_extern_var_bounds): Likewise.
29369 (chkp_get_bounds_for_decl_addr): Likewise.
29370 (chkp_get_bounds_for_string_cst): Likewise.
29371
29372 2015-05-20 Bin Cheng <bin.cheng@arm.com>
29373
29374 PR tree-optimization/65447
29375 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29376 (dump_use, dump_uses): Support to dump sub use.
29377 (record_use): New parameters to support sub use. Remove call to
29378 dump_use.
29379 (record_sub_use, record_group_use): New functions.
29380 (compute_max_addr_offset, split_all_small_groups): New functions.
29381 (group_address_uses, rewrite_use_address): New functions.
29382 (strip_offset): New declaration.
29383 (find_interesting_uses_address): Call record_group_use.
29384 (add_candidate): New assertion.
29385 (infinite_cost_p): Move definition forward.
29386 (add_costs): Check INFTY cost and return immediately.
29387 (get_computation_cost_at): Clear setup cost and dependent bitmap
29388 for sub uses.
29389 (determine_use_iv_cost_address): Compute cost for sub uses.
29390 (rewrite_use_address_1): Rename from old rewrite_use_address.
29391 (free_loop_data): Free sub uses.
29392 (tree_ssa_iv_optimize_loop): Call group_address_uses.
29393
29394 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29395 Jim Wilson <jim.wilson@linaro.org>
29396
29397 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29398 new fields loadv and storev.
29399 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29400 Initialize loadv and storev.
29401 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29402 (cortexa53_extra_costs): Likewise.
29403 (cortexa57_extra_costs): Likewise.
29404 (xgene1_extra_costs): Likewise.
29405 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29406 rtx_costs.
29407
29408 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29409
29410 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29411 storev.
29412 (cortexa8_extra_costs): Likewise.
29413 (cortexa5_extra_costs): Likewise.
29414 (cortexa7_extra_costs): Likewise.
29415 (cortexa12_extra_costs): Likewise.
29416 (cortexa15_extra_costs): Likewise.
29417 (v7m_extra_costs): Likewise.
29418
29419 2015-05-20 Jeff Law <law@redhat.com>
29420
29421 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29422 instead of open-coded version. Also delete the jump thread created
29423 within this function.
29424
29425 2015-05-20 Alan Modra <amodra@gmail.com>
29426
29427 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
29428 stack adjusting insn. Formatting.
29429 (rs6000_emit_prologue): Track stack adjusting insn, and use of
29430 r12. If possible, emit first -fsplit-stack arg pointer insn
29431 before stack adjust. Don't use r12 to save cr if split-stack.
29432
29433 2015-05-20 Alan Modra <amodra@gmail.com>
29434
29435 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
29436 Define.
29437 (rs6000_supports_split_stack): New function.
29438 * config/rs6000/rs6000.c (machine_function): Add
29439 split_stack_arg_pointer.
29440 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
29441 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
29442 rather than virtual_incoming_args_rtx.
29443 (rs6000_va_start): Likewise.
29444 (split_stack_arg_pointer_used_p): New function.
29445 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
29446 (morestack_ref): New var.
29447 (gen_add3_const, rs6000_expand_split_stack_prologue,
29448 rs6000_internal_arg_pointer, rs6000_live_on_entry,
29449 rs6000_split_stack_space_check): New functions.
29450 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
29451 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
29452 (UNSPECV_SPLIT_STACK_RETURN): Define.
29453 (split_stack_prologue, load_split_stack_limit,
29454 load_split_stack_limit_di, load_split_stack_limit_si,
29455 split_stack_return, split_stack_space_check): New expands and insns.
29456 * config/rs6000/rs6000-protos.h
29457 (rs6000_expand_split_stack_prologue): Declare.
29458 (rs6000_split_stack_space_check): Declare.
29459
29460 2015-05-20 Alan Modra <amodra@gmail.com>
29461
29462 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
29463 (direct_return): Test vrsave_size rather than vrsave_mask.
29464 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
29465 (rs6000_emit_epilogue): Likewise.
29466
29467 2015-05-20 Alan Modra <amodra@gmail.com>
29468
29469 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
29470 when not saving registers.
29471 (debug_stack_info): Adjust to omit printing unused offsets,
29472 as before.
29473 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
29474 expression.
29475
29476 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29477
29478 PR c++/65835
29479 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
29480 value_type to const char *.
29481
29482 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
29483
29484 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
29485 to build a biarch toolchain again.
29486
29487 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29488
29489 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
29490 or implicit declarations.
29491 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
29492 into it.
29493 (get_odr_type): Check type has linkage before adding bases.
29494 (register_odr_type): Check that type has linkage before adding it.
29495 (type_known_to_have_no_deriavations_p): Rename to ..
29496 (type_known_to_have_no_derivations_p): This one.
29497 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
29498 (type_known_to_have_no_derivations_p): This one.
29499 * ipa-polymorphic-call.c
29500 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
29501 type has linkage.
29502
29503 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29504
29505 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
29506 (layout_type): Use RECORD_OR_UNION_TYPE_P.
29507
29508 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29509
29510 * config/s390/s390.c (s390_vector_bool_type_p): New function.
29511 (s390_invalid_binary_op): New function.
29512 (TARGET_INVALID_BINARY_OP): Define macro.
29513
29514 2015-05-19 David Sherwood <david.sherwood@arm.com>
29515
29516 * loop-invariant.c (create_new_invariant): Don't calculate address cost
29517 if mode is not a scalar integer.
29518 (get_inv_cost): Increase computational cost for unused invariants.
29519
29520 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29521
29522 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
29523 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
29524 * config/s390/s390-builtin-types.def: New file.
29525 * config/s390/s390-builtins.def: New file.
29526 * config/s390/s390-builtins.h: New file.
29527 * config/s390/s390-c.c: New file.
29528 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
29529 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
29530 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
29531 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
29532 prototypes.
29533 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
29534 Include.
29535 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
29536 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
29537 variable definitions.
29538 (s390_const_operand_ok): New function.
29539 (s390_expand_builtin): Rewrite.
29540 (s390_init_builtins): New function.
29541 (s390_handle_vectorbool_attribute): New function.
29542 (s390_attribute_table): Add s390_vector_bool attribute.
29543 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
29544 (s390_branch_condition_mask): Generate masks for new modes.
29545 (s390_expand_vec_compare_cc): New function.
29546 (s390_mangle_type): Add mangling for vector bool types.
29547 (enum s390_builtin): Remove.
29548 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
29549 efpc builtins.
29550 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
29551 s390_cpu_cpp_builtins.
29552 (REGISTER_TARGET_PRAGMAS): New macro.
29553 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
29554 (insn_cmp mode attribute): Add new CC modes.
29555 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
29556 (lcbb): New pattern definition.
29557 * config/s390/s390intrin.h: Include vecintrin.h.
29558 * config/s390/t-s390: New file.
29559 * config/s390/vecintrin.h: New file.
29560 * config/s390/vector.md: Include vx-builtins.md.
29561 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
29562 support.
29563
29564 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29565
29566 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
29567 CCVFHE.
29568 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
29569 (s390_select_ccmode): Likewise.
29570 (s390_canonicalize_comparison): Swap operands if necessary.
29571 (s390_expand_vec_compare_scalar): Expand DFmode compare using
29572 single element vector instructions.
29573 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
29574 (s390_branch_condition_mask): Generate CC masks for the new modes.
29575 * config/s390/s390.md (v0, vf, vd): New mode attributes.
29576 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
29577 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
29578 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
29579 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
29580 (*extend<DSF:mode><BFP:mode>2): New insn definition.
29581 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
29582 (extend<DSF:mode><BFP:mode>2): Turn into expander.
29583 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
29584 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
29585 (sqrt<mode>2): Add vector instruction.
29586
29587 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29588
29589 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
29590 constraints.
29591 * config/s390/predicates.md (const0_operand, constm1_operand)
29592 (constable_operand): Accept vector operands.
29593 * config/s390/s390-modes.def: Add supported vector modes.
29594 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
29595 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
29596 (s390_bytemask_vector_p, s390_expand_vec_strlen)
29597 (s390_expand_vec_compare, s390_expand_vcond)
29598 (s390_expand_vec_init): Add prototypes.
29599 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
29600 (s390_vector_mode_supported_p): New function.
29601 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
29602 (s390_contiguous_bitmask_vector_p): New function.
29603 (s390_bytemask_vector_p): New function.
29604 (s390_split_ok_p): Vector regs don't work either.
29605 (regclass_map): Add VEC_REGS.
29606 (s390_legitimate_constant_p): Handle vector constants.
29607 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
29608 (legitimate_reload_vector_constant_p): New function.
29609 (s390_preferred_reload_class): Handle CONST_VECTOR.
29610 (s390_reload_symref_address): Likewise.
29611 (s390_secondary_reload): Vector memory instructions only support
29612 short displacements. Rename reload*_nonoffmem* to reload*_la*.
29613 (s390_emit_ccraw_jump): New function.
29614 (s390_expand_vec_strlen): New function.
29615 (s390_expand_vec_compare): New function.
29616 (s390_expand_vcond): New function.
29617 (s390_expand_vec_init): New function.
29618 (s390_dwarf_frame_reg_mode): New function.
29619 (print_operand): Handle addresses with 'O' and 'R' constraints.
29620 (NR_C_MODES, constant_modes): Add vector modes.
29621 (s390_output_pool_entry): Handle vector constants.
29622 (s390_hard_regno_mode_ok): Handle vector registers.
29623 (s390_class_max_nregs): Likewise.
29624 (s390_cannot_change_mode_class): New function.
29625 (s390_invalid_arg_for_unprototyped_fn): New function.
29626 (s390_function_arg_vector): New function.
29627 (s390_function_arg_float): Remove size variable.
29628 (s390_pass_by_reference): Handle vector arguments.
29629 (s390_function_arg_advance): Likewise.
29630 (s390_function_arg): Likewise.
29631 (s390_return_in_memory): Vector values are returned in a VR if
29632 possible.
29633 (s390_function_and_libcall_value): Handle vector arguments.
29634 (s390_gimplify_va_arg): Likewise.
29635 (s390_call_saved_register_used): Consider the arguments named.
29636 (s390_conditional_register_usage): Disable v16-v31 for non-vec
29637 targets.
29638 (s390_preferred_simd_mode): New function.
29639 (s390_support_vector_misalignment): New function.
29640 (s390_vector_alignment): New function.
29641 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
29642 (TARGET_VECTOR_MODE_SUPPORTED_P)
29643 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
29644 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
29645 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
29646 (TARGET_VECTOR_ALIGNMENT): Define target macro.
29647 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
29648 (FIRST_PSEUDO_REGISTER): Increase value.
29649 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
29650 (VECTOR_REG_P): Define macros.
29651 (FIXED_REGISTERS, CALL_USED_REGISTERS)
29652 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
29653 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
29654 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
29655 Add vector registers.
29656 (CANNOT_CHANGE_MODE_CLASS): Call C function.
29657 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
29658 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
29659 memory.
29660 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
29661 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
29662 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
29663 (VR*_REGNUM): New constants.
29664 (ALL): New mode iterator.
29665 (INTALL): Remove mode iterator.
29666 Include vector.md.
29667 (movti): Implement TImode moves for VRs.
29668 Disable TImode splitter for VR targets.
29669 Implement splitting TImode GPR<->VR moves.
29670 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
29671 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
29672 reload<mode>_la_in, reload<mode>_la_out.
29673 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
29674 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
29675 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
29676 (mov<mode> SF SD): Prefer lder, lde for loading.
29677 Add lrl and strl instructions.
29678 Add vector instructions.
29679 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
29680 Call s390_expand_vec_strlen on z13.
29681 (*cc_to_int): Change predicate to nonimmediate_operand.
29682 (addti3): Rename to *addti3. New expander.
29683 (subti3): Rename to *subti3. New expander.
29684 * config/s390/vector.md: New file.
29685
29686 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29687
29688 * common/config/s390/s390-common.c (processor_flags_table): Add
29689 z13.
29690 * config.gcc: Add z13.
29691 * config/s390/s390-opts.h (enum processor_type): Add
29692 PROCESSOR_2964_Z13.
29693 * config/s390/s390.c (s390_adjust_priority): Check for
29694 PROCESSOR_2964_Z13.
29695 (s390_reorg): Likewise.
29696 (s390_sched_reorder): Likewise.
29697 (s390_sched_variable_issue): Likewise.
29698 (s390_loop_unroll_adjust): Likewise.
29699 (s390_option_override): Likewise. Default to -mvx when available.
29700 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
29701 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
29702 (TARGET_VX_ABI): Define macros.
29703 macros.
29704 (TARGET_DEFAULT): Add MASK_OPT_VX.
29705 * config/s390/s390.md ("cpu" attribute): Add z13.
29706 ("cpu_facility" attribute): Add vec.
29707 * config/s390/s390.opt (processor_type): Add z13.
29708 (mvx): New options.
29709 * doc/invoke.texi: Add z13 option for -march.
29710
29711 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29712
29713 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
29714 mode check to make sure that only scalar integer values are
29715 accepted.
29716
29717 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29718
29719 * tree.c (verify_type_variant): Fix #undef.
29720 (gimple_canonical_types_compatible_p): Move here from lto.c
29721 (verify_type): Verify TYPE_CANONICAL compatibility.
29722 * tree.h (gimple_canonical_types_compatible_p): Declare.
29723
29724 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29725
29726 PR middle-end/66199
29727 * tree.h (OMP_TEAMS_COMBINED): Define.
29728 * gimplify.c (enum gimplify_omp_var_data): Add
29729 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
29730 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
29731 (omp_notice_variable): Accept both ORT_TEAMS
29732 and ORT_COMBINED_TEAMS. Don't recurse if
29733 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
29734 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
29735 GOVD_FIRSTPRIVATE.
29736 (omp_no_lastprivate): New function.
29737 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
29738 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
29739 notice_outer and set appropriate bits, otherwise make
29740 sure default(none) combined constructs won't complain.
29741 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
29742 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
29743 omp_no_lastprivate either remove the clause or turn it
29744 into OMP_CLAUSE_PRIVATE.
29745 (gimplify_omp_for): Fix up handling of implicit
29746 lastprivate or linear iterators.
29747 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
29748 ORT_COMBINED_TEAMS.
29749 * omp-low.c (lower_omp_for_lastprivate): For combined
29750 for simd use fd.loop.n2 from the for rather than simd.
29751
29752 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29753
29754 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
29755 instead of gen_rtx_raw_REG.
29756 (cris_expand_epilogue): Likewise.
29757 * config/microblaze/microblaze.c (microblaze_classify_address):
29758 Likewise.
29759 * config/sparc/sparc.md: Likewise.
29760
29761 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
29762
29763 * config/alpha/alpha.c (alpha_legitimize_reload_address)
29764 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
29765 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
29766 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
29767 Use CASE_CONST_SCALAR_INT.
29768 (print_operand) <case 'M'>: Use mode_width_operand to check the
29769 value of the constant.
29770 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
29771 * config/alpha/predicates.md (input_operand): Use general_operand
29772 instead of match_code as operand check.
29773 (symbolic_operand): Use match_code with subexpression digits.
29774 * config/alpha/constraints.md (Q): Ditto.
29775
29776 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29777
29778 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
29779
29780 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29781
29782 * config/s390/s390.c (s390_secondary_reload): Fix check for
29783 load/store relative.
29784
29785 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29786
29787 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
29788 alternative_mask to uint64_t.
29789
29790 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29791
29792 PR tree-optimization/66187
29793 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
29794 Pass TYPE_SIGN to tree_int_cst_min_precision. If
29795 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
29796
29797 2015-05-19 David Malcolm <dmalcolm@redhat.com>
29798
29799 * diagnostic.c (diagnostic_report_current_module): Strengthen
29800 local "new_map" from const line_map * to
29801 const line_map_ordinary *.
29802 * genmatch.c (error_cb): Likewise for local "map".
29803 (output_line_directive): Likewise for local "map".
29804 * input.c (expand_location_1): Likewise for local "map".
29805 Pass NULL rather than &map to
29806 linemap_unwind_to_first_non_reserved_loc, since the value is never
29807 read from there, and the value written back not read from here.
29808 (is_location_from_builtin_token): Strengthen local "map" from
29809 const line_map * to const line_map_ordinary *.
29810 (dump_location_info): Strengthen locals "map" from
29811 line_map *, one to const line_map_ordinary *, the other
29812 to const line_map_macro *.
29813 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
29814 const line_map * to const line_map_macro *.
29815 (maybe_unwind_expanded_macro_loc): Add a call to
29816 linemap_check_macro when writing to the "map" field of the
29817 loc_map_pair.
29818 Introduce local const line_map_ordinary * "ord_map", using it in
29819 place of "map" in the part of the function where we know we have
29820 an ordinary map. Strengthen local "m" from const line_map * to
29821 const line_map_ordinary *.
29822
29823 2015-05-19 Nick Clifton <nickc@redhat.com>
29824
29825 PR target/66156
29826 * config/msp430/msp430.md (zero_extendhisi2): Add support for
29827 separate source and destination registers.
29828
29829 2015-05-19 Richard Biener <rguenther@suse.de>
29830
29831 PR tree-optimization/66165
29832 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
29833 for no load permutation.
29834
29835 PR tree-optimization/66185
29836 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
29837 when building the SLP node from scalars.
29838
29839 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29840 Tristan Gingold <gingold@adacore.com>
29841
29842 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
29843 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
29844 (expand_stack_restore): Call record_new_stack_level.
29845 (expand_stack_save): Do not call do_pending_stack_adjust.
29846 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
29847 * calls.c (expand_call): Call record_new_stack_level for alloca.
29848 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
29849 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
29850 (update_sjlj_context): New global function.
29851 * except.h (update_sjlj_context): Declare.
29852 * explow.c (record_new_stack_level): New global function.
29853 (allocate_dynamic_stack_space): Call record_new_stack_level.
29854 * explow.h (record_new_stack_level): Declare.
29855 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
29856 * cfgrtl.c (duplicate_insn_chain): Likewise.
29857
29858 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29859
29860 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
29861 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
29862 STACK_GROWS_DOWNWARD as normal if.
29863 (expand_call): Likewise.
29864
29865 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
29866
29867 PR target/54236
29868 * config/sh/sh.md (*round_int_even): New insn_and_split and
29869 accompanying new unnamed split.
29870
29871 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29872
29873 * bitmap.c (bitmap_set_range): Handle count==1 specially.
29874 (bitmap_clear_range): Likewise.
29875 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
29876 bitmap_set_range unconditionally.
29877 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29878 * df-scan.c (df_mark_reg): Likewise.
29879 * haifa-sched.c (setup_ref_regs): Likewise.
29880 * sched-rgn.c (update_live_1): Likewise.
29881
29882 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29883
29884 * regs.h (END_HARD_REGNO): Delete.
29885 (END_REGNO): Move to...
29886 * rtl.h: ...here.
29887 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
29888 * caller-save.c (mark_set_regs): Likewise.
29889 * combine.c (move_deaths, distribute_notes): Likewise.
29890 * cse.c (invalidate, invalidate_for_call): Likewise.
29891 * df-scan.c (df_ref_record): Likewise.
29892 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
29893 (record_last_reg_set_info): Likewise.
29894 * reg-stack.c (convert_regs_exit): Likewise.
29895 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
29896 * resource.c (update_live_status): Likewise.
29897 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
29898
29899 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29900
29901 * rtl.h (reg_info): Add an nregs field.
29902 (REG_NREGS): Use it.
29903 (SET_REGNO_RAW): Delete.
29904 (set_regno_raw): New function.
29905 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
29906 (END_REGNO): Redefine in terms of REG_NREGS.
29907 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
29908 SET_REGNO_RAW.
29909 * emit-rtl.c (set_mode_and_regno): Likewise.
29910 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
29911 instead of SET_REGNO_RAW.
29912
29913 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29914
29915 * rtl.h (PUT_MODE_RAW): New macro.
29916 (PUT_REG_NOTE_KIND): Use it.
29917 (set_mode_and_regno): Declare.
29918 (gen_raw_REG): Change regno to "unsigned int".
29919 (gen_rtx_REG): Change "unsigned" to "unsigned int".
29920 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
29921 use set_mode_and_regno to change the mode of registers.
29922 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
29923 * emit-rtl.c (set_mode_and_regno): New function.
29924 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
29925 * caller-save.c (reg_save_code): Use set_mode_and_regno.
29926 * expr.c (init_expr_target): Likewise.
29927 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29928 * postreload.c (reload_cse_simplify_operands): Likewise.
29929
29930 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29931
29932 * caller-save.c (init_caller_save): Use word_mode and
29933 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
29934 * expr.c (init_expr_target): Likewise.
29935 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29936 * postreload.c (reload_cse_regs_1): Likewise.
29937
29938 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29939
29940 * rtl.def (REG): Change format to "r".
29941 * rtl.h (rtunion): Remove rt_reg.
29942 (reg_info): New structure.
29943 (rtx_def): Add reg field to main union.
29944 (X0REGATTR): Delete.
29945 (REG_CHECK): New macro.
29946 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
29947 * rtl.c (rtx_format): Document "r".
29948 (rtx_code_size): Handle REG specially.
29949 * gengenrtl.c (special_format): Return true for formats
29950 that include 'r'.
29951 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
29952 Deal with REG_ATTRS after the field loop.
29953 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
29954 * expmed.c (init_expmed): Call gen_raw_REG instead of
29955 gen_rtx_raw_REG.
29956 * expr.c (init_expr_target): Likewise.
29957 * regcprop.c (maybe_mode_change): Likewise.
29958 * varasm.c (make_decl_rtl): Likewise.
29959 * final.c (leaf_renumber_regs_insn): Return early after
29960 handling REGs.
29961 * genemit.c (gen_exp): Handle 'r' fields.
29962 * genpeep.c (match_rtx): Likewise.
29963 * gensupport.c (subst_pattern_match): Likewise.
29964 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
29965 (alter_constraints, subst_dup): Likewise.
29966 * read-rtl.c (read_rtx_code): Likewise.
29967 * print-rtl.c (print_rtx): Likewise.
29968 * genrecog.c (find_operand, find_matching_operand): Likewise.
29969 (validate_pattern, match_pattern_2): Likewise.
29970 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
29971 (rtx_test::regno_field): New function.
29972 (operator ==, safe_to_hoist_p, transition_parameter_type)
29973 (parameter_type_string, print_parameter_value)
29974 (print_nonbool_test, print_test): Handle new enum values.
29975 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
29976 * lra-constraints.c (operands_match_p): Likewise.
29977
29978 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29979
29980 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
29981 Change type of new_regno to unsigned int.
29982 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
29983 new_regno to unsigned int.
29984 (df_ref_change_reg_with_loc): Remove old_regno parameter.
29985 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
29986 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
29987 (SET_REGNO_RAW): Add space after ",".
29988
29989 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29990
29991 * rtl.h (REG_NREGS): New macro
29992 * alias.c (record_set): Use it.
29993 * cfgcleanup.c (mark_effect): Likewise.
29994 * combine.c (likely_spilled_retval_1): Likewise.
29995 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
29996 (move_deaths, distribute_notes): Likewise.
29997 * cselib.c (cselib_record_set): Likewise.
29998 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
29999 * df-scan.c (df_mark_reg): Likewise.
30000 * dse.c (look_for_hardregs): Likewise.
30001 * dwarf2out.c (reg_loc_descriptor): Likewise.
30002 (multiple_reg_loc_descriptor): Likewise.
30003 * expr.c (write_complex_part, read_complex_part): Likewise.
30004 (emit_move_complex): Likewise.
30005 * haifa-sched.c (setup_ref_regs): Likewise.
30006 * ira-lives.c (mark_hard_reg_live): Likewise.
30007 * lra.c (lra_set_insn_recog_data): Likewise.
30008 * mode-switching.c (create_pre_exit): Likewise.
30009 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30010 (reload_combine_recognize_pattern): Likewise.
30011 (reload_combine_note_use, move2add_record_mode): Likewise.
30012 (reload_cse_move2add): Likewise.
30013 * reg-stack.c (subst_stack_regs_pat): Likewise.
30014 * regcprop.c (kill_value, copy_value): Likewise.
30015 (copyprop_hardreg_forward_1): Likewise.
30016 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30017 (build_def_use): Likewise.
30018 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30019 (deps_analyze_insn): Likewise.
30020 * sched-rgn.c (check_live_1, update_live_1): Likewise.
30021 * sel-sched.c (count_occurrences_equiv): Likewise.
30022 * valtrack.c (dead_debug_insert_temp): Likewise.
30023
30024 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30025
30026 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30027 * dse.c (note_add_store): Likewise.
30028 * ira-lives.c (mark_hard_reg_dead): Likewise.
30029 * loop-invariant.c (mark_reg_store): Likewise.
30030 (mark_reg_death): Likewise.
30031 * postreload.c (reload_combine): Likewise.
30032 (reload_combine_note_store): Likewise.
30033 (reload_combine_note_use): Likewise.
30034 * recog.c (peep2_reg_dead_p): Likewise.
30035
30036 2015-05-19 Alan Modra <amodra@gmail.com>
30037
30038 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30039 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30040 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30041 unused predicates.
30042 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30043 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
30044 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30045 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30046
30047 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
30048
30049 * config/mips/mips.md (JOIN_MODE): New mode iterator.
30050 (join2_load_Store<JOIN_MODE:mode>): New pattern.
30051 (join2_loadhi): Likewise.
30052 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30053 load-load and store-stores.
30054 * config/mips/mips.opt (mload-store-pairs): New option.
30055 (TARGET_LOAD_STORE_PAIRS): New macro.
30056 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30057 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30058 * config/mips/mips.c (mips_load_store_bonding_p): New function.
30059
30060 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
30061
30062 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30063 explicit swaps.
30064 * dojump.c (do_compare_rtx_and_jump): Likewise.
30065 * expmed.c (emit_store_flag_1): Likewise.
30066 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30067 * final.c (sprint_ul): Use std::reverse for reversing a string.
30068 * fold-const.c (extract_muldiv_1): Use std::swap.
30069 * genmodes.c (emit_mode_int_n): Likewise.
30070 * ifcvt.c (dead_or_predicable): Likewise.
30071 * ira-build.c (ira_merge_live_ranges): Likewise.
30072 (swap_allocno_copy_ends_if_necessary): Likewise.
30073 * ira.c (ira_setup_alts): Likewise.
30074 * loop-iv.c (iv_analyze_expr): Likewise.
30075 (implies_p): Likewise.
30076 (canon_condition): Likewise.
30077 * lra-constraints.c (swap_operands): Likewise.
30078 * lra-lives.c (lra_merge_live_ranges): Likewise.
30079 * omega.c (swap): Remove.
30080 (bswap): Remove.
30081 (omega_unprotect_1): Use std::swap.
30082 (omega_solve_geq): Likewise.
30083 * optabs.c (expand_binop_directly): Likewise.
30084 (expand_binop): Likewise.
30085 (emit_conditional_move): Likewise.
30086 (emit_conditional_add): Likewise.
30087 * postreload.c (reload_cse_simplify_operands): Likewise.
30088 * reg-stack.c (emit_swap_insn): Likewise.
30089 (swap_to_top): Likewise.
30090 (compare_for_stack_reg): Likewise.
30091 (subst_asm_stack_regs): Likewise.
30092 * reload.c (find_reloads): Likewise.
30093 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30094 * sel-sched.c (invoke_reorder_hooks): Likewise.
30095 (create_block_for_bookkeeping): Likewise.
30096 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30097 (lambda_matrix_right_hermite): Use std::swap.
30098 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30099 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30100 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30101 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30102 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30103 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30104 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30105 * tree-vrp.c (compare_ranges): Likewise.
30106 * var-tracking.c (add_with_sets): Likewise.
30107 (vt_find_locations): Likewise.
30108
30109 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
30110
30111 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30112 pie executables.
30113 (FBSD_ENDFILE_SPEC): Likewise.
30114 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30115 config/freebsd-spec.h.
30116 (ENDFILE_SPEC): Likewise.
30117
30118 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
30119 Richard Henderson <rth@redhat.com>
30120
30121 PR target/57032
30122 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30123 Check for a memory location that is not a reference (using an AND)
30124 to an unaligned location here.
30125 * config/alpha/predicates.md (normal_memory_operand): Remove.
30126
30127 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
30128
30129 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30130 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30131
30132 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
30133
30134 * config/mips/mips.c (micromips_globals): New variable.
30135 (mips_set_compression_mode): Save and reinitialize target-dependent
30136 state for microMIPS.
30137
30138 2015-05-18 Martin Liska <mliska@suse.cz>
30139
30140 * dbgcnt.def: Add new counter.
30141 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30142
30143 2015-05-18 Martin Liska <mliska@suse.cz>
30144
30145 * dbgcnt.def: Sort counters.
30146 * opts.c (common_handle_option): Do not compile if
30147 -fdbg-cnt-list is enabled.
30148
30149 2015-05-18 Tom de Vries <tom@codesourcery.com>
30150
30151 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30152 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
30153 address operator to va_list operand.
30154 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30155 unconditionally.
30156 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30157 operand.
30158 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30159 * config/s390/s390.c (s390_gimplify_va_arg): Same.
30160 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30161
30162 2015-05-18 Tom de Vries <tom@codesourcery.com>
30163
30164 * tree-ssa-tail-merge.c: Fix whitespace.
30165
30166 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
30167
30168 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30169 cortex-a17, and cortex-a17.cortex-a7.
30170
30171 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
30172
30173 PR target/54236
30174 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30175
30176 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
30177
30178 PR target/66174
30179 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30180 QImode inner modes for TARGET_AVX512BW. Force mask operand
30181 to a register for AVX512F modes.
30182
30183 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30184
30185 * toplev.c (emit_debug_global_declarations): Do not output debug info
30186 when doing slim LTO objects.
30187
30188 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30189
30190 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30191 odr_types_equivalent_p): Declare.
30192 (odr_type_p): Use gcc_checking_assert.
30193 (type_in_anonymous_namespace_p) Declare.
30194 (type_with_linkage_p): Declare.
30195 * common.opt (Wlto-type-mismatch): New warning.
30196 * ipa-devirt.c (compound_type_base): New function.
30197 (odr_or_derived_type_p): New function.
30198 (odr_types_equivalent_p): New function.
30199 (add_type_duplicate): Simplify.
30200 (type_with_linkage_p): Add hack to prevent false positives on C types
30201 (type_in_anonymous_namespace_p): Likewise.
30202 * tree.c (need_assembler_name_p): Use type_with_linkage.
30203 * tree.h (type_in_anonymous_namespace_p): Remove.
30204 * doc/invoke.texi (-Wlto-type-mismatch): Document
30205
30206 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30207
30208 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30209 (verify_type): Verify STRING_FLAG.
30210
30211 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
30212
30213 PR fortran/44054
30214 * tree-pretty-print.c (percent_K_format): Replace locus pointer
30215 with accessor function.
30216 * tree-diagnostic.c (diagnostic_report_current_function): Use
30217 diagnostic_location function.
30218 (maybe_unwind_expanded_macro_loc): Likewise.
30219 (virt_loc_aware_diagnostic_finalizer): Likewise.
30220 (default_tree_printer): Replace locus pointer with accessor function.
30221 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30222 (diagnostic_set_info_translated): Initialize second location.
30223 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30224 (diagnostic_show_locus): Handle two locations. Call
30225 diagnostic_print_caret_line.
30226 (diagnostic_print_caret_line): New.
30227 (default_diagnostic_starter): Use diagnostic_location function.
30228 (diagnostic_report_diagnostic): Use diagnostic_location function.
30229 (verbatim): Do not set text.locus.
30230 * diagnostic.h (struct diagnostic_info): Remove location field.
30231 (struct diagnostic_context): Make caret_chars an array of two.
30232 (diagnostic_location): New inline.
30233 (diagnostic_expand_location): Handle two locations.
30234 (diagnostic_same_line): New inline.
30235 (diagnostic_print_caret_line): Declare.
30236 (CARET_LINE_MARGIN): New constant.
30237 * pretty-print.c (pp_printf): Do not set text.locus.
30238 (pp_verbatim): Do not set text.locus.
30239 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30240 (struct text_info): Replace locus pointer with locations
30241 array. Add accessor functions.
30242
30243 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
30244 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30245
30246 PR target/65768
30247 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30248 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30249 large constants in register instead of splitting them.
30250
30251 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
30252
30253 PR target/66140
30254 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30255 replacements in memory addresses.
30256 (get_unaligned_address): Ditto.
30257
30258 2015-05-16 James Bowman <james.bowman@ftdichip.com>
30259
30260 * config/ft32/*: New files for FT32 port.
30261 * doc/install.texi: Add FT32 information.
30262 * doc/invoke.texi: Add FT32 information.
30263 * doc/md.texi: Add FT32 information.
30264 * doc/contrib.texi: Self added.
30265
30266 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
30267
30268 PR tree-optimization/64454
30269 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30270 (-1 - A -> ~A): Remove unnecessary condition.
30271
30272 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
30273
30274 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30275 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30276 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30277
30278 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
30279
30280 * ipa-chkp.h (chkp_wrap_function): New.
30281 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30282 (chkp_wrap_function_name): New.
30283 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30284 to get wrapper name.
30285 * lto-cgraph.c: Include ipa-chkp.h.
30286 (input_cgraph_1): Avoid alias chain for wrappers.
30287
30288 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30289
30290 PR middle-end/66134
30291 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30292 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30293
30294 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30295
30296 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30297 (AARCH64_FL_SLOWMUL): Delete.
30298 (AARCH64_FL_CRC): Redefine to 1<<3.
30299 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30300
30301 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30302
30303 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30304 casting.
30305
30306 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30307
30308 * config/alpha/alpha.md (extendqidi2): Use general_operand
30309 instead of some_operand for operand[1] predicate.
30310 (extendhidi2): Ditto.
30311 (cbranchdi4): Use general_operand instead of some_operand
30312 for operand[1] and operands[2] predicates.
30313 (cstoredi4): Ditto.
30314 * config/alpha/predicates.md (some_operand): Remove unused predicate.
30315 (some_ni_operand): Ditto.
30316
30317 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30318
30319 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30320 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
30321 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30322 low part of the constant using alpha_emit_set_const_1.
30323 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30324
30325 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
30326
30327 * varasm.c (output_constant_pool_1): Pass down alignment from
30328 constant pool entry's descriptor to output_constant_pool_2.
30329 (output_object_block): Add comment prior to call to
30330 output_constant_pool_1.
30331
30332 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
30333
30334 PR rtl-optimization/65862
30335 * target.def (ira_change_pseudo_allocno_class): New hook.
30336 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30337 value of the hook.
30338 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30339 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30340 hook.
30341 * ira-costs.c (find_costs_and_classes): Call the hook and change
30342 classes when it is necessary.
30343 * doc/tm.texi: Update.
30344
30345 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
30346
30347 * config/i386/i386.md (sibcall_memory): Check that register with
30348 callee address is not also used as one of the arguments, instead
30349 of checking that it is not live after the sibcall.
30350 (sibcall_pop_memory): Ditto.
30351 (sibcall_value_memory): Ditto.
30352 (sibcall_value_pop_memory): Ditto.
30353
30354 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
30355
30356 * generic-match-head.c (types_match): Handle non-types.
30357 * gimple-match-head.c (types_match): Likewise.
30358 * match.pd: Remove unnecessary TREE_TYPE for types_match.
30359
30360 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
30361
30362 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30363 (csneg3<mode>_insn): Enable expansion of pattern.
30364
30365 2015-05-14 Nick Clifton <nickc@redhat.com>
30366
30367 * config/rl78/rl78.c (rl78_select_section): Select the correct
30368 default section based upon the category of the decl.
30369
30370 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30371
30372 PR rtl-optimization/30967
30373 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30374 destination mode for the cost of scc patterns.
30375
30376 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30377
30378 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30379 using SWIM248 mode iterator.
30380 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30381 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
30382 for operand[2] constraint.
30383 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30384
30385 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30386
30387 PR middle-end/66133
30388 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30389 make sure it is never noreturn, even when the task body does not
30390 return.
30391 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30392 right before GIMPLE_OMP_RETURN.
30393 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30394 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
30395 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30396
30397 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30398
30399 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30400 * tree-ssa-math-opts.c: Include params.h
30401 (pow_synth_sqrt_info): New struct.
30402 (representable_as_half_series_p): New function.
30403 (get_fn_chain): Likewise.
30404 (print_nested_fn): Likewise.
30405 (dump_fractional_sqrt_sequence): Likewise.
30406 (dump_integer_part): Likewise.
30407 (expand_pow_as_sqrts): Likewise.
30408 (gimple_expand_builtin_pow): Use above to attempt to expand
30409 pow as series of square roots. Removed now unused variables.
30410
30411 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30412
30413 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30414 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30415 Remove *p0 and *p1 arguments. Rewrite function.
30416 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30417 (alpha_split_const_mov): Update calls to alpha_extract_integer and
30418 alpha_emit_set_long_const.
30419 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30420 (alpha_output_mi_thunk_osf): Ditto.
30421 * config/alpha/alpha.md (movti): Do not check operands[1]
30422 for CONST_DOUBLE.
30423
30424 2015-05-13 Richard Biener <rguenther@suse.de>
30425
30426 PR tree-optimization/66129
30427 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
30428 commutative.
30429 (vect_schedule_slp_instance): Fix typo.
30430
30431 2015-05-13 David Malcolm <dmalcolm@redhat.com>
30432
30433 * common.opt (fdump-internal-locations): New option.
30434 * input.c: Include diagnostic-core.h.
30435 (get_end_location): New function.
30436 (write_digit): New function.
30437 (write_digit_row): New function.
30438 (dump_location_range): New function.
30439 (dump_labelled_location_range): New function.
30440 (dump_location_info): New function.
30441 * input.h (dump_location_info): New prototype.
30442 * toplev.c (compile_file): Handle flag_dump_locations.
30443
30444 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
30445
30446 * gimple-expr.h (is_gimple_constant): Reorder.
30447 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
30448
30449 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30450
30451 * combine.c (simplify_set): When generating a CC set, if the
30452 source already is in the correct mode, do not wrap it in a
30453 compare. Simplify the rest of that code.
30454
30455 2015-05-13 Richard Biener <rguenther@suse.de>
30456
30457 PR tree-optimization/66123
30458 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
30459 a taken edge.
30460
30461 2015-05-13 Richard Biener <rguenther@suse.de>
30462
30463 PR middle-end/66110
30464 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
30465 specially.
30466 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
30467
30468 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30469
30470 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
30471 * aclocal.m4: Regenerated with automake-1.11.6.
30472
30473 2015-05-13 Tom de Vries <tom@codesourcery.com>
30474
30475 PR tree-optimization/66010
30476 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
30477 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
30478 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
30479 and rval based on do_deref.
30480
30481 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30482
30483 PR target/65103
30484 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
30485 link time constants into adress expressions and therefore set
30486 their cost to 0.
30487
30488 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30489
30490 PR target/66112
30491 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
30492 Use SWI248 iterator instead of SWI.
30493 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
30494 Use eq_attr "alternative" "0" instead of match_test in
30495 length_immediate attribute computation.
30496 (*mulvhi4, *mulvhi4_1): New define_insns.
30497
30498 PR target/66112
30499 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
30500 SIGNED to get precision of non-negative value.
30501
30502 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30503
30504 PR target/66048
30505 * function.c (diddle_return_value_1): Process bounds first.
30506 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
30507 register.
30508
30509 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
30510
30511 PR rtl-optimization/64616
30512 * loop-invariant.c (can_move_invariant_reg): New.
30513 (move_invariant_reg): Call above new function to decide whether
30514 instruction can just be moved, skipping creation of temporary
30515 register.
30516
30517 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30518
30519 PR target/pr66047.c
30520 * i386.c (ix86_function_sseregparm): Only return -1 if local function
30521 with implied regparm is called from -mno-sse function.
30522 (init_cumulative_args): Output error if ix86_function_sseregparm
30523 return -1 and SSE register would be needed.
30524 (function_arg_advance_32): Likewise.
30525 (function_arg_32): Likewise.
30526 * i386.h (ix86_args): Add decl field.
30527
30528 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30529
30530 PR ipa/65873
30531 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
30532 inlines across optimization boundary.
30533
30534 2015-05-12 Jason Merrill <jason@redhat.com>
30535
30536 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
30537 string literal and macro name.
30538
30539 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
30540
30541 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
30542 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
30543 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
30544
30545 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30546
30547 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
30548 (-Wmisleading-indentation): New option.
30549 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
30550
30551 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
30552
30553 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
30554 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
30555 (alpha_extract_integer): Ditto.
30556 (alpha_legitimate_constant_p): Ditto.
30557 (alpha_split_tmode_pair): Ditto.
30558 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
30559 (alpha_expand_mov): Ditto.
30560 (print_operand): Remove handling of 'H' modifier.
30561 <case 'm'>: Remove CONST_DOUBLE handling.
30562 (summarize_insn): Handle CONST_WIDE_INT.
30563 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
30564 (anddi3): Ditto.
30565 (movti): Handle CONST_WIDE_INT.
30566 * config/alpha/constraints.md ('H'): Remove constraint definition.
30567 ('G'): Do not match MODE_FLOAT class.
30568 * config/alpha/predicates.md (const0_operand): Also match
30569 const_wide_int.
30570 (non_add_const_operand): Ditto.
30571 (non_zero_const_operand): Ditto.
30572 (some_operand): Ditto.
30573 (input_operand): Ditto. Handle CONST_WIDE_INT.
30574 (and_operand): Do not match const_double.
30575 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
30576
30577 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
30578
30579 PR target/65697
30580 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
30581 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
30582 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
30583 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
30584 is_mm_seq_cst, is_mm_sync): New accessor functions.
30585 * builtins.c (expand_builtin_sync_operation,
30586 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
30587 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
30588 (get_memmodel, expand_builtin_atomic_compare_exchange,
30589 expand_builtin_atomic_load, expand_builtin_atomic_store,
30590 expand_builtin_atomic_clear): Use new accessor routines.
30591 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
30592 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
30593 (maybe_emit_sync_lock_test_and_set): Use new accessors and
30594 MEMMODEL_SYNC_ACQUIRE.
30595 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
30596 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
30597 expand_atomic_store): Use new accessors.
30598 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
30599 * tsan.c (instrument_builtin_call): Update check for memory model beyond
30600 final enum to use MEMMODEL_LAST.
30601 * c-family/c-common.c: Use new accessor for memmodel_base.
30602 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
30603 accessors.
30604 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
30605 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
30606 mem_thread_fence, *dmb): Likewise.
30607 * config/alpha/alpha.c (alpha_split_compare_and_swap,
30608 alpha_split_compare_and_swap_12): Likewise.
30609 * config/arm/arm.c (arm_expand_compare_and_swap,
30610 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
30611 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
30612 atomic_loaddi): Likewise.
30613 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
30614 Likewise.
30615 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
30616 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
30617 use new accessors.
30618 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
30619 atomic_store<mode>, atomic_compare_and_swap<mode>,
30620 atomic_exchange<mode>): Use new accessors.
30621 * config/mips/mips.c (mips_process_sync_loop): Likewise.
30622 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
30623 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
30624 rs6000_post_atomic_barrier): Add new cases.
30625 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
30626 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
30627 (atomic_load<mode>): Add new cases and use new accessors.
30628 (store_quadpti): Add new cases.
30629 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
30630 accessors.
30631 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
30632 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
30633 model, not 8.
30634
30635 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30636
30637 * ipa-devirt.c (type_with_linkage_p): New function.
30638 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
30639 type has linkage.
30640 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
30641 (can_be_name_hashed_p): Simplify.
30642 (hash_odr_name): Check that type has linkage before checking if it is
30643 anonymous.
30644 (types_same_for_odr): Likewise.
30645 (odr_name_hasher::equal): Likewise.
30646 (odr_subtypes_equivalent_p): Likewise.
30647 (warn_types_mismatch): Likewise.
30648 (get_odr_type): Likewise.
30649 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
30650 * ipa-utils.h (odr_type_p): Move offline.
30651 * tree.c (need_assembler_name_p): Fix handling of types
30652 without linkages.
30653 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
30654
30655 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30656
30657 * timevar.c (timevar_enable): Delete in favor of...
30658 (g_timer): New global.
30659 (struct timevar_def): Move to timevar.h inside class timer.
30660 (struct timevar_stack_def): Likewise.
30661 (timevars): Delete global in favor of field "m_timevars" within
30662 class timer in timevar.h
30663 (stack): Likewise, in favor of field "m_stack".
30664 (unused_stack_instances): Likewise, in favor of field
30665 "m_unused_stack_instances".
30666 (start_time): Likewise, in favor of field "m_start_time".
30667 (get_time): Eliminate check for timevar_enable.
30668 (timer::timer): New function, built from part of timevar_init.
30669 (timevar_init): Rewrite idempotency test from using
30670 "timevar_enable" bool to using dynamic allocation of "g_timer".
30671 Move rest of implementation into timer's constructor.
30672 (timevar_push_1): Rename to...
30673 (timer::push): ...this, adding "m_" prefixes to variables that
30674 are now fields of timer.
30675 (timevar_pop_1): Likewise, rename to...
30676 (timer::pop): ...this, and add "m_" prefixes.
30677 (timevar_start): Replace test for "timevar_enable" with one for
30678 "g_timer", and move bulk of implementation to...
30679 (timer::start): ...here, adding "m_" prefixes.
30680 (timevar_stop): Likewise, from here...
30681 (timer::stop): ...to here.
30682 (timevar_cond_start): Likewise, from here...
30683 (timer::cond_start): ...to here.
30684 (timevar_cond_stop): Likewise, from here...
30685 (timer::cond_stop): ...to here.
30686 (validate_phases): Rename to...
30687 (timer::validate_phases): ...this, and add "m_" prefixes. Make
30688 locals "total" and "tv" const.
30689 (timevar_print): Rename to...
30690 (timer::print): ...this, and add "m_" prefixes. Make locals
30691 "total" and "tv" const. Eliminate test for timevar_enable.
30692 * timevar.h (timevar_enable): Eliminate.
30693 (g_timer): New declaration.
30694 (timevar_push_1): Eliminate.
30695 (timevar_pop_1): Eliminate.
30696 (timevar_print): Eliminate.
30697 (class timer): New class.
30698 (timevar_push): Rewrite to use g_timer.
30699 (timevar_pop): Likewise.
30700 * toplev.c (toplev::~toplev): Likewise.
30701
30702 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
30703
30704 * arm-protos.h (arm_sched_autopref): Delete.
30705 (tune_params): Re-organize, use enums for flag values.
30706 (FUSE_OPS): New macro.
30707 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
30708 (ARM_PREFETCH_BENEFICIAL): Likewise.
30709 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
30710 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
30711 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
30712 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
30713 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
30714 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
30715 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
30716 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
30717 format.
30718 (arm_option_override, thumb2_reorg, arm_print_tune_info)
30719 (aarch_macro_fusion_pair_p): Update uses of current_tune.
30720 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
30721
30722 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
30723
30724 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
30725 "break".
30726
30727 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
30728 Sandra Loosemore <sandra@codesourcery.com>
30729
30730 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
30731 value.
30732 (REG_CLASS_NAMES): Add "IJMP_REGS".
30733 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
30734 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
30735 use new "c" register constraint.
30736 * config/nios2/constraint.md (c): New register constraint
30737 corresponding to IJMP_REGS.
30738
30739 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30740
30741 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
30742 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
30743 define_splits): Delete, revamp, transmogrify into ...
30744 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
30745 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
30746 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
30747 New.
30748
30749 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30750
30751 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
30752 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
30753
30754 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30755
30756 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
30757 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
30758 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
30759 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
30760 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
30761 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
30762 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
30763 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
30764 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
30765 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
30766 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
30767 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
30768 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
30769 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
30770 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
30771 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
30772 and 30 corresponding splitters): Delete.
30773
30774 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30775
30776 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
30777 zero_extract.
30778
30779 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30780
30781 * combine.c (recog_for_combine_1): New function, factored out
30782 from recog_for_combine.
30783 (change_zero_ext): New function.
30784 (recog_for_combine): If recog fails, try again with the pattern
30785 modified by change_zero_ext; if that still fails, restore the
30786 pattern.
30787
30788 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30789
30790 * combine.c (get_undo_marker): New function.
30791 (undo_to_marker): New function, largely factored out from ...
30792 (undo_all): ... this. Adjust.
30793
30794 2015-05-12 Richard Biener <rguenther@suse.de>
30795
30796 PR tree-optimization/66101
30797 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
30798 fixup if we turn a loop exit edge to a fallthru edge.
30799
30800 2015-05-12 Richard Biener <rguenther@suse.de>
30801
30802 PR tree-optimization/37021
30803 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
30804 (SLP_TREE_TWO_OPERATORS): New define.
30805 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
30806 SLP_TREE_TWO_OPERATORS.
30807 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
30808 SLP node.
30809 (vect_build_slp_tree): Adjust.
30810 (vect_analyze_slp_cost_1): Likewise.
30811 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
30812 emitting two vector stmts and mixing the results.
30813
30814 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
30815
30816 * call.c (print_z_candidates): Remove dead code.
30817
30818 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30819
30820 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
30821 and zEC12_simple_fp.
30822 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
30823 to 1.
30824
30825 2015-05-12 Tom de Vries <tom@codesourcery.com>
30826
30827 PR tree-optimization/66010
30828 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
30829 ifn_va_arg.
30830 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
30831 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
30832 va_lists are passed, and remove corresponding handling.
30833 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
30834 do_deref argument to ifn_va_arg.
30835 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
30836 ifn_va_arg.
30837
30838 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30839
30840 PR target/65955
30841 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
30842 REG before taking its REGNO.
30843
30844 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30845
30846 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
30847 rsp->sign_bit_copies and rsp->nonzero_bits into ...
30848 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
30849 present to get more accurate information about the number of sign bit
30850 copies and non zero bits.
30851
30852 2015-05-12 Richard Biener <rguenther@suse.de>
30853
30854 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
30855 do not allow unrolling.
30856
30857 2015-05-11 Richard Henderson <rth@redhat.com>
30858
30859 * config/i386/i386-modes.def (CCP): New.
30860 * config/i386/i386.c (put_condition_code): Handle it.
30861 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
30862
30863 2015-05-11 Richard Henderson <rth@redhat.com>
30864
30865 * target.def (md_asm_clobbers): Replace with...
30866 (md_asm_adjust): this.
30867 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
30868 (TARGET_MD_ASM_ADJUST): New.
30869 * tm.texi: Rebuild.
30870 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
30871 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
30872 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
30873
30874 * cfgexpand.c (check_operand_nalternatives): Accept vector of
30875 constraints instead of lists of outputs and inputs.
30876 (expand_asm_stmt): Save and restore input_location around the
30877 body of the function. Move asm data into vectors instead of
30878 building tree lists. Generate cleanup sequences as needed,
30879 rather than waiting til the end. Use new md_asm_adjust hook.
30880
30881 * config/vxworks.c: Include vec.h before target.h.
30882 * gimple.c: Likewise.
30883 * incpath.c: Likewise.
30884 * mode-switching.c: Likewise.
30885
30886 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
30887 (cris_md_asm_adjust): this.
30888 (TARGET_MD_ASM_CLOBBERS): Remove.
30889 (TARGET_MD_ASM_ADJUST): New.
30890 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
30891 (ix86_md_asm_adjust): this.
30892 (TARGET_MD_ASM_CLOBBERS): Remove.
30893 (TARGET_MD_ASM_ADJUST): New.
30894 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
30895 (mn10300_md_asm_adjust): this.
30896 (TARGET_MD_ASM_CLOBBERS): Remove.
30897 (TARGET_MD_ASM_ADJUST): New.
30898 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
30899 (rs6000_md_asm_adjust): this.
30900 (TARGET_MD_ASM_CLOBBERS): Remove.
30901 (TARGET_MD_ASM_ADJUST): New.
30902 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
30903 (visium_md_asm_adjust): this.
30904 (TARGET_MD_ASM_CLOBBERS): Remove.
30905 (TARGET_MD_ASM_ADJUST): New.
30906
30907 2015-05-11 Richard Henderson <rth@redhat.com>
30908
30909 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
30910 if noutputs is zero.
30911 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
30912
30913 * cfgexpand.c (expand_asm_operands): Merge into...
30914 (expand_asm_stmt): ... here.
30915
30916 * cfgexpand.c (expand_asm_operands): Don't call
30917 resolve_asm_operand_names.
30918 * stmt.c (resolve_asm_operand_names): Clarify block comment.
30919
30920 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
30921
30922 * dwarf2out.c (gen_member_die): Sanity check that we access
30923 TYPE_MAIN_VARIANT for TYPE_METHODS.
30924 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
30925 checking TYPE_METHODS.
30926 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
30927 if non-null.
30928 (build_distinct_type_copy): Clear TYPE_METHODS.
30929 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
30930 (verify_type): Allow TYPE_METHODS to be error_mark_node.
30931 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
30932
30933 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
30934
30935 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
30936 (emit_pattern_before_setloc): Likewise.
30937
30938 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30939
30940 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
30941 for define_peephole2s.
30942 (get_peephole2_pattern): New function.
30943 (main): Use it. Call validate_pattern.
30944
30945 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
30946
30947 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
30948 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
30949 (Last callee saved reg is different for AVR_TINY architecture)
30950
30951 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
30952
30953 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
30954 when looking for memory references.
30955
30956 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30957
30958 PR target/65753
30959 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
30960 via function pointers.
30961
30962 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
30963
30964 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
30965 indirect call by forcing address into a pseudo with -fno-plt.
30966 * common.opt (flag_plt): New option.
30967 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
30968 ([-fno-plt]): Document.
30969
30970 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
30971
30972 PR bootstrap/66105
30973 * config/rs6000/option-defaults.h: Add space between string literal
30974 and macro name.
30975
30976 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
30977
30978 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
30979 accross ARM targets.
30980
30981 2015-05-11 Christian Bruel <christian.bruel@st.com>
30982
30983 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
30984 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
30985
30986 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
30987
30988 PR rtl-optimization/66076
30989 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
30990 Don't grow the heap array if it is already big enough from a
30991 previous iteration.
30992
30993 2015-05-11 Christian Bruel <christian.bruel@st.com>
30994
30995 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
30996 (is_called_in_ARM_mode): Remove.
30997 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
30998 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
30999 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31000 arm_declare_function_name.
31001
31002 2015-05-11 Christian Bruel <christian.bruel@st.com>
31003
31004 * config/arm/arm.c (arm_option_override): Reoganized and split into :
31005 (arm_option_params_internal); New function.
31006 (arm_option_check_internal): New function.
31007 (arm_option_override_internal): New function.
31008 (thumb_code, thumb1_code): Remove.
31009 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31010 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31011 (thumb_code, thumb1_code): Remove.
31012 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31013
31014 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31015
31016 * config/alpha/alpha.c (alpha_emit_set_const_1)
31017 (alpha_emit_set_long_const, alpha_extract_integer)
31018 (alpha_legitimate_constant_p, alpha_split_const_mov)
31019 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31020 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31021 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31022 HOST_WIDE_INT_1U.
31023 * config/alpha/predicates.md (mode_mask_operand): Do not match
31024 const_double RTX.
31025 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31026 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31027 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31028 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31029 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31030
31031 2015-05-11 Jakub Jelinek <jakub@redhat.com>
31032
31033 PR target/65780
31034 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31035 default_binds_local_p_2.
31036 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31037 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31038
31039 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31040
31041 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31042
31043 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31044
31045 Patch by Richard Biener
31046 * coverage.c (coverage_obj_init): Delay building of type variant
31047 until the type is finished.
31048
31049 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31050
31051 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31052 mismatch between C and C++ type; compoare correctly ARG_TYPES
31053 for non-prototypes and output correctly parameter index for METHOD_TYPE.
31054 (odr_types_equivalent_p): Fix wording of warning about attributes;
31055 it is OK to match prototype and non-prototype.
31056
31057 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31058
31059 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31060 TYPE_ARG_TYPES list.
31061 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31062 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31063
31064 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31065
31066 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31067 * tree.h (is_lang_specific): Constify.
31068
31069 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
31070
31071 PR tree-optimization/64454
31072 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31073 Rewrite.
31074
31075 2015-05-08 Jason Merrill <jason@redhat.com>
31076
31077 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31078 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31079 config/darwin.h, config/darwin9.h, config/elfos.h,
31080 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31081 config/microblaze/microblaze.h, config/mips/mips.h,
31082 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31083 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31084 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31085 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31086 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31087 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31088 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31089 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31090 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31091 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31092 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31093 between string literal and macro name.
31094
31095 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31096
31097 * jump.c: Change argument types to rtx_insn *.
31098 * rtl.h: Adjust.
31099
31100 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31101
31102 * lra-constraints.c: Change argument type to rtx_insn *.
31103
31104 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31105
31106 * df-problems.c: Change argument type to rtx_insn *.
31107
31108 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31109
31110 * combine.c: Change argument type to rtx_insn *.
31111
31112 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31113
31114 * rtl.h: Adjust.
31115 * rtlanal.c: Change argument type to rtx_insn *.
31116
31117 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31118
31119 * sched-deps.c: Change argument types to rtx_insn *.
31120 * sched-int.h: Adjust.
31121
31122 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31123
31124 * dwarf2cfi.c: Change argument type to rtx_insn *.
31125
31126 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31127
31128 * ira.c (decrease_live_ranges_number): Changetype of local
31129 variable to rtx_insn *.
31130 * recog.c: Change argument types to rtx_insn *.
31131 * recog.h: Adjust.
31132
31133 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31134
31135 * reorg.c: Change argument types to rtx_insn *.
31136
31137 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31138
31139 * ira-color.c: Change argument types to rtx_insn *.
31140 * lra-eliminations.c: Likewise.
31141 * ira.h: Adjust.
31142
31143 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31144
31145 * gcse.c: Change argument types to rtx_insn *.
31146
31147 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31148
31149 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31150
31151 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31152
31153 * emit-rtl.c (emit_debug_insn_before): Change argument type to
31154 rtx_insn *.
31155 * rtl.h: Adjust.
31156
31157 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31158
31159 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31160 * rtl.h: Adjust.
31161
31162 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31163
31164 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31165 * rtl.h: Adjust.
31166
31167 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31168
31169 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31170 * rtl.h: Adjust.
31171
31172 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31173
31174 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31175 * rtl.h: Adjust.
31176
31177 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31178
31179 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31180 to rtx_insn *.
31181 * rtl.h: Adjust.
31182
31183 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31184
31185 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31186 to rtx_insn *.
31187 * rtl.h: Likewise.
31188
31189 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31190
31191 * except.c (can_nonlocal_goto): Change type of argument to
31192 rtx_insn *.
31193 * rtl.h: Adjust.
31194
31195 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31196
31197 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31198 * rtl.h: Adjust.
31199
31200 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31201
31202 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31203 * cfgrtl.c (can_delete_label_p): Adjust.
31204 * rtl.h: likewise.
31205
31206 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31207
31208 * reorg.c (stop_search_p): Change argument to rtx_insn *.
31209
31210 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31211
31212 * except.c (make_reg_eh_region_note): Change argument to
31213 rtx_insn *.
31214 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31215 * except.h: Adjust.
31216
31217 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31218
31219 * mode-switching.c (commit_mode_sets): Change type of local
31220 variable from rtx to rtx_insn *.
31221
31222 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
31223
31224 * doc/install.texi (--enable-languages): Add missing jit and lto info.
31225 Add ^ to grep command.
31226 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31227 arg to last gimple_simplify declaration. Add missing gimple_build
31228 declaration for built-in function case with four tree args.
31229
31230 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31231 Szabolcs Nagy <szabolcs.nagy@arm.com>
31232
31233 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31234 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31235 (GNU_USER_DYNAMIC_LINKERN32): Update.
31236
31237 2015-05-08 Richard Biener <rguenther@suse.de>
31238
31239 PR tree-optimization/66036
31240 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31241 Handle strided group loads.
31242 (vect_verify_datarefs_alignment): Likewise.
31243 (vect_enhance_data_refs_alignment): Likewise.
31244 (vect_analyze_group_access): Likewise.
31245 (vect_analyze_data_ref_access): Likewise.
31246 (vect_analyze_data_ref_accesses): Likewise.
31247 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31248 (vectorizable_load): Likewise.
31249
31250 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
31251
31252 * config/rs6000/rs6000.md: Require operand inequality in one
31253 of the peepholes.
31254
31255 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
31256 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
31257
31258 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31259 from (set ...).
31260 * config/rx/rx.md (movdi, movdf): Likewise.
31261 Likewise for define_peephole2s.
31262
31263 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31264
31265 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31266 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31267 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31268 vtst_u64): Rewrite using gcc vector extensions.
31269
31270 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31271
31272 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31273 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31274
31275 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31276
31277 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31278
31279 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
31280
31281 * config/glibc-stdint.h (OPTION_MUSL): Define.
31282 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31283 Change the definition based on OPTION_MUSL for 64 bit targets.
31284 * config/linux.h (OPTION_MUSL): Redefine.
31285 * config/alpha/linux.h (OPTION_MUSL): Redefine.
31286 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31287 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31288
31289 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31290 Szabolcs Nagy <szabolcs.nagy@arm.com>
31291
31292 * config.gcc (LIBC_MUSL): New tm_defines macro.
31293 * config/linux.h (OPTION_MUSL): Define.
31294 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31295 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31296 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31297 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31298 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31299 * config/linux.opt (mmusl): New option.
31300 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31301 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31302 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31303 * configure: Regenerate.
31304
31305 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
31306 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31307
31308 PR target/48904
31309 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31310 * config/i386/knetbsd-gnu64.h: New file.
31311
31312 2015-05-08 Marek Polacek <polacek@redhat.com>
31313
31314 PR c/64918
31315 * doc/invoke.texi: Document -Woverride-init-side-effects.
31316
31317 2015-05-07 Marek Polacek <polacek@redhat.com>
31318
31319 PR c/65179
31320 * doc/invoke.texi: Document -Wshift-negative-value.
31321
31322 2015-05-06 Aditya Kumar <hiraditya@msn.com>
31323
31324 * gcov-tool.c (do_merge): Refactore to remove int ret.
31325 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31326 !type == FUNC to type != FUNC.
31327 * reload.h (struct target_reload): Changee to type of
31328 x_spill_indirect_levels from bool to unsigned char.
31329
31330 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
31331
31332 * rtl.h (always_void_p): New function.
31333 * gengenrtl.c (always_void_p): Likewise.
31334 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31335 with code foo are always VOIDmode.
31336 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31337 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31338 compare-elim.c, config/aarch64/aarch64.c,
31339 config/aarch64/aarch64.md, config/alpha/alpha.c,
31340 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31341 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31342 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31343 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31344 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31345 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31346 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31347 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31348 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31349 config/ia64/vect.md, config/iq2000/iq2000.c,
31350 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31351 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31352 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31353 config/mep/mep.c, config/microblaze/microblaze.c,
31354 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31355 config/mn10300/mn10300.c, config/msp430/msp430.c,
31356 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31357 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31358 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31359 config/rs6000/altivec.md, config/rs6000/rs6000.c,
31360 config/rs6000/rs6000.md, config/rs6000/vector.md,
31361 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31362 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31363 config/sh/sh.md, config/sh/sh_treg_combine.cc,
31364 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31365 config/spu/spu.md, config/stormy16/stormy16.c,
31366 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31367 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31368 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31369 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31370 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31371 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31372 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31373 var-tracking.c: Update calls accordingly.
31374
31375 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
31376
31377 PR middle-end/192
31378 PR middle-end/54303
31379 * varasm.c (function_mergeable_rodata_prefix): New function.
31380 (mergeable_string_section): Use it.
31381 (mergeable_constant_section): Use it.
31382
31383 2015-05-07 Jeff Law <law@redhat.com>
31384
31385 PR target/39726
31386 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31387 simplifier to narrow arithmetic.
31388 * generic-match-head.c: (types_match, single_use): New functions.
31389 * gimple-match-head.c: (types_match, single_use): New functions.
31390
31391 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31392
31393 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31394 rtx type.
31395
31396 2015-05-07 Richard Biener <rguenther@suse.de>
31397
31398 PR tree-optimization/66002
31399 * passes.def: Schedule another pass_merge_phi after ifcombine, right
31400 before phiopt.
31401
31402 2015-05-07 Marek Polacek <polacek@redhat.com>
31403 Martin Uecker <uecker@eecs.berkeley.edu>
31404
31405 * doc/invoke.texi: Document -fsanitize=bounds-strict.
31406 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31407 into SANITIZE_NONDEFAULT.
31408 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31409
31410 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
31411
31412 PR target/66015
31413 * config/alpha/alpha.c (alpha_override_options_after_change): New.
31414 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31415 (alpha_override_options): Move align_loops, align_jumps and
31416 align_functions handling into alpha_override_options_after_change.
31417
31418 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
31419 Chris Jones <chrisj@nvidia.com>
31420 Joshua Conner <jconner@nvidia.com>
31421
31422 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31423 linking of crtfastmath.o.
31424 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31425
31426 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
31427
31428 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
31429 (cstore<mode>4_unsigned_imm): New expander.
31430 (cstore<mode>4): Remove empty constraint strings. Use the new
31431 expanders.
31432
31433 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
31434
31435 PR target/64208
31436 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
31437 alternatives.
31438
31439 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
31440
31441 * config/aarch64/geniterators.sh: Use standard BRE in sed.
31442
31443 2015-05-06 Alan Modra <amodra@gmail.com>
31444
31445 PR target/66033
31446 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
31447 (UNSPEC_NOP): Define.
31448 (reload_vsx_from_gpr<mode>): Add missing DONE.
31449 (reload_gpr_from_vsx<mode>): Likewise.
31450 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
31451 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
31452
31453 2015-05-06 Christian Bruel <christian.bruel@st.com>
31454
31455 PR target/66015
31456 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
31457 align_jumps, align_functions into aarch64_override_options_after_change.
31458
31459 2015-05-06 Richard Biener <rguenther@suse.de>
31460
31461 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
31462 vect_transform_slp_perm_load to check if we support a permutation
31463 for basic-block vectorization.
31464
31465 2015-05-06 Nick Clifton <nickc@redhat.com>
31466
31467 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
31468 used, even if it is not being used as a frame pointer.
31469
31470 2015-05-05 Jason Merrill <jason@redhat.com>
31471
31472 * dwarf2out.c (gen_member_die): Don't emit anything for an
31473 anonymous class constructor.
31474
31475 2015-05-05 David Malcolm <dmalcolm@redhat.com>
31476
31477 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
31478 that it reflects the block structure.
31479 (afdo_propagate_edge): Likewise.
31480 (afdo_calculate_branch_prob): Likewise.
31481 (afdo_annotate_cfg): Likewise.
31482 * cfgcleanup.c (equal_different_set_p): Likewise.
31483 (try_crossjump_to_edge): Likewise.
31484 * cgraph.c (cgraph_node::verify_node): Likewise.
31485 * cgraphunit.c (expand_all_functions): Likewise.
31486 * config/i386/i386.c (ix86_expand_copysign): Likewise.
31487 (exact_dependency_1): Likewise.
31488 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
31489 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
31490 * gensupport.c (process_define_subst): Likewise.
31491 * lto-wrapper.c (merge_and_complain): Likewise.
31492 * tree-if-conv.c (if_convertible_bb_p): Likewise.
31493 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
31494 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31495 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
31496 * tree-vect-loop.c (vectorizable_reduction): Likewise.
31497 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31498 * tree-vect-stmts.c (vectorizable_shift): Likewise.
31499 * tree-vrp.c (vrp_finalize): Likewise.
31500 * tree.c (variably_modified_type_p): Likewise.
31501
31502 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
31503
31504 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
31505 on darwin12 and later.
31506 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
31507 file to pass -rdynamic on darwin12 and later.
31508 * config/darwin.opt (rdynamic): Add.
31509
31510 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31511
31512 * doc/extend.texi (C Extensions): Update menu for moved Variable
31513 Attributes and Type Attributes sections.
31514
31515 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31516
31517 PR target/65990
31518 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
31519 if rep_8byte stringop strategy was specified for 32-bit target.
31520
31521 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
31522
31523 PR target/65915
31524 * config/i386/i386.md (vector convert to float spltiter): Check for
31525 xmm16+, when splitting scalar float conversion.
31526 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
31527
31528 2015-05-05 Nick Clifton <nickc@redhat.com>
31529
31530 * config/msp430/msp430-opts.h (enum msp430_regions): New.
31531 * config/msp430/msp430.c (msp430_override_options): Complain if
31532 -mcode-region or -mdata-region is used on a non MSP430X.
31533 (msp430_section_attr): New function. Checks lower, upper and
31534 either attributes.
31535 (msp430_attribute_table): Add lower, upper and either.
31536 (gen_prefix): New function. Generates a prefix for a section
31537 name.
31538 (msp430_select_section): New function - handles the choice of
31539 section for an object. Takes into account memory region
31540 attributes and options.
31541 (msp430_function_section): Use gen_prefix.
31542 (TARGET_SECTION_TYPE_FLAGS): Define.
31543 (msp430_section_type_flags): New function.
31544 (TARGET_ASM_UNIQUE_SECTION): Define.
31545 (msp430_unique_section): New function.
31546 (msp430_output_aligned_decl_common): New function.
31547 (msp430_do_not_relax_short_jumps): New function.
31548 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
31549 Define.
31550 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
31551 * config/msp430/msp430-protos.h
31552 (msp430_do_not_relax_short_jumps): New prototype.
31553 (msp430_output_aligned_decl_common): New prototype.
31554 * config/msp430/msp430.md (length): New attribute.
31555 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
31556 then use a long code sequence for short jumps.
31557 * config/msp430/msp430.opt (mcode-region): New.
31558 (mdata-region): New.
31559 * doc/invoke.texi: Document new options.
31560 * doc/extend.texi: Document new attributes.
31561
31562 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31563
31564 * config/aarch64-protos.h (struct cpu_branch_cost): New.
31565 (tune_params): Add field branch_costs.
31566 (aarch64_branch_cost): Declare.
31567 * config/aarch64.c (generic_branch_cost): New.
31568 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
31569 (cortexa53_tunings): Likewise.
31570 (cortexa57_tunings): Likewise.
31571 (thunderx_tunings): Likewise.
31572 (xgene1_tunings): Likewise.
31573 (aarch64_branch_cost): Define.
31574 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
31575
31576 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31577
31578 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
31579 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
31580 * config/i386/i386.md: Ditto.
31581 * config/i386/winnt.c: Ditto.
31582
31583 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31584
31585 * doc/extend.texi (__atomic Builtins): Move implementation details
31586 to the end of the description, rewrite opening paragraphs, state
31587 difference with __sync builtins, state C11/C++11 assumptions,
31588 weaken itemized descriptions, add explanation of memory model
31589 behaviour, expand description of compare-exchange, simplify text.
31590
31591 2015-05-05 Renlin Li <renlin.li@arm.com>
31592
31593 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
31594
31595 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
31596
31597 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
31598 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31599 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
31600 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31601 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
31602 * configure: Regenerate.
31603 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
31604 * doc/install.texi (aarch64*-*-*): Document new
31605 --enable-fix-cortex-a53-843419 option.
31606 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
31607 and -mno-fix-cortex-a53-843419 options.
31608
31609 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31610
31611 PR target/65871
31612 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
31613
31614 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
31615
31616 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
31617 fix overactive TYPE_MIN_VALUE check and add FIXME for type
31618 compatibility problems.
31619
31620 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31621
31622 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
31623 constraints.
31624 (cbranchsi4_reg): New.
31625 * config/microblaze/microblaze.c
31626 (microblaze_expand_conditional_branch_reg): New.
31627 * config/microblaze/microblaze-protos.h
31628 (microblaze_expand_conditional_branch_reg): New prototype.
31629
31630 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31631
31632 * config/microblaze/microblaze.md (peephole2): New.
31633
31634 2015-05-04 Jeff Law <law@redhat.com>
31635
31636 Revert:
31637 2015-05-04 Jeff Law <law@redhat.com>
31638
31639 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31640 simplifier to narrow arithmetic.
31641 * generic-match-head.c: (types_match, single_use): New functions.
31642 * gimple-match-head.c: (types_match, single_use): New functions.
31643
31644 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
31645
31646 PR target/65987
31647 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
31648 (split_branches): Likewise.
31649
31650 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
31651
31652 * common.opt (fdelete-null-pointer-checks): Init to -1.
31653 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
31654 override flag_delete_null_pointer_checks default.
31655 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
31656 behavior re address zero. Better document target-specific behavior.
31657 (-fisolate-errneous-paths-dereference): Mention relationship to
31658 -fdelete-null-pointer-checks.
31659
31660 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31661
31662 PR tree-optimization/65984
31663 * ubsan.c: Include tree-cfg.h.
31664 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
31665 stmt_could_throw_p test, rename can_throw variable to ends_bb.
31666
31667 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31668
31669 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
31670 to CONST_DOUBLE_P predicate.
31671 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
31672 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
31673 allow only operands that satisfy standard_sse_constant_p predicate.
31674 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
31675 to CONST_DOUBLE_P predicate.
31676
31677 2015-05-04 Jeff Law <law@redhat.com>
31678
31679 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31680 simplifier to narrow arithmetic.
31681 * generic-match-head.c: (types_match, single_use): New functions.
31682 * gimple-match-head.c: (types_match, single_use): New functions.
31683
31684 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
31685
31686 * config/arm/arm.c: Restore bootstrap.
31687
31688 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31689
31690 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
31691 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
31692 as CONST_WIDE_INT, not CONST_DOUBLE.
31693 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
31694 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
31695 (ix86_find_base_term): Do not check for CONST_DOUBLE.
31696 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
31697 (ix86_build_signbit_mask): Rewrite using wide ints.
31698 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
31699 (ix86_rtx_costs): Handle CONST_WIDE_INT.
31700 (find_constant): Ditto.
31701 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
31702 using gen_int_mode.
31703 * config/i386/predicates.md (x86_64_immediate_operand)
31704 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31705 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
31706 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31707 (const0_operand): Also match const_wide_int.
31708 (constm1_operand): Ditto.
31709 (const1_operand): Ditto.
31710
31711 2015-05-04 Richard Biener <rguenther@suse.de>
31712
31713 PR tree-optimization/65965
31714 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
31715 store groups at gaps.
31716
31717 2015-05-04 Richard Biener <rguenther@suse.de>
31718
31719 PR tree-optimization/65935
31720 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
31721 then make sure to apply that swapping to the IL.
31722
31723 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31724
31725 * Makefile.in (PATCHLEVEL_c): New variable.
31726 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
31727 expand the same way as if DEVPHASE_c was non-empty.
31728
31729 2015-05-04 Kai Tietz <ktietz@redhat.com>
31730
31731 PR target/65559
31732 * lto-wrapper.c (run_gcc): Open filename
31733 in binary-mode.
31734
31735 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
31736
31737 * doc/extend.texi (Variable Attributes, Type Attributes): Move
31738 sections up in file, to immediately after the Function Attributes
31739 section.
31740
31741 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
31742
31743 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
31744
31745 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31746
31747 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
31748 (insert_partition_copy_on_edge): Adjust.
31749 (insert_rtx_to_part_on_edge): Likewise.
31750 (insert_part_to_rtx_on_edge): Likewise.
31751
31752 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31753
31754 * function.c (set_return_jump_label): Change type of argument to
31755 rtx_insn *.
31756 * function.h (set_return_jump_label): Adjust.
31757
31758 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31759
31760 * reload.h (struct reg_equivs_t): Change type of init to
31761 rtx_insn *.
31762 * ira.c (fix_reg_equiv_init): Adjust.
31763 * reload1.c (eliminate_regs_1): Likewise.
31764 (init_eliminable_invariants): Likewise.
31765
31766 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31767
31768 * cselib.c (fp_setter_insn): Take a rtx_insn *.
31769 * cselib.h (fp_setter_insn): Adjust.
31770
31771 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31772
31773 * recog.c (struct validate_replace_src_data): Change type of
31774 insn field to rtx_insn *.
31775 (validate_replace_src_group): Change type of argument to rtx_insn *.
31776 * recog.h (validate_replace_src_group): Adjust.
31777
31778 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31779
31780 * haifa-sched.c: Change the type of some variables to rtx_insn *.
31781 * sched-deps.c: Likewise.
31782 * sched-int.h: Likewise.
31783 * sched-rgn.c: Likewise.
31784 * sel-sched.c: Likewise.
31785
31786 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31787
31788 to rtx_insn *.
31789 * config/i386/i386.c: Change the type of some arguments to
31790 rtx_insn *.
31791 * config/arm/arm.c: Likewise.
31792
31793 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31794
31795 * lra-constraints.c: Change type of some arguments to rtx_insn *.
31796
31797 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31798
31799 * regcprop.c (kill_autoinc_value): Change type of argument to
31800 rtx_insn *.
31801
31802 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31803
31804 * genrecog.c (print_subroutine): Adjust.
31805 * recog.c (get_bool_attr_mask_uncached): Likewise.
31806 * recog.h (struct recog_data_d): Change the type of insn to
31807 rtx_insn *.
31808
31809 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31810
31811 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
31812
31813 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31814
31815 * df-problems.c (df_set_note): Change type of argument to
31816 rtx_insn *.
31817
31818 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31819
31820 * builtins.c (expand_builtin_trap): Change type of local
31821 variable to rtx_insn *.
31822 (add_sched_insns_for_speculation): Likewise.
31823 (ix86_emit_save_regs): Likewise.
31824 (get_scratch_register_on_entry): Likewise.
31825 (ix86_emit_restore_reg_using_pop): Likewise.
31826 (ix86_emit_leave): Likewise.
31827 (ix86_emit_restore_regs_using_mov): Likewise.
31828 (ix86_expand_epilogue): Likewise.
31829 Likewise.
31830 (rl78_alloc_physical_registers_umul): Likewise.
31831 * cselib.c (discard_useless_locs): Likewise.
31832 (cselib_invalidate_regno): Likewise.
31833 (cselib_invalidate_mem): Likewise.
31834 * function.c (expand_function_start): Likewise.
31835 (emit_use_return_register_into_block): Likewise.
31836 * gcse.c: Likewise.
31837 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
31838 * ifcvt.c (noce_get_alt_condition): Likewise.
31839 * loop-doloop.c (doloop_condition_get): Likewise.
31840 * lra-constraints.c (inherit_in_ebb): Likewise.
31841 * modulo-sched.c (sms_schedule_by_order): Likewise.
31842 * recog.c (next_insn_tests_no_inequality): Likewise.
31843 * reorg.c (emit_delay_sequence): Likewise.
31844 (update_reg_dead_notes): Likewise.
31845 (fix_reg_dead_note): Likewise.
31846 (fill_slots_from_thread): Likewise.
31847 (delete_computation): Likewise.
31848
31849 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
31850
31851 * doc/extend.texi (Variable Attributes): Add menu and proper
31852 @nodes to subsections. Move Microsoft Windows attributes to
31853 their own subsection.
31854 (Type Attributes): Reorganize introduction to remove duplicate
31855 list of attributes. Add menu and proper @nodes to subsections.
31856 Alphabetize the main table of common attributes.
31857
31858 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
31859
31860 * match.pd: New simplification patterns.
31861 (x + (x & 1)) -> ((x + 1) & ~1)
31862 (x & ~(x & y)) -> ((x & ~y))
31863 (x | ~(x | y)) -> ((x | ~y))
31864
31865 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31866
31867 * target.def (attribute_table): Mention that struct attribute_spec
31868 is defined in tree-core.h rather than tree.h
31869 * doc/tm.texi: Regenerate.
31870
31871 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
31872
31873 * genrecog.c (test): Rename to rtx_test. Update rest of file
31874 accordingly.
31875
31876 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
31877
31878 PR translation/65959
31879 * params.h (DEFPARAM): Rename msgid to nocmsgid.
31880
31881 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31882
31883 * config/aarch64/aarch64-protos.h (tune_params):
31884 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
31885 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
31886 Return value depending on target.
31887 (generic_tunings): Initialize new target settings.
31888 (cortexa53_tunings): Likewise.
31889 (cortexa57_tunings): Likewise.
31890 (thunderx_tunings): Likewise.
31891 (xgene1_tunings): Likewise.
31892
31893 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31894
31895 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
31896 Make Cortex-A53 shift costs more accurate.
31897
31898 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31899
31900 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
31901 UNSIGNED_FLOAT.
31902
31903 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
31904
31905 * config/aarch64/aarch64.c (aarch64_rtx_costs):
31906 Calculate cost of op0 and op1 in PLUS and MINUS cases.
31907
31908 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31909
31910 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
31911 Add cost of op0 in the compare-with-fpzero case.
31912
31913 2015-04-30 David Malcolm <dmalcolm@redhat.com>
31914
31915 * builtins.c (fold_builtin_1): Remove spurious second
31916 semicolon.
31917 * cgraph.h (symtab_node::get_availability): Likewise.
31918 * opts.c (common_handle_option): Remove spurious second semicolon.
31919 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
31920 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
31921
31922 2015-04-30 Caroline Tice <cmtice@google.com>
31923
31924 PR gcov-profile/65929
31925 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
31926 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
31927 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
31928 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
31929 * doc/tm.texi: Regenerate.
31930 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
31931 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
31932 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
31933 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
31934
31935 2015-04-30 Marek Polacek <polacek@redhat.com>
31936
31937 * varasm.c (handle_cache_entry): Fix logic.
31938
31939 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31940
31941 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
31942 (*extrsi5_insn_uxtw_alt): Likewise.
31943 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
31944 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
31945 operations.
31946
31947 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31948
31949 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
31950 fabd in ABS case.
31951
31952 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31953
31954 * config/aarch64/aarch64.md
31955 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
31956 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
31957 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
31958 appropriately. Handle alternative EON form.
31959
31960 2015-04-30 Renlin Li <renlin.li@arm.com>
31961
31962 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
31963 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
31964
31965 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31966
31967 PR ipa/65873
31968 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
31969 -fstrict-aliasing boundaries.
31970
31971 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31972
31973 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
31974 and [SU]MNEGL patterns.
31975
31976 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31977
31978 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
31979 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
31980 combined arithmetic-shift ops. Properly handle all shift and extend
31981 operations that can occur in combination with PLUS/MINUS.
31982 Rename maybe_fma to compound_p.
31983 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
31984 arithmetic and shift operations.
31985
31986 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31987
31988 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
31989 rather than arith_shift cost when costing ADD/MINUS of an
31990 extended value.
31991
31992 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
31993
31994 PR lto/65948
31995 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
31996 to itself.
31997
31998 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
31999
32000 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32001 are for the same position.
32002
32003 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
32004
32005 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
32006 vectorize_loops.
32007 (vectorize_loops): Use it.
32008
32009 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32010
32011 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32012 for aggregate types.
32013 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32014 type to be non_ODR.
32015 * tree.c (need_assembler_name_p): Compute mangled name for
32016 non-fundamental types and integer types.
32017
32018 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
32019
32020 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32021 manual swaps.
32022 * expr.c (expand_expr_real_2): Likewise.
32023
32024 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32025
32026 * tree.c (build_common_builtin_nodes): Do not build
32027 __builtin_alloca_with_align as equivalent of library alloca.
32028
32029 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32030
32031 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32032 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32033 bugus variants.
32034 * tree.c: Include print-tree.h and ipa-utils.h
32035 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32036 (free_lang_data_in_cgraph): Call verify_type.
32037 (verify_type_variant): New function.
32038 (verify_type): New function.
32039 * tree.h (verify_type): Declare.
32040
32041 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
32042
32043 * config/mips/mips-cpus.def: (mips4): Change default processor
32044 from PROCESSOR_R8000 to PROCESSOR_R10000.
32045
32046 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
32047
32048 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32049 la/jalr instead of jal.
32050
32051 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
32052
32053 PR target/65871
32054 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32055 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32056 (setcc+movzbl peephole2): Check also clobbered reg.
32057 (setcc+andl peephole2): Ditto.
32058
32059 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32060
32061 PR libgomp/65099
32062 * config/nvptx/mkoffload.c (target_ilp32): New variable.
32063 (main): Set it depending on "-foffload-abi=[...]".
32064 (compile_native, main): Use it to pass "-m32" or "-m64" to the
32065 compiler.
32066
32067 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32068
32069 PR target/65770
32070 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32071 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32072 Flip lane index back at assembly time for bigendian.
32073
32074 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32075
32076 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32077 * gimplify.c (gimplify_omp_workshare): Use it.
32078
32079 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32080
32081 * Makefile.in (build/genrecog.o): Depend on inchash.h.
32082 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32083 build/inchash.o
32084 * genrecog.c: Rewrite most of the code except for the third page.
32085
32086 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32087
32088 * inchash.h, inchash.c: Include bconfig.h for build objects.
32089 * Makefile.in (build/inchash.o): New rule.
32090
32091 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
32092
32093 PR target/65924
32094 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32095 number in type attribute expression.
32096
32097 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32098
32099 * loop-iv.c (canon_condition): Generalize to all types of integer
32100 constant.
32101
32102 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
32103
32104 * gimple-walk.c: Prune duplicate or unneeded includes.
32105 (walk_gimple_asm): Only call parse_input_constraint or
32106 parse_output_constraint if their findings are used.
32107 Honour parse_input_constraint and parse_output_constraint
32108 result.
32109
32110 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32111
32112 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32113
32114 2015-04-29 Tom de Vries <tom@codesourcery.com>
32115
32116 PR tree-optimization/65893
32117 * passes.def (pass_all_optimizations): Move pass_stdarg to after
32118 pass_dce.
32119
32120 2015-04-29 Richard Biener <rguenther@suse.de>
32121
32122 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32123 compute GROUP_SIZE for basic-block SLP.
32124 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32125 take into account gaps.
32126 (vect_get_mask_element): Properly reject references to previous
32127 vectors.
32128 (vect_transform_slp_perm_load): Likewise.
32129
32130 2015-04-29 Christian Bruel <christian.bruel@st.com>
32131
32132 PR target/64835
32133 * config/i386/i386.c (ix86_default_align): New function.
32134 (ix86_override_options_after_change): Call ix86_default_align.
32135 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32136 (ix86_override_options_after_change): New function.
32137
32138 2015-04-28 Jeff Law <law@redhat.com>
32139
32140 * tree-ssa-dom.c (record_equality); Fix comment typos.
32141
32142 2015-04-28 Tom de Vries <tom@codesourcery.com>
32143
32144 PR tree-optimization/65887
32145 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32146
32147 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
32148
32149 * doc/extend.texi (Declaring Attributes of Functions): Split into
32150 subsections by target. Alphabetize the table of common attributes.
32151 Rewrite some of the introductory text to reflect the new structure.
32152 Update some cross-references to point to the new subsections.
32153 (Attribute Syntax): Put paragraph about "__" naming here. Remove
32154 duplicate copies in the discussion of function, label, and type
32155 attributes.
32156
32157 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
32158
32159 PR bootstrap/65910
32160 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32161
32162 2015-04-28 Jason Merrill <jason@redhat.com>
32163
32164 PR c++/65734
32165 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32166 (finalize_type_size): Respect TYPE_USER_ALIGN.
32167 (layout_type) [ARRAY_TYPE]: Likewise.
32168
32169 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
32170
32171 * config/arm/arm.md (*arm_movt): Fix type attribute.
32172 (*cmpsi_shiftsi): Likewise.
32173 (*cmpsi_shiftsi_swp): Likewise.
32174 (*movsicc_insn): Likewise.
32175 (*cond_move): Likewise.
32176 (*if_plus_move): Likewise.
32177 (*if_move_plus): Likewise.
32178 (*if_arith_move): Likewise.
32179 (*if_move_arith): Likewise.
32180 (*if_shift_move): Likewise.
32181 (*if_move_shift): Likewise.
32182 (*arm_movtas_ze): Likewise.
32183 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32184 redundancy and type attribute.
32185 (*thumb2_movsi_insn): Fix type attribute.
32186 (*thumb2_addsi_short): Likewise.
32187 (thumb2_addsi3_compare0): Likewise.
32188 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32189 attributes accordingly.
32190
32191 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
32192
32193 PR other/65911
32194 * function.c (pad_to_arg_alignment): Add parentheses.
32195
32196 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
32197
32198 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32199 libgcc/config/frv/elf-lib.h.
32200
32201 2015-04-28 Tom de Vries <tom@codesourcery.com>
32202
32203 * tree-call-cdce.c: Fix example in header comment.
32204
32205 2015-04-28 Richard Biener <rguenther@suse.de>
32206
32207 PR tree-optimization/62283
32208 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32209 fails fatally and we are vectorizing a basic-block simply
32210 cause the child to be constructed piecewise.
32211 (vect_analyze_slp_cost_1): Adjust.
32212 (vect_detect_hybrid_slp_stmts): Likewise.
32213 (vect_bb_slp_scalar_cost): Likewise.
32214 (vect_get_constant_vectors): For piecewise constructed
32215 constants place them after the last def.
32216 (vect_get_slp_defs): Adjust.
32217 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32218 externals for basic-block vectorization.
32219
32220 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32221
32222 PR target/63503
32223 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32224 aarch64-*-*.
32225 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32226 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32227 (AARCH64_TUNE_FMA_STEERING): Likewise.
32228 * config/aarch64/aarch64-cores.def: Set
32229 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32230 FMUL/FMADD instructions.
32231 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32232 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
32233 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32234 * config/aarch64/cortex-a57-fma-steering.h: New file.
32235 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32236
32237 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
32238
32239 * gensupport.c (std_preds): Add missing codes to address_operand entry.
32240
32241 2015-04-28 Richard Biener <rguenther@suse.de>
32242
32243 PR tree-optimization/65851
32244 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32245 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
32246 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
32247 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32248 (ccp_visit_phi_node): Adjust.
32249 (evaluate_stmt): For simplifications to SSA names return its
32250 lattice value if that isn't VARYING. Return immediately when
32251 simplified to a constant.
32252 (visit_assignment): Adjust.
32253 (ccp_visit_stmt): Likewise.
32254
32255 2015-04-28 Tom de Vries <tom@codesourcery.com>
32256
32257 PR tree-optimization/65818
32258 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32259 evaluated.
32260
32261 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32262
32263 * calls.c (save_fixed_argument_area): Don't check
32264 ARGS_GROW_DOWNWARD with the preprocessor.
32265 (restore_fixed_argument_area): Likewise.
32266 (mem_overlaps_already_clobbered_arg_p): Likewise.
32267 (check_sibcall_argument_overlap): Likewise.
32268 (expand_call): Likewise.
32269 (emit_library_call_value_1): Likewise.
32270 (store_one_arg): Likewise.
32271 * function.c (assign_parms): Likewise.
32272 (locate_and_pad_parm): Likewise.
32273 (pad_to_arg_alignment): Likewise.
32274 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32275
32276 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32277
32278 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32279 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32280 * calls.c (save_fixed_argument_area): Don't chekc if
32281 ARGS_GROW_DOWNWARD is defined.
32282 (restore_fixed_argument_area): Likewise.
32283 (mem_overlaps_already_clobbered_arg_p): Likewise.
32284 (check_sibcall_argument_overlap): Likewise.
32285 (expand_call): Likewise.
32286 (emit_library_call_value_1): Likewise.
32287 (store_one_arg): Likewise.
32288 * function.c (assign_parms): Likewise.
32289 (locate_and_pad_parm): Likewise.
32290 (pad_to_arg_alignment): Likewise.
32291 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32292
32293 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32294
32295 * defaults.h (gen_epilogue): New function.
32296 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32297 defined.
32298 * cfgrtl.c (cfg_layout_finalize): Likewise.
32299 * df-scan.c: Likewise.
32300 * function.c (thread_prologue_and_epilogue_insns): Likewise.
32301 (reposition_prologue_and_epilogue_notes): Likewise.
32302 * reorg.c (find_end_label): Likewise.
32303 * toplev.c: Likewise.
32304
32305 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32306
32307 * bb-reorder.c (HAVE_return): Don't check if its undefined.
32308 * defaults.h (gen_simple_return): New function.
32309 (gen_simple_return): Likewise.
32310 (HAVE_return): Add default definition to false.
32311 (HAVE_simple_return): Likewise.
32312 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32313 HAVE_return and HAVE_simple_return are defined.
32314 * function.c (gen_return_pattern): Likewise.
32315 (convert_jumps_to_returns): Likewise.
32316 (thread_prologue_and_epilogue_insns): Likewise.
32317 * reorg.c (find_end_label): Likewise.
32318 (dbr_schedule): Likewise.
32319 * shrink-wrap.c: Likewise.
32320 * shrink-wrap.h: Likewise.
32321
32322 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32323
32324 * defaults.h (EPILOGUE_USES): Add default definition of false.
32325 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32326 * resource.c (init_resource_info): Likewise.
32327
32328 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32329
32330 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32331 to false.
32332 * dwarf2out.c (field_byte_offset): REmove check if
32333 PCC_BITFIELD_TYPE_MATTERS is defined.
32334 * stor-layout.c (layout_decl): Likewise.
32335 (update_alignment_for_field): Likewise.
32336 (place_field): Likewise.
32337
32338 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32339
32340 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32341 true.
32342 * regrename.c (check_new_reg_p): Remove check if
32343 HARD_REGNO_RENAME_OK is defined.
32344 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32345
32346 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32347
32348 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32349 * cse.c (fold_rtx): Likewise.
32350 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32351 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32352 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32353 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32354 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32355 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32356 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32357 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32358 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32359 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32360 * Likewise.
32361 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32362 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32363 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32364 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32365 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32366 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32367 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32368 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32369 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32370 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32371 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32372 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32373 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32374 * doc/tm.texi: Regenerate.
32375 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32376 either true or false.
32377
32378 2015-04-27 Jeff Law <law@redhat.com>
32379
32380 PR tree-optimization/65217
32381 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32382 of them has a single use, make sure it is the LHS of the implied
32383 copy.
32384
32385 2015-04-28 Alan Modra <amodra@gmail.com>
32386
32387 PR target/65810
32388 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32389 (offsettable_ok_by_alignment): Use minimum of decl and toc
32390 pointer alignment. Replace dead code with assertion.
32391 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
32392 case if size exceeds toc pointer alignment.
32393 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32394 (rs6000_emit_move): Likewise.
32395 * configure.ac: Add linker toc pointer alignment check.
32396 * configure: Regenerate.
32397 * config.in: Regenerate.
32398
32399 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
32400
32401 * config.gcc: Add h8300-*-linux.
32402 * config/h8300/linux.h: New.
32403 * config/h8300/t-linux: New.
32404 * config/h8300/h8300.c (h8300_option_override): Normal mode
32405 is not supported for h8300-*-linux.
32406 (h8300_file_start): Target priority change.
32407 (get_shift_alg): Likewise.
32408 (h8300_shift_need_scratch_p): Likewise.
32409 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32410 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32411
32412 2015-04-27 Caroline Tice <cmtice@google.com>
32413
32414 * final.c (final_scan_insn): Output cold_function_name as function
32415 type.
32416 * varasm.c (cold_function_name): Make global.
32417 (assemble_start_function): Re-set cold_function_name.
32418 (assemble_end_function): Output cold partition size.
32419 * varasm.h (cold_function_name): Declare global.
32420
32421 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
32422
32423 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32424 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32425 constraint.
32426 (*movxi_internal_avx512f): Ditto.
32427 (define_split): Check for xmm16+, when splitting scalar float_extend.
32428 (*extendsfdf2_mixed): Use "v" constraint.
32429 (define_split): Check for xmm16+, when splitting scalar float_truncate.
32430 (*truncdfsf_fast_sse): Use "v" constraint.
32431 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
32432 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
32433 (define_peephole2): Check for xmm16+, when converting scalar
32434 float_truncate.
32435 (define_peephole2): Check for xmm16+, when converting scalar
32436 float_extend.
32437 (*fop_<mode>_comm_mixed): Use "v" constraint.
32438 (*fop_<mode>_comm_sse): Ditto.
32439 (*fop_<mode>_1_mixed): Ditto.
32440 (*sqrt<mode>2_sse): Ditto.
32441 (*ieee_s<ieee_maxmin><mode>3): Ditto.
32442
32443 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32444
32445 * combine.c (simplify_if_then_else): Use std::swap instead
32446 of manually swapping.
32447 (known_cond): Likewise.
32448 (simplify_comparison): Likewise.
32449
32450 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
32451
32452 PR target/64579
32453 * config/rs6000/htm.md: Remove all define_expands.
32454 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
32455 UNSPECV_HTM_TABORTWCI): Remove.
32456 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
32457 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
32458 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
32459 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
32460 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
32461 tabortwci_internal): Remove define_insns.
32462 (tabort<wd>c, tabort<wd>ci): New define_insns.
32463 (tabort): Use gpc_reg_operand.
32464 (tcheck): Remove operand.
32465 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
32466 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
32467 expected value.
32468 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
32469 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
32470 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
32471 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
32472 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
32473 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
32474 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
32475 (tcheck): Remove builtin argument.
32476 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
32477 not TARGET_64BIT.
32478 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
32479 tabortdc and tabortdci builtins when not in 64-bit mode.
32480 Modify code to handle the loss of the HTM define_expands.
32481 Emit code to copy the CR register to TARGET.
32482 (htm_init_builtins): Modify code to handle the loss of the HTM
32483 define_expands.
32484 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
32485 (RS6000_BTC_64BIT): Likewise.
32486 (RS6000_BTC_CR): New macro.
32487 * doc/extend.texi: Update documentation for htm builtins.
32488
32489 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32490
32491 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
32492 of manually swapping.
32493 (simplify_associative_operation): Likewise.
32494 (simplify_binary_operation): Likewise.
32495 (simplify_plus_minus): Likewise.
32496 (simplify_relational_operation): Likewise.
32497 (simplify_ternary_operation): Likewise.
32498
32499 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32500
32501 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
32502 (xs_hi_nonmemory_operand): Remove error.
32503 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
32504 general_operand rather than xs_hi_general_operand.
32505
32506 2015-04-27 Richard Biener <rguenther@suse.de>
32507
32508 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
32509 (record_equivalences_from_stmt): Valueize rhs.
32510 (record_equality): Canonicalize x and y order via
32511 tree_swap_operands_p. Do not swap operands for same loop depth.
32512
32513 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
32514
32515 PR target/65296
32516 PR target/65895
32517 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
32518 Add hint how to use own spec file.
32519
32520 2015-04-27 Jakub Jelinek <jakub@redhat.com>
32521
32522 PR tree-optimization/65875
32523 * tree-vrp.c (update_value_range): If in is_new case setting
32524 old_vr to VR_VARYING, also set new_vr to it. Remove
32525 old_vr->type == VR_VARYING test.
32526 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
32527 SSA_PROP_INTERESTING if update_value_range returned true,
32528 but new range is VR_VARYING.
32529
32530 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
32531
32532 * combine.c (sign_extend_short_imm): New.
32533 (set_nonzero_bits_and_sign_copies): Use above new function for sign
32534 extension of src short immediate.
32535 (reg_nonzero_bits_for_combine): Likewise for tem.
32536
32537 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32538
32539 * stor-layout.c (self_referential_component_ref_p): New predicate.
32540 (copy_self_referential_tree_r): Use it.
32541 (self_referential_size): Punt for simple operations directly involving
32542 self-referential component references.
32543 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
32544
32545 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32546
32547 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
32548
32549 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32550
32551 * vec.h (vec): Make splice arguments const. Update definitions
32552 accordingly.
32553
32554 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
32555
32556 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
32557 alternatives.
32558
32559 2015-04-26 Tom de Vries <tom@codesourcery.com>
32560
32561 PR tree-optimization/65826
32562 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
32563
32564 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
32565
32566 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
32567 (*madd3<mode>): Ditto.
32568 (*msub4<mode>): Ditto.
32569 (*msub3<mode>): Ditto.
32570 (*nmadd4<mode>): Ditto.
32571 (*nmadd3<mode>): Ditto.
32572 (*nmadd4<mode>_fastmath): Ditto.
32573 (*nmadd3<mode>_fastmath): Ditto.
32574 (*nmsub4<mode>): Ditto.
32575 (*nmsub3<mode>): Ditto.
32576 (*nmsub4<mode>_fastmath): Ditto.
32577 (*nmsub3<mode>_fastmath): Ditto.
32578
32579 2015-04-24 Jason Merrill <jason@redhat.com>
32580
32581 PR c++/50800
32582 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
32583 down when building TYPE_CANONICAL.
32584 (build_pointer_type_for_mode): Likewise.
32585
32586 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
32587
32588 * genrecog.c (validate_pattern): Check matching constraint refers
32589 to a lower numbered operand.
32590
32591 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
32592
32593 PR target/65849
32594 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
32595 save to independent variables use the Save attribute. This will
32596 allow these options to be modified with the #pragma/attribute
32597 target support.
32598 (-mallow-movmisalign): Likewise.
32599 (-mallow-df-permute): Likewise.
32600 (-msched-groups): Likewise.
32601 (-malways-hint): Likewise.
32602 (-malign-branch-targets): Likewise.
32603 (-mvectorize-builtins): Likewise.
32604 (-msave-toc-indirect): Likewise.
32605
32606 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
32607 can be set via the #pragma/attribute target support.
32608 (rs6000_opt_vars): Likewise.
32609 (rs6000_inner_target_options): If VSX was set, also set
32610 -mno-avoid-indexed-addresses.
32611
32612 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32613
32614 * config/arm/iterators.md (shiftable_ops): Rename to...
32615 (SHIFTABLE_OPS): ... This. Update use in comments.
32616 (ior_xor): Rename to...
32617 (IOR_XOR): ... This.
32618 (vqh_ops): Rename to...
32619 (VQH_OPS): ... This.
32620 (vqhs_ops): Rename to...
32621 (VQHS_OPS): ... This.
32622 (rshifts): Rename to...
32623 (RSHIFTS): ... This.
32624 (returns): Rename to...
32625 (RETURNS): ... This.
32626 * config/arm/arm.md: Update uses of the above.
32627 * config/arm/neon.md: Likewise.
32628
32629 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32630
32631 * config.host (case ${host}): Add aarch64*-*-linux case.
32632 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
32633 fields to all the cores.
32634 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
32635 Add MCPU_MTUNE_NATIVE_SPECS.
32636 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
32637 field to all extensions.
32638 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
32639 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
32640 Adjust definition of AARCH64_OPT_EXTENSION.
32641 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
32642 (MCPU_MTUNE_NATIVE_SPECS): Define.
32643 * config/aarch64/driver-aarch64.c: New file.
32644 * config/aarch64/x-arch64: New file.
32645 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
32646 -mtune and -march.
32647
32648 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32649 Wei Mi <wmi@google.com>
32650
32651 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
32652 * config/i386/i386.c (extract_base_offset_in_addr): New function.
32653 (ix86_operands_ok_for_move_multiple): Ditto.
32654 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
32655 (movlpd/movhpd to movupd peephole2): Ditto.
32656
32657 2015-04-24 Marek Polacek <polacek@redhat.com>
32658
32659 PR c/61534
32660 * input.h (from_macro_expansion_at): Define.
32661
32662 PR c/63357
32663 * doc/invoke.texi: Update description of -Wlogical-op.
32664
32665 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32666
32667 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
32668 ternary operator in fprintf and harmonize spacing.
32669
32670 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32671
32672 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
32673 Mark operand1 commutative.
32674
32675 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32676
32677 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
32678 input operands in memory.
32679 (*vec_concatv2si_sse4_1): Ditto.
32680 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
32681 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
32682 register_operand.
32683 (vec_extract_hi_v32hi): Ditto.
32684 (vec_extract_hi_v64hi): Ditto.
32685 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
32686
32687 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32688 Steven Bosscher <steven@gcc.gnu.org>
32689
32690 PR rtl-optimization/34503
32691 * cprop.c (cprop_reg_p): New.
32692 (hash_scan_set): Use above function to check if register can be
32693 propagated.
32694 (find_avail_set): Return up to two sets, one whose source is a
32695 register and one whose source is a constant. Sets are returned in an
32696 array passed as parameter rather than as a return value.
32697 (cprop_insn): Use a do while loop rather than a goto. Try each of the
32698 sets returned by find_avail_set, starting with the one whose source is
32699 a constant. Use cprop_reg_p to check if register can be propagated.
32700 (do_local_cprop): Use cprop_reg_p to check if register can be
32701 propagated.
32702 (implicit_set_cond_p): Likewise.
32703
32704 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32705
32706 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
32707 (sem_function::equals): IGNORED_NODES parameter is now unused;
32708 update call of equals_private.
32709 (sem_function::equals_private): Do not call equals_wpa; skip
32710 gimple body matching if there is no body.
32711 (sem_function::init): Add logic to hash tthunk info.
32712 (sem_function::parse): Also parse thunks.
32713 * ipa-icf.h (equals_private): Update declaration.
32714
32715 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32716
32717 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
32718 asterisk from name so this can be generated directly.
32719 (*altivec_stvx_<mode>_internal): Likewise.
32720 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
32721 that this is never called during or after reload/lra.
32722 (rs6000_frame_related): Remove split_reg
32723 argument and logic that references it.
32724 (emit_frame_save): Remove last parameter from call to
32725 rs6000_frame_related.
32726 (rs6000_emit_prologue): Remove last parameter from eight calls to
32727 rs6000_frame_related. Force generation of stvx instruction for
32728 Altivec register saves. Remove split_reg handling, which is no
32729 longer needed.
32730 (rs6000_emit_epilogue): Force generation of lvx instruction for
32731 Altivec register restores.
32732
32733 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32734
32735 * config/rs6000/rs6000.opt (mcrypto): Change option description to
32736 match category changes in ISA 2.07B.
32737
32738 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32739
32740 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
32741 iterators.
32742 (cmp_op, cmp_type): New code attributes.
32743 (NEON_VCMP, NEON_VACMP): New int iterators.
32744 (cmp_op_unsp): New int attribute.
32745 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
32746 (neon_vceq<mode>): Delete.
32747 (neon_vc<cmp_op><mode>_insn): New pattern.
32748 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
32749 (neon_vcgeu<mode>): Delete.
32750 (neon_vcle<mode>): Likewise.
32751 (neon_vclt<mode>: Likewise.
32752 (neon_vcage<mode>): Likewise.
32753 (neon_vcagt<mode>): Likewise.
32754 (neon_vca<cmp_op><mode>): New define_expand.
32755 (neon_vca<cmp_op><mode>_insn): New pattern.
32756 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
32757
32758 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32759
32760 * tree.h (attribute_value_equal): Declare.
32761 * tree.c (attribute_value_equal): Export.
32762
32763 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32764
32765 * ipa-icf.c (sem_item::compare_attributes): New function.
32766 (sem_item::compare_referenced_symbol_properties): Compare variable
32767 attributes.
32768 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
32769 (sem_function::param_used_p): New function.
32770 (sem_function::equals_wpa): Fix attribute comparsion; match
32771 parameter type codes; do not compare paremter flags when
32772 they are not used; compare edge flags; compare indirect calls.
32773 (sem_item::update_hash_by_addr_refs): Hash reference type.
32774 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
32775 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
32776 reference use type.
32777 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
32778 * ipa-icf.h (compare_attributes, param_used_p): Declare.
32779
32780 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32781
32782 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
32783 cleanup.
32784 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
32785 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
32786 (sem_item::compare_referenced_symbol_properties): New.
32787 (sem_item::hash_referenced_symbol_properties): New.
32788 (sem_item::compare_cgraph_references): Rename to ...
32789 (sem_item::compare_symbol_references): ... this one; use
32790 compare_referenced_symbol_properties.
32791 (sem_function::equals_wpa): Do not compare
32792 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
32793 DECL_IS_OPERATOR_NEW; compare pointer sizes.
32794 (sem_item::update_hash_by_addr_refs): Call
32795 hash_referenced_symbol_properties.
32796 (sem_item::update_hash_by_local_refs): Cleanup.
32797 (sem_function::merge): Do not mix up symbol properties.
32798 (sem_variable::equals_wpa): Use compare_symbol_references.
32799 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
32800 (sem_item::hash_referenced_symbol_properties): New.
32801 (sem_item::compare_symbol_references): New.
32802 (sem_item::compare_cgraph_references): Remove.
32803
32804 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
32805
32806 PR target/26702
32807 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
32808 Emit size of local.
32809
32810 2015-04-23 Nick Clifton <nickc@redhat.com>
32811
32812 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
32813 ATTRIBUTE_UNUSED to x parameter.
32814 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
32815
32816 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32817
32818 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
32819 TARGET_CRYPTO to TARGET_P8_VECTOR>
32820 (crypto_vpermxor_<mode>): Likewise.
32821 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
32822 (BU_CRYPTO_3A): Likewise.
32823 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
32824 (BU_CRYPTO_OVERLOAD_3A): New #define.
32825 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
32826 (VPMSUMH): Likewise.
32827 (VPMSUMW): Likewise.
32828 (VPMSUMD): Likewise.
32829 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
32830 (VPERMXOR_V4SI): Likewise.
32831 (VPERMXOR_V8HI): Likewise.
32832 (VPERMXOR_V16QI): Likewise.
32833 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
32834 BU_CRYPTO_OVERLOAD_2A.
32835 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
32836 BU_CRYPTO_OVERLOAD_3A.
32837 * config/rs6000/rs6000.opt (mcrypto): Change description of
32838 option.
32839
32840 2015-04-23 Richard Biener <rguenther@suse.de>
32841
32842 * passes.def: Remove copy propagation passes run directly after CCP.
32843 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
32844 SSA names.
32845 (ccp_visit_phi_node): Rework to handle first executable edge
32846 specially.
32847
32848 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
32849
32850 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
32851 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32852 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
32853 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
32854 (thumb_legimitimize_reload_address): Remove.
32855 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
32856 Remove.
32857 (thumb_legimitimize_reload_address): Remove.
32858
32859 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32860
32861 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
32862
32863 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32864
32865 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
32866 MAX_LDM_STM_OPS.
32867 (store_multiple): Likewise.
32868
32869 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32870
32871 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
32872 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
32873 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
32874 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
32875 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
32876 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
32877 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
32878 Specify issue_rate value.
32879 (arm_issue_rate): Look up issue rate from tuning structs. Remove
32880 large switch statement.
32881 (arm_marvell_pj4_tune): New struct.
32882 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
32883 struct.
32884
32885 2015-04-23 Richard Biener <rguenther@suse.de>
32886
32887 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
32888 (vect_find_last_store_in_slp_instance): Rename to ...
32889 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
32890 (vect_analyze_slp_cost_1): Use vector_load for constant defs
32891 and vec_construct for external defs when estimating prologue cost.
32892 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
32893 Compute costs here only when vectorizing loops.
32894 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
32895 have been determined.
32896 (vect_schedule_slp_instance): Simplify vectorized code placement
32897 and prepare for in-BB external defs.
32898 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
32899 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
32900 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
32901 guard.
32902 (vect_model_load_cost): Likewise.
32903 (vectorizable_store): Instead add it here.
32904 (vectorizable_load): Likewise.
32905 (vect_is_simple_use): Dump def type textually.
32906
32907 2015-04-23 Richard Biener <rguenther@suse.de>
32908
32909 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
32910 * cfgloop.c (verify_loop_structure): Verify the root loop node.
32911 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
32912 instead of get_eh_region_from_lp_number.
32913 * loop-init.c (fix_loop_structure): If we removed a loop, reset
32914 the SCEV cache.
32915
32916 2015-04-23 Anton Blanchard <anton@samba.org>
32917
32918 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
32919 need for -mprofile-kernel to save LR to stack.
32920
32921 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32922
32923 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
32924 adjustments.
32925 (insn_is_swappable_p): Return 1 for a convert from double to
32926 single precision when all of its uses are splats of BE element
32927 zero.
32928
32929 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
32930
32931 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
32932
32933 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32934
32935 PR target/65456
32936 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
32937 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
32938 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
32939 option.
32940 (rs6000_builtin_mask_for_load): Return 0 for targets with
32941 efficient unaligned VSX accesses so that the vectorizer will use
32942 direct unaligned loads.
32943 (rs6000_builtin_support_vector_misalignment): Always return true
32944 for targets with efficient unaligned VSX accesses.
32945 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
32946 stores on targets with efficient unaligned VSX accesses is almost
32947 always the same as the cost of an aligned load or store, so model
32948 it that way.
32949 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
32950 unaligned vectors if we have efficient unaligned VSX accesses.
32951 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
32952 undocumented option.
32953
32954 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32955
32956 Revert:
32957 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32958
32959 * config.gcc (LIBC_MUSL): New tm_defines macro.
32960 * config/linux.h (OPTION_MUSL): Define.
32961 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32962 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32963 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32964
32965 * config/linux.opt (mmusl): New option.
32966 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32967 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32968
32969 * configure: Regenerate.
32970
32971 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
32972
32973 * config.gcc (LIBC_MUSL): New tm_defines macro.
32974 * config/linux.h (OPTION_MUSL): Define.
32975 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32976 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32977 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32978
32979 * config/linux.opt (mmusl): New option.
32980 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32981 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32982
32983 * configure: Regenerate.
32984
32985 2015-04-22 Yury Gribov <y.gribov@samsung.com>
32986
32987 * doc/invoke.texi (-fsanitize-sections): Update description.
32988 * asan.c (set_sanitized_sections): Parse incoming arg.
32989 (section_sanitized_p): Support wildcards.
32990
32991 2015-04-22 Tom de Vries <tom@codesourcery.com>
32992
32993 PR tree-optimization/65823
32994 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
32995 equality between ap_copy and ap.
32996
32997 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32998
32999 PR target/47098
33000 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33001
33002 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33003
33004 PR target/47122
33005 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33006
33007 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33008
33009 PR target/55144
33010 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33011 remove already contained t-files.
33012
33013 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33014
33015 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33016 Remove unneeded forward declarations.
33017 (suitable_for_tail_call_opt_p): Commentary typo fix.
33018
33019 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33020
33021 * varasm.c (emit_bss): Remove redundant guard.
33022
33023 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33024
33025 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33026
33027 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33028
33029 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33030
33031 2015-04-22 Hale Wang <hale.wang@arm.com>
33032 Terry Guo <terry.guo@arm.com>
33033
33034 PR rtl-optimization/64818
33035 * combine.c (can_combine_p): Don't combine user-specified
33036 register if it is in an asm input.
33037
33038 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
33039
33040 PR ipa/65076
33041 * passes.def (early_optimizations): Add pass_dse.
33042
33043 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33044
33045 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33046 * reorg.c (redundant_insn): Remove ifdef
33047 INSN_REFERENCES_ARE_DELAYED.
33048 * resource.c (mark_referenced_resources): Likewise.
33049
33050 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33051
33052 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33053 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33054 * resource.c (mark_set_resources): Likewise.
33055
33056 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33057
33058 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33059 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33060 (flow_find_head_matching_sequence): Likewise.
33061 (try_head_merge_bb): Likewise.
33062 * combine.c (can_combine_p): Likewise.
33063 (try_combine): Likewise.
33064 (distribute_notes): Likewise.
33065 * df-problems.c (can_move_insns_across): Likewise.
33066 * final.c (final): Likewise.
33067 * gcse.c (insert_insn_end_basic_block): Likewise.
33068 * ira.c (find_moveable_pseudos): Likewise.
33069 * reorg.c (try_merge_delay_insns): Likewise.
33070 (fill_simple_delay_slots): Likewise.
33071 (fill_slots_from_thread): Likewise.
33072 * sched-deps.c (sched_analyze_2): Likewise.
33073
33074 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33075
33076 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33077 PIC_OFFSET_TABLE_REGNUM.
33078
33079 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33080
33081 * alias.c (init_alias_target): Remove ifdef
33082 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33083 * df-scan.c (df_insn_refs_collect): Likewise.
33084 (df_get_regular_block_artificial_uses): Likewise.
33085 (df_get_eh_block_artificial_uses): Likewise.
33086 (df_get_entry_block_def_set): Likewise.
33087 (df_get_exit_block_use_set): Likewise.
33088 * emit-rtl.c (gen_rtx_REG): Likewise.
33089 * ira.c (ira_setup_eliminable_regset): Likewise.
33090 * reginfo.c (init_reg_sets_1): Likewise.
33091 * regrename.c (rename_chains): Likewise.
33092 * reload1.c (reload): Likewise.
33093 (eliminate_regs_in_insn): Likewise.
33094 * resource.c (mark_referenced_resources): Likewise.
33095 (init_resource_info): Likewise.
33096
33097 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33098
33099 * defaults.h (MASK_RETURN_ADDR): New definition.
33100 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33101 MASK_RETURN_ADDR.
33102
33103 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33104
33105 * defaults.h (RETURN_ADDR_OFFSET): New definition.
33106 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33107 RETURN_ADDR_OFFSET.
33108 (expand_builtin_frob_return_addr): Likewise.
33109
33110 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33111
33112 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33113 (try_redirect_by_replacing_jump): Likewise.
33114 (rtl_tidy_fallthru_edge): Likewise.
33115 * combine.c (insn_a_feeds_b): Likewise.
33116 (find_split_point): Likewise.
33117 (simplify_set): Likewise.
33118 * cprop.c (cprop_jump): Likewise.
33119 * cse.c (cse_extended_basic_block): Likewise.
33120 * df-problems.c (can_move_insns_across): Likewise.
33121 * function.c (emit_use_return_register_into_block): Likewise.
33122 * haifa-sched.c (sched_init): Likewise.
33123 * ira.c (find_moveable_pseudos): Likewise.
33124 * loop-invariant.c (find_invariant_insn): Likewise.
33125 * lra-constraints.c (curr_insn_transform): Likewise.
33126 * postreload.c (reload_combine_recognize_const_pattern):
33127 * Likewise.
33128 * reload.c (find_reloads): Likewise.
33129 * reorg.c (delete_scheduled_jump): Likewise.
33130 (steal_delay_list_from_target): Likewise.
33131 (steal_delay_list_from_fallthrough): Likewise.
33132 (redundant_insn): Likewise.
33133 (fill_simple_delay_slots): Likewise.
33134 (fill_slots_from_thread): Likewise.
33135 (delete_computation): Likewise.
33136 * sched-rgn.c (add_branch_dependences): Likewise.
33137
33138 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33139
33140 * genconfig.c (main): Always define HAVE_cc0.
33141 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33142 HAVE_cc0.
33143 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33144 (flow_find_head_matching_sequence): Likewise.
33145 (try_head_merge_bb): Likewise.
33146 * cfgrtl.c (rtl_merge_blocks): Likewise.
33147 (try_redirect_by_replacing_jump): Likewise.
33148 (rtl_tidy_fallthru_edge): Likewise.
33149 * combine.c (do_SUBST_MODE): Likewise.
33150 (insn_a_feeds_b): Likewise.
33151 (combine_instructions): Likewise.
33152 (can_combine_p): Likewise.
33153 (try_combine): Likewise.
33154 (find_split_point): Likewise.
33155 (subst): Likewise.
33156 (simplify_set): Likewise.
33157 (distribute_notes): Likewise.
33158 * cprop.c (cprop_jump): Likewise.
33159 * cse.c (cse_extended_basic_block): Likewise.
33160 * df-problems.c (can_move_insns_across): Likewise.
33161 * final.c (final): Likewise.
33162 (final_scan_insn): Likewise.
33163 * function.c (emit_use_return_register_into_block): Likewise.
33164 * gcse.c (insert_insn_end_basic_block): Likewise.
33165 * haifa-sched.c (sched_init): Likewise.
33166 * ira.c (find_moveable_pseudos): Likewise.
33167 * loop-invariant.c (find_invariant_insn): Likewise.
33168 * lra-constraints.c (curr_insn_transform): Likewise.
33169 * optabs.c (prepare_cmp_insn): Likewise.
33170 * postreload.c (reload_combine_recognize_const_pattern):
33171 * Likewise.
33172 * reload.c (find_reloads): Likewise.
33173 (find_reloads_address_1): Likewise.
33174 * reorg.c (delete_scheduled_jump): Likewise.
33175 (steal_delay_list_from_target): Likewise.
33176 (steal_delay_list_from_fallthrough): Likewise.
33177 (try_merge_delay_insns): Likewise.
33178 (redundant_insn): Likewise.
33179 (fill_simple_delay_slots): Likewise.
33180 (fill_slots_from_thread): Likewise.
33181 (delete_computation): Likewise.
33182 (relax_delay_slots): Likewise.
33183 * sched-deps.c (sched_analyze_2): Likewise.
33184 * sched-rgn.c (add_branch_dependences): Likewise.
33185
33186 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33187
33188 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33189 that is trivially ded on non cc0 targets.
33190 (simplify_set): Likewise.
33191 (mark_used_regs_combine): Likewise.
33192 * cse.c (new_basic_block): Likewise.
33193 (fold_rtx): Likewise.
33194 (cse_insn): Likewise.
33195 (cse_extended_basic_block): Likewise.
33196 (set_live_p): Likewise.
33197 * rtlanal.c (canonicalize_condition): Likewise.
33198 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33199
33200 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33201
33202 * conditions.h: Define macros even if HAVE_cc0 is undefined.
33203 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33204 * final.c: Likewise.
33205 * jump.c: Likewise.
33206 * recog.c: Likewise.
33207 * recog.h: Declare functions even when HAVE_cc0 is undefined.
33208 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33209
33210 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33211
33212 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33213 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33214 * builtins.c (expand_builtin): Remove check if
33215 EH_RETURN_DATA_REGNO is defined.
33216 * df-scan.c (df_bb_refs_collect): Likewise.
33217 (df_get_exit_block_use_set): Likewise.
33218 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33219 * ira-lives.c (process_bb_node_lives): Likewise.
33220 * lra-lives.c (process_bb_lives): Likewise.
33221
33222 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33223
33224 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33225 FIRST_PSEUDO_REG): New.
33226 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33227 (ARG_POINTER_REGNUM): Define to ARGP_REG.
33228 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33229 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33230 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33231 (FIRST_INT_REG): New.
33232 (LAST_INT_REG): New.
33233 (FIRST_*_REG): Define using *_REG.
33234 (LAST_*_REG): Ditto.
33235 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33236 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33237 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33238
33239 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33240
33241 * expmed.c: (synth_mult): Only assume overlapping
33242 shift with previous steps in alg_sub_t_m2 case.
33243
33244 2015-04-21 Richard Biener <rguenther@suse.de>
33245
33246 PR tree-optimization/65650
33247 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33248 transitions involving copies.
33249 (set_lattice_value): Adjust for copy lattice state.
33250 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33251 if that doesn't dominate the merge point.
33252 (bit_value_unop): Adjust what we treat as varying mask.
33253 (bit_value_binop): Likewise.
33254 (bit_value_assume_aligned): Likewise.
33255 (evaluate_stmt): When we simplified to a SSA name record a copy
33256 instead of dropping to varying.
33257 (visit_assignment): Simplify.
33258
33259 * gimple-match.h (gimple_simplify): Add another callback.
33260 * gimple-fold.c (fold_stmt_1): Adjust caller.
33261 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33262 for the 2nd callback.
33263 * gimple-match-head.c (gimple_simplify): Add a callback that is
33264 used to valueize the stmt operands and use it that way.
33265
33266 2015-04-21 Richard Biener <rguenther@suse.de>
33267
33268 PR tree-optimization/65788
33269 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33270
33271 2015-04-21 Richard Biener <rguenther@suse.de>
33272
33273 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33274 vec_construct cost by vec_stmt_cost.
33275
33276 2015-04-21 Richard Biener <rguenther@suse.de>
33277
33278 * cfghooks.h (create_basic_block): Replace with two overloads
33279 for RTL and GIMPLE.
33280 (split_block): Likewise.
33281 * cfghooks.c (split_block): Rename to ...
33282 (split_block_1): ... this.
33283 (split_block): Add two type-safe overloads for RTL and GIMPLE.
33284 (split_block_after_labels): Call split_block_1.
33285 (create_basic_block): Rename to ...
33286 (create_basic_block_1): ... this.
33287 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33288 (create_empty_bb): Call create_basic_block_1.
33289 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33290 split_block_after_labels.
33291 * omp-low.c (expand_parallel_call): Likewise.
33292 (expand_omp_target): Likewise.
33293 (simd_clone_adjust): Likewise.
33294 * tree-chkp.c (chkp_get_entry_block): Likewise.
33295 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33296 create_basic_block overload.
33297 (cgraph_node::expand_thunk): Likewise.
33298 * tree-cfg.c (make_blocks): Likewise.
33299 (handle_abnormal_edges): Likewise.
33300 * tree-inline.c (copy_bb): Likewise.
33301
33302 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33303
33304 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33305 New pattern.
33306 (*xor_one_cmplsidi3_ze): Likewise.
33307
33308 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
33309
33310 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33311 use df_remove_problem rather than manually removing problems, leaving
33312 holes in df->problems_in_order[].
33313
33314 2015-04-21 Tom de Vries <tom@codesourcery.com>
33315
33316 PR tree-optimization/65802
33317 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33318
33319 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33320
33321 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33322 Increase to 128.
33323 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33324 at '.'. Assert that there's enough space for everything.
33325
33326 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33327
33328 PR tree-optimization/64950
33329 Revert:
33330 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
33331
33332 PR target/41089
33333 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33334 as volatile.
33335
33336 2015-04-20 Shiva Chen <shiva0217@gmail.com>
33337
33338 PR rtl-optimization/64916
33339 * cfgcleanup.c (values_equal_p): New function.
33340 (can_replace_by): Use it.
33341
33342 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
33343
33344 PR c++/65801
33345 * doc/invoke.texi ([-Wnarrowing]): Update.
33346
33347 2015-04-20 Jeff Law <law@redhat.com>
33348
33349 PR tree-optimization/65658
33350 * tree-ssa-threadupdate.c (redirection_block_p): Remove
33351 redundant test for GIMPLE_ASSIGN in last change.
33352
33353 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
33354
33355 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33356 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33357 (legitimize_tls_address): Ditto.
33358 (ix86_expand_move): Ditto.
33359 (ix86_expand_binary_operator): Remove reload_in_progress checks.
33360 (ix86_expand_unary_operator): Ditto.
33361 * config/i386/predicates.md (index_register_operand): Ditto.
33362
33363 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
33364
33365 * reorg.c (try_merge_delay_insns): Improve correctness checking
33366 for targets with multiple delay slots.
33367
33368 2015-04-20 Jeff Law <law@redhat.com>
33369
33370 PR tree-optimization/65658
33371 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33372 statements too.
33373
33374 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33375
33376 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33377 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33378 Delete.
33379
33380 2015-04-20 Jakub Jelinek <jakub@redhat.com>
33381
33382 PR debug/65807
33383 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33384
33385 2015-04-20 Richard Biener <rguenther@suse.de>
33386
33387 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33388 * gimple-fold.c (gimple_build_valueize): New function.
33389 (gimple_build): Always use gimple_build_valueize as valueize hook.
33390
33391 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33392
33393 PR target/64134
33394 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33395 and overwrite variable parts if <= 1/2 the elements are variable.
33396
33397 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
33398
33399 PR rtl-optimization/65805
33400 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33401 Don't use difference of offset and previous offset if
33402 update_sp_offset is non-zero.
33403 (eliminate_regs_in_insn): Ditto.
33404 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33405 lra_eliminate_regs_1 call.
33406 * lra-constraints.c (get_equiv_with_elimination): Ditto.
33407
33408 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
33409
33410 * hash-table.h: Remove version of hash_table that stored value_type *.
33411 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33412 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33413 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33414 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33415 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33416 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33417 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33418 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33419 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33420 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33421 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33422 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33423 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33424 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33425 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33426 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33427
33428 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33429 Jakub Jelinek <jakub@redhat.com>
33430
33431 PR target/65787
33432 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
33433 subsequent SH_NONE operand does not overwrite an existing *special
33434 value.
33435 (adjust_extract): Handle case where a vec_extract operation is
33436 wrapped in a PARALLEL.
33437
33438 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33439
33440 PR target/65780
33441 * config/i386/i386.c (ix86_binds_local_p): Define only if
33442 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
33443
33444 2015-04-17 Jeff Law <law@redhat.com>
33445
33446 PR tree-optimization/47679
33447 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
33448 * tree-ssa-scopedtables.c: New file.
33449 * tree-ssa-scopedtables.h: New file.
33450 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
33451 (const_and_copies): Change name/type.
33452 (record_const_or_copy): Move into tree-ssa-scopedtables.c
33453 (record_const_or_copy_1): Similarly.
33454 (restore_vars_to_original_value): Similarly.
33455 (pass_dominator::execute): Create and destroy const_and_copies table.
33456 (thread_across_edge): Update passing of const_and_copies.
33457 (record_temporary_equivalence): Use method calls rather than
33458 manipulating const_and_copies directly.
33459 (record_equality, cprop_into_successor_phis): Similarly.
33460 (dom_opt_dom_walker::before_dom_children): Similarly.
33461 (dom_opt_dom_walker::after_dom_children): Similarly.
33462 (eliminate_redundant_computations): Similarly.
33463 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
33464 (record_temporary_equivalence): Likewise.
33465 (invalidate_equivalences): Likewise.
33466 (record_temporary_equivalences_from_phis): Update due to type
33467 change of const_and_copies. Use method calls rather than
33468 manipulating the stack directly.
33469 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
33470 (thread_through_normal_block, thread_across_edge): Likewise.
33471 (thread_across_edge): Likewise.
33472 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
33473 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
33474 of equiv_stack.
33475 (identify_jump_threads): Update due to type change of equiv_stack.
33476 (finalize_jump_threads): Delete the equiv_stack when complete.
33477
33478 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
33479
33480 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33481 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
33482 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
33483
33484 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
33485
33486 PR target/65535
33487 * config.gcc: Exit with a comment when we do not have a major version
33488 number for the FreeBSD target.
33489
33490 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33491
33492 PR target/65689
33493 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
33494 maybe_allows_mem bitfields.
33495 (maybe_allows_none_start, maybe_allows_none_end,
33496 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
33497 maybe_allows_mem_end): New variables.
33498 (compute_maybe_allows): New function.
33499 (add_constraint): Use it to initialize maybe_allows_reg and
33500 maybe_allows_mem fields.
33501 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
33502 is_address constraints such that those that allow neither mem nor
33503 reg come first, then those that only allow reg but not mem, then
33504 those that only allow mem but not reg, then the rest.
33505 (write_allows_reg_mem_function): New function.
33506 (write_tm_preds_h): Call it.
33507 * stmt.c (parse_output_constraint, parse_input_constraint): Use
33508 the generated insn_extra_constraint_allows_reg_mem function
33509 instead of always setting *allows_reg = true; *allows_mem = true;
33510 for unknown extra constraints.
33511
33512 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33513
33514 PR target/65780
33515 * output.h (default_binds_local_p_3): New.
33516 * varasm.c (default_binds_local_p_3): Make it public. Take an
33517 argument to indicate if common symbol may be local. If common
33518 symbol may be local, treat non-external variable as defined
33519 locally.
33520 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
33521 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
33522 * config/i386/i386.c (ix86_binds_local_p): New.
33523 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
33524 ix86_binds_local_p.
33525
33526 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33527
33528 PR debug/65771
33529 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
33530 trying mem_loc_descriptor on XEXP (rtl, 0).
33531
33532 2015-04-17 Martin Liska <mliska@suse.cz>
33533
33534 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
33535 Release symbol_compare_collection.
33536 * ipa-reference.c: Add TODO that a vector should be released.
33537
33538 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
33539
33540 PR target/65296
33541 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
33542 to new AVR-LibC file layout (bug #44574).
33543 (*avrlibc_devicelib): Same.
33544 * config/avr/avr-mcus.def: Adjust comments.
33545 * config/avr/avr.opt (nodevicelib): Adjust help.
33546
33547 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
33548
33549 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
33550
33551 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
33552
33553 PR c++/64527
33554 * gimplify.c (gimplify_init_constructor): Always emit a
33555 side-effecting constructor.
33556
33557 2015-04-17 Tom de Vries <tom@codesourcery.com>
33558
33559 PR tree-optimization/64950
33560 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
33561 in cfun->curr_properties.
33562 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
33563 if we generate an IFN_VA_ARG.
33564 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
33565 function if PROP_gimple_lva is not set in src function.
33566
33567 2015-04-17 Tom de Vries <tom@codesourcery.com>
33568 Michael Matz <matz@suse.de>
33569
33570 PR tree-optimization/64950
33571 * gimple-iterator.c (update_modified_stmts): Remove static.
33572 * gimple-iterator.h (update_modified_stmts): Declare.
33573 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
33574 (gimplify_va_arg_internal): New function.
33575 (gimplify_va_arg_expr): Use IFN_VA_ARG.
33576 * gimplify.h (gimplify_va_arg_internal): Declare.
33577 * internal-fn.c (expand_VA_ARG): New unreachable function.
33578 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
33579 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
33580 (expand_ifn_va_arg): New function.
33581 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
33582 (pass_stdarg::execute): Call expand_ifn_va_arg.
33583 (pass_data_lower_vaarg): New pass_data.
33584 (pass_lower_vaarg): New gimple_opt_pass.
33585 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
33586 (make_pass_lower_vaarg): New function.
33587 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
33588 properties_required field.
33589 * passes.def (all_passes): Add pass_lower_vaarg.
33590 * tree-pass.h (PROP_gimple_lva): Add define.
33591 (make_pass_lower_vaarg): Declare.
33592
33593 2015-04-17 Tom de Vries <tom@codesourcery.com>
33594
33595 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
33596 * calls.c (call_expr_flags): Same.
33597
33598 2015-04-17 Tom de Vries <tom@codesourcery.com>
33599
33600 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
33601 (pass_stdarg::execute): ... here.
33602
33603 2015-04-17 Tom de Vries <tom@codesourcery.com>
33604 Michael Matz <matz@suse.de>
33605
33606 * tree-cfg.c (make_blocks_1): Factor out of ...
33607 (make_blocks): ... here.
33608 (make_edges_bb): Factor out of ...
33609 (make_edges): ... here.
33610 (gimple_find_sub_bbs): New function.
33611 * tree-cfg.h (gimple_find_sub_bbs): Declare.
33612
33613 2015-04-17 Tom de Vries <tom@codesourcery.com>
33614
33615 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
33616
33617 2015-04-17 Yury Gribov <y.gribov@samsung.com>
33618
33619 * asan.c (set_sanitized_sections): New function.
33620 (section_sanitized_p): Ditto.
33621 (asan_protect_global): Optionally sanitize user-defined
33622 sections.
33623 * asan.h (set_sanitized_sections): Declare new function.
33624 * common.opt (fsanitize-sections): New option.
33625 * doc/invoke.texi (-fsanitize-sections): Document new option.
33626 * opts-global.c (handle_common_deferred_options): Handle new
33627 option.
33628
33629 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33630
33631 PR debug/65771
33632 * dwarf2out.c (loc_list_from_tree): Return NULL
33633 for DEBUG_EXPR_DECL.
33634
33635 2015-04-17 Christian Bruel <christian.bruel@st.com>
33636
33637 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
33638 same attributes.
33639
33640 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33641
33642 * ira-color.c (setup_left_conflict_sizes_p): Do not process
33643 node itself when computing left conflict subnode size.
33644
33645 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33646
33647 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
33648 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
33649 *fop_<mode>_1_sse using enabled attribute. Use
33650 register_mixssei387nonimm_operand operand 1 predicate. Change
33651 alternative 3 constraints from "x" to "v".
33652
33653 2015-04-16 Richard Biener <rguenther@suse.de>
33654
33655 PR tree-optimization/65774
33656 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
33657 bit-value tracking on.
33658
33659 2015-04-16 Richard Biener <rguenther@suse.de>
33660
33661 PR tree-optimization/64277
33662 * tree-vrp.c (check_array_ref): Fix anti-range handling,
33663 simplify upper bound handling.
33664 (search_for_addr_array): Simplify.
33665 (check_array_bounds): Handle ADDR_EXPRs here.
33666 (check_all_array_refs): Simplify.
33667
33668 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33669
33670 * config/i386/i386.c (print_reg): Rewrite function.
33671
33672 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33673
33674 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
33675 Invert the condition.
33676
33677 2015-04-16 Renlin Li <renlin.li@arm.com>
33678
33679 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
33680 simplifications for UNSIGNED_FLOAT.
33681
33682 2015-04-16 Nick Clifton <nickc@redhat.com>
33683
33684 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
33685 MUL_UNINIT.
33686 (enum rl78_cpu_type): New.
33687 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
33688 (umulhi3_shift_virt): Remove m constraint from operand 1.
33689 (umulqihi3_virt): Likewise.
33690 * config/rl78/rl78.c (rl78_option_override): Add code to process
33691 -mcpu and -mmul options.
33692 (rl78_alloc_physical_registers): Add code to handle divhi and
33693 divsi valloc attributes.
33694 (set_origin): Likewise.
33695 * config/rl78/rl78.h (RL78_MUL_G14): Define.
33696 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
33697 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
33698 __RL78_Gxx__.
33699 (ASM_SPEC): Pass -mcpu on to assembler.
33700 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
33701 (mulqi3_rl78): Likewise.
33702 (mulhi3_g13): Likewise.
33703 (mulhi3): Generate the G13 or G14 versions of the insn directly.
33704 (mulsi3): Likewise.
33705 (mulhi3_g14): Add clobbers of AX and BC.
33706 (mulsi3_g14): Likewise.
33707 (mulsi3_g13): Likewise.
33708 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
33709 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
33710 * config/rl78/rl78.opt (mmul): Initialise value to
33711 RL78_MUL_UNINIT.
33712 (mcpu): New option.
33713 (m13, m14, mrl78): New option aliases.
33714 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
33715 (MULTILIB_DIRNAMES): Add g13 and g14.
33716 * doc/invoke.texi: Document -mcpu and -mmul options.
33717
33718 2015-04-16 Richard Biener <rguenther@suse.de>
33719
33720 * tree-ssa-ccp.c (likely_value): See if we have operands that
33721 are marked as never simulate again and return CONSTANT in this
33722 case.
33723 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
33724 not have any operands that will be simulated again as
33725 not being simulated again.
33726
33727 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
33728
33729 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
33730 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
33731 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
33732 attribute.
33733 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
33734 enabled attribute.
33735 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
33736 *float<SWI48:mode><MODEF:mode>2_sse.
33737 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
33738 enabled attribute.
33739 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
33740 enabled attribute.
33741
33742 2015-04-15 Tom de Vries <tom@codesourcery.com>
33743
33744 PR other/65487
33745 * function.c (push_dummy_function): New function.
33746 (init_dummy_function_start): Use push_dummy_function.
33747 (pop_dummy_function): New function. Factored out of ...
33748 (expand_dummy_function_end): ... here.
33749 * function.h (push_dummy_function, pop_dummy_function): Declare.
33750 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
33751 pop_dummy_function.
33752 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
33753
33754 2015-04-15 Jeff Law <law@redhat.com>
33755
33756 PR tree-optimization/47679
33757 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
33758 need for forward declaration in upcoming changes.
33759 (record_conditions, record_edge_info): Likewise.
33760
33761 PR rtl-optimization/42522
33762 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
33763 SIGN_EXTRACT as a whole object rather than simplifying
33764 its operand.
33765
33766 2015-04-15 Jakub Jelinek <jakub@redhat.com>
33767
33768 PR ipa/65765
33769 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
33770 and GIMPLE_PREDICT use break instead of return true. For
33771 GIMPLE_EH_DISPATCH, compare dispatch region.
33772
33773 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
33774
33775 * doc/extend.texi (__sync Builtins): Simplify some text. Update
33776 details about the implementation. Make clear preference for
33777 __atomic builtins. Reduce possibility of future change.
33778
33779 2015-04-15 Nick Clifton <nickc@redhat.com>
33780
33781 * config/rx/rx.opt (mallow-string-insns): New option.
33782 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
33783 builtin if string instructions are denied.
33784 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
33785 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
33786 appropriate.
33787 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
33788 * config/rx/rx.md (movstr): Enable pattern only if string
33789 instructions are allowed.
33790 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
33791 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
33792 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
33793 (MULTILIB_DIRNAMES): Add no-strings.
33794 * doc/invoke.texi: Document -mno-allow-string-insns.
33795
33796 2015-04-15 Alan Modra <amodra@gmail.com>
33797
33798 PR target/65408
33799 PR target/58744
33800 PR middle-end/36043
33801 * calls.c (load_register_parameters): Don't load past end of
33802 mem unless suitably aligned.
33803
33804 2015-04-15 Nick Clifton <nickc@redhat.com>
33805
33806 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
33807 decrement instruction as being frame related.
33808 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
33809 based addresses.
33810 If zero extending a function address enclose the operation in
33811 %code(...).
33812 (rl78_preferred_reload_class): New function.
33813 (TARGET_PREFERRED_RELOAD_CLASS): Define.
33814 * config/rl78/rl78.md: Remove useless constraints in expanders.
33815 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
33816 (mulhi3_rl78): Likewise.
33817 (mulhi3_g13): Likewise.
33818 (mulsi3_rl78): Likewise.
33819 (es_addr): Move to before the multiply patterns.
33820
33821 2015-04-15 Alan Modra <amodra@gmail.com>
33822
33823 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
33824 and sequence_stack. Add seq.
33825 (seq_stack): Delete.
33826 * function.c (prepare_function_start): Don't access x_last_insn.
33827 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
33828 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
33829 * emit_rtl.c (start_sequence, push_topmost_sequence,
33830 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
33831 sequence accessors.
33832 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
33833 remove_insn): Likewise. Simplify.
33834 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
33835 and pop_topmost_sequence.
33836 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
33837 debug insns.
33838 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
33839
33840 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
33841
33842 PR target/65729
33843 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
33844 the assertiion.
33845
33846 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33847
33848 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
33849 (LEGACY_INT_REGNO_P): Ditto.
33850 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
33851 (ANY_MASK_REG_P): Remove.
33852 (BND_REG_P): Rename from ANY_BND_REG_P.
33853 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
33854 legacy integer registers. Do not handle MMX_REG_P in a special way.
33855 Merge 64byte and 32byte SSE handling.
33856
33857 2015-04-14 Nick Clifton <nickc@redhat.com>
33858
33859 * expr.c (expand_assignment): Force an address offset computation
33860 into a register before changing its mode.
33861 (expand_expr_real_1): Likewise.
33862
33863 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
33864
33865 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
33866 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
33867 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
33868 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
33869 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
33870 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
33871 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
33872 and __aarch64_vget_lane_any.
33873
33874 2015-04-14 Jakub Jelinek <jakub@redhat.com>
33875
33876 PR rtl-optimization/65761
33877 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
33878 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
33879
33880 2015-04-14 Richard Biener <rguenther@suse.de>
33881
33882 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
33883 (graphite_can_represent_scev): Use POINTER_TYPE_P.
33884
33885 2015-04-14 Richard Biener <rguenther@suse.de>
33886
33887 PR tree-optimization/65758
33888 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
33889 against -1.
33890 (ccp_lattice_meet): Likewise.
33891 (bit_value_unop): Likewise.
33892 (bit_value_binop): Likewise.
33893 (bit_value_assume_aligned): Likewise.
33894
33895 2015-04-14 Christian Bruel <christian.bruel@st.com>
33896
33897 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
33898 function.
33899
33900 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
33901
33902 PR tree-optimization/63387
33903 * match.pd ((x unord x) | (y unord y) -> (x unord y),
33904 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
33905
33906 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
33907
33908 * config/i386/predicates.md (any_QIreg_operand): Rename from
33909 q_regs_operand. Do not process subregs.
33910 (QIreg_operand): Use QI_REGNO_P predicate.
33911 (ext_QIreg_operand): Ditto.
33912 (ext_register_operand): Ditto.
33913 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
33914 (AND splitters): Ditto.
33915 (AND with -65536 splitter): Add SWI48 mode for operand 0.
33916 (AND with -256 splitter): Use any_QIreg_operand predicate and
33917 SWI248 mode for operand 0.
33918 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
33919 mode for operand 0.
33920 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
33921
33922 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
33923
33924 * doc/plugins.texi: Rewrite first introductory paragraph.
33925
33926 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33927
33928 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
33929 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
33930
33931 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33932
33933 * ipa-profie.c (ipa_profile): Check number of parameters
33934 and possible polymorphic call targets before
33935 devirtualizing.
33936
33937 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
33938
33939 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
33940 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
33941
33942 2015-04-13 Richard Biener <rguenther@suse.de>
33943
33944 PR tree-optimization/65204
33945 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
33946 takens for bit-CCP.
33947
33948 2015-04-13 Richard Biener <rguenther@suse.de>
33949
33950 PR target/65660
33951 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
33952 and cond_not_taken_branch_cost to 4 and 2.
33953 (bdver2_cost): Likewise.
33954 (bdver3_cost): Likewise.
33955 (bdver4_cost): Likewise.
33956
33957 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33958
33959 * hash-table.h (hash_table constructor): Add mem stats.
33960 (alloc_entries): Likewise.
33961
33962 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33963
33964 * ipa-cp.c (ipcp_driver): Relase prev_edge.
33965 * passes.c (execute_one_pass): Only add transform if pass has one.
33966
33967 2015-04-12 Joseph Myers <joseph@codesourcery.com>
33968
33969 * config/i386/i386.c (ix86_option_override_internal): Don't set
33970 -fprefetch-loop-arrays if optimizing for size.
33971
33972 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
33973 Gerald Pfeifer <gerald@pfeifer.com>
33974
33975 * doc/contrib.texi (Contributors): Add Martin Jambor and
33976 Michael Matz.
33977
33978 2015-04-12 Jakub Jelinek <jakub@redhat.com>
33979
33980 * BASE-VER: Set to 6.0.0.
33981
33982 PR tree-optimization/65747
33983 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
33984 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
33985
33986 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33987
33988 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
33989 sentence. Improve grammar.
33990
33991 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
33992
33993 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
33994
33995 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
33996
33997 PR ipa/65743
33998 * ipa-inline-transform.c (speculation_removed): Remove static var.
33999 (check_speculations): New function.
34000 (clone_inlined_nodes): Do not check spculations.
34001 (inline_call): Call check_speculations.
34002 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34003 consider non-invariants.
34004
34005 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34006 Martin Liska <mliska@suse.cz>
34007
34008 PR ipa/65722
34009 * ipa-icf.c (sem_item::compare_cgraph_references): function and
34010 variable can not match.
34011 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34012 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34013
34014 2015-04-11 Jakub Jelinek <jakub@redhat.com>
34015
34016 PR tree-optimization/65735
34017 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34018 Remove visited_phis argument, add visited_bbs, avoid recursing into the
34019 same bb rather than just into the same phi node.
34020 (thread_through_normal_block): Adjust caller.
34021
34022 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34023
34024 * doc/contrib.texi (Contributors): Add Ira Rosen.
34025
34026 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
34027
34028 * gcov.c (find_source): Fix miswording in error message.
34029 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34030 (ix86_expand_sse_comi_round): Fix typo in error message.
34031
34032 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34033
34034 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34035
34036 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
34037
34038 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34039
34040 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34041
34042 PR target/65710
34043 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34044 Print bad_spills_num and insn_pseudos_num.
34045
34046 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34047
34048 PR target/65694
34049 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34050 when creating +1 values for SImode.
34051
34052 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34053
34054 PR target/65729
34055 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34056 assert.
34057
34058 2015-04-10 Jakub Jelinek <jakub@redhat.com>
34059 Iain Sandoe <iain@codesourcery.com>
34060
34061 PR target/65351
34062 * configure: Regenerate.
34063
34064 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34065
34066 PR target/65671
34067 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34068
34069 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
34070
34071 * doc/contrib.texi (Contributors): Add John Marino.
34072
34073 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34074
34075 PR tree-optimization/65709
34076 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34077 TREE_TYPE (TREE_TYPE (t)).
34078
34079 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
34080
34081 PR target/65710
34082 * lra-int.h (lra_bad_spill_regno_start): New.
34083 * lra.c (lra_bad_spill_regno_start): New.
34084 (lra): Set up lra_bad_spill_regno_start. Set up
34085 lra_constraint_new_regno_start unconditionally.
34086 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34087 spill preferences.
34088
34089 2015-04-09 Marek Polacek <polacek@redhat.com>
34090 Jakub Jelinek <jakub@redhat.com>
34091
34092 PR middle-end/65554
34093 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34094 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34095 of STRIP_NOPS.
34096
34097 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
34098
34099 PR rtl-optimization/65693
34100 * combine.c (is_parallel_of_n_reg_sets): Move outside of
34101 #ifndef HAVE_cc0.
34102
34103 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
34104
34105 PR target/65296
34106 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34107 device specs file if "device-specs%s" didn't resolve to a path.
34108
34109 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34110
34111 PR target/65676
34112 * config/i386/i386.c (fixup_modeless_constant): New.
34113 (ix86_expand_args_builtin): Fixup modeless constant operand.
34114 (ix86_expand_round_builtin): Ditto.
34115 (ix86_expand_special_args_builtin): Ditto.
34116 (ix86_expand_builtin): Ditto.
34117
34118 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34119
34120 PR target/65693
34121 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34122 any pow2 integer in between 2 and 0x80000000U inclusive.
34123
34124 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
34125
34126 PR rtl-optimization/65693
34127 * combine.c (is_parallel_of_n_reg_sets): Change first argument
34128 from an rtx_insn * to an rtx.
34129 (try_combine): Adjust both callers. Use it once more.
34130
34131 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34132
34133 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34134 (chkp_make_static_const_bounds): Search existing
34135 symbol by assembler name. Use make_decl_one_only.
34136 (chkp_get_zero_bounds_var): Remove node search which
34137 is now performed in chkp_make_static_const_bounds.
34138 (chkp_get_none_bounds_var): Likewise.
34139
34140 2015-04-08 Michael Witten <mfwitten@gmail.com>
34141
34142 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34143 to an example.
34144
34145 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34146
34147 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34148
34149 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34150
34151 * doc/extend.texi (__sync Builtins): Fix grammar.
34152
34153 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34154
34155 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34156
34157 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34158
34159 * varasm.c (emit_local): Move definition of align.
34160
34161 2015-04-08 Julian Brown <julian@codesourcery.com>
34162
34163 * config/nvptx/mkoffload.c (process): Support variable mapping.
34164
34165 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
34166
34167 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34168 alpha_links **.
34169 (alpha_write_one_linkage): Correct typo.
34170
34171 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34172
34173 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34174
34175 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34176
34177 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34178
34179 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34180
34181 * tree-chkp.h (chkp_insert_retbnd_call): New.
34182 * tree-chkp.c (chkp_insert_retbnd_call): New.
34183 * ipa-split.c (insert_bndret_call_after): Remove.
34184 (split_function): Use chkp_insert_retbnd_call.
34185 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34186 bounds for instrumented functions.
34187
34188 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
34189
34190 PR ipa/65540
34191 * calls.c (initialize_argument_information): When producing tail
34192 call also turn SSA_NAMES passed by references to original PARM_DECLs
34193
34194 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
34195
34196 PR target/65648
34197 * lra-remat.c (do_remat): Process input and non-input insn
34198 registers separately.
34199
34200 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34201
34202 PR debug/65678
34203 * valtrack.c (debug_lowpart_subreg): New function.
34204 (dead_debug_insert_temp): Use it.
34205
34206 PR middle-end/65680
34207 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34208 into signed HOST_WIDE_INT the same as negative bit_offset.
34209
34210 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
34211
34212 * ipa-comdats.c (ipa_comdats): Visit all thunks
34213 to set proper comdat group.
34214
34215 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34216
34217 PR target/65489
34218 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34219 on constants for NEON VSTRUCT modes.
34220
34221 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34222 Iain Sandoe <iain@codesourcery.com>
34223
34224 PR target/65351
34225 * configure: Regenerate.
34226
34227 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34228
34229 PR target/65614
34230 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34231 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34232 that LFD is used to load double constants instead of LFS. Add
34233 defaults for all costs structures. Add comments for missing
34234 initialization fields.
34235 (size32_cost): Likewise.
34236 (size64_cost): Likewise.
34237 (rs64a_cost): Likewise.
34238 (mpccore_cost): Likewise.
34239 (ppc403_cost): Likewise.
34240 (ppc405_cost): Likewise.
34241 (ppc440_cost): Likewise.
34242 (ppc476_cost): Likewise.
34243 (ppc601_cost): Likewise.
34244 (ppc603_cost): Likewise.
34245 (ppc604_cost): Likewise.
34246 (ppc604e_cost): Likewise.
34247 (ppc620_cost): Likewise.
34248 (ppc630_cost): Likewise.
34249 (ppccell_cost): Likewise.
34250 (ppc750_cost): Likewise.
34251 (ppc7450_cost): Likewise.
34252 (ppc8540_cost): Likewise.
34253 (ppce300c2c3_cost): Likewise.
34254 (ppce500mc_cost): Likewise.
34255 (ppce500mc64_cost): Likewise.
34256 (ppce5500_cost): Likewise.
34257 (ppce6500_cost): Likewise.
34258 (titan_cost): Likewise.
34259 (power4_cost): Likewise.
34260 (power6_cost): Likewise.
34261 (power7_cost): Likewise.
34262 (power8_cost): Likewise.
34263 (ppca2_cost): Likewise.
34264 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34265
34266 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34267 instead of XXLOR to copy SFmode to clear out dirty bits created
34268 when SFmode denormals are generated.
34269 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34270 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34271
34272 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34273
34274 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34275 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34276 * config/aarch64/aarch64-tune.md: Regenerate.
34277
34278 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34279
34280 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34281 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34282 * config/arm/arm-cores.def (exynos-m1): New core.
34283 * config/arm/arm-tune.md: Regenerate.
34284 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34285 * config/arm/bpabi.h: Likewise.
34286
34287 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34288
34289 * ipa-cp (set_single_call_flag): Remove too
34290 restrictive assert.
34291
34292 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
34293
34294 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34295 GOMP_offload_unregister from the destructor.
34296
34297 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34298
34299 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34300 flags for instrumentation thunk.
34301 (chkp_produce_thunks): Likewise.
34302
34303 2015-04-05 Martin Liska <mliska@suse.cz>
34304
34305 PR ipa/65665
34306 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34307 has computed data structure.
34308 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34309
34310 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
34311
34312 * invoke.texi (inline-unit-growth): Increase growth to 20%
34313 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34314
34315 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
34316
34317 PR target/65647
34318 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
34319 value checking.
34320 (lra_rematerialization_iter): New.
34321 * lra.c (lra): Initialize lra_rematerialization_iter.
34322 Stop updating lra_constraint_new_regno_start after switching of
34323 inheritance and rematerialization.
34324 * lra-remat.c (lra_rematerialization_iter): New.
34325 (lra_remat): Add printing pass iteration. Do rematerialization
34326 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34327
34328 2015-04-04 Richard Biener <rguenther@suse.de>
34329
34330 PR tree-optimization/64909
34331 PR tree-optimization/65660
34332 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34333 to take a cost vector for scalar iteration cost.
34334 (vect_get_single_scalar_iteration_cost): Likewise.
34335 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34336 Compute the scalar iteration cost into a cost vector.
34337 (vect_get_known_peeling_cost): Use the scalar cost vector to
34338 account for the cost of the peeled iterations.
34339 (vect_estimate_min_profitable_iters): Likewise.
34340 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34341 Likewise.
34342
34343 2015-04-04 Alan Modra <amodra@gmail.com>
34344
34345 PR target/65576
34346 PR target/65240
34347 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34348 0.0 constant unless TARGET_VSX.
34349 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34350 alternative.
34351
34352 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34353
34354 PR ipa/65654
34355 * ipa-inline-transform.c (inline_call): Skip sanity check to work
34356 around the ICE
34357
34358 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34359
34360 PR ipa/65655
34361 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34362 speculative indirect edges to avoid ordering issue.
34363
34364 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34365
34366 PR ipa/65076
34367 * ipa-inline.c (edge_badness): Add combined size to the denominator.
34368
34369 2015-04-03 Jakub Jelinek <jakub@redhat.com>
34370
34371 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34372 TYPE_ARTIFICIAL on the .omp_data* types.
34373
34374 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34375
34376 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34377 instrumentation thunks.
34378
34379 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34380
34381 * config/i386/i386.c (ix86_expand_call): Avoid nested
34382 PARALLEL in returned call value.
34383
34384 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34385
34386 * lto-cgraph.c (input_cgraph_1): Always link instrumented
34387 assembler name with original one.
34388
34389 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34390
34391 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34392
34393 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34394
34395 Revert parts of r216820.
34396 * config/i386/i386.md (movqi_internal): Correct type calculation
34397 for alternatives 3 and 5.
34398
34399 2015-04-02 Jakub Jelinek <jakub@redhat.com>
34400
34401 PR preprocessor/61977
34402 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34403 predefine __vector/__bool/__pixel macros nor context sensitive
34404 macros for CLK_ASM.
34405 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34406
34407 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
34408
34409 * config/pa/pa.c (pa_output_move_double): Directly handle register
34410 indexed memory operand. Simplify handling of scaled register indexed
34411 memory operands.
34412
34413 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34414
34415 PR driver/65444
34416 * config/i386/linux-common.h (MPX_SPEC): New.
34417 (CHKP_SPEC): Add MPX_SPEC.
34418 * doc/invoke.texi (-fcheck-pointer-boudns): Document
34419 possible issues with '-z bndplt' support in linker.
34420
34421 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34422
34423 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34424 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34425 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34426 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34427 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
34428
34429 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
34430
34431 * config/i386/sync.md (UNSPEC_MOVA): Remove.
34432 (atomic_load<mode>): Change operand 0 predicate to
34433 nonimmediate_operand and fix up the destination when needed.
34434 Use UNSPEC_LDA.
34435 (atomic_loaddi_fpu): Use UNSPEC_LDA.
34436 (atomic_store<mode>): Change operand 1 predicate to
34437 nonimmendate_operand and move the source to register when needed.
34438 Use UNSPEC_STA.
34439 (atomic_store<mode>_1): Use UNSPEC_STA.
34440 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
34441 Fix moves from memory operand. Use UNSPEC_STA.
34442
34443 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34444
34445 * expmed.c (strict_volatile_bitfield_p): Check that the access will
34446 not cross a MODESIZE boundary.
34447 (store_bit_field, extract_bit_field): Added assertions in the
34448 strict volatile bitfields code path.
34449
34450 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
34451
34452 PR target/65624
34453 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
34454 Increase args array size by one to avoid buffer overflow.
34455
34456 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34457
34458 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
34459 split_part.
34460 * ipa-inline.c (edge_badness): Add wrapper penalty.
34461 (sum_callers): Move up.
34462 (inline_small_functions): Set single_caller.
34463 * ipa-inline.h (inline_summary): Add single_caller.
34464 * ipa-split.c (split_function): Set split_part.
34465 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
34466 * cgraph.h (cgraph_node): Add split_part.
34467
34468 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
34469
34470 PR target/58945
34471 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
34472 Do not split operands 0 and operands 2 to halfmode.
34473 (atomic_compare_and_swap<mode>): Update for
34474 atomic_compare_and_swap<dwi>_doubleword changes.
34475
34476 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34477
34478 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
34479 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
34480 no caching is done.
34481
34482 2015-03-31 Martin Liska <mliska@suse.cz>
34483
34484 PR ipa/65557
34485 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
34486 has already filled up function summary.
34487 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34488
34489 2015-03-31 Richard Biener <rguenther@suse.de>
34490
34491 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
34492 of types.
34493
34494 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
34495
34496 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
34497 nested functions.
34498 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
34499 (s390_asm_output_function_label): Adapt to new signature of
34500 s390_function_num_hotpatch_hw
34501 Optimise the code generating assembler output.
34502 Add comments to assembler file.
34503
34504 2015-03-31 Richard Biener <rguenther@suse.de>
34505
34506 PR middle-end/65626
34507 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
34508 of the noreturn call so it is last and cleanup_control_flow_bb
34509 can do the CFG part.
34510
34511 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
34512
34513 PR target/65531
34514 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
34515 same_comdat_group for external symbols.
34516 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
34517 infinite same_comdat_group traversal loop.
34518
34519 2015-03-31 Jakub Jelinek <jakub@redhat.com>
34520
34521 PR plugins/61176
34522 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
34523 automatically to $headers.
34524
34525 2015-03-30 Jakub Jelinek <jakub@redhat.com>
34526
34527 PR ipa/65610
34528 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
34529 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
34530 function.
34531 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
34532 Use it.
34533 * ipa-prop.c (param_type_may_change_p): Likewise.
34534 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
34535 (remove_unused_scope_block_p): Add in_ctor_dtor_block
34536 argument. Before inlining, preserve
34537 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
34538 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
34539 recursive calls.
34540 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
34541
34542 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34543
34544 PR ipa/65076
34545 * ipa-inline.c (edge_badness): Base denominator on callee's
34546 grwoth squared.
34547
34548 2015-03-27 Martin Jambor <mjambor@suse.cz>
34549
34550 PR ipa/65478
34551 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
34552 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
34553 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
34554 node_calling_single_call.
34555 * ipa-cp.c (count_callers): New function.
34556 (set_single_call_flag): Likewise.
34557 (initialize_node_lattices): Count callers and set single_flag_call if
34558 necessary.
34559 (incorporate_penalties): New function.
34560 (good_cloning_opportunity_p): Use it, dump new flags.
34561 (propagate_constants_topo): Set node_within_scc flag if appropriate.
34562 * doc/invoke.texi (ipa-cp-recursion-penalty,
34563 ipa-cp-single-call-pentalty): Document.
34564
34565 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34566
34567 PR ipa/65588
34568 * symtab.c (symtab_node::get_partitioning_class): Register vars
34569 are duplicated.
34570 * varpool.c (symbol_table::output_variables) Do not assemble unefined
34571 decls for non-symbols.
34572
34573 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
34574
34575 PR target/65248
34576 * output.h (default_binds_local_p_2): New.
34577 * varasm.c (default_binds_local_p_2): Renamed to ...
34578 (default_binds_local_p_3): This. Don't return true on protected
34579 data symbol if protected data may be external.
34580 (default_binds_local_p): Use default_binds_local_p_3.
34581 (default_binds_local_p_1): Likewise.
34582 (default_binds_local_p_2): New.
34583 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
34584 default_binds_local_p_2 if TARGET_MACHO is undefined.
34585
34586 2015-03-27 Jakub Jelinek <jakub@redhat.com>
34587
34588 PR target/65593
34589 * config/i386/i386.c (legitimize_pic_address): If base
34590 is SYMBOL_REF or LABEL_REF using %rip addressing, force
34591 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
34592
34593 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34594
34595 PR target/65531
34596 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
34597 comdat groups.
34598
34599 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34600
34601 PR ipa/65600
34602 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
34603 of optimized out indirect call.
34604 (redirect_to_unreachable): Always build symbol table node for
34605 BUILT_IN_UNREACHABLE
34606
34607 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
34608
34609 PR target/65407
34610 * ira-costs.c (record_reg_classes): Process all constraint string
34611 containing 0-9.
34612
34613 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
34614
34615 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
34616 memory_operand.
34617
34618 PR target/65052
34619 * config/c6x/constraints.md (S3): New constraint.
34620 * config/c6x/c6x.md (real_jump): Use it.
34621
34622 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34623
34624 PR middle-end/65595
34625 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
34626 do redirection if the call is not optimized out.
34627
34628 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
34629
34630 PR target/65495
34631 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
34632 (fchkp-check-incomplete-type): Add LTO.
34633 (fchkp-zero-input-bounds-for-main): Likewise.
34634 (fchkp-first-field-has-own-bounds): Likewise.
34635 (fchkp-narrow-bounds): Likewise.
34636 (fchkp-narrow-to-innermost-array): Likewise.
34637 (fchkp-use-static-bounds): Likewise.
34638 (fchkp-use-static-const-bounds): Likewise.
34639 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34640
34641 2015-03-27 Marek Polacek <polacek@redhat.com>
34642
34643 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
34644
34645 2015-03-27 Marek Polacek <polacek@redhat.com>
34646
34647 PR sanitizer/65583
34648 * ubsan.c (ubsan_create_edge): New function.
34649 (instrument_bool_enum_load): Call it.
34650 (instrument_nonnull_arg): Likewise.
34651 (instrument_nonnull_return): Likewise.
34652 (instrument_object_size): Likewise.
34653
34654 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34655
34656 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
34657 auto_vec.
34658
34659 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34660
34661 PR lto/65536
34662 * lto-streamer.h (class lto_location_cache): New.
34663 (struct data_in): Add location_cache.
34664 (lto_input_location): Update prototype.
34665 (stream_input_location_now): New.
34666 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
34667 pointer to location.
34668 (stream_input_location): Update.
34669 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
34670 (warn_odr): Apply location cache before warning.
34671 (lto_input_location): Update prototype.
34672 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
34673 Use stream_input_location_now.
34674 * lto-streamer-in.c (lto_location_cache::current_cache): New static
34675 variable.
34676 (lto_location_cache::cmp_loc): New function.
34677 (lto_location_cache::apply_location_cache): New function.
34678 (lto_location_cache::accept_location_cache): New function.
34679 (lto_location_cache::revert_location_cache): New function.
34680 (lto_location_cache::input_location): New function.
34681 (lto_input_location): Do location caching.
34682 (stream_input_location_now): New function.
34683 (input_eh_region, input_struct_function_base): Use
34684 stream_input_location_now.
34685 (lto_data_in_create): use new.
34686 (lto_data_in_delete): Use delete.
34687 * tree-streamer-in.c (unpack_ts_block_value_fields,
34688 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
34689 lto_input_ts_exp_tree_pointers): Update for cached location api.
34690
34691 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34692
34693 PR ipa/65076
34694 * passes.def: Add pass_nothrow.
34695 * ipa-pure-const.c: (pass_data_nothrow): New.
34696 (pass_nothrow): New.
34697 (pass_nothrow::execute): New.
34698 (make_pass_nothrow): New.
34699 * tree-pass.h (make_pass_nothrow): Declare.
34700
34701 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34702
34703 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
34704 edge to change by speculation resolution or redirection.
34705 (edge_set_predicate): Likewise.
34706 (inline_summary_t::duplicate): Likewise.
34707 (remap_edge_summaries): Likewise.
34708
34709 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34710
34711 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
34712 New macros.
34713 (can_inline_edge_p): Relax option matching for always inline functions.
34714
34715 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
34716
34717 PR target/65561
34718 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
34719 Check operand 4 and operand 0 for equality.
34720 (avx512f_vextract<shuffletype>32x4_1_maskm):
34721 Check operand 6 and operand 0 for equality.
34722 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
34723 for equality.
34724 (vec_extract_hi_<mode>_maskm): Ditto.
34725
34726 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34727
34728 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
34729 dead calls back to live.
34730 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
34731 cross check to ...
34732 (cgraph_node::verify_node): ... here; verify only callee edges,
34733 not caller.
34734 * cif-code.def (CILK_SPAWN): New code.
34735
34736 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34737
34738 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
34739 (edge_set_predicate): Use it to mark unreachable edges.
34740 (inline_summary_t::duplicate): Remove unnecesary code.
34741 (remap_edge_summaries): Likewise.
34742 (dump_inline_summary): Report contains_cilk_spawn.
34743 (compute_inline_parameters): Compute contains_cilk_spawn.
34744 (inline_read_section, inline_write_summary): Stream
34745 contains_cilk_spawn.
34746 * ipa-inline.c (can_inline_edge_p): Do not touch
34747 DECL_STRUCT_FUNCTION that may not be available;
34748 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
34749 remove check for callee_fun->can_throw_non_call_exceptions and
34750 replace it by optimization attribute check; check for flag_exceptions.
34751 * ipa-inline-transform.c (inline_call): Maintain
34752 DECL_FUNCTION_PERSONALITY
34753 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
34754
34755 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34756
34757 PR tree-optimization/65551
34758 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
34759 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
34760
34761 2015-03-26 Richard Biener <rguenther@suse.de>
34762
34763 PR middle-end/65555
34764 * tree-cfg.c (verify_gimple_call): Do not require a call to
34765 have no LHS if it wasn't recognized as control altering yet.
34766
34767 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34768
34769 PR tree-optimization/64715
34770 * passes.def: Add another instance of pass_object_sizes before ccp1.
34771 * tree-object-size.c (pass_object_sizes::execute): In
34772 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
34773 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
34774 __bos result and the computed constant. Remove redundant
34775 checks, obsoleted by gimple_call_builtin_p test.
34776
34777 * var-tracking.c (variable_tracking_main_1): Don't track
34778 variables for targetm.no_register_allocation targets.
34779
34780 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
34781
34782 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
34783 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
34784
34785 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
34786
34787 PR target/65569
34788 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
34789 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
34790 0.0 is correctly setup.
34791 (extenddftf2_internal): Likewise.
34792
34793 2015-03-25 Sebastian Pop <s.pop@samsung.com>
34794
34795 PR tree-optimization/65177
34796 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
34797 (bb_in_bbs): New.
34798 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
34799 edges not adjacent on the path to the original code.
34800
34801 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
34802
34803 PR bootstrap/65537
34804 * doc/install.texi (Building a native compiler): Document new
34805 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
34806 configuration assumes that the host supports the linker plugin.
34807
34808 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
34809
34810 PR target/65508
34811 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
34812 chain for generated call.
34813
34814 2015-03-25 Richard Biener <rguenther@suse.de>
34815
34816 * passes.c (pass_manager::execute_early_local_passes): Guard
34817 execution of pass_chkp_instrumentation_passes with
34818 flag_check_pointer_bounds.
34819 (pass_chkp_instrumentation_passes::gate): Likewise.
34820
34821 2015-03-25 Martin Liska <mliska@suse.cz>
34822
34823 PR tree-optimization/65538
34824 * symbol-summary.h (function_summary::~function_summary):
34825 Relese memory for allocated summaries.
34826 (function_summary::release): New function.
34827
34828 2015-03-25 Jakub Jelinek <jakub@redhat.com>
34829
34830 PR lto/65515
34831 * lto-streamer-out.c (DFS::worklist): New struct.
34832 (DFS::worklist_vec): New data member.
34833 (DFS::next_dfs_num): Remove.
34834 (DFS::DFS): Rewritten using worklist instead of recursion,
34835 using most of code from DFS::DFS_write_tree.
34836 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
34837 pass it to DFS_write_tree calls.
34838 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
34839 quick initial checks push it into worklist_vec and return.
34840
34841 2015-03-25 Richard Biener <rguenther@suse.de>
34842
34843 PR middle-end/65519
34844 * genmatch.c (expr::gen_transform): Re-write to avoid
34845 using gimple_build.
34846
34847 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34848
34849 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
34850
34851 2015-03-25 Bin Cheng <bin.cheng@arm.com>
34852
34853 * config/arm/arm.opt (print_tune_info): New option.
34854 * config/arm/arm.c (arm_print_tune_info): New function.
34855 (arm_file_start): Call arm_print_tune_info.
34856 * config/arm/arm-protos.h (struct tune_params): Add comment.
34857 * doc/invoke.texi (@item -mprint-tune-info): New item.
34858 (-mtune): mention it in ARM Option Summary.
34859
34860 2015-03-25 DJ Delorie <dj@redhat.com>
34861
34862 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
34863 correct clause.
34864
34865 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
34866 Martin Liska <mliska@suse.cz>
34867
34868 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
34869 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
34870 (sem_item::add_type): New function.
34871 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
34872 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
34873 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
34874 (sem_function::equals_wpa): Fix typo.
34875 * ipa-icf.h (sem_item::add_type): New function.
34876 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
34877 order.
34878
34879 2015-03-24 Jakub Jelinek <jakub@redhat.com>
34880
34881 PR tree-optimization/65533
34882 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
34883 with swapped operands, call vect_free_slp_tree on
34884 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
34885 vector.
34886
34887 2015-03-24 Richard Biener <rguenther@suse.de>
34888
34889 PR middle-end/65517
34890 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
34891 for fixup if necessary.
34892
34893 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
34894
34895 * doc/extend.texi (Function Attributes): Add @cindex entries
34896 for all attributes and regularize their format. Delete text
34897 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
34898 information about "eightbit_data", "tiny_data", and "model"
34899 variable attributes to the Variable Attributes section. Fix
34900 some obvious typos and copy-editing issues.
34901 (Variable Attributes, Type Attributes): Likewise add/fix
34902 @cindex entries for all attributes.
34903
34904 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34905
34906 PR target/65523
34907 * tree-chkp.c (chkp_build_returned_bound): Ignore
34908 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
34909
34910 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
34911
34912 PR target/65505
34913 * config/sh/predicates.md (simple_mem_operand,
34914 displacement_mem_operand): Add test for reg.
34915 (short_displacement_mem_operand): Test for displacement_mem_operand
34916 before invoking sh_disp_addr_displacement.
34917 * config/sh/constraints.md (Sdd, Sra): Simplify.
34918 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
34919 Remove redundant displacement_mem_operand tests.
34920
34921 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
34922
34923 PR target/65296
34924 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
34925 the same -mmcu=MCU more than once.
34926
34927 2015-03-23 Jakub Jelinek <jakub@redhat.com>
34928
34929 PR bootstrap/65522
34930 * ipa-devirt.c: Remove duplicate demangle.h include.
34931
34932 PR target/65504
34933 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
34934 on the pseudo.
34935 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
34936 REG_POINTER on *destptr after adjusting it for prologue size.
34937
34938 PR ipa/65521
34939 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
34940 ultimate_alias_target ()->order ints instead of
34941 ultimate_alias_target () pointers.
34942
34943 2015-03-23 Richard Biener <rguenther@suse.de>
34944
34945 PR tree-optimization/65518
34946 * tree-vect-stmts.c (vectorizable_load): Reject single-element
34947 interleaving cases we generate absymal code for.
34948
34949 2015-03-23 Richard Biener <rguenther@suse.de>
34950
34951 PR tree-optimization/65494
34952 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
34953 matches here.
34954 (vect_analyze_slp_instance): But do that here, always and once.
34955
34956 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34957
34958 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
34959 adding T or multiplying by T+1 and subracting T.
34960
34961 2015-03-22 Jeff Law <law@redhat.com>
34962
34963 PR rtl-optimization/64317
34964 * Makefile.in (OBJS): Add gcse-common.c
34965 * gcse.c: Include gcse-common.h
34966 (struct modify_pair_s): Move structure definition to gcse-common.h
34967 (compute_transp): Move function to gcse-common.c.
34968 (canon_list_insert): Similarly.
34969 (record_last_mem_set_info): Break out some code and put it into
34970 gcse-common.c. Call into the new common code.
34971 (compute_local_properties): Pass additional arguments to compute_transp.
34972 * postreload-gcse.c: Include gcse-common.h and df.h
34973 (modify_mem_list_set, blocks_with_calls): New variables.
34974 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
34975 (get_bb_avail_insn): Pass in the expression index too.
34976 (alloc_mem): Allocate memory for the new bitmaps and lists.
34977 (free_mem): Free memory for the new bitmaps and lists.
34978 (insert_expr_in_table): Record a bitmap index for each entry we
34979 add to the table.
34980 (record_last_mem_set_info): Call into common code in gcse-common.c.
34981 (get_bb_avail_insn): If no available insn was found in the requested
34982 BB. If BB has a single predecessor, see if the expression is
34983 transparent in BB and available in that single predecessor.
34984 (compute_expr_transp): New wrapper for compute_transp.
34985 (eliminate_partially_redundant_load): Pass expression's bitmap_index
34986 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
34987 (gcse_after_reload_main): If there are elements in the hash table,
34988 then compute transparency for all the elements in the hash table.
34989 * gcse-common.h: New file.
34990 * gcse-common.c: New file.
34991
34992 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
34993
34994 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
34995 as an adjective.
34996 (System Headers): Likewise.
34997 (Ifdef): Likewise.
34998 (Traditional macros): Likewise.
34999 (Invocation): Likewise.
35000 (Option Index): Likewise.
35001 * doc/cppopts.texi (-M): Likewise.
35002 (-finput-charset): Likewise.
35003 (--help): Likewise.
35004 * doc.invoke.texi (AVR Options): Likewise.
35005 (V850 Options): Likewise.
35006
35007 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
35008
35009 PR ipa/65475
35010 * ipa-devirt.c: Include demangle.h
35011 (odr_type_d): Add field rtti_broken.
35012 (odr_subtypes_equivalent_p): Do not require name to match.
35013 (compare_virtual_tables): Fix typo; if type already has ODR violation,
35014 bypass the tests; be ready for function referneces in vtables that are
35015 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35016 (warn_odr): Give up for nameless types.
35017 (warn_types_mismatch): Report mismatch in mangled names;
35018 report mismatch in anonymous namespaces; look into component types to
35019 give useful error; report when mismatch is dragged in from other ODR
35020 type.
35021 (odr_types_equivalent_p): Match types for being polymorphic; avoid
35022 duplicated diagnostics.
35023 (add_type_duplicate): Reorder checks so more informative ones come
35024 first; fix typo; do not output "the extra base is defined here" when
35025 we did not warn.
35026 (BINFO_N_BASE_BINFOS): Relax sanity check.
35027
35028 2015-03-22 Martin Liska <mliska@suse.cz>
35029 Jakub Jelinek <jakub@redhat.com>
35030
35031 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35032 masks that can potentially include a builtin.
35033 (ix86_add_new_builtins): Introduce fast filter for isa values
35034 that cannot trigger builtin inclusion.
35035
35036 2015-03-22 Martin Liska <mliska@suse.cz>
35037
35038 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35039 (sem_item::update_hash_by_local_refs): Likewise.
35040 (sem_variable::get_hash): Empty line is fixed.
35041 (sem_item_optimizer::execute): Include adding of hash references.
35042 (sem_item_optimizer::update_hash_by_addr_refs): New function.
35043 (sem_item_optimizer::build_hash_based_classes): Use local hash.
35044 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35045 (sem_item::update_hash_by_local_refs): Likewise.
35046
35047 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35048
35049 PR ipa/65502
35050 * ipa-comdats.c (enqueue_references): Walk through thunks.
35051 (ipa_comdats): Likewise.
35052 (set_comdat_group_1): New function.
35053
35054 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35055
35056 PR ipa/65475
35057 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35058 non-polymorphic
35059
35060 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
35061 Gerald Pfeifer <gerald@pfeifer.com>
35062
35063 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35064
35065 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35066 Sandra Loosemore <sandra@codesourcery.com>
35067
35068 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35069 function parameter declaration.
35070 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35071 Update arguments to nios2_adjust_call_address().
35072 (sibcall_internal): Rename from *sibcall.
35073 (sibcall_value_internal): Rename from *sibcall_value.
35074 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35075 (nios2_large_got_address): Add target temp reg parameter.
35076 (nios2_got_address): Adjust call to nios2_large_got_address, add
35077 force_reg around it.
35078 (nios2_load_pic_address): Add target temp reg parameter, replace call
35079 to nios2_got_address with corresponding code.
35080 (nios2_legitimize_constant_address): Update call to
35081 nios2_load_pic_address.
35082 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35083 to use temp reg for PIC loading purposes.
35084 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35085 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35086 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35087
35088 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35089
35090 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35091 usage of "the @option{...}".
35092 (-Wopenmp-simd): Likewise.
35093 (-fsanitize-recover): Likewise.
35094 (-fsanitize-undefined-trap-on-error): Likewise.
35095 (-flto): Likewise.
35096 (tracer-dynamic-coverage-feedback): Likewise.
35097 (reorder-block-duplicate-feedback): Likewise.
35098 (loop-unroll-jam-size): Likewise.
35099 (-B): Likewise.
35100 (-I-): Likewise.
35101 (-mabs=legacy): Likewise.
35102 (-mupper-regs-df): Likewise.
35103 (-mupper-regs-sf): Likewise.
35104 (-mpointers-to-nested-functions): Likewise.
35105
35106 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35107
35108 * doc/extend.texi (Cilk Plus Builtins): Add markup.
35109
35110 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35111
35112 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35113 additional index entries and cross-references.
35114 (-fchkp-check-incomplete-type): Likewise.
35115 (-fchkp-first-field-has-own-bounds): Likewise.
35116 (-fchkp-narrow-to-innermost-array): Likewise.
35117 (-fchkp-use-fast-string-functions): Likewise.
35118 (-fchkp-use-nochk-string-functions): Likewise.
35119 (-fchkp-use-static-const-bounds): Likewise.
35120 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35121 (-fchkp-instrument-marked-only): Likewise.
35122 (-fchkp-use-wrappers): Likewise.
35123 (-static-libmpx): Likewise.
35124 (-static-libmpxwrappers): Likewise.
35125 * doc/extend.texi (bnd_legacy): Likewise.
35126 (bnd_instrument): Likewise.
35127 (bnd_variable_size): Likewise.
35128 (Pointer Bounds Checker builtins): Likewise.
35129
35130 2015-03-21 Tom de Vries <tom@codesourcery.com>
35131
35132 PR tree-optimization/65458
35133 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35134 * cgraph.h (cgraph_node): Add parallelized_function field.
35135 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35136 (input_overwrite_node): Read parallelized_function field.
35137 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35138 parallelized_function on cgraph_node for child_fn.
35139 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35140 Remove include of gt-tree-parloops.h.
35141 (parallelized_functions): Remove static variable.
35142 (parallelized_function_p): Rewrite using parallelized_function field of
35143 cgraph_node.
35144 (create_loop_fn): Remove adding to parallelized_functions.
35145 * Makefile.in (GTFILES): Remove tree-parloops.c
35146
35147 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
35148
35149 PR rtl-optimization/64366
35150 * lra.c (lra_update_insn_regno_info): Consider regs in
35151 CALL_INSN_FUNCTION_USAGE memory.
35152
35153 2015-03-20 Richard Biener <rguenther@suse.de>
35154
35155 PR middle-end/64715
35156 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35157 for type comparison and gcc_checking_assert.
35158 (chrec_fold_plus_poly_poly): Likewise.
35159 (chrec_fold_multiply_poly_poly): Likewise.
35160 (chrec_convert_1): Likewise.
35161 * gimplify.c (gimplify_expr): Remove premature folding of
35162 &X + CST to &MEM[&X, CST].
35163
35164 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35165
35166 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35167 already is final.
35168 (ipa_inline): Recompute inline_failed codes.
35169 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35170 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35171 CIF_FINAL_ERROR.
35172
35173 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
35174
35175 PR rtl-optimization/60851
35176 * recog.c (constrain_operands): Accept a pseudo register before reload
35177 for LRA enabled targets.
35178
35179 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
35180
35181 PR target/65240
35182 * config/rs6000/predicates.md (easy_fp_constant): Remove special
35183 -ffast-math handling that kept non-0 constants live in the RTL
35184 until reload. Remove logic testing the number of instructions it
35185 took to create a constant in a GPR that was never used, due to a
35186 test for soft-float earlier.
35187 (memory_fp_constant): Delete, no longer used.
35188
35189 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35190 alternatives for loading non-0 constants into GPRs for hard
35191 floating point that is no longer needed due to changes in
35192 easy_fp_constant. Add support for loading 0.0 into GPRs.
35193 (mov<mode>_hardfloat32): Likewise.
35194 (mov<mode>_hardfloat64): Likewise.
35195 (mov<mode>_64bit_dm): Likewise.
35196 (movtd_64bit_nodm): Likewise.
35197 (pre-reload move FP constant define_split): Delete define_split,
35198 since it is no longer used.
35199 (extenddftf2_internal): Remove GHF constraints that are not valid
35200 for extenddftf2.
35201
35202 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
35203
35204 PR rtl-optimization/63491
35205 * lra-constraints.c (check_and_process_move): Use src instead of
35206 sreg. Remove some dead code.
35207
35208 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
35209
35210 PR ipa/65380
35211 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35212 (sem_variable::merge): Likewise.
35213
35214 2015-03-19 Martin Liska <mliska@suse.cz>
35215
35216 PR ipa/65465
35217 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35218 all fields of cgraph_thunk_info.
35219
35220 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
35221
35222 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35223 clone instrumented thunks.
35224
35225 2015-03-19 Richard Biener <rguenther@suse.de>
35226
35227 Revert
35228 2015-03-10 Richard Biener <rguenther@suse.de>
35229
35230 PR middle-end/63155
35231 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35232 * tree-ssa-coalesce.c: Include timevar.h.
35233 (attempt_coalesce): Handle graph being NULL.
35234 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35235 Split out abnormal coalescing to ...
35236 (perform_abnormal_coalescing): ... this function.
35237 (coalesce_ssa_name): Perform abnormal coalescing without computing
35238 live/conflict.
35239 (verify_ssa_coalescing_worker): New function.
35240 (verify_ssa_coalescing): Likewise.
35241
35242 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
35243 Jakub Jelinek <jakub@redhat.com>
35244
35245 PR sanitizer/65400
35246 * tsan.c (instrument_gimple): Clear tail call flag on
35247 calls.
35248
35249 2015-03-19 Jakub Jelinek <jakub@redhat.com>
35250
35251 PR sanitizer/65400
35252 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35253 call in the return bb.
35254 (find_split_points): Add RETURN_BB argument, don't call
35255 find_return_bb.
35256 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
35257 if true append TSAN_FUNC_EXIT internal call after the call to
35258 the split off function.
35259 (execute_split_functions): Call find_return_bb here.
35260 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35261 Adjust find_split_points and split_function calls.
35262
35263 2015-03-18 DJ Delorie <dj@redhat.com>
35264
35265 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35266 (iorqi3_virt): Likewise.
35267
35268 2015-03-18 Tom de Vries <tom@codesourcery.com>
35269
35270 * tree-parloops.c (parallelize_loops): Make static.
35271 * tree-parloops.h (parallelize_loops): Remove extern declaration.
35272
35273 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
35274
35275 PR middle-end/64491
35276 Revert:
35277 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
35278
35279 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35280 condition would be removed due to undefined behaviour.
35281
35282 2015-03-18 Martin Liska <mliska@suse.cz>
35283
35284 PR ipa/65432
35285 * cgraph.c (cgraph_node::get_create): Remove unnecessary
35286 xstrdup_for_dump wrapper.
35287 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35288 sem_item::name.
35289 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35290 with xstrdup_for_dump.
35291 (sem_variable::equals): Likewise.
35292 (sem_item_optimizer::read_section): Use symtab_node::name instead of
35293 sem_item::name.
35294 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35295 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35296 symtab_node::asm_name with xstrdup_for_dump.
35297 (congruence_class::dump): Use symtab_node::name instead of
35298 sem_item::name.
35299 * ipa-icf.h (symtab_node::name): Remove.
35300 (symtab_node::asm_name): Likewise.
35301
35302 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35303
35304 PR tree-optimization/65450
35305 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35306 function.
35307 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35308 it instead of duplicate_ssa_name_ptr_info.
35309
35310 PR target/65222
35311 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35312
35313 2015-03-18 Richard Biener <rguenther@suse.de>
35314
35315 * tree-data-ref.h (struct access_matrix): Remove.
35316 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35317 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35318 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35319 (am_vector_index_for_loop): Likewise.
35320 (struct data_reference): Remove access_matrix member.
35321 (DR_ACCESS_MATRIX): Remove.
35322 (lambda_vector_new): Add comment.
35323 (lambda_matrix_new): Use XOBNEWVEC.
35324
35325 2015-03-18 Richard Biener <rguenther@suse.de>
35326
35327 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35328 (pass_ch::execute): Cleanup the CFG only if we did sth.
35329 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35330
35331 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35332
35333 * expmed.c (synth_mult): Use std::swap instead of manually
35334 swapping algorithms.
35335
35336 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35337
35338 PR target/65078
35339 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35340
35341 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
35342
35343 PR target/65296
35344 * config/avr/avr.opt (-nodevicelib): New option.
35345 * doc/invoke.texi (AVR Options): Document it.
35346 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35347 libgcc.a, libc.a, libm.a.
35348 * config/avr/specs.h: Same.
35349 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35350 which don't (directly) depend on the device. Print more help.
35351 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35352 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35353 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35354 case of an error.
35355 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35356 for specs file name.
35357 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35358 * config/avr/avr-mcus.def: Adjust initializers and comments.
35359
35360 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
35361
35362 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35363 DECL_ONE_ONLY to check if decl is one only.
35364 * ipa-split.c (consider_split): Limit splitt of one only functions.
35365
35366 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35367
35368 PR tree-optimization/65427
35369 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35370 functions.
35371 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35372
35373 2015-03-16 Marek Polacek <polacek@redhat.com>
35374
35375 * cgraph.h (add_new_static_var): Remove declaration.
35376 * varpool.c (add_new_static_var): Remove function.
35377
35378 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35379
35380 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35381 instead of vec<tree> * with vec_alloc and release for args.
35382 Adjust all users.
35383
35384 PR middle-end/65431
35385 * omp-low.c (delete_omp_context): Only splay_tree_delete
35386 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35387 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
35388
35389 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
35390
35391 PR sanitizer/64820
35392 * cfgexpand.c (align_base): New function.
35393 (alloc_stack_frame_space): Call it.
35394 (expand_stack_vars): Align prev_frame to be sure
35395 data->asan_vec elements aligned properly.
35396
35397 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
35398
35399 PR middle-end/65409
35400 * expr.c (store_field): Do not do a direct block copy if the source is
35401 a PARALLEL with BLKmode.
35402
35403 2015-03-16 Tom de Vries <tom@codesourcery.com>
35404
35405 PR middle-end/65414
35406 Revert:
35407 2015-03-12 Tom de Vries <tom@codesourcery.com>
35408
35409 PR rtl-optimization/64895
35410 * lra-lives.c (check_pseudos_live_through_calls): Use
35411 actual_call_used_reg_set instead of call_used_reg_set, if available.
35412
35413 2015-03-16 Alan Modra <amodra@gmail.com>
35414
35415 PR target/63150
35416 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35417 Modify Z->r bswapdi splitter to use dest in place of scratch.
35418 In r->Z and Z->r bswapdi splitter rename word_high, word_low
35419 to word1, word2 and rearrange logic to suit.
35420 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35421 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
35422 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35423 Add one '?' on r->r. Modify Z->r splitter to avoid need for
35424 early clobber.
35425
35426 2015-03-14 Jakub Jelinek <jakub@redhat.com>
35427
35428 PR tree-optimization/65369
35429 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
35430 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
35431 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
35432
35433 PR tree-optimization/65418
35434 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
35435 are casts in the first PLUS_EXPR operand, ensure tbias and
35436 *totallowp are in the inner type.
35437
35438 PR rtl-optimization/65401
35439 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
35440 argument. If true, adjust_address_nv of x with big-endian
35441 correction for the mode widening to GET_MODE (y).
35442 (make_field_assignment): Don't do MEM mode widening here.
35443 Use MEM_P instead of GET_CODE == MEM.
35444
35445 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
35446
35447 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
35448 the external decls.
35449
35450 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35451
35452 PR target/64600
35453 * config/arm/arm.c (arm_gen_constant, AND case): Use
35454 ARM_SIGN_EXTEND when constructing AND mask.
35455
35456 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35457
35458 * graph.c (print_graph_cfg): Make function names visible and append
35459 parenthesis to it. Also make groups of basic blocks belonging to the
35460 same function visible.
35461
35462 2015-03-12 Richard Biener <rguenther@suse.de>
35463
35464 PR middle-end/44563
35465 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
35466 to avoid quadratic behavior with inline expansion splitting blocks.
35467 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
35468 with the successor if the predecessor will be merged with it.
35469 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
35470 entry block with its successor.
35471
35472 2015-03-13 Richard Biener <rguenther@suse.de>
35473
35474 PR middle-end/44563
35475 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
35476 (cleanup_tree_cfg_1): Do not call it.
35477 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
35478 (fixup_noreturn_call): Mark the stmt as control altering.
35479 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
35480 here.
35481 (pass_data_fixup_cfg): Produce a dump file.
35482 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
35483 (need_noreturn_fixup): New global.
35484 (pass_dominator::execute): Fixup queued noreturn calls.
35485 (optimize_stmt): Queue calls that became noreturn for fixup.
35486 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
35487 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
35488 (el_to_fixup): New global.
35489 (eliminate_dom_walker::before_dom_childre): Queue calls that
35490 became noreturn for fixup.
35491 (eliminate): Fixup queued noreturn calls.
35492 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
35493 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
35494 (substitute_and_fold_dom_walker::before_dom_children): Queue
35495 alls that became noreturn for fixup.
35496 (substitute_and_fold): Fixup queued noreturn calls.
35497
35498 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
35499
35500 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
35501 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
35502 are building; for methods check ODR type of class they belong to if
35503 they may lead to a polymorphic call.
35504 (sem_function::compare_polymorphic_p): Be bit smarter about testing
35505 when function may lead to a polymorphic call.
35506 (sem_function::compare_type_list): Remove.
35507 (sem_variable::equals): Update use of compatible_types_p.
35508 (sem_variable::parse_tree_refs): Remove.
35509 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
35510 cdtor.
35511 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
35512 matching here.
35513 (func_checker::compatible_polymorphic_types_p): Break out from ...
35514 (unc_checker::compatible_types_p): ... here.
35515 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
35516 Declare.
35517 (unc_checker::compatible_types_p): Update.
35518 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
35519 Remove.
35520
35521 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35522
35523 PR rtl-optimization/65235
35524 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
35525 When first element of vec_concat is const_int, calculate its size
35526 using second element.
35527
35528 2015-03-12 Richard Biener <rguenther@suse.de>
35529
35530 PR middle-end/65270
35531 * fold-const.c (operand_equal_p): Fix ordering of resetting
35532 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
35533
35534 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
35535
35536 * config/s390/s390.c (s390_reorg): Move code to output nops after label
35537 to s390_reorg ().
35538 (s390_asm_output_function_label): Likewise.
35539 * config/s390/s390.c (s390_asm_output_function_label):
35540 Fix function label alignment with -mhtopatch.
35541 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
35542 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
35543 ("nop_2_byte"): New define_insn.
35544 ("nop_4_byte"): Likewise.
35545 ("nop_6_byte"): Likewise.
35546 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
35547 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
35548
35549 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35550
35551 PR target/65103
35552 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
35553 register.
35554
35555 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35556
35557 PR target/65044
35558 * toplev.c (process_options): Restrict Pointer Bounds Checker
35559 usage with Address Sanitizer.
35560
35561 2015-03-12 Richard Biener <rguenther@suse.de>
35562
35563 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
35564 to split on.
35565 * omp-low.c (expand_omp_taskreg): Split block before removing
35566 the stmt.
35567 (expand_omp_target): Likewise.
35568 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
35569 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
35570 stmt to split_block.
35571
35572 2015-03-12 Tom de Vries <tom@codesourcery.com>
35573
35574 PR rtl-optimization/64895
35575 * lra-lives.c (check_pseudos_live_through_calls): Use
35576 actual_call_used_reg_set instead of call_used_reg_set, if available.
35577
35578 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35579
35580 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
35581 (cgraph_node::remove): Likewise.
35582 (cgraph_node::get_untransformed_body): Likewise.
35583 * varpool.c (varpool_node::remove): Likewise.
35584 (varpool_node::get_constructor): Add sanity check.
35585
35586 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
35587
35588 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
35589 old GCC versions.
35590 (-fabi-compat-version): Likewise.
35591 (-ffriend-injection): Likewise.
35592 (-Wdeclaration-after-statement): Likewise.
35593 (-fomit-frame-pointer): Likewise.
35594 (-ftree-coalesce-inlined-vars): Likewise.
35595 (-fvisibility=): Likewise.
35596 * doc/extend.texi (Typeof): Likewise.
35597 (Zero Length): Likewise.
35598 (Escaped Newlines): Likewise.
35599 (Compound Literals): Likewise.
35600 (Function Attributes): Likewise.
35601 (Label Attributes): Likewise.
35602 (Type Attributes): Likewise.
35603 (Function Names): Likewise.
35604 (Other Builtins): Likewise.
35605 (Function Specific Option Pragmas): Likewise.
35606 (C++ Interface): Likewise.
35607
35608 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
35609
35610 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
35611
35612 2015-03-11 Marek Polacek <polacek@redhat.com>
35613
35614 PR tree-optimization/65388
35615 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
35616
35617 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35618
35619 PR target/65296
35620 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
35621 * configure: Regenerate.
35622 * config.in: Regenerate.
35623 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
35624 [-mn-flash]: Document it.
35625 [__AVR_ARCH__]: Document avrtiny.
35626
35627 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
35628 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
35629 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
35630
35631 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35632
35633 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
35634
35635 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
35636
35637 PR target/65242
35638 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
35639 allow reloads of PLUS in floating point/VSX registers.
35640
35641 2015-03-11 Junmo Park <junmoz.park@samsung.com>
35642
35643 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
35644 crypto_sha256_fast.
35645 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
35646
35647 2015-03-11 Richard Biener <rguenther@suse.de>
35648
35649 PR tree-optimization/65310
35650 * tree-sra.c (build_ref_for_offset): Also preserve larger
35651 alignment.
35652
35653 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
35654
35655 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
35656
35657 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35658
35659 PR target/65368
35660 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
35661 new define_expand.
35662 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
35663
35664 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35665
35666 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
35667 (sem_function::equals_wpa): ... here.
35668
35669 2015-03-10 Marek Polacek <polacek@redhat.com>
35670 Jakub Jelinek <jakub@redhat.com>
35671
35672 PR sanitizer/65367
35673 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
35674 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
35675 separately.
35676
35677 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35678
35679 PR target/65286
35680 * config/rs6000/t-linux: For powerpc64* target set
35681 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
35682
35683 2015-03-10 Richard Biener <rguenther@suse.de>
35684
35685 PR middle-end/44563
35686 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
35687 for redirect_all_calls.
35688
35689 2015-03-10 Marek Polacek <polacek@redhat.com>
35690
35691 * gdbinit.in (pcfun): Define and document.
35692
35693 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
35694
35695 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
35696 of libgomp-plugin.h.
35697 (find_target_compiler): Support a case when the path to gcc is
35698 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
35699 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
35700 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
35701 libgomp-plugin.h.
35702 (main): Use GCC_INSTALL_NAME as target_driver_name.
35703 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
35704 define.
35705 (mkoffload.o): Remove obsolete include path and defines.
35706 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
35707
35708 2015-03-10 Richard Biener <rguenther@suse.de>
35709
35710 PR middle-end/63155
35711 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35712 * tree-ssa-coalesce.c: Include timevar.h.
35713 (attempt_coalesce): Handle graph being NULL.
35714 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35715 Split out abnormal coalescing to ...
35716 (perform_abnormal_coalescing): ... this function.
35717 (coalesce_ssa_name): Perform abnormal coalescing without computing
35718 live/conflict.
35719 (verify_ssa_coalescing_worker): New function.
35720 (verify_ssa_coalescing): Likewise.
35721
35722 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35723
35724 PR target/65296
35725 * config.gcc (extra_options) [avr]: Remove.
35726 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
35727 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
35728 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
35729
35730 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
35731 (-mmcu=): Add Var and MissingArgError properties.
35732 (-march=): Remove.
35733 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
35734 * config/avr/t-multilib: Regenerate.
35735 * config/avr/specs.h: New file.
35736 * config/avr/driver-avr.c: New file.
35737 * config/avr/genopt.sh: Remove file.
35738 * config/avr/avr-tables.opt: Remove file.
35739 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
35740 * config/avr/avr-c.c: Same.
35741 * avr-arch.h: Same.
35742 (avr_current_device): Remove proto.
35743 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
35744 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
35745 (EXTRA_SPEC_FUNCTIONS): Define.
35746 (avr_devicespecs_file): New specs function proto.
35747 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
35748 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
35749 (avr_current_device): Remove definition and usage.
35750 (avr_set_core_architecture): New static function.
35751 (avr_option_override): Use it.
35752 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
35753 (mcu_name): New static array.
35754 (comparator, avr_archs_str, avr_mcus_str): New static functions.
35755 (avr_inform_devices, avr_inform_core_architectures): New functions.
35756 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
35757 (avrlibc.h) [WITH_AVRLIBC]: Include.
35758 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
35759 (print_mcu): Rewrite from scratch.
35760 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
35761 Forward to avr-specific specs defined in device-specs file.
35762 * config/avr/t-avr (driver-avr.o): New rule.
35763 (avr-devices.o): Depend on avr-arch.h.
35764 (avr-mcus): No more depend on avr-tables.opt.
35765 (avr-tables.opt): Remove rule.
35766 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
35767
35768 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35769
35770 * c-family/c.opt (fchkp-use-wrappers): New.
35771 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
35772 (chkp_wrap_function): New.
35773 (chkp_build_instrumented_fndecl): Support wrapped
35774 functions.
35775 * doc/invoke.texi (-fcheck-pointer-bounds): New.
35776 (-fchkp-check-incomplete-type): New.
35777 (-fchkp-first-field-has-own-bounds): New.
35778 (-fchkp-narrow-bounds): New.
35779 (-fchkp-narrow-to-innermost-array): New.
35780 (-fchkp-optimize): New.
35781 (-fchkp-use-fast-string-functions): New.
35782 (-fchkp-use-nochk-string-functions): New.
35783 (-fchkp-use-static-bounds): New.
35784 (-fchkp-use-static-const-bounds): New.
35785 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
35786 (-fchkp-check-read): New.
35787 (-fchkp-check-write): New.
35788 (-fchkp-store-bounds): New.
35789 (-fchkp-instrument-calls): New.
35790 (-fchkp-instrument-marked-only): New.
35791 (-fchkp-use-wrappers): New.
35792 (-static-libmpx): New.
35793 (-static-libmpxwrappers): New.
35794
35795 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35796
35797 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
35798 (CHKP_SPEC): Add wrappers library.
35799 * c-family/c.opt (static-libmpxwrappers): New.
35800
35801 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35802
35803 * config/i386/linux-common.h (LIBMPX_LIBS): New.
35804 (LIBMPX_SPEC): New.
35805 (CHKP_SPEC): New.
35806 * gcc.c (CHKP_SPEC): New.
35807 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
35808 * c-family/c.opt (static-libmpx): New.
35809
35810 2015-03-10 Richard Biener <rguenther@suse.de>
35811
35812 PR middle-end/44563
35813 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
35814 for compare_type.
35815 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
35816 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
35817 (cgraph_add_edge_to_call_site_hash): Likewise.
35818 (cgraph_node::get_edge): Likewise.
35819 (cgraph_edge::set_call_stmt): Likewise.
35820 (cgraph_edge::remove_caller): Likewise.
35821
35822 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
35823
35824 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
35825 (callee_saved_gpr_regs_size): ... this.
35826 (callee_saved_regs_first_regno): Rename to ...
35827 (callee_saved_first_gpr_regno): ... this.
35828 (callee_saved_regs_last_regno) Rename to ...
35829 (callee_saved_last_gpr_regno): ... this.
35830 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
35831 variables.
35832 (nds32_initial_elimination_offset): Likewise.
35833 (nds32_expand_prologue): Likewise.
35834 (nds32_expand_epilogue): Likewise.
35835 (nds32_expand_prologue_v3push): Likewise.
35836 (nds32_expand_epilogue_v3pop): Likewise.
35837 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
35838 Adjust renamed variables.
35839 (nds32_output_stack_pop): Likewise.
35840
35841 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
35842
35843 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
35844 code in comment.
35845
35846 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35847
35848 PR rtl-optimization/65321
35849 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
35850 than shift mode.
35851 * var-tracking.c (use_narrower_mode): Likewise.
35852
35853 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35854
35855 PR tree-optimization/65355
35856 * varasm.c (notice_global_symbol): Do not produce RTL.
35857 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
35858 anchor.
35859 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
35860 check for section anchors.
35861
35862 2015-03-10 Alan Modra <amodra@gmail.com>
35863
35864 PR target/65286
35865 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
35866 to be single-arch by default. Set cpu_is_64bit for powerpc64
35867 given --with-cpu=native.
35868 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
35869 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
35870 and powerpc64le.
35871 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
35872 rs6000_isa_flags rather than TARGET_64BIT.
35873
35874 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
35875 Kaz Kojima <kkojima@gcc.gnu.org>
35876
35877 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
35878
35879 2015-03-09 Jakub Jelinek <jakub@redhat.com>
35880
35881 PR lto/65361
35882 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
35883 on a TREE_BINFO, instead use BINFO_TYPE.
35884
35885 2015-03-09 Richard Biener <rguenther@suse.de>
35886
35887 PR middle-end/65270
35888 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
35889 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
35890 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
35891 of that. When comparing dereferences compare alignment.
35892 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
35893
35894 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35895
35896 * ipa-inline-analysis.c (check_callers): Check
35897 node->can_remove_if_no_direct_calls_and_refs_p.
35898 (growth_likely_positive): Reorganize to call
35899 can_remove_if_no_direct_calls_p later.
35900 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
35901 will_be_removed_from_program_if_no_direct_calls_p): Add
35902 will_inline parameter.
35903 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
35904 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
35905 Handle inliner case correctly.
35906
35907 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
35908
35909 PR tree-optimization/63743
35910 * cfgexpand.c (reorder_operands): Also reorder if only second operand
35911 had its definition forwarded by TER.
35912
35913 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
35914
35915 PR lto/65316
35916 * ipa-utils.h (types_odr_comparable): Add strict argument.
35917 * ipa-devirt.c: Fix whitespace;
35918 (odr_hasher): Remove.
35919 (odr_name_hasher, odr_vtable_hasher): New hashers.
35920 (can_be_name_hashed_p): New predicate.
35921 (hash_type_name): remove.
35922 (hash_odr_name): New.
35923 (odr_name_hasher::hash): new.
35924 (can_be_vtable_hashed_p): New.
35925 (hash_odr_vtable): New.
35926 (odr_vtable_hasher::hash): New.
35927 (types_same_for_odr): Add strict parameter.
35928 (types_odr_comparable): Likewise.
35929 (odr_name_hasher::equal): New.
35930 (odr_vtable_hasher::equal): New.
35931 (odr_name_hasher::remove): New.
35932 (odr_hash_type): Change to hash_table<odr_name_hasher>.
35933 (odr_vtable_hash_type): New.
35934 (odr_vtable_hash): New.
35935 (odr_subtypes_equivalent_p): Do strict comparsion.
35936 (add_type_duplicate): Merge type names; cleanup; avoid type
35937 duplicates.
35938 (register_odr_type): Initialize vtable hash.
35939 (build_type_inheritance_graph): Likewise
35940 (get_odr_type): Reorg to use two hashes.
35941 (dump_possible_polymorphic_call_targets): Move sanity check after debug
35942 output.
35943 (ipa_devirt): Dump type_inheritance_graph.
35944 (types_same_for_odr): Add strict mode.
35945
35946 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35947
35948 PR ipa/65334
35949 * cgraph.h (symtab_node): Add definition_alignment,
35950 can_increase_alignment_p and increase_alignment.
35951 * symtab.c (symtab_node::can_increase_alignment_p,
35952 increase_alignment_1, symtab_node::increase_alignment,
35953 symtab_node::definition_alignment): New.
35954 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
35955 can_increase_alignment_p.
35956 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
35957 * tree-vect-stmts.c (ensure_base_align): Likewise.
35958 * varasm.c (function_section_1): Use definition_alignment.
35959 (assemble_start_function): Likewise.
35960 (emit_local): likewise.
35961 (build_constant_desc): Likewsie.
35962 (output_constant_def_contents): Likewise.
35963 (place_block_symbol): Likewise.
35964 (output_object_block): Likewise.
35965
35966 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35967
35968 PR ipa/65316
35969 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
35970 when outputting debug.
35971
35972 2015-03-07 Marek Polacek <polacek@redhat.com>
35973 Martin Uecker <uecker@eecs.berkeley.edu>
35974
35975 PR sanitizer/65280
35976 * doc/invoke.texi: Update description of -fsanitize=bounds.
35977
35978 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
35979
35980 * tree-ssa-phiopt.c (neg_replacement): Remove.
35981 (tree_ssa_phiopt_worker): Remove negate optimization.
35982
35983 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
35984
35985 PR ipa/65302
35986 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
35987
35988 2015-03-06 Richard Biener <rguenther@suse.de>
35989
35990 PR middle-end/64928
35991 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
35992 and liveout_obstack members.
35993 (calculate_live_on_exit): Remove.
35994 (calculate_live_ranges): Change declaration.
35995 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
35996 (new_tree_live_info): Adjust.
35997 (calculate_live_ranges): Delete livein when not wanted.
35998 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
35999 Deal with partly deleted live info.
36000 (loe_visit_block): Remove temporary bitmap by using
36001 bitmap_ior_and_compl_into.
36002 (live_worklist): Adjust accordingly.
36003 (calculate_live_on_exit): Make static.
36004 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36005 we do not need livein.
36006
36007 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
36008
36009 * real.c (real_from_string): Fix typo in assertion.
36010
36011 2015-03-06 Alex Velenko <alex.velenko@arm.com>
36012
36013 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36014 the patch.
36015
36016 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36017
36018 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36019
36020 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
36021
36022 PR target/64342
36023 * lra-assigns.c (find_hard_regno_for): Rename to
36024 find_hard_regno_for_1. Add a new parameter.
36025 (find_hard_regno_for): New function using find_hard_regno_for_1.
36026
36027 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36028
36029 PR rtl-optimization/65067
36030 * expmed.c (store_bit_field, extract_bit_field): Reworked the
36031 strict volatile bitfield handling.
36032
36033 2015-03-05 Martin Liska <mliska@suse.cz>
36034
36035 PR ipa/65318
36036 * ipa-icf.c (sem_variable::equals): Compare variables types.
36037
36038 2015-03-05 Richard Henderson <rth@redhat.com>
36039
36040 PR target/65121
36041 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36042 correctly check weak symbol binding.
36043
36044 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
36045
36046 PR middle-end/65315
36047 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36048 needed alignment.
36049
36050 2015-03-05 Martin Liska <mliska@suse.cz>
36051
36052 * ipa-inline.c (inline_small_functions): Set default value to
36053 prevent warning during bootstrap.
36054 * tree.h: Add pragma guard that ignores false positives during
36055 bootstrap.
36056
36057 2015-03-05 Richard Biener <rguenther@suse.de>
36058
36059 PR tree-optimization/65310
36060 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36061 Properly preserve alignment of the base of the access.
36062
36063 2015-03-05 Richard Biener <rguenther@suse.de>
36064
36065 PR ipa/65270
36066 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36067 Compare dependence info.
36068
36069 2015-03-05 Richard Biener <rguenther@suse.de>
36070
36071 PR middle-end/65233
36072 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36073 tree-into-ssa.h.
36074 (walk_ssa_copies): Revert last chage. Instead do not walk
36075 SSA names registered for SSA update.
36076
36077 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36078
36079 PR ipa/65270
36080 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36081 vtable references for their containing type.
36082 (sem_function::equals_wpa): Compare TYPE_RESTRICT
36083 and type attributes.
36084
36085 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
36086
36087 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36088 before negating it.
36089 * stor-layout.c (finalize_record_size): Revert latest change.
36090
36091 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
36092
36093 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36094
36095 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36096
36097 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36098 for correct comdat handling.
36099 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36100 Likewise.
36101 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36102 (used_from_object_file_p_worker): Remove.
36103 (cgraph_node::only_called_directly_or_alised): Add
36104 used_from_object_file_p.
36105 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36106 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36107 can_remove_if_no_direct_calls_and_refs_p.
36108
36109 2015-03-04 Nick Clifton <nickc@redhat.com>
36110
36111 * config/rl78/rl78.h (enum reg_class): Remove real registers from
36112 General register class.
36113 * config/rl78/rl78-real.md: Replace general register constraints
36114 with real+virtual register constraints.
36115
36116 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36117
36118 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36119 from checking for -mhtm option.
36120
36121 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36122
36123 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36124 (struct ipa_sra_check_caller_data): Add has_thunk field.
36125 (ipa_sra_check_caller): Check for thunk.
36126 (ipa_sra_preliminary_function_checks): Give up on function with
36127 thunks.
36128 (ipa_early_sra): Use call_for_symbol_and_aliases.
36129
36130 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
36131
36132 PR target/65249
36133 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36134 called for __stack_chk_guard symbol.
36135
36136 2015-03-03 DJ Delorie <dj@redhat.com>
36137
36138 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36139 inc/dec.
36140 (*addhi3_real): Likewise.
36141 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36142 pattern to match incrementing memory.
36143 * config/rl78/predicates.md (rl78_1_2_operand): New.
36144 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36145 it's the same and only mem.
36146 (rl78_alloc_physical_registers_op2): If there's effectively only
36147 one MEM, transcode it into HL.
36148 (rl78_far_p): Reject addresses that aren't legitimate.
36149
36150 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36151
36152 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36153 negating it.
36154
36155 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36156
36157 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36158
36159 Implement call0 ABI for xtensa
36160 * config/xtensa/constraints.md ("a" constraint): Include stack
36161 pointer in case of call0 ABI.
36162 ("q" constraint): Make empty in case of call0 ABI.
36163 ("D" constraint): Include stack pointer in case of call0 ABI.
36164 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36165 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36166 prototypes.
36167 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36168 variable.
36169 (xtensa_regno_to_class): Make it a local variable in the
36170 function xtensa_regno_to_class.
36171 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36172 macro, function prototype and implementation.
36173 (reg_nonleaf_alloc_order): Make it a local variable in the
36174 function order_regs_for_local_alloc.
36175 (xtensa_conditional_register_usage): New function.
36176 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36177 (xtensa_valid_move): Allow direct moves to stack pointer
36178 register in call0 ABI.
36179 (xtensa_setup_frame_addresses): Only spill register windows in
36180 windowed ABI.
36181 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36182 call0 ABI respectively.
36183 (xtensa_function_arg_1): Only mark a7 register for copying in
36184 windowed ABI.
36185 (xtensa_call_save_reg): New function.
36186 (compute_frame_size): Add space for callee saved register
36187 storage to the frame size in call0 ABI.
36188 (xtensa_expand_prologue): Generate code to set up stack frame
36189 and save callee-saved registers in call0 ABI.
36190 (xtensa_expand_epilogue): New function.
36191 (xtensa_set_return_address): New function.
36192 (xtensa_return_addr): Calculate return address in call0 ABI.
36193 (xtensa_builtin_saveregs): Only mark a7 register for copying and
36194 emit copying code in windowed ABI.
36195 (order_regs_for_local_alloc): Add preferred register allocation
36196 order for non-leaf function in call0 ABI.
36197 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36198 (xtensa_asm_trampoline_template): Add trampoline generation for
36199 call0 ABI.
36200 (xtensa_trampoline_init): Add trampoline initialization for
36201 call0 ABI.
36202 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36203 functions.
36204 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36205 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36206 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36207 ABI call-used registers.
36208 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36209 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36210 call0 ABI.
36211 (REG_CLASS_CONTENTS): Include all registers into the preferred
36212 reload registers set, adjust the set in the
36213 xtensa_conditional_register_usage.
36214 (xtensa_regno_to_class): Drop variable declaration.
36215 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36216 function.
36217 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36218 respectively.
36219 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36220 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36221 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36222 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36223 location in call0 ABI.
36224 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36225 stack adjustment size when handling exception.
36226 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36227 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36228 definitions.
36229 ("return" pattern): Generate ret.n/ret in call0 ABI.
36230 ("epilogue" pattern): Expand epilogue.
36231 ("nonlocal_goto" pattern): Use default in call0 ABI.
36232 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36233 emit eh_set_a0_* depending on ABI.
36234 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36235 ("eh_set_a0_call0", "blockage"): New patterns.
36236
36237 2015-03-03 Martin Liska <mliska@suse.cz>
36238
36239 PR ipa/65287
36240 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36241
36242 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
36243
36244 PR 65138/target
36245 * config/rs6000/rs6000-tables.opt: Regenerate table.
36246
36247 2015-03-03 Renlin Li <renlin.li@arm.com>
36248
36249 * doc/md.texi (@item ^): Change ? into ^.
36250
36251 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
36252
36253 * doc/tm.texi: Regenerated.
36254
36255 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36256
36257 * builtins.c (expand_builtin_return_addr): Add
36258 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36259 surrounding #ifdef.
36260 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36261 definition to 1.
36262 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36263 Likewise.
36264 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36265 undefined.
36266 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36267 paragraph.
36268
36269 2015-03-03 Martin Jambor <mjambor@suse.cz>
36270 Eric Botcazou <ebotcazou@adacore.com>
36271
36272 * tree-sra.c (ipa_sra_check_caller_data): New type.
36273 (has_caller_p): Removed.
36274 (ipa_sra_check_caller): New function.
36275 (ipa_sra_preliminary_function_checks): Use it.
36276
36277 2015-03-03 Martin Liska <mliska@suse.cz>
36278
36279 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36280 instead of if branch.
36281
36282 2015-03-03 Martin Liska <mliska@suse.cz>
36283
36284 PR ipa/65282
36285 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36286
36287 2015-03-23 Jeff Law <law@redhat.com>
36288
36289 PR tree-optimization/65241
36290 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36291 hash table if INSERT is true.
36292
36293 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36294
36295 PR target/65296
36296 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36297
36298 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36299
36300 PR target/64331
36301 * config/avr/avr.c (context.h, tree-pass.h): Include them.
36302 (avr_pass_data_recompute_notes): New static variable.
36303 (avr_pass_recompute_notes): New class.
36304 (avr_register_passes): New static function.
36305 (avr_option_override): Call it.
36306
36307 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36308
36309 Fix various problems with specs file generation.
36310
36311 PR target/65296
36312 * config.gcc (extra_gcc_objs) [avr]: Remove.
36313 * config/avr/driver-avr.c: Remove file.
36314 * config/avr/t-avr (driver-avr.o): Remove rule.
36315 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36316 INCLUDES to build. Depend on TM_H.
36317 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
36318 build warnings. Fix non-matching types and non-existing %-codes.
36319 (tm.h): Include.
36320 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36321 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36322 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36323 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36324 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36325 (LIBGCC_SPEC): Remove definitions.
36326
36327 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36328
36329 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36330 to create a register in testing mode.
36331
36332 2015-03-03 Martin Liska <mliska@suse.cz>
36333 Jan Hubicka <hubicka@ucw.cz>
36334
36335 PR ipa/65263
36336 * cgraph.c (cgraph_node::has_thunk_p): New function.
36337 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36338 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36339 (sem_function::merge): Assert is changed.
36340
36341 2015-03-03 Martin Liska <mliska@suse.cz>
36342 Martin Jambor <mjambor@suse.cz>
36343
36344 PR ipa/65087
36345 * ipa-icf.c (sem_item_optimizer::execute): Change function
36346 return value to boolean.
36347 (sem_item_optimizer::merge_classes): Likewise.
36348 (ipa_icf_driver): Return TODO_remove_functions in case there's
36349 a merge operation processed.
36350 * ipa-icf.h: Change function return value to boolean.
36351
36352 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36353
36354 PR 65138/target
36355 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36356 processor type for 64-bit little endian PowerPC.
36357
36358 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36359 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
36360 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
36361 printing built-in mask so it does not pass NULL pointers.
36362
36363 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36364 -mcpu=powerpc64le.
36365
36366 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
36367
36368 PR target/58158
36369 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36370 !ISA_HAS_FP_CONDMOVE.
36371
36372 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
36373
36374 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36375 reload_completed.
36376
36377 2015-03-02 Ulrich Drepper <drepper@gmail.com>
36378
36379 * doc/invoke.texi (Options for Code Generation Conventions):
36380 Fix URL of DSO paper.
36381
36382 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36383
36384 PR ipa/65130
36385 * ipa-inline.c (check_callers): Looks for recursion.
36386 (inline_to_all_callers): Give up on uninlinable or recursive edges.
36387 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36388 summary of inline clones.
36389 (do_estimate_growth_1): Fix recursion check.
36390
36391 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36392
36393 PR ipa/64988
36394 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36395 comdat groups.
36396
36397 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36398 Aldy Hernandez <aldyh@redhat.com>
36399
36400 PR lto/65276
36401 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36402 when checking TYPE_BINFO.
36403
36404 2015-03-02 Richard Biener <rguenther@suse.de>
36405
36406 PR ipa/65270
36407 * ipa-icf-gimple.c: Include builtins.h.
36408 (func_checker::compare_memory_operand): Compare base alignment.
36409
36410 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36411
36412 PR target/65184
36413 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36414 passed by reference.
36415
36416 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36417
36418 PR target/65183
36419 * tree-chkp.c (chkp_check_lower): Don't check against
36420 zero bounds for already instrumented functions.
36421 (chkp_check_upper): Likewise.
36422 (chkp_fini): Clean pass local data to avoid wrong reusage.
36423
36424 2015-02-28 Martin Liska <mliska@suse.cz>
36425 Jan Hubicka <hubicka@ucw.cz>
36426
36427 * ipa-icf.c (sem_variable::equals): Improve debug output;
36428 get variable constructor.
36429 (sem_variable::parse): Do not filter out too early; give up on
36430 volatile and register vars.
36431 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
36432 variables.
36433 * ipa-icf.h (sem_variable::init): Do not set ctor.
36434 (sem_variable::ctor): Remove.
36435
36436 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
36437
36438 PR middle-end/65233
36439 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
36440
36441 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36442
36443 * ipa-icf.c: Include stor-layout.h
36444 (sem_function::compare_cgraph_references): Rename to ...
36445 (sem_item::compare_cgraph_references): ... this one.
36446 (sem_variable::equals_wpa): New function
36447 (sem_variable::equals): Do not check stuff already verified by
36448 equals_wpa.
36449 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
36450 * ipa-icf.h (sem_item): Add compare_cgraph_references.
36451 (sem_function): Remove compare_cgraph_references.
36452 (sem_variable): Turns equals_wpa into non-inline.
36453
36454 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36455
36456 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
36457 (sem_item::add_expr): New function.
36458 (sem_function::hash_stmt): Handle operands of most statements.
36459 (sem_variable::get_hash): Hash the actual constructor.
36460 * ipa-icf.h (sem_item): Add add_expr.
36461 (sem_function): Update prototype of hash_stmt
36462
36463 2015-02-28 Martin Liska <mliska@suse.cz>
36464 Jan Hubicka <hubicka@ucw.cz>
36465
36466 PR ipa/65245
36467 * ipa-icf-gimple.c (func_checker::compare_function_decl):
36468 Remove.
36469 (func_checker::compare_variable_decl): Skip symtab vars.
36470 (func_checker::compare_cst_or_decl): Update.
36471 * ipa-icf.c (sem_function::parse): Do not consider aliases.
36472 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
36473 use correct symtab predicates.
36474 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
36475 (sem_variable::parse): Update comment.
36476 (sem_item_optimizer::build_graph): Consider ultimate aliases
36477 for references.
36478
36479 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36480
36481 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
36482 of OBJ_TYPE_REF.
36483
36484 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36485
36486 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
36487 (sem_variable::merge) Likewise.
36488
36489 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36490
36491 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
36492 target; also match flag_ipa_devirt.
36493
36494 2015-03-01 Martin Liska <mliska@suse.cz>
36495 Jan Hubicka <hubicka@ucw.cz>
36496
36497 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
36498 Validate variable alignment.
36499 * ipa-icf.c (sem_function::equals_private): Be more precise
36500 about non-common function attributes.
36501 (sem_variable::equals): Likewise.
36502
36503 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36504
36505 PR ipa/65237
36506 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
36507 across COMDAT group boundary.
36508
36509 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36510
36511 PR ipa/65232
36512 * ipa-icf.c (clear_decl_rtl): New function.
36513 (sem_function::merge): Clear RTL before forming alias.
36514 (sem_variable::merge): Clear RTL before forming alias.
36515
36516 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36517
36518 PR ipa/65236
36519 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
36520
36521 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
36522
36523 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
36524 to neon_to_gp<q>.
36525
36526 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36527
36528 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
36529 a typo in the description.
36530
36531 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36532
36533 PR target/64317
36534 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36535 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36536 * lra-constraints.c: Include "params.h".
36537 (EBB_PROBABILITY_CUTOFF): Use
36538 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
36539 (lra_inheritance): Use '<' instead of '<=' for
36540 EBB_PROBABILITY_CUTOFF.
36541 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
36542 Document change.
36543
36544 2015-02-27 Martin Liska <mliska@suse.cz>
36545
36546 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
36547 vector length condition.
36548
36549 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
36550
36551 * doc/extend.texi (x86 transactional memory intrinsics):
36552 Reorganize discussion of _xbegin. Clarify that the return
36553 value is a bit mask. Expand example and move to end of section.
36554
36555 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36556 Aldy Hernandez <aldyh@redhat.com>
36557
36558 PR rtl-optimization/65220
36559 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
36560
36561 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36562
36563 PR target/65032
36564 * lra-remat.c (update_scratch_ops): New.
36565 (do_remat): Call it.
36566 * lra.c (lra_register_new_scratch_op): New. Take code from ...
36567 (remove_scratches): ... here.
36568 * lra-int.h (lra_register_new_scratch_op): New prototype.
36569
36570 2015-02-27 Marek Polacek <polacek@redhat.com>
36571
36572 PR c/65040
36573 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
36574 -Wformat-signedness anymore.
36575
36576 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36577
36578 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
36579 function.
36580 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
36581
36582 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36583
36584 * config/s390/s390.c (enum s390_builtin):
36585 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
36586 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
36587 (s390_init_builtins): Generate new builtin functions.
36588 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
36589 (s390_sfpc, s390_efpc): New pattern definitions.
36590
36591 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36592
36593 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
36594 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
36595 (s390_builtin_decls): New array.
36596 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
36597 (s390_builtin_decl): New function.
36598 (TARGET_BUILTIN_DECL): Define macro.
36599
36600 2015-02-27 Richard Biener <rguenther@suse.de>
36601
36602 PR middle-end/63175
36603 * builtins.c (get_object_alignment_2): Make sure to re-apply
36604 the ANDed mask after recursing to its operand gets us a new
36605 misalignment bit position.
36606
36607 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
36608 Martin Liska <mliska@suse.cz>
36609
36610 PR bootstrap/65150
36611 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
36612 Use address_matters_p.
36613 (redirect_all_callers, set_addressable): New functions.
36614 (sem_function::merge): Reorganize and fix merging issues.
36615 (sem_variable::merge): Likewise.
36616 (sem_variable::compare_sections): Remove.
36617 * common.opt (fmerge-all-constants, fmerge-constants): Remove
36618 Optimization flag.
36619 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
36620 redirect them.
36621 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
36622 decl is used.
36623 (address_matters_1): New function.
36624 (symtab_node::address_matters_p): New function.
36625 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
36626 check for merged flag.
36627 * cgraph.h (address_matters_p): Declare.
36628 (symtab_node::address_taken_from_non_vtable_p): Remove.
36629 (symtab_node::address_can_be_compared_p): New method.
36630 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
36631 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
36632 Remove.
36633 (comdat_can_be_unshared_p_1) Use address_matters_p.
36634 (update_vtable_references): Fix formating.
36635 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
36636 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
36637 * cgraphclones.c: Preserve merged and icf_merged flags.
36638
36639 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
36640
36641 * doc/extend.texi (Function Attributes): Fix spelling and typos.
36642 (Label Attributes): Likewise.
36643 (Cilk Plus Builtins): Likewise.
36644 (ARC SIMD Built-in Functions): Likewise.
36645 (ARM C Language Extensions (ACLE)): Likewise.
36646 (PowerPC Built-in Functions): Likewise.
36647 (PowerPC Hardware Transactional Memory Built-in Functions):
36648 Likewise.
36649
36650 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36651
36652 PR tree-optimization/65216
36653 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
36654 new stmt and new SSA_NAME for lhs whenever the arguments have
36655 changed and weren't just swapped. Fix comment typo.
36656
36657 PR tree-optimization/65215
36658 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
36659 for PDP endian targets.
36660 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
36661 Fix up formatting issues.
36662 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
36663 size is smaller than the original, adjust MEM_REF offset by the
36664 difference of sizes. Use is_gimple_mem_ref_addr instead of
36665 is_gimple_min_invariant test to avoid adding address temporaries.
36666
36667 2015-02-26 Martin Liska <mliska@suse.cz>
36668 Jan Hubicka <hubicka@ucw.cz>
36669
36670 PR ipa/64693
36671 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
36672 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
36673 (sem_item_optimizer::process_cong_reduction): Include division by
36674 sensitive references.
36675 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
36676 * ipa-ref.c (ipa_ref::address_matters_p): New function.
36677 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
36678
36679 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
36680
36681 PR target/65192
36682 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
36683 Remove.
36684 * config/avr/avr.c: Same.
36685 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
36686 Refuse any constant address not in 0..0xbf.
36687 * config/avr/avr.md (*mov<mode>, *movsf): Remove
36688 tiny_valid_direct_memory_access_range from insn conditions.
36689 (mov<mode>): Don't special-case expansion of avrtiny addresses.
36690
36691 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
36692
36693 PR target/61142
36694 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
36695 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
36696 * config/sh/predicates.md (const_logical_operand): New predicate.
36697 * config/sh/sh.md: Add new peephole2 patterns.
36698
36699 2015-02-26 Marek Polacek <polacek@redhat.com>
36700
36701 PR ipa/65008
36702 * ipa-inline.c (early_inliner): Recompute inline parameters.
36703
36704 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36705
36706 PR target/65171
36707 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
36708 instructions with TImode operands are included in the analysis.
36709
36710 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36711
36712 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
36713 of an EDGE_FSM_THREAD.
36714
36715 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
36716
36717 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
36718
36719 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
36720
36721 PR debug/46102
36722 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
36723
36724 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36725
36726 PR tree-optimization/65048
36727 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
36728 (thread_through_all_blocks): Call valid_jump_thread_path.
36729 Remove invalid FSM jump-thread paths.
36730
36731 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36732
36733 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
36734 (ipa_write_optimization_summaries): Likewise.
36735 * tree-streamer.h: Include data-streamer.h.
36736 (streamer_mode_table): Declare extern variable.
36737 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
36738 * lto-streamer-out.c (lto_output_init_mode_table,
36739 lto_write_mode_table): New functions.
36740 (produce_asm_for_decls): Call lto_write_mode_table when streaming
36741 offloading LTO.
36742 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
36743 (lto_create_simple_input_block): Add mode_table argument to the
36744 lto_input_block constructors.
36745 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
36746 Likewise.
36747 * data-streamer-in.c (string_for_index): Likewise.
36748 * ipa-inline-analysis.c (inline_read_section): Likewise.
36749 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
36750 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
36751 * lto-streamer-in.c (lto_read_body_or_constructor,
36752 lto_input_toplevel_asms): Likewise.
36753 (lto_input_mode_table): New function.
36754 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
36755 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
36756 Use bp_pack_machine_mode.
36757 * real.h (struct real_format): Add name field.
36758 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36759 (class lto_input_block): Add mode_table member.
36760 (lto_input_block::lto_input_block): Add mode_table_ argument,
36761 initialize mode_table.
36762 (struct lto_file_decl_data): Add mode_table field.
36763 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
36764 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
36765 unpack_ts_decl_common_value_fields,
36766 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
36767 * tree-streamer.c (streamer_mode_table): New variable.
36768 * real.c (ieee_single_format, mips_single_format,
36769 motorola_single_format, spu_single_format, ieee_double_format,
36770 mips_double_format, motorola_double_format,
36771 ieee_extended_motorola_format, ieee_extended_intel_96_format,
36772 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
36773 ibm_extended_format, mips_extended_format, ieee_quad_format,
36774 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
36775 decimal_single_format, decimal_double_format, decimal_quad_format,
36776 ieee_half_format, arm_half_format, real_internal_format): Add name
36777 field.
36778 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
36779
36780 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
36781
36782 PR target/65161
36783 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
36784 reordering for selective scheduling.
36785
36786 2015-02-26 Terry Guo <terry.guo@arm.com>
36787
36788 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
36789 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
36790 (arm_arch_no_volatile_ce): Declare new global variable.
36791 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
36792 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
36793 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
36794 (TARGET_NO_VOLATILE_CE): New macro.
36795 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
36796 volatile memory access in IT block
36797
36798 2015-02-25 Kai Tietz <ktietz@redhat.com>
36799
36800 PR tree-optimization/61917
36801 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
36802 that reduc_def_stmt is null.
36803
36804 2015-02-25 Martin Liska <mliska@suse.cz>
36805
36806 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
36807 hard register variables.
36808
36809 2015-02-25 Kai Tietz <ktietz@redhat.com>
36810
36811 PR target/64212
36812 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
36813 (symtab::noninterposable_alias): Likewise.
36814
36815 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
36816
36817 PR target/65167
36818 * config/i386/i386.c (ix86_function_arg_regno_p): Support
36819 bounds registers.
36820 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
36821
36822 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
36823
36824 PR target/64997
36825 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
36826 as split condition; force split via '#' in output pattern.
36827
36828 2015-02-25 Richard Biener <rguenther@suse.de>
36829 Kai Tietz <ktietz@redhat.com>
36830
36831 PR tree-optimization/61917
36832 * tree-vect-loop.c (vectorizable_reduction): Allow
36833 vect_internal_def without reduction to exit graceful.
36834
36835 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36836
36837 PR target/65196
36838 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
36839 only with NONDEBUG_INSN_P.
36840
36841 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
36842
36843 Use variadic macros with avr-log.c.
36844
36845 * config/avr/avr-protos.h (avr_vdump): New prototype.
36846 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
36847 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
36848 * config/avr/avr-log.c: Adjust comments.
36849 (avr_vdump): New function.
36850 (avr_vadump): Pass caller as 2nd argument instead of format string.
36851 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
36852 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
36853
36854 2015-02-25 Jakub Jelinek <jakub@redhat.com>
36855
36856 PR lto/64374
36857 * target.def (target_option_stream_in): New target hook.
36858 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
36859 targetm.target_option.post_stream_in if non-NULL.
36860 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
36861 * doc/tm.texi: Updated.
36862 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
36863 function.
36864 (TARGET_OPTION_POST_STREAM_IN): Redefine.
36865
36866 2015-02-24 Jeff Law <law@redhat.com>
36867
36868 PR target/65117
36869 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
36870 of operand 0 and operand 2.
36871 (zero_cost_loop_end, loop_end): Similarly.
36872
36873 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
36874
36875 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
36876 CXX_MEM_STAT_INFO.
36877
36878 2015-02-24 DJ Delorie <dj@redhat.com>
36879
36880 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
36881 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
36882 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
36883 instead of hardcoding SImode.
36884
36885 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
36886
36887 * omp-low.c (create_omp_child_function): Tag entrypoint
36888 functions with a special attribute.
36889
36890 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
36891
36892 PR target/65058
36893 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
36894
36895 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
36896
36897 PR rtl-optimization/65123
36898 * lra-remat.c (operand_to_remat): Check hard regs in insn
36899 definition too.
36900
36901 2015-02-24 Nick Clifton <nickc@redhat.com>
36902
36903 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
36904 to the assembler.
36905
36906 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
36907
36908 PR libgomp/64625
36909 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
36910 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
36911 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
36912 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
36913 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
36914 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
36915 (BUILT_IN_GOACC_PARALLEL): Specify as
36916 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
36917 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
36918 * builtin-types.def
36919 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36920 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36921 Remove function types.
36922 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
36923 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36924 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36925 New function types.
36926
36927 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
36928
36929 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
36930
36931 2015-02-24 Jakub Jelinek <jakub@redhat.com>
36932
36933 PR tree-optimization/65170
36934 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
36935 if val[1] < 0, clear also val[2] and return 3.
36936
36937 2015-02-24 Alan Modra <amodra@gmail.com>
36938
36939 PR target/65172
36940 * config/rs6000/rs6000.c (get_memref_parts): Only return true
36941 when *base is a reg. Handle nested plus addresses. Simplify
36942 pre_modify test.
36943
36944 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
36945
36946 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
36947 use natural alignment when optimizing for size.
36948
36949 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
36950
36951 PR target/65153
36952 * config/sh/sh.md (movsicc_true+3): Remove peephole.
36953 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
36954 * config/sh/sh.c (replace_n_hard_rtx): Remove.
36955
36956 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
36957
36958 PR fortran/63427
36959 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
36960 too big for a wide_int. Implement missing wrapping operation.
36961
36962 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
36963
36964 PR target/65163
36965 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
36966 instead of const_int 4294901760.
36967
36968 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
36969
36970 * config/avr/t-avr: Fix typo in comment.
36971
36972 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
36973
36974 * doc/rtl.texi (fma): Clarify documentation.
36975
36976 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
36977
36978 PR debug/58123
36979 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
36980 over input_location.
36981
36982 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
36983
36984 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
36985 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
36986 restrict alignments to absolute_biggest_alignment.
36987 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
36988 Define.
36989 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
36990 * doc/tm.texi: Regenerate.
36991 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
36992
36993 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
36994
36995 PR target/64172
36996 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
36997
36998 2015-02-20 Richard Biener <rguenther@suse.de>
36999
37000 PR tree-optimization/65136
37001 * tree-ssa-propagate.c: Include cfgloop.h.
37002 (replace_phi_args_in): Avoid replacing loop latch edge PHI
37003 arguments with constants.
37004
37005 2015-02-20 Jakub Jelinek <jakub@redhat.com>
37006 Martin Liska <mliska@suse.cz>
37007
37008 PR target/63892
37009 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37010 don't try to create_thunk if stdarg_p. If
37011 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37012 redirect_callers if possible.
37013 (sem_item_optimizer::execute): Call unregister_hooks here...
37014 (ipa_icf_driver): ... instead of here.
37015
37016 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37017
37018 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37019 Mark operand 0 as earlyclobber in 2nd alternative.
37020 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37021 Write negated shift amount into QI lowpart operand 0 and use it
37022 in the shift step.
37023 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37024
37025 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37026
37027 * cgraph.h (clone_function_name_1): Declare.
37028 * cgraphclones.c (clone_function_name_1): New function.
37029 (clone_function_name): Use it.
37030 * lto-partition.c: Include "stringpool.h".
37031 (must_not_rename, maybe_rewrite_identifier)
37032 (validize_symbol_for_target): New static functions.
37033 (privatize_symbol_name): Use must_not_rename.
37034 (promote_symbol): Call validize_symbol_for_target.
37035 (lto_promote_cross_file_statics): Likewise.
37036 (lto_promote_statics_nonwpa): Likewise.
37037
37038 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
37039
37040 PR target/64452
37041 * config/avr/avr.md (pushhi_insn): New insn.
37042 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37043
37044 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37045 Jakub Jelinek <jakub@redhat.com>
37046
37047 * tree-streamer.c (preload_common_nodes): Don't preload
37048 TI_VA_LIST* for offloading.
37049 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37050 in_lto_p.
37051
37052 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
37053
37054 * config/pa/pa.c (pa_emit_move_sequence): Always force
37055 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
37056 note on insn.
37057
37058 * config/pa/pa.c (pa_reloc_rw_mask): New function.
37059 (TARGET_ASM_RELOC_RW_MASK): Define.
37060 (pa_cannot_force_const_mem): Revert previous change.
37061
37062 2015-02-19 Martin Jambor <mjmabor@suse.cz>
37063 Jan Hubicka <hubicka@ucw.cz>
37064
37065 PR ipa/65028
37066 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37067 across jump functions.
37068
37069 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
37070
37071 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37072
37073 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
37074
37075 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37076
37077 2015-02-19 Richard Henderson <rth@redhat.com>
37078
37079 PR middle-end/65074
37080 * varasm.c (default_binds_local_p_2): Don't test node->definition;
37081 test DECL_EXTERNAL independent of symtab_node.
37082
37083 2015-02-19 Jakub Jelinek <jakub@redhat.com>
37084
37085 PR lto/65012
37086 * varpool.c (varpool_node::get_constructor): Return early
37087 if this->lto_file_data is NULL.
37088
37089 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37090
37091 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37092 (rank_for_schedule_debug): Update.
37093 (ready_sort): Make static. Move sorting logic to ...
37094 (ready_sort_debug, ready_sort_real): New static functions.
37095 (schedule_block): Sort both debug insns and real insns in preparation
37096 for ready list trimming. Improve debug output.
37097 * sched-int.h (ready_sort): Remove global declaration.
37098
37099 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
37100
37101 * ipa-icf.c (sem_function::equals_private): Adjust.
37102 (sem_function::bb_dict_test): Take a vec<int> * instead of
37103 auto_vec<int>.
37104 * ipa-icf.h (bb_dict_test): Likewise.
37105
37106 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37107
37108 PR gcov-profile/64634
37109 * tree-eh.c (frob_into_branch_around): Fix up typos
37110 in function comment.
37111 (lower_catch): Put eh_seq resulting from EH lowering of
37112 the cleanup sequence after the cleanup rather than before it.
37113
37114 2015-02-18 Tom de Vries <tom@codesourcery.com>
37115
37116 * common.opt (fstdarg-opt): New option.
37117 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37118 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37119 (@item -fstdarg-opt): New item.
37120
37121 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
37122
37123 PR target/65064
37124 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37125 for common symbols.
37126
37127 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37128
37129 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37130 insn-modes.h.
37131 (ALL_HOST_OBJS): Add mkoffload.o.
37132 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37133
37134 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
37135
37136 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37137 (compare_virtual_tables): Be smarter about skipping typeinfos;
37138 do sane output on virtual table table mismatch.
37139 (warn_odr): Be ready for forward declarations of enums;
37140 output sane info on base mismatch and virtual table mismatch.
37141 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37142 when only one type is polymorphic.
37143 (get_odr_type): Fix hashtable corruption.
37144 (dump_odr_type): Dump mangled names.
37145
37146 2015-02-18 Richard Biener <rguenther@suse.de>
37147
37148 PR tree-optimization/65063
37149 * tree-predcom.c (determine_unroll_factor): Return 1 if we
37150 have replaced looparound PHIs.
37151
37152 2015-02-18 Martin Liska <mliska@suse.cz>
37153
37154 * lto-streamer.c (lto_streamer_init): Encapsulate
37155 streamer_check_handled_ts_structures with checking macro.
37156
37157 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37158
37159 PR ipa/65087
37160 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37161 section if !implicit_section.
37162 (cgraph_node::create_version_clone_with_body): Likewise.
37163 * trans-mem.c (ipa_tm_create_version): Likewise.
37164
37165 2015-02-18 Richard Biener <rguenther@suse.de>
37166
37167 PR tree-optimization/62217
37168 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37169 into BIVs.
37170
37171 2015-02-18 Marek Polacek <polacek@redhat.com>
37172
37173 PR sanitizer/65081
37174 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37175 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37176 is in range [-16K, -1]. Don't issue run-time error if
37177 (ptr > ptr + offset).
37178
37179 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
37180
37181 * doc/install.texi (nvptx-*-none): New section.
37182 * doc/invoke.texi (Nvidia PTX Options): Likewise.
37183 * config/nvptx/nvptx.opt: Update.
37184
37185 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37186 (access_check): New functions, copied from
37187 config/i386/intelmic-mkoffload.c.
37188 (main): For non-installed testing, look in all COMPILER_PATHs for
37189 GCC_INSTALL_NAME.
37190
37191 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37192
37193 2015-02-18 Andrew Pinski <apinski@cavium.com>
37194 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37195
37196 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37197 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37198
37199 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37200
37201 * ipa-visibility.c (function_and_variable_visibility): Only
37202 check locality if node is not already local.
37203 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37204 call_for_symbol_and_aliases instead of
37205 call_for_symbol_thunks_and_aliases.
37206 (ipa_inline): Likewise.
37207 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37208 first walk aliases.
37209 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37210 call_for_symbol_and_aliases.
37211 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37212 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37213 (ipa_propagate_frequency): Update.
37214 (ipa_profile): Add opt_for_fn gueards.
37215
37216 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37217
37218 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37219 * doc/invoke.texi (SH options): Document it.
37220 * config/sh/sh.c (sh_insn_length_adjustment): Check
37221 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37222
37223 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
37224
37225 * common.opt (fipa-cp-alignment): New.
37226 * ipa-cp.c (ipcp_store_alignment_results): Check
37227 flag_ipa_cp_alignment.
37228 * opts.c (default_options_table): Enable -fipa-cp-alignment for
37229 -O2.
37230 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37231 * doc/invoke.texi: Document -fipa-cp-alignment.
37232
37233 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37234
37235 PR target/64793
37236 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37237 to nil. Adjust comments.
37238
37239 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37240
37241 * ipa-visibility.c (function_and_variable_visibility): Only
37242 check locality if node is not already local.
37243 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37244 call_for_symbol_and_aliases instead of
37245 call_for_symbol_thunks_and_aliases.
37246 (ipa_inline): Likewise.
37247 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37248 first walk aliases.
37249 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37250 call_for_symbol_and_aliases.
37251 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37252 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37253 (ipa_propagate_frequency): Update.
37254 (ipa_profile): Add opt_for_fn guards.
37255
37256 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
37257
37258 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37259 skipping of "strange" tokens.
37260
37261 2015-02-17 Jeff Law <law@redhat.com>
37262
37263 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
37264 obsolete comment.
37265
37266 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
37267
37268 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37269 as forcing a HARD_DEP between instructions, thereby
37270 disallowing rewriting to break dependencies.
37271
37272 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37273
37274 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37275 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37276 variables in boundary that have no inlitalizer encoded and are
37277 not aliases.
37278 * varasm.c (default_binds_local_p_2): External definitions do not
37279 count as definitions here.
37280
37281 2015-02-16 Jeff Law <law@redhat.com>
37282
37283 PR tree-optimization/64823
37284 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37285 statements.
37286 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37287 threading through blocks with PHIs, but no statements.
37288 (thread_through_normal_block): Distinguish between blocks where
37289 we did not process all the statements and blocks with no statements.
37290
37291 2015-02-16 Jakub Jelinek <jakub@redhat.com>
37292 James Greenhalgh <james.greenhalgh@arm.com>
37293
37294 PR ipa/64963
37295 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37296 section if not linkonce. Fix up formatting.
37297 (cgraph_node::create_version_clone_with_body): Copy section.
37298 * trans-mem.c (ipa_tm_create_version): Likewise.
37299
37300 2015-02-16 Richard Biener <rguenther@suse.de>
37301
37302 PR tree-optimization/65077
37303 * tree-ssa-structalias.c (get_constraint_for_1): Handle
37304 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37305 (find_func_aliases): Allow float values to carry pointers again.
37306
37307 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
37308
37309 * doc/install.texi (Specific): Reorder targets list to put
37310 aarch64 in alphabetical order. Add a link to aarch64*-*-*
37311 from the top menu.
37312
37313 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37314 David Edelsohn <dje.gcc@gmail.com>
37315
37316 PR target/65058
37317 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37318 mapping class to external variable or function reference.
37319 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37320 mapping class.
37321
37322 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
37323
37324 PR target/53348
37325 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37326 ASM_WEAKEN_DECL if defined.
37327
37328 2015-02-16 Richard Biener <rguenther@suse.de>
37329
37330 PR lto/65015
37331 * varasm.c (default_file_start): For LTO produced units
37332 emit <artificial> as file directive.
37333
37334 2015-02-16 Richard Biener <rguenther@suse.de>
37335
37336 PR tree-optimization/63593
37337 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37338 stmts and releasing SSA names until...
37339 (execute_pred_commoning): ... after processing all chains.
37340
37341 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37342
37343 PR ipa/65059
37344 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37345 external functions.
37346
37347 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
37348
37349 * doc/bugreport.texi: Adjust section titles throughout the file
37350 to use "Title Case".
37351 * doc/extend.texi: Likewise.
37352 * doc/gcov.texi: Likewise.
37353 * doc/implement-c.texi: Likewise.
37354 * doc/implement-cxx.texi: Likewise.
37355 * doc/invoke.texi: Likewise.
37356 * doc/objc.texi: Likewise.
37357 * doc/standards.texi: Likewise.
37358 * doc/trouble.texi: Likewise.
37359
37360 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
37361
37362 * cgraph.h (symtab_node::has_aliases_p): Simplify.
37363 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37364 * tree.c (lookup_binfo_at_offset): Make static.
37365 (get_binfo_at_offset): Do not shadow offset; add explanatory
37366 comment.
37367
37368 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
37369
37370 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37371 for all floading point loads and stores except those using a register
37372 index address.
37373 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37374 to a register.
37375
37376 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37377
37378 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37379 (do_estimate_growth_1): Record if any uninlinable edge was seen.
37380 (estimate_growth): Handle uninlinable edges correctly.
37381 (check_callers): New.
37382 (growth_likely_positive): Handle aliases correctly.
37383
37384 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37385
37386 * ipa-chkp.c: Use iterate_direct_aliases.
37387 * symtab.c (resolution_used_from_other_file_p): Move inline.
37388 (symtab_node::create_reference): Fix formating.
37389 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37390 (symtab_node::iterate_reference): Move inline.
37391 (symtab_node::iterate_referring): Move inline.
37392 (symtab_node::iterate_direct_aliases): Move inline.
37393 (symtab_node::used_from_object_file_p_worker): Inline into ...
37394 (symtab_node::used_from_object_file_p): ... this one; move inline.
37395 (symtab_node::call_for_symbol_and_aliases): Move inline;
37396 use iterate_direct_aliases.
37397 (symtab_node::call_for_symbol_and_aliases_1): New method.
37398 (cgraph_node::call_for_symbol_and_aliases): Move inline;
37399 use iterate_direct_aliases.
37400 (cgraph_node::call_for_symbol_and_aliases_1): New method.
37401 (varpool_node::call_for_node_and_aliases): Rename to ...
37402 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37403 use iterate_direct_aliases.
37404 (varpool_node::call_for_symbol_and_aliases_1): New method.
37405 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37406 (ipa_discover_readonly_nonaddressable_var): Update.
37407 * ipa-devirt.c: Fix formating.
37408 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37409 Move inline.
37410 (cgraph_node::call_for_symbol_and_aliases): Move inline.
37411 (cgraph_node::call_for_symbol_and_aliases_1): New function..
37412 * cgraph.h (used_from_object_file_p_worker): Remove.
37413 (resolution_used_from_other_file_p): Move inline.
37414 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37415 (symtab_node::iterate_reference): Move inline.
37416 (symtab_node::iterate_referring): Move inline.
37417 (symtab_node::iterate_direct_aliases): Move inline.
37418 (symtab_node::used_from_object_file_p_worker): Inline into ...
37419 (symtab_node::used_from_object_file_p): Move inline.
37420 * tree-emutls.c (ipa_lower_emutls): Update.
37421 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37422 (varpool_node::call_for_node_and_aliases): Remove.
37423
37424 2015-02-14 Jakub Jelinek <jakub@redhat.com>
37425
37426 PR tree-optimization/62209
37427 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
37428 op == range->exp, insert seq and gimplified code after labels
37429 instead of after the phi.
37430
37431 2015-02-13 Jeff Law <law@redhat.com>
37432
37433 PR bootstrap/65060
37434 Revert my change for tree-optimization/64823.
37435
37436 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37437
37438 PR tree-optimization/65053
37439 * tree-ssa-phiopt.c (value_replacement): When moving assign before
37440 cond, either reset VR on lhs or set it to phi result VR.
37441
37442 2015-02-13 Jeff Law <law@redhat.com>
37443
37444 PR tree-optimization/64823
37445 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
37446 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37447 threading through blocks with PHIs, but no statements.
37448 (thread_through_normal_block): Distinguish between blocks where
37449 we did not process all the statements and blocks with no statements.
37450
37451 PR rtl-optimization/47477
37452 * match.pd (convert (plus/minus (convert @0) (convert @1): New
37453 simplifier to narrow arithmetic.
37454
37455 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
37456
37457 PR ipa/65028
37458 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
37459 polymorphic call info when type is not known to be preserved.
37460
37461 2015-02-13 Maritn Jambor <mjambor@suse.cz>
37462
37463 PR ipa/65028
37464 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
37465 (inline_call): Use it.
37466
37467 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
37468
37469 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
37470 GOMP_DEVICE_NVIDIA_PTX.
37471
37472 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37473
37474 PR ipa/65034
37475 * stmt.c (emit_case_nodes): Use void_type_node instead of
37476 NULL_TREE as LABEL_DECL type.
37477
37478 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
37479
37480 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
37481 constraints.
37482 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
37483 symbolic references to data to be forced to constant memory on the
37484 SOM target.
37485
37486 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
37487
37488 PR tree-optimization/65002
37489 * tree-cfg.c (pass_data_fixup_cfg): Don't update
37490 SSA on start.
37491 * tree-sra.c (some_callers_have_no_vuse_p): New.
37492 (ipa_early_sra): Reject functions whose callers
37493 assume function is read only.
37494
37495 2015-02-13 Richard Biener <rguenther@suse.de>
37496
37497 PR lto/65015
37498 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
37499 for LTO produced CUs.
37500
37501 2015-02-13 Bin Cheng <bin.cheng@arm.com>
37502
37503 PR tree-optimization/64705
37504 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
37505 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
37506 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
37507 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
37508 expand_simple_operations.
37509
37510 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
37511 Richard Henderson <rth@redhat.com>
37512
37513 PR rtl/32219
37514 * cgraphunit.c (cgraph_node::finalize_function): Set definition
37515 before notice_global_symbol.
37516 (varpool_node::finalize_decl): Likewise.
37517 * varasm.c (default_binds_local_p_2): Rename from
37518 default_binds_local_p_1, add weak_dominate argument. Use direct
37519 returns instead of assigning to local variable. Unify varpool and
37520 cgraph paths via symtab_node. Reject undef weak variables before
37521 testing visibility. Reorder tests for simplicity.
37522 (default_binds_local_p): Use default_binds_local_p_2.
37523 (default_binds_local_p_1): Likewise.
37524 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
37525 via symtab_node.
37526 (default_elf_asm_output_external): Emit visibility when specified.
37527
37528 2015-02-13 Alan Modra <amodra@gmail.com>
37529
37530 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
37531 code setting up r11 for out-of-line fp restore.
37532
37533 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
37534
37535 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
37536 (muser-mode): Likewise.
37537
37538 2015-02-13 Alan Modra <amodra@gmail.com>
37539
37540 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
37541 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
37542
37543 2015-02-12 David Howells <dhowells@redhat.com>
37544
37545 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
37546 warning.
37547 * tree-ssa-uninit.c (dump_predicates): Likewise.
37548 * opts.c (print_filtered_help): Likewise.
37549
37550 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37551
37552 * dwarf2out.c (output_die): Use "%s", name instead of name to
37553 avoid -Wformat-security warning.
37554
37555 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
37556 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37557 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
37558 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37559
37560 2015-02-12 Jason Merrill <jason@redhat.com>
37561
37562 * common.opt (-flifetime-dse): New.
37563
37564 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37565
37566 PR sanitizer/65019
37567 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
37568
37569 PR tree-optimization/65014
37570 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
37571 use original second operand of arg0 or arg1 instead of
37572 that adjusted by STRIP_NOPS.
37573
37574 2015-02-11 Jeff Law <law@redhat.com>
37575
37576 PR target/63347
37577 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
37578 that needs to be queued, just queue it for a single cycle.
37579
37580 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
37581
37582 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
37583 bodies of thunks; comment on why.
37584 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
37585 symbols are extern.
37586
37587 2015-02-11 Richard Henderson <rth@redhat.com>
37588
37589 PR sanitize/65000
37590 * tree-eh.c (mark_reachable_handlers): Mark source and destination
37591 regions of __builtin_eh_copy_values.
37592
37593 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37594
37595 PR middle-end/65003
37596 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
37597 ultimate alias is MEM with SYMBOL_REF satisfying
37598 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
37599 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
37600
37601 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
37602
37603 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
37604 "diagnostic-core.h".
37605 (main): Initialize progname, and call diagnostic_initialize.
37606
37607 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
37608 instead of __OPENMP_TARGET__.
37609
37610 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
37611 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
37612 hard-coding PTX_ID.
37613
37614 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
37615
37616 * doc/sourcebuild.texi (pie_enabled): Document.
37617
37618 2015-02-11 Martin Liska <mliska@suse.cz>
37619
37620 PR ipa/64813
37621 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
37622 a return value for call to a function that is noreturn.
37623
37624 2015-02-11 Richard Biener <rguenther@suse.de>
37625
37626 PR lto/65015
37627 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
37628 and -fresolution.
37629
37630 2015-02-11 Andrew Pinski <apinski@cavium.com>
37631
37632 PR target/64893
37633 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
37634 Change the first argument type to size_type_node and add another
37635 size_type_node.
37636 (aarch64_simd_expand_builtin): Handle the new argument to
37637 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
37638 print an out when the first two arguments are not
37639 nonzero integer constants.
37640 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
37641 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
37642
37643 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37644
37645 PR target/61925
37646 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
37647 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
37648 (ix86_set_current_function): Rewritten.
37649 (ix86_add_new_builtins): Temporarily clear current_target_pragma
37650 when creating builtin fndecls.
37651
37652 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37653
37654 PR ipa/65005
37655 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
37656 function.
37657 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
37658 have no comdat group.
37659 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
37660 (lto_output_varpool_node): Always output alias info.
37661 (output_refs): Output refs of boundary aliases, too.
37662 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
37663 (output_symtab): Output call eges in thunks in boundary.
37664 (get_alias_symbol): Remove.
37665 (input_node, input_varpool_node): Do not special case weakrefs.
37666 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
37667 alias and thunks targets in the boundary; do not take removed symbols
37668 from their comdat groups.
37669 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
37670 (cgraph_node::global_info): Remove.
37671 (cgraph_node::rtl_info): Look through aliases and thunks.
37672 * cgrpah.h (global_info): Remove.
37673 (non_local_p): Remove.
37674
37675 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37676 Sandra Loosemore <sandra@codesourcery.com>
37677
37678 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
37679 to inline asm. List dialects in proper order.
37680
37681 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37682 Sandra Loosemore <sandra@codesourcery.com>
37683
37684 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
37685
37686 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37687
37688 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
37689 modified) reference to Solaris.
37690
37691 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
37692
37693 * doc/extend.texi (Extended Asm): Fix typos.
37694
37695 2015-02-10 Jakub Jelinek <jakub@redhat.com>
37696
37697 PR sanitizer/65004
37698 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
37699
37700 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
37701
37702 PR target/64661
37703 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
37704 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
37705 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
37706 * config/sh/constraints.md (Ara, Add): New constraints.
37707 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
37708 predicates.
37709 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
37710 atomic_mem_operand_0. Don't use force_reg on the memory address.
37711 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
37712 Sra constraint. Convert to insn_and_split. Add workaround for
37713 PR 64974.
37714 (atomic_compare_and_swap<mode>_hard): Copy to
37715 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
37716 Use atomic_mem_operand_0 predicate.
37717 (atomic_compare_and_swap<mode>_soft_gusa,
37718 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
37719 AraAdd constraints.
37720 (atomic_compare_and_swap<mode>_soft_tcb,
37721 atomic_compare_and_swap<mode>_soft_imask,
37722 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
37723 atomic_mem_operand_0 predicate and SraSdd constraints.
37724 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
37725 constraint.
37726 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
37727 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
37728 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
37729 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
37730 force_reg on the memory address.
37731 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
37732 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
37733 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
37734 atomic_mem_operand_1 predicate and Sra constraint.
37735 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
37736 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37737 Use atomic_mem_operand_1 predicate.
37738 (atomic_<fetchop_name><mode>_hard): Copy to
37739 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37740 Use atomic_mem_operand_1 predicate.
37741 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
37742 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37743 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
37744 insn_and_split. Use atomic_mem_operand_1 predicate.
37745 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
37746 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
37747 Use atomic_mem_operand_1 predicate.
37748 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
37749 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37750 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
37751 in generated insn with original mem operand before emitting the insn.
37752 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
37753 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
37754 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
37755 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
37756 Use atomic_mem_operand_1 predicate and AraAdd constraints.
37757 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
37758 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
37759 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
37760 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
37761 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
37762 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
37763 atomic_not_fetch<mode>_soft_tcb,
37764 atomic_<fetchop_name>_fetch<mode>_soft_imask,
37765 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
37766 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
37767 Use atomic_mem_operand_1 predicate and SraSdd constraints.
37768
37769 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
37770
37771 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
37772 and 3 earlyclobber operands.
37773
37774 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37775
37776 * common.opt (fstack-reuse): Mark as optimization.
37777
37778 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37779
37780 PR ipa/64982
37781 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
37782
37783 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
37784
37785 PR tree-optimization/64326
37786 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
37787
37788 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
37789
37790 PR gcov-profile/61889
37791 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
37792
37793 2015-02-10 Richard Biener <rguenther@suse.de>
37794
37795 PR tree-optimization/64995
37796 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
37797 value we use is final.
37798 (visit_reference_op_store): Always valueize op.
37799 (visit_use): Properly valueize vuses.
37800
37801 2015-02-10 Richard Biener <rguenther@suse.de>
37802
37803 PR tree-optimization/64909
37804 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
37805 pass a scalar-stmt count estimate to the cost model.
37806 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
37807
37808 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
37809
37810 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
37811 enabled by default together with var-tracking.
37812
37813 2015-02-10 Nick Clifton <nickc@redhat.com>
37814
37815 * config/rl78/rl78.c: Remove DIV attribute code accidentally
37816 included in previous rl78 commit.
37817
37818 2015-02-10 Richard Biener <rguenther@suse.de>
37819
37820 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
37821 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
37822 return the bitpack.
37823
37824 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
37825
37826 PR gcov-profile/61889
37827 * config.in: regenerate.
37828 * configure.in: Likewise.
37829 * configure.ac: Check for ftw.h.
37830 * gcov-tool.c: Check for ftw.h before using nftw.
37831
37832 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
37833
37834 PR lto/64076
37835 * ipa-visibility.c (update_visibility_by_resolution_info): Only
37836 assert when not in lto mode.
37837
37838 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
37839
37840 * ira-color.c (setup_left_conflict_sizes_p): Simplify
37841 initialization/assignment of conflict_size.
37842
37843 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
37844
37845 PR ipa/64978
37846 * ipa-cp.c (gather_caller_stats): Skip thunks.
37847 (propagate_constants_topo): Skip aliases.
37848
37849 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
37850
37851 PR target/64761
37852 * config/sh/sh.c (sh_option_override): Don't change
37853 -freorder-blocks-and-partition to -freorder-blocks even when
37854 unwinding is enabled.
37855 (sh_can_follow_jump): Return false if the followee jump is
37856 a crossing jump when -freorder-blocks-and-partition is specified.
37857 * config/sh/sh.md (*jump_compact_crossing): New insn.
37858
37859 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
37860 Kaz Kojima <kkojima@gcc.gnu.org>
37861
37862 PR target/64761
37863 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
37864 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
37865 (sh_can_redirect_branch): Rename to ...
37866 (sh_can_follow_jump): ... this. Constify argument types.
37867 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
37868 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
37869 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
37870 * doc/tm.texi: Regenerate.
37871
37872 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37873
37874 PR sanitizer/64981
37875 * builtins.c (expand_builtin): Call targetm.expand_builtin
37876 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
37877
37878 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37879
37880 PR ipa/61548
37881 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
37882
37883 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37884
37885 PR ipa/63566
37886 * ipa-icf.c (set_local): New function.
37887 (sem_function::merge): Use it.
37888
37889 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37890
37891 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
37892 (add_type_duplicate): Fix comparison of BINFOs.
37893
37894 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37895
37896 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
37897 on getting VOID pointer.
37898
37899 2015-02-09 Jakub Jelinek <jakub@redhat.com>
37900
37901 PR target/64979
37902 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
37903 va_list escapes.
37904
37905 2015-02-09 Richard Biener <rguenther@suse.de>
37906
37907 * genmatch.c (replace_id): Copy expr_type.
37908
37909 2015-02-09 Richard Biener <rguenther@suse.de>
37910
37911 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
37912 (streamer_write_tree_bitfields): Declare.
37913 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
37914 properly unpack padding.
37915 (unpack_value_fields): Inline ...
37916 (streamer_read_tree_bitfields): ... here.
37917 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
37918 and properly add padding bits.
37919 (streamer_pack_tree_bitfields): Fold into ...
37920 (streamer_write_tree_bitfields): ... this new function,
37921 exposing the bitpack object.
37922 * lto-streamer-out.c (lto_write_tree_1): Call
37923 streamer_write_tree_bitfields.
37924
37925 2015-02-09 Richard Biener <rguenther@suse.de>
37926
37927 PR tree-optimization/54000
37928 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
37929 (struct ivopts_data): Add loop_loc member.
37930 (tree_ssa_iv_optimize_loop): Dump loop location.
37931 (create_new_ivs): Likewise, also dump number of IVs generated.
37932
37933 2015-02-09 Martin Liska <mliska@suse.cz>
37934
37935 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
37936 just if not yet registered.
37937 (ipa_icf_generate_summary): Register callgraph hooks.
37938
37939 2015-02-08 Andrew Pinski <apinski@cavium.com>
37940
37941 * config/aarch64/aarch64.c (gty_dummy): Delete.
37942
37943 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37944
37945 PR ipa/63566
37946 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
37947 (cgraph_node::local_p): Remove thunk related FIXME.
37948
37949 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37950
37951 PR ipa/63566
37952 * i386.c (ix86_function_regparm): Look through aliases to see if callee
37953 is local and optimized.
37954 (ix86_function_sseregparm): Likewise; also use target's SSE math
37955 settings; error out instead of silently generating wrong code
37956 on mismatches.
37957 (init_cumulative_args): Look through aliases.
37958
37959 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37960
37961 PR ipa/63566
37962 * ipa-split.c (execute_split_functions): Split if function has aliases.
37963
37964 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
37965
37966 PR ipa/63566
37967 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
37968 aliases before trying to expand it.
37969 (cgraph_node::expand_thunk): Fix formating.
37970
37971 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
37972
37973 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
37974 (Using Assembly Language with C): Expand introduction.
37975 (Basic Asm): Copy-edit. Add more information about uses of
37976 basic asm.
37977 (Extended Asm): Copy-edit. Document new escape syntax and
37978 %l[label] syntax.
37979 (Global Reg Vars): Copy-edit.
37980 (Local Reg Vars): Likewise.
37981
37982 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
37983
37984 PR debug/2714
37985 PR bootstrap/64256
37986 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
37987 (DBX_CONTIN_CHAR): Define.
37988
37989 2015-02-06 Sebastian Pop <s.pop@samsung.com>
37990 Brian Rzycki <b.rzycki@samsung.com>
37991
37992 PR tree-optimization/64878
37993 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
37994 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
37995 Stop recursion at loop phi nodes after having visited a loop phi node.
37996
37997 2015-02-06 Jakub Jelinek <jakub@redhat.com>
37998
37999 * toplev.c (process_options): Change flag_ipa_ra before creating
38000 optimization_{default,current}_node.
38001
38002 PR ipa/64896
38003 * cgraphunit.c (cgraph_node::expand_thunk): If
38004 restype is not is_gimple_reg_type nor the thunk_fndecl
38005 returns aggregate_value_p, set restmp to a temporary variable
38006 instead of resdecl.
38007
38008 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
38009
38010 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38011
38012 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38013
38014 PR target/64205
38015 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38016 add a general secondary reload handler for SDmode, unless we have
38017 both read/write support for SDmode.
38018
38019 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38020
38021 PR middle-end/64937
38022 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38023 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38024 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38025 1 before, push it to abstract_vec.
38026 (dwarf2out_abstract_function): Adjust caller. Don't call
38027 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38028 DECL_ABSTRACT_P flags for all abstract_vec elts.
38029
38030 2015-02-06 Renlin Li <renlin.li@arm.com>
38031
38032 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38033 complex gimple.
38034 * tree-ssa.c (execute_update_addresses_taken): Likewise.
38035
38036 2015-02-06 Jeff Law <law@redhat.com>
38037
38038 PR target/64889
38039 * config/h8300/h8300.c (push): New argument "in_prologue".
38040 Pass "in_prologue" along to "F".
38041 (h8300_push_pop): Corresponding changes.
38042 (h8300_expand_prologue): Likewise.
38043 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
38044
38045 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38046
38047 PR rtl-optimization/64957
38048 PR debug/64817
38049 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38050 IOR rather than for AND.
38051
38052 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
38053
38054 PR target/62631
38055 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38056 of shift-add and (add + shift) operations. Rename local variable.
38057
38058 2015-02-05 Jeff Law <law@redhat.com>
38059
38060 PR target/17306
38061 * config/h8300/constraints.md (U): Correctly dectect
38062 "eightbit_data" memory addresses.
38063 * config/h8300/h8300.c (eightbit_constant_address_p): Also
38064 handle (const (plus (symbol_ref (x)))) where x is declared
38065 as an 8-bit data memory address.
38066 * config/h8300/h8300.md (call, call_value): Correctly detect
38067 "funcvec" functions.
38068
38069 PR target/43264
38070 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38071 24 to 28 bits for the H8/300.
38072
38073 2015-02-06 Alan Modra <amodra@gmail.com>
38074
38075 PR target/64876
38076 * config/rs6000/rs6000.c (chain_already_loaded): New function.
38077 (rs6000_call_aix): Use it.
38078
38079 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
38080
38081 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38082 check.
38083
38084 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
38085
38086 * config/h8300/constraints.md ("U" constraint): Use strict
38087 variant of REG_OK_FOR_BASE_P after reload has started.
38088
38089 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
38090
38091 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38092 define to zero if !TARGET_NEON.
38093 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38094
38095 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38096 Trevor Saunders <tsaunders@mozilla.com>
38097
38098 PR ipa/61548
38099 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38100
38101 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38102
38103 PR ipa/61548
38104 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38105 when removing varpool nodes.
38106
38107 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38108
38109 PR ipa/61548
38110 * varpool.c (varpool_node::remove): Fix order of variables.
38111
38112 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38113
38114 PR ipa/64686
38115 * ipa-inline.c (inline_small_functions): Fix ordering issue between
38116 speculation resolution and key updates.
38117
38118 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38119
38120 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38121 about not letting any speculative edges unupdated.
38122
38123 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38124
38125 PR gcov/64123
38126 * gcov-io.c (gcov_var): Export.
38127
38128 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38129
38130 PR middle-end/64922
38131 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38132 edges that become speculative.
38133
38134 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38135
38136 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38137 or DW_LANG_Fortran08.
38138 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38139 DW_LANG_Fortran08.
38140 (gen_compile_unit_die): Handle "GNU Fortran2003" and
38141 "GNU Fortran2008" language strings.
38142 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38143 * langhooks.h (lang_GNU_Fortran): New prototype.
38144 * langhooks.c (lang_GNU_Fortran): New function.
38145 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38146 lang_GNU_Fortran.
38147
38148 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38149
38150 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38151 (RTX_OK_FOR_OLO10_P): Likewise.
38152
38153 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38154
38155 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38156
38157 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38158
38159 PR middle-end/64922
38160 * gimple.c: Include gimple-ssa.h.
38161 (maybe_remove_unused_call_args): New function.
38162 * gimple.h (maybe_remove_unused_call_args): Declare.
38163 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38164 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38165 * gimple-fold.c (gimple_fold_call): Likewise.
38166
38167 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
38168
38169 PR rtl-optimization/64905
38170 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38171 pointer alignment if it isn't needed.
38172
38173 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38174
38175 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38176 cortex-a72.cortex-a53.
38177 * config/aarch64/aarch64-tune.md: Regenerate.
38178 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38179
38180 2015-02-04 Nick Clifton <nickc@redhat.com>
38181
38182 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38183 inside a MEM.
38184
38185 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38186
38187 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38188 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38189 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38190 of DEF_BUILTIN.
38191 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38192 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38193 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38194 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38195 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38196 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38197 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38198 * tree-core.h (enum built_in_function): In between
38199 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38200 for builtins that use DEF_BUILTIN_CHKP macro.
38201
38202 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
38203
38204 PR debug/64817
38205 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38206 operands for tcc_comparison exprs. Fix typos.
38207
38208 PR debug/64817
38209 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38210 of two XORs that have an intervening AND or IOR.
38211
38212 PR debug/64817
38213 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38214 simplification of XOR of AND to not allocate new rtx before
38215 committing to a simplification.
38216
38217 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38218
38219 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38220 manual swaps in all peepholes.
38221
38222 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38223
38224 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38225 of manual swapping implementation.
38226 (aarch64_expand_vec_perm_const_1): Likewise.
38227
38228 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
38229
38230 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38231 (generic_addrcost_table): Remove NAMED_PARAM.
38232 (cortexa57_addrcost_table): Likewise.
38233 (xgene1_addrcost_table): Likewise.
38234 (generic_regmove_table): Likewise.
38235 (cortexa53_regmove_table): Likewise.
38236 (xgene1_regmove_table): Likewise.
38237 (generic_vector_table): Likewise.
38238 (cortexa57_vector_table): Likewise.
38239 (xgene1_vector_table): Likewise.
38240 (generic_tunings): Likewise.
38241 (cortexa53_tunings): Likewise.
38242 (cortexa57_tunings): Likewise.
38243 (xgene1_tunings): Likewise.
38244
38245 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38246
38247 * config/arm/arm-cores.def: Add cortex-a72 and
38248 cortex-a72.cortex-a53.
38249 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38250 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38251 * config/arm/arm-tune.md: Regenerate.
38252 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38253 "cortex-a72.cortex-a53".
38254 * doc/invoke.texi (ARM Options/-mtune): Likewise.
38255
38256 2015-02-04 Nick Clifton <nickc@redhat.com>
38257
38258 PR target/64408
38259 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38260 of accepted codes.
38261 (nonimmediate_di_operand): Likewise.
38262
38263 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38264 prefixes of known F5 using MSP430 MCUs.
38265
38266 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38267
38268 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38269 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38270 instead of __builtin_sqrt.
38271
38272 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
38273
38274 * varasm.c (do_assemble_alias): Follow transparent alias
38275 chain for target.
38276 (default_assemble_visibility): Follow transparent alias
38277 chain for decl name.
38278
38279 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
38280
38281 PR middle-end/62103
38282 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38283 to compute size of referenced value in the constant case.
38284
38285 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38286
38287 PR rtl-optimization/64756
38288 * cse.c (invalidate_dest): New function.
38289 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
38290 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38291 invalidate and do not record it.
38292
38293 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
38294
38295 PR target/64660
38296 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38297 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38298 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38299 atomic_nand<mode>_soft_tcb): New insns.
38300 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38301 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38302 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38303 Split into atomic_not_fetchsi_hard if operands[0] is unused.
38304 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38305 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38306 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
38307 atomic_not<mode>_hard if operands[0] is unused.
38308 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38309 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38310 if operands[0] is unused.
38311 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
38312 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38313 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38314 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38315 unused.
38316 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
38317 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38318 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38319 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38320 if operands[0] is unused.
38321 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
38322 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38323 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
38324 atomic_nand_fetchsi_hard if operands[0] is unused.
38325 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
38326 atomic_nand<mode>_hard if operands[0] is unused.
38327 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
38328 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38329 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
38330 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38331 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
38332 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38333 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38334 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38335 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
38336 atomic_not<mode>_hard if operands[0] is unused.
38337 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38338 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38339 unused.
38340 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38341 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38342 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
38343 atomic_nand<mode>_hard if operands[0] is unused.
38344 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38345 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38346
38347 2015-02-03 David Malcolm <dmalcolm@redhat.com>
38348
38349 PR jit/64810
38350 * Makefile.in (GCC_OBJS): Add gcc-main.o.
38351 * gcc-main.c: New file, containing "main" taken from gcc.c.
38352 * gcc.c (do_self_spec): Free decoded_options.
38353 (class driver): Move declaration to gcc.h.
38354 (main): Move declaration and implementation to new file
38355 gcc-main.c.
38356 (driver_get_configure_time_options): New function.
38357 * gcc.h (class driver): Move this declaration here, from
38358 gcc.c.
38359 (driver_get_configure_time_options): New declaration.
38360
38361 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
38362
38363 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38364 cross-module inlining.
38365 * cgraph.h (cgraph_node): Add flag merged.
38366 * ipa-icf.c (sem_function::merge): Maintain it.
38367
38368 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
38369
38370 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38371 instead of OBJECT_P.
38372
38373 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
38374
38375 PR target/62631
38376 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38377 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38378 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38379 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38380
38381 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38382
38383 PR other/63504
38384 * combine.c (reg_n_sets_max): New variable.
38385 (can_change_dest_mode, reg_nonzero_bits_for_combine,
38386 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38387 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38388 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38389 (rest_of_handle_combine): Initialize reg_n_sets_max.
38390
38391 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
38392
38393 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38394 if some always_inline was inlined, apply changes before inlining
38395 heuristically.
38396
38397 2015-02-02 David Malcolm <dmalcolm@redhat.com>
38398
38399 PR jit/64810
38400 * config/arm/arm.c (arm_option_override): Set
38401 arm_selected_arch/cpu/tune to NULL on entry.
38402
38403 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
38404 Andrew Pinski <pinskia@gcc.gnu.org>
38405 Jakub Jelinek <jakub@gcc.gnu.org>
38406
38407 PR target/64231
38408 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38409 integer typing for small model. Use IN_RANGE.
38410
38411 2015-02-02 Richard Biener <rguenther@suse.de>
38412
38413 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38414 * tree-vrp.c (vrp_valueize_1): Likewise.
38415
38416 2015-02-02 Alan Modra <amodra@gmail.com>
38417
38418 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38419 than mem for toc_restore.
38420 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38421 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38422 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38423
38424 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
38425
38426 PR target/64047
38427 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
38428 explicit default options.
38429
38430 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
38431
38432 PR ipa/64872
38433 * ipa-utils.c (ipa_merge_profiles): Add release argument.
38434 * ipa-icf.c (sem_function::merge): Do not release body when merging.
38435 * ipa-utils.h (ipa_merge_profiles): Update prototype.
38436
38437 2015-02-01 Jakub Jelinek <jakub@redhat.com>
38438
38439 PR debug/64817
38440 * cfgexpand.c (deep_ter_debug_map): New variable.
38441 (avoid_deep_ter_for_debug): New function.
38442 (expand_debug_expr): If TERed SSA_NAME is in
38443 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
38444 instead of trying to expand SSA_NAME's def stmt.
38445 (expand_debug_locations): When expanding debug bind
38446 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
38447 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
38448 value.
38449 (pass_expand::execute): Call avoid_deep_ter_for_debug on
38450 all debug bind stmts. Delete deep_ter_debug_map after
38451 expand_debug_location if non-NULL and clear it.
38452
38453 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
38454
38455 PR target/64851
38456 * config/sh/sync.md (atomic_fetch_notsi_hard,
38457 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
38458 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
38459 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
38460 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
38461 atomic_not_fetch<mode>_soft_imask): New insns.
38462
38463 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38464
38465 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
38466 (rank_for_schedule_debug): Split from ...
38467 (rank_for_schedule): ... this.
38468 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
38469 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
38470
38471 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38472
38473 * doc/md.texi (Machine Constraints): Alphabetize table by target.
38474 * doc/extend.texi (x86 Variable Attributes): Move section to
38475 correct alphabetization after renaming.
38476 (x86 Type Attributes): Likewise.
38477 (Target Builtins): Re-alphabetize menu.
38478 (x86 Built-in Functions): Move section to correct alphabetization
38479 after renaming.
38480 (x86 transactional memory intrinsics): Likewise.
38481 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
38482 and x86 Windows Options in table and menu.
38483 (x86 Options): Move section to correct alphabetization after
38484 renaming.
38485 (x86 Windows Options): Likewise.
38486
38487 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38488
38489 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
38490 preferred names of the architecture and its 32- and 64-bit
38491 variants.
38492 * doc/invoke.texi: Likewise.
38493 * doc/md.texi: Likewise.
38494
38495 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38496
38497 PR target/64882
38498 * config/i386/predicates.md (address_no_seg_operand): Reject
38499 non-CONST_INT_P operands in invalid mode.
38500
38501 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38502
38503 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
38504 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
38505 * config/i386/predicates.md (address_no_seg_operand): Call
38506 address_operand with VOIDmode.
38507 (vsib_address_operand): Ditto.
38508 (address_mpx_no_base_operand): Ditto.
38509 (address_mpx_no_index_operand): Ditto.
38510
38511 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38512
38513 PR target/64688
38514 * lra-constraints.c (original_subreg_reg_mode): New.
38515 (simplify_operand_subreg): Try to simplify subreg of const. Use
38516 original_subreg_reg_mode for it.
38517 (swap_operands): Update original_subreg_reg_mode.
38518 (curr_insn_transform): Set up original_subreg_reg_mode.
38519
38520 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38521
38522 PR target/64617
38523 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
38524 function.
38525 (process_alt_operands): Use it.
38526 (curr_insn_transform): Check the optional reload pseudo class is
38527 ok for the mode.
38528
38529 2015-01-30 Joseph Myers <joseph@codesourcery.com>
38530
38531 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
38532 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
38533 prototype.
38534 * toplev.h (init_asm_output): Update comment on use of
38535 UNKNOWN_LOCATION with fatal_error.
38536 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
38537 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
38538 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
38539 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
38540 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
38541 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
38542 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
38543 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
38544 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
38545 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
38546 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
38547 fatal_error changed to pass input_location as first argument.
38548
38549 2015-01-30 Martin Liska <mliska@suse.cz>
38550
38551 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
38552 in #pragma GCC diagnostic guards.
38553
38554 2015-01-30 Richard Biener <rguenther@suse.de>
38555
38556 PR tree-optimization/64829
38557 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
38558 not add a widening conversion pattern but hand off extra
38559 widenings to callers.
38560 (vect_recog_widen_mult_pattern): Handle extra widening produced
38561 by vect_handle_widen_op_by_const.
38562 (vect_recog_widen_shift_pattern): Likewise.
38563 (vect_pattern_recog_1): Remove excess vertical space in dumping.
38564 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
38565 (vect_init_vector_1): Likewise.
38566 (vect_get_vec_def_for_operand): Likewise.
38567 (vect_finish_stmt_generation): Likewise.
38568 (vectorizable_load): Likewise.
38569 (vect_analyze_stmt): Likewise.
38570 (vect_is_simple_use): Likewise.
38571
38572 2015-01-29 Jeff Law <law@redhat.com>
38573
38574 * combine.c (try_combine): Fix typo in comment.
38575
38576 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
38577
38578 PR target/64580
38579 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
38580 (rs6000_stack_info): Add assert.
38581 (rs6000_output_savres_externs): New function, split off from...
38582 (rs6000_output_function_prologue): ... here. Do not call it for
38583 thunks.
38584
38585 2015-01-29 Jeff Law <law@redhat.com>
38586
38587 PR target/15184
38588 * combine.c (try_combine): If I0 is a memory load and I3 a store
38589 to a related address, increase the "goodness" of doing a 4-insn
38590 combination with I0-I3.
38591 (make_field_assignment): Handle SUBREGs in the ior+and case.
38592
38593 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
38594
38595 PR tree-optimization/64746
38596 * tree-if-conv.c (mask_exists): New function.
38597 (predicate_mem_writes): Save created mask with given size for further
38598 use.
38599 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
38600 (ifcvt_repair_bool_pattern): Collect all statements that are root
38601 of bool pattern and use iterative algorithm to remove multiple uses
38602 of predicates, display number of required iterations.
38603
38604 2015-01-29 Richard Biener <rguenther@suse.de>
38605
38606 PR tree-optimization/64853
38607 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
38608 stmt will get simulated again.
38609 * tree-ssa-ccp.c (valueize_op_1): Likewise.
38610
38611 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38612
38613 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
38614 return_in_pc. Remove redundant assignments.
38615 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
38616 (arm_expand_epilogue): Don't compare boolean with true in if condition.
38617
38618 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
38619
38620 * config/i386/i386.c (ix86_mode_after): Make static.
38621
38622 2015-01-29 Richard Biener <rguenther@suse.de>
38623
38624 PR tree-optimization/64844
38625 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
38626 dump cost model analysis.
38627 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
38628 Do not register adjusted load/store costs here.
38629
38630 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38631 Uros Bizjak <ubizjak@gmail.com>
38632
38633 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
38634 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
38635 using x86_use_pseudo_pic_reg.
38636 * config/i386/i386.c (ix86_conditional_register_usage): Remove
38637 support for fixed PIC register.
38638 (ix86_use_pseudo_pic_reg): Not static any more.
38639
38640 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38641
38642 PR middle-end/64805
38643 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
38644 to avoid error in cgraph node verification.
38645
38646 2015-01-29 Marek Polacek <polacek@redhat.com>
38647
38648 * doc/standards.texi: Reflect that the default for C is gnu11.
38649
38650 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
38651
38652 PR target/64761
38653 * reorg.c (switch_text_sections_between_p): New function.
38654 (relax_delay_slots): Call it when testing if the jump insn
38655 is removable. Use targetm.can_follow_jump when testing if
38656 the conditional branch can follow an unconditional jump.
38657
38658 2015-01-27 Caroline Tice <cmtice@google.com>
38659
38660 Committing VTV Cywin/Ming patch for Patrick Wollgast
38661 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
38662 if -fvtable-verify=preinit/std is used.
38663 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
38664 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
38665 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
38666 if -fvtable-verify=preinit/std is used.
38667 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38668 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
38669 if -fvtable-verify=preinit/std is used.
38670 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
38671 * config/i386/mingw32.h (LIB_SPEC): Likewise.
38672 * varasm.c (assemble_variable): Add code to properly set the comdat
38673 section and name for the .vtable_map_vars section in case the
38674 target is PE or COFF.
38675
38676 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38677
38678 PR ipa/64801
38679 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
38680 make sane BB profile.
38681 (cgraph_node::expand_thunk): Make sane BB profile.
38682 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
38683 * cgraph.h (init_lowered_empty_function): Update prototype.
38684 * config/i386/i386.c (make_resolver_func): Update call.
38685 * predict.c (gate): Disable branch prediction pass if
38686 profile is already there.
38687
38688 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38689
38690 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
38691 * opth-gen.awk: Likewise.
38692 * common.opt: Mark flag_fp_contract_mode as Optimization.
38693
38694 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
38695
38696 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
38697 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
38698
38699 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
38700
38701 PR target/64659
38702 * config/sh/predicates.md (atomic_arith_operand,
38703 atomic_logical_operand): Remove.
38704 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
38705 (atomic_arith_operand_0): New predicate.
38706 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
38707 Use atomic_arith_operand_0 for input values.
38708 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
38709 atomic_compare_and_swap<mode>_soft_gusa,
38710 atomic_compare_and_swap<mode>_soft_tcb,
38711 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
38712 arith_reg_operand instead of register_operand.
38713 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
38714 atomic_arith_operand_0 for newval input.
38715 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
38716 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
38717 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
38718 arith_reg_operand instead of register_operand.
38719 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
38720 fetchop_predicate_1, fetchop_constraint_1_llcs,
38721 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
38722 fetchop_constraint_1_imask): New code iterator attributes.
38723 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
38724 register_operand. Use fetchop_predicate_1.
38725 (atomic_fetch_<fetchop_name>si_hard,
38726 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
38727 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
38728 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
38729 and arith_reg_operand instead of register_operand. Use
38730 fetchop_predicate_1, fetchop_constraint_1_gusa.
38731 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
38732 and arith_reg_operand instead of register_operand. Use
38733 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
38734 to allow R0 usage.
38735 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
38736 and arith_reg_operand instead of register_operand. Use
38737 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
38738 to allow R0 usage.
38739 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
38740 register_operand. Use atomic_logical_operand_1.
38741 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
38742 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
38743 arith_reg_operand instead of register_operand.
38744 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
38745 Use arith_reg_dest and arith_reg_operand instead of register_operand.
38746 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
38747 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
38748 register_operand. Use fetchop_predicate_1.
38749 (atomic_<fetchop_name>_fetchsi_hard,
38750 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
38751 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38752 fetchop_constraint_1_llcs.
38753 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
38754 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38755 fetchop_constraint_1_gusa.
38756 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
38757 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38758 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
38759 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
38760 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38761 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
38762 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
38763 register_operand. Use atomic_logical_operand_1.
38764 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
38765 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
38766 arith_reg_operand instead of register_operand.
38767 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
38768 arith_reg_operand instead of register_operand. Use logical_operand
38769 and K08. Adjust asm sequence to allow R0 usage.
38770 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
38771 arith_reg_operand instead of register_operand. Use logical_operand
38772 and K08.
38773
38774 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38775
38776 PR other/63504
38777 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
38778 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
38779 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
38780 only get_full_len HOST_WIDE_INTs from get_val () array rather than
38781 all bits in *val_wide.
38782
38783 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
38784
38785 * varpool.c (tls_model_names): Fix names.
38786 (varpool_node::dump): Dump tls- prefix for tls models.
38787
38788 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
38789 Bernd Schmidt <bernds@codesourcery.com>
38790 Nathan Sidwell <nathan@codesourcery.com>
38791
38792 * config/nvptx/mkoffload.c: New file.
38793 * config/nvptx/t-nvptx: Add build rules for it.
38794 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
38795 (extra_programs): Add mkoffload.
38796 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
38797 function.
38798 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
38799
38800 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
38801
38802 PR middle-end/64809
38803 * cfgexpand.c (reorder_operands): Skip debug gimples.
38804
38805 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
38806
38807 PR tree-optimization/64277
38808 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
38809 range info when possible to refine estimation.
38810
38811 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
38812
38813 PR tree-optimization/64718
38814 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
38815 be a 16bit unsigned integer when n->range is 16.
38816 (bswap_replace): Convert src to that type if necessary for all bswap
38817 sizes. Fix rotation right notation in nearby comment. Use bswap_type
38818 set in pass_optimize_bswap::execute ().
38819
38820 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
38821
38822 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
38823 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
38824 integer and floating point variants.
38825 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
38826
38827 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
38828
38829 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
38830 for all vector modes.
38831
38832 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38833
38834 PR bootstrap/64612
38835 * doc/sourcebuild.texi (comdat_group): Document.
38836
38837 2015-01-28 Terry Guo <terry.guo@arm.com>
38838
38839 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
38840
38841 2015-01-27 David Malcolm <dmalcolm@redhat.com>
38842
38843 * toplev.c (print_version): Add param "show_global_state", and
38844 only print GGC and plugin information if it is true.
38845 (init_asm_output): Pass in "true" for the new param when calling
38846 print_version.
38847 (process_options): Likewise.
38848 (toplev::main): Likewise.
38849 * toplev.h (print_version): Add new param to decl.
38850
38851 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38852
38853 PR ipa/60871
38854 PR ipa/64139
38855 * tree.c (lookup_binfo_at_offset): New function.
38856 (get_binfo_at_offset): Use it.
38857
38858 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
38859
38860 PR ipa/64282
38861 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
38862 on vtable being vtable.
38863
38864 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
38865
38866 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
38867 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
38868 -mhotpatch= option.
38869 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
38870 -mno-hotpatch options. Change syntax of -mhotpatch= option.
38871 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
38872 Renamed.
38873 (s390_hotpatch_trampoline_halfwords_max): Renamed.
38874 (s390_hotpatch_hw_max): New name.
38875 (s390_hotpatch_trampoline_halfwords): Renamed.
38876 (s390_hotpatch_hw_before_label): New name.
38877 (get_hotpatch_attribute): Removed.
38878 (s390_hotpatch_hw_after_label): New name.
38879 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
38880 attribute.
38881 (s390_attribute_table): Ditto.
38882 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
38883 (s390_function_num_hotpatch_hw): New name.
38884 Remove special handling of inline functions and hotpatching.
38885 Return number of nops before and after the function label.
38886 (s390_can_inline_p): Removed.
38887 (s390_asm_output_function_label): Emit a configurable number of nops
38888 after the function label.
38889 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
38890 (TARGET_CAN_INLINE_P) Removed.
38891 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
38892
38893 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
38894 Jiong Wang <jiong.wang@arm.com>
38895
38896 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
38897 of scratch reg.
38898 (cb<optab><mode>1): Likewise.
38899 * config/aarch64/iterators.md (bcond): New define_code_attr.
38900
38901 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38902
38903 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
38904 memory accesses.
38905
38906 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
38907
38908 * config/s390/s390.c (s390_register_move_cost): Increase costs for
38909 FPR->GPR moves.
38910
38911 2015-01-27 Richard Biener <rguenther@suse.de>
38912
38913 * tree-vrp.c (update_value_range): Intersect the range with
38914 old recorded SSA name range information.
38915
38916 2015-01-27 Nick Clifton <nickc@redhat.com>
38917
38918 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
38919 BC, DE and HL registers directly, not via AX.
38920 When decrementing the stack pointer by a large amount, transfer SP
38921 into AX and perform the subtraction there.
38922 (rl78_expand_epilogue): Perform the inverse of the above
38923 enhancements.
38924
38925 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
38926
38927 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
38928
38929 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38930 Yury Gribov <y.gribov@samsung.com>
38931
38932 PR ubsan/64741
38933 * ubsan.c (ubsan_source_location): Refactor code.
38934 (ubsan_type_descriptor): Update type size. Refactor code.
38935
38936 2015-01-27 Richard Biener <rguenther@suse.de>
38937
38938 PR tree-optimization/56273
38939 PR tree-optimization/59124
38940 PR tree-optimization/64277
38941 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
38942 from the first VRP pass.
38943
38944 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38945
38946 PR ipa/64776
38947 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
38948 handle the first argument in the same loop as all the other arguments.
38949
38950 PR rtl-optimization/61058
38951 * jump.c (cleanup_barriers): Update basic block boundaries
38952 if BLOCK_FOR_INSN is non-NULL on PREV.
38953
38954 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
38955
38956 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
38957 bounds narrowing, already instrumented calls and calls to
38958 not instrumentable functions.
38959
38960 2015-01-27 Jakub Jelinek <jakub@redhat.com>
38961
38962 PR tree-optimization/64807
38963 * wide-int.cc (wi::divmod_internal): Clear
38964 b_dividend[dividend_blocks_needed].
38965
38966 2015-01-26 DJ Delorie <dj@redhat.com>
38967
38968 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
38969 volatile memory references.
38970
38971 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
38972
38973 PR target/49263
38974 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
38975 remove_insn.
38976 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
38977 shifts if it already fits into K08.
38978
38979 2015-01-26 Jakub Jelinek <jakub@redhat.com>
38980
38981 PR ipa/64730
38982 * ipa-inline.c (inline_small_functions): Print "unknown" even
38983 if edge->call_stmt is non-NULL, but has builtins or unknown
38984 location.
38985
38986 PR middle-end/64421
38987 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
38988 with asterisk, skip the first character.
38989
38990 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
38991
38992 PR target/64806
38993 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
38994 order change.
38995
38996 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
38997
38998 PR target/64795
38999 * config/i386/i386.md (*movdi_internal): Also check operand 0
39000 to determine TYPE_LEA operand.
39001 (*movsi_internal): Ditto.
39002
39003 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39004
39005 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39006 OPTION_MASK_QUAD_MEMORY_ATOMIC.
39007
39008 2015-01-26 Renlin Li <renlin.li@arm.com>
39009
39010 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39011 the comment.
39012 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39013 for higher part.
39014
39015 2015-01-26 Richard Biener <rguenther@suse.de>
39016
39017 PR middle-end/64764
39018 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39019 combining two BIT_AND_EXPR predicates.
39020
39021 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39022
39023 PR bootstrap/64754
39024 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39025
39026 2015-01-26 Terry Guo <terry.guo@arm.com>
39027
39028 * config/arm/arm.c (arm_file_start): Update the assignment of
39029 Tag_ABI_HardFP_use.
39030
39031 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
39032
39033 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39034 pipeline model.
39035 config/arm/arm.md: Include the new Cortex-A57 model.
39036 (generic_sched): Don't use generic_sched when tuning for
39037 Cortex-A57.
39038
39039 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
39040 Uros Bizjak <ubizjak@gmail.com>
39041
39042 * config/i386/i386.c (get_builtin_code_for_version): Add
39043 support for BMI and BMI2 multiversion functions.
39044
39045 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39046
39047 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39048 (extract_bit_field): Likewise.
39049 (extract_low_bits): Likewise.
39050 (expand_mult): Likewise.
39051 (expand_mult_highpart_adjust): Likewise.
39052
39053 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
39054
39055 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39056 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39057 * config/i386/i386.c (processor_model): Add
39058 M_INTEL_COREI7_BROADWELL.
39059 (arch_names_table): Add "broadwell".
39060
39061 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
39062
39063 PR target/49263
39064 PR target/53987
39065 PR target/64345
39066 PR target/59533
39067 PR target/52933
39068 PR target/54236
39069 PR target/51244
39070 * config/sh/sh-protos.h
39071 (sh_extending_set_of_reg::can_use_as_unextended_reg,
39072 sh_extending_set_of_reg::use_as_unextended_reg,
39073 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39074 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39075 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39076 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39077 (sh_treg_insns): New class.
39078 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39079 (scope_counter): New class.
39080 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39081 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39082 sh_extending_set_of_reg::can_use_as_unextended_reg,
39083 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39084 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39085 sh_split_treg_set_expr): New functions.
39086 (addsubcosts): Handle treg_set_expr.
39087 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39088 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39089 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39090 (sh_insn_operands_modified_between_p): Make non-static.
39091 * config/sh/predicates.md (zero_extend_movu_operand): Allow
39092 simple_mem_operand in addition to displacement_mem_operand.
39093 (zero_extend_operand): Don't allow zero_extend_movu_operand.
39094 (treg_set_expr, treg_set_expr_not_const01,
39095 arith_reg_or_treg_set_expr): New predicates.
39096 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39097 arith_or_int_operand instead of logical_operand. Convert to
39098 insn_and_split. Try to optimize constant operand in splitter.
39099 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
39100 (*tstqi_t_zero): Delete.
39101 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39102 (tstsi_t_and_not): Delete.
39103 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39104 Convert to insn_and_split.
39105 (unnamed split, tstsi_t_zero_extract_xor,
39106 tstsi_t_zero_extract_subreg_xor_little,
39107 tstsi_t_zero_extract_subreg_xor_big): Delete.
39108 (*tstsi_t_shift_mask): New insn_and_split.
39109 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39110 to recombine with surrounding insns when splitting.
39111 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39112 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39113 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39114 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39115 (*cbranch_div0s: Delete.
39116 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39117 Try to recombine with surrounding insns when splitting. Add operand
39118 order variants.
39119 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39120 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39121 *addc_r_r_msb, *addc_2r_msb): Delete.
39122 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
39123 order variant.
39124 (*addc_negreg_t): New insn_and_split.
39125 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39126 Try to recombine with surrounding insns when splitting.
39127 Add operand order variants.
39128 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39129 insn_and_split patterns.
39130 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
39131 surrounding insns when splitting.
39132 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39133 (*rotcl): Likewise. Add zero_extract variant.
39134 (*ashrsi2_31): New insn_and_split.
39135 (*negc): Convert to insn_and_split. Use treg_set_expr.
39136 (*zero_extend<mode>si2_disp_mem): Update comment.
39137 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39138 condition.
39139 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
39140 with surrounding insns when splitting.
39141 (any_treg_expr_to_reg): New insn_and_split.
39142 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39143 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39144 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39145 *zero_extract_2): New single bit zero extract patterns.
39146 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39147 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39148 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39149 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39150 set destination.
39151 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39152 register_operand for set source.
39153
39154 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
39155
39156 * i386.opt (prefetch_sse): New targetsave.
39157 * i386.c (ix86_function_specific_save): Save prefetch_sse.
39158 (ix86_function_specific_restore): Restore prefetch_sse and initialize
39159 ix86_cost/ix86_tune_cost.
39160
39161 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39162
39163 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39164 Support the JIT by using 0 as the language type.
39165
39166 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
39167
39168 PR target/64317
39169 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
39170 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39171 (mark_regno_live, process_bb_lives): Pass new parameter value to
39172 make_hard_regno_born.
39173
39174 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39175
39176 PR rtl-optimization/63637
39177 PR rtl-optimization/60663
39178 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39179 if elt->cost is MAX_COST for ASM_OPERANDS.
39180 (find_sets_in_insn): Fix up comment typo.
39181 (cse_insn): Don't set src_volatile for all non-volatile
39182 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39183 or with "memory" clobber. Set elt->cost to MAX_COST
39184 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
39185 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39186
39187 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39188
39189 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39190 alternative 1.
39191
39192 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39193
39194 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39195 libgcc/config/i386/elf-lib.h.
39196
39197 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39198
39199 PR driver/64737
39200 * gcc.c (print_configuration): Don't print a blank line at the end
39201 here...
39202 (run_attempt): ... but here unstead.
39203
39204 PR middle-end/64734
39205 * omp-low.c (scan_sharing_clauses): Don't ignore
39206 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39207 on target data/update constructs.
39208
39209 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
39210
39211 PR target/50928
39212 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39213 (DEBUG_RELOAD): Removed define.
39214 (m32c_limit_reload_class): Enable traces with if DEBUG0.
39215 (m32c_function_arg): Added a type cast.
39216 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39217 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39218 * config/m32c/bitops.md (andqi3_16): Likewise.
39219 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39220 (push_a01_l): Likewise.
39221
39222 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39223
39224 PR jit/64721
39225 * main.c (main): Construct toplev instances with init_signals=true.
39226 * toplev.c (general_init): Add param "init_signals", and use it to
39227 conditionalize the calls to signal and host_hooks.extra_signals.
39228 (toplev::toplev): Add param "init_signals".
39229 (toplev::main): When invoking general_init, pass m_init_signals
39230 to control whether signal-handlers are installed.
39231 * toplev.h (toplev::toplev): Add param "init_signals".
39232 (toplev::m_init_signals): New field.
39233
39234 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39235
39236 PR jit/64722
39237 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39238 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39239 latter may be affected by the former (e.g. on i686).
39240
39241 2015-01-23 Martin Liska <mliska@suse.cz>
39242
39243 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39244 false positive during profiledbootstrap.
39245
39246 2015-01-23 Tom de Vries <tom@codesourcery.com>
39247
39248 PR libgomp/64672
39249 * lto-opts.c (lto_write_options): Output non-explicit conservative
39250 -fno-openacc.
39251 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39252 (append_compiler_options): Pass -fopenacc through.
39253
39254 2015-01-23 Tom de Vries <tom@codesourcery.com>
39255
39256 PR libgomp/64707
39257 * lto-opts.c (lto_write_options): Output non-explicit conservative
39258 -fno-openmp.
39259 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39260 (append_compiler_options): Pass -fopenmp through.
39261
39262 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39263
39264 PR debug/64511
39265 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39266 GTY markup.
39267
39268 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39269 * diagnostic.def (DK_ICE_NOBT): New kind.
39270 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39271 like DK_ICE, but never print backtrace.
39272 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39273 (internal_error_no_backtrace): New function.
39274 * gcc.c (execute): Use internal_error_no_backtrace instead of
39275 internal_error.
39276
39277 2015-01-22 Jeff Law <law@redhat.com>
39278
39279 PR target/52076
39280 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39281 improve code density for small immediate to memory case.
39282 (insv): Better handle bitfield assignments when the field is
39283 being set to all ones.
39284 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39285 operand predicate.
39286
39287 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39288 Jakub Jelinek <jakub@redhat.com>
39289
39290 PR middle-end/64729
39291 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39292 for !TARGET_LIBC_PROVIDES_SSP version and
39293 -fstack-protector-{all,strong,explicit} otherwise.
39294 * config/freebsd.h (LINK_SSP_SPEC): Handle
39295 -fstack-protector-{strong,explicit}.
39296
39297 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
39298 H.J. Lu <hongjiu.lu@intel.com>
39299
39300 PR ipa/64694
39301 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39302 heap.
39303
39304 2015-01-22 Wei Mi <wmi@google.com>
39305
39306 PR rtl-optimization/64557
39307 * dse.c (record_store): Call get_addr for mem_addr.
39308 (check_mem_read_rtx): Likewise.
39309
39310 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
39311
39312 * fold-const.c (const_binop): Add early return for non-tcc_binary.
39313
39314 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
39315
39316 * toplev.c (init_local_tick): Process the failure when read
39317 fails for random_seed.
39318
39319 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39320 'pretty_name' to avoid memory overflow.
39321
39322 2015-01-22 Richard Biener <rguenther@suse.de>
39323
39324 PR middle-end/64728
39325 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39326 abnormal coalescing on undefined SSA names.
39327
39328 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
39329
39330 PR target/64688
39331 PR target/64477
39332 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39333 for alternative 3.
39334 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39335
39336 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
39337
39338 PR middle-end/63325
39339 * fold-const.c (fold_checksum_tree): Don't include value of
39340 expr->decl_with_vis.symtab_node in the checksum.
39341
39342 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39343
39344 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39345
39346 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
39347
39348 PR driver/64690
39349 * gcc.c (insert_comments): New function.
39350 (try_generate_repro): Call it.
39351 (append_text): Removed.
39352
39353 2015-01-22 Richard Biener <rguenther@suse.de>
39354
39355 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39356 with IL incompatible options. Properly honor user optimize
39357 attributes.
39358
39359 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
39360
39361 PR rtl-optimization/64682
39362 * combine.c (distribute_notes): When moving a death note for
39363 a register that is set in the new I2, make sure to put it
39364 before that new I2.
39365
39366 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
39367
39368 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39369 not TARGET_DEFAULT.
39370
39371 2015-01-21 Jakub Jelinek <jakub@redhat.com>
39372
39373 PR debug/64511
39374 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39375 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39376 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39377
39378 PR sanitizer/64706
39379 * doc/invoke.texi (-fsanitize=vptr): Document.
39380
39381 PR rtl-optimization/62078
39382 * dse.c: Include cfgcleanup.h.
39383 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39384 anything call purge_all_dead_edges and cleanup_cfg at the end
39385 of the pass.
39386
39387 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
39388
39389 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39390 edges.
39391
39392 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
39393
39394 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39395 decl attribute.
39396
39397 2015-01-21 David Sherwood <david.sherwood@arm.com>
39398 Tejas Belagod <Tejas.Belagod@arm.com>
39399
39400 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39401 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39402 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39403 Removed.
39404
39405 2015-01-21 David Sherwood <david.sherwood@arm.com>
39406 Tejas Belagod <Tejas.Belagod@arm.com>
39407
39408 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39409 (aarch64_reverse_mask): New decls.
39410 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39411 (insn_count): New mode_attr.
39412 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39413 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39414 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39415 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39416 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39417 (aarch64_simd_st4): New patterns.
39418 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39419 (aarch64_reverse_mask): New functions.
39420
39421 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39422
39423 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39424 Declare.
39425 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39426 addressing modes for BE.
39427 (aarch64_print_operand): Add 'R' specifier.
39428 (aarch64_simd_disambiguate_copy): Delete.
39429 (aarch64_simd_emit_reg_reg_move): New function.
39430 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
39431 in define_splits for structural moves.
39432 (mov<mode>): Use less restrictive predicates.
39433 (*aarch64_mov<mode>): Simplify and only allow for LE.
39434 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
39435
39436 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39437
39438 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
39439
39440 2015-01-21 Richard Henderson <rth@redhat.com>
39441
39442 PR target/64669
39443 * ccmp.c (used_in_cond_stmt_p): Remove.
39444 (expand_ccmp_expr): Don't use it.
39445
39446 2015-01-21 Nick Clifton <nickc@redhat.com>
39447
39448 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
39449 PARALLELs.
39450
39451 2015-01-21 Richard Biener <rguenther@suse.de>
39452
39453 PR middle-end/64313
39454 * tree-core.h (builtin_info, builtin_info_type): Turn from
39455 an object with two arrays into an array of an object with
39456 decl and two flags, implicit_p and declared_p.
39457 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
39458 set_builtin_decl, set_builtin_decl_implicit_p,
39459 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
39460 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
39461 * builtins.c (builtin_info): Adjust.
39462 * gimplify.c (gimplify_addr_expr): References to builtins
39463 that have been declared by the user makes them eligible for
39464 use by the compiler. Call set_builtin_decl_implicit_p on them.
39465
39466 2015-01-20 Jeff Law <law@redhat.com>
39467
39468 PR target/59946
39469 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
39470 allow pc-relative addresses in operand predicates or constraints.
39471
39472 2015-01-21 Bin Cheng <bin.cheng@arm.com>
39473
39474 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
39475 neon on aarch32 processors for stringops.
39476
39477 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39478
39479 PR ipa/63576
39480 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
39481
39482 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39483
39484 PR lto/45375
39485 * ipa-inline.c: Include lto-streamer.h
39486 (report_inline_failed_reason): Output source file differences and
39487 flags on optimization/target node mismatch.
39488 (can_inline_edge_p): Consider caller to be the outer inline function;
39489 be less restrictive about matching opimize and optimize_size attributes.
39490 (inline_account_function_p): Break out from ...
39491 (inline_small_functions): ... here.
39492 * ipa-inline-transform.c (clone_inlined_nodes): Use
39493 inline_account_function_p.
39494 (inline_call): Use optimize attribution; use inline_account_function_p.
39495 (inline_transform): Use opt_for_fn.
39496 * ipa-inline.h (inline_account_function_p): Declare.
39497
39498 2015-01-20 Jakub Jelinek <jakub@redhat.com>
39499
39500 PR debug/64663
39501 * dwarf2out.c (decl_piece_node): Don't put bitsize into
39502 mode if bitsize <= 0.
39503 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
39504 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
39505 sizes and positions.
39506
39507 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
39508
39509 * config/nios2/nios2.c (nios2_asm_file_end): Implement
39510 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
39511 needed.
39512 (TARGET_ASM_FILE_END): Define.
39513
39514 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39515
39516 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
39517 (struct tune_params): Use the enum.
39518 * arm.c (arm_*_tune): Update.
39519 (arm_option_override): Update.
39520
39521 2015-01-20 Richard Biener <rguenther@suse.de>
39522
39523 PR ipa/64684
39524 * ipa-reference.c (add_static_var): Inline ...
39525 (analyze_function): ... here after splitting out from ...
39526 (is_proper_for_analysis): ... this.
39527
39528 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
39529
39530 PR target/64149
39531 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
39532 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
39533 replace the conditional with it's true branch.
39534 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
39535 (arm_lra_p): Remove.
39536
39537 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
39538
39539 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
39540
39541 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39542
39543 * config/tilegx/mul-tables.c: Move symtab.h include after
39544 coretypes.h include.
39545 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
39546 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
39547 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
39548 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
39549 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39550
39551 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
39552
39553 PR bootstrap/64676
39554 Revert:
39555 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39556
39557 PR rtl-optimization/64081
39558 * loop-iv.c (def_pred_latch_p): New function.
39559 (latch_dominating_def): Allow specific cases with non-single
39560 definitions.
39561 (iv_get_reaching_def): Likewise.
39562 (check_complex_exit_p): New function.
39563 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39564 with exits not executing on any iteration.
39565
39566 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39567
39568 PR lto/45375
39569 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
39570 to set branch cost.
39571
39572 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39573
39574 PR lto/45375
39575 * i386.c (gate): Check flag_expensive_optimizations and
39576 optimize_size.
39577 (ix86_option_override_internal): Drop optimize_size condition
39578 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
39579 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
39580 MASK_PREFER_AVX128.
39581 (ix86_avx256_split_vector_move_misalign,
39582 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
39583 * sse.md (all uses of TARGET_PREFER_AVX128): Add
39584 optimize_insn_for_speed_p check.
39585
39586 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
39587
39588 * config/mips/mips.h (FP_ASM_SPEC): New define.
39589 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
39590 instead.
39591
39592 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
39593
39594 PR target/53988
39595 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
39596 nullptr for insn when reaching the first insn.
39597 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
39598 (sh_insn_operands_modified_between_p): Add nullptr check.
39599 (sh_find_extending_set_of_reg): Fix log message. Don't accept
39600 sign extending mem load if the insn contains any UNSPEC or
39601 UNSPEC_VOLATILE.
39602
39603 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39604
39605 * params.def (inline-unit-growth): Drop to 15%.
39606 * invoke.texi (inline-unit-growth): Document change.
39607
39608 2015-01-19 Martin Liska <mliska@suse.cz>
39609
39610 PR ipa/64668
39611 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
39612 function for second argument of OBJ_TYPE_REF.
39613
39614 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39615
39616 PR ipa/64218
39617 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
39618 whether function is an alias.
39619
39620 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39621
39622 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
39623 cases.
39624
39625 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
39626
39627 PR rtl-optimization/64671
39628 * lra-remat.c (operand_to_remat): Don't consider jump and call
39629 insns.
39630
39631 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
39632
39633 PR target/59828
39634 * config/rs6000/default64.h: Include rs6000-cpus.def.
39635 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
39636 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
39637 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
39638 and POWER8.
39639 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
39640 POWER8.
39641 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
39642 pseudo-op to specify assembler dialect.
39643
39644 2015-01-19 Martin Liska <mliska@suse.cz>
39645
39646 PR ipa/64664
39647 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
39648 Handle safe potentially removed nodes during filtering.
39649
39650 2015-01-19 Martin Liska <mliska@suse.cz>
39651
39652 * doc/extend.texi (no_icf): Add new attribute description.
39653 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
39654 where the pass attempts to merge a function with no_icf attribute.
39655
39656 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39657
39658 PR target/64532
39659 * doc/md.texi (ARM Options): Document register constraints.
39660
39661 2015-01-19 Jiong Wang <jiong.wang@arm.com>
39662 Andrew Pinski <apinski@cavium.com>
39663
39664 PR target/64304
39665 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
39666 (ashl<mode>3): Don't expand if operands[2] is not constant.
39667
39668 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39669
39670 PR target/64448
39671 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
39672 Match xor-and-xor RTL pattern.
39673
39674 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39675
39676 PR rtl-optimization/64081
39677 * loop-iv.c (def_pred_latch_p): New function.
39678 (latch_dominating_def): Allow specific cases with non-single
39679 definitions.
39680 (iv_get_reaching_def): Likewise.
39681 (check_complex_exit_p): New function.
39682 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39683 with exits not executing on any iteration.
39684
39685 2015-01-19 Jakub Jelinek <jakub@redhat.com>
39686
39687 * common.opt (fgraphite): Fix a typo.
39688
39689 2015-01-19 Felix Yang <felix.yang@huawei.com>
39690
39691 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
39692 pattern.
39693 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
39694 uminp, smax_nanp, smin_nanp): New builtins.
39695 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
39696 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
39697 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
39698 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
39699 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
39700 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
39701 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
39702 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
39703 vpminnms_f32): Rewrite using builtin functions.
39704
39705 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
39706
39707 PR libgomp/64625
39708 * omp-low.c (offload_symbol_decl): Remove variable.
39709 (get_offload_symbol_decl): Remove function.
39710 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
39711 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
39712 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
39713 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
39714 BUILT_IN_GOACC_UPDATE don't pass it at all.
39715
39716 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39717
39718 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
39719 callers.
39720
39721 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39722
39723 * ipa-chkp.c (chkp_produce_thunks): Add early param
39724 to split thunks production into two passes. Keep
39725 'always_inline' function bodies after the first pass.
39726 (pass_data_ipa_chkp_early_produce_thunks): New.
39727 (pass_ipa_chkp_early_produce_thunks): New.
39728 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
39729 chkp_produce_thunks signature.
39730 (make_pass_ipa_chkp_early_produce_thunks): New.
39731 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
39732 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
39733 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
39734
39735 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39736
39737 * cgraph.c (cgraph_node::dump): Dump profile flags.
39738
39739 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
39740
39741 PR target/64652
39742 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
39743 reg appear first in the parallel.
39744
39745 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39746
39747 * ipa-reference.c (set_reference_optimization_summary,
39748 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
39749 disabled.
39750 (ignore_module_statics): New static var.
39751 (propagate_bits): If ipa-reference is disabled, do not look into local
39752 properties.
39753 (analyze_function): Disable analysis when ipa_reference is disabled.
39754 (generate_summary): Do not dump when reference is disabled;
39755 collect vars accessed from functions with ipa-reference disabled.
39756 (get_read_write_all_from_node): When ipa-reference is disabled, use the
39757 node flags.
39758 (gate): Enable for LTO.
39759 (ignore_edge_p): New function.
39760 (propagate): Skip functions w/o ipa-reference analysis.
39761 * optc-save-gen.awk: Handle optimize_debug correctly.
39762 * opth-gen.awk: Likewise.
39763 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
39764 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
39765 fira-share-save-slots, fira-share-spill-slots,
39766 fmodulo-sched-allow-regmoves, fpartial-inlining,
39767 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
39768 ftracer, ftree-parallelize-loops, fassociative-math,
39769 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
39770 Optimization
39771 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
39772 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
39773 Optimization.
39774 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
39775 Fix for IPA.
39776
39777 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39778
39779 PR ipa/64378
39780 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
39781 flag correctly.
39782 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
39783
39784 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
39785
39786 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
39787 Remove duplicate option listings.
39788
39789 2015-01-18 Felix Yang <felix.yang@huawei.com>
39790
39791 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
39792 (autofdo_source_profile::get_callsite_total_count,
39793 function_instance::get_function_instance_by_decl,
39794 string_table::get_index, string_table::get_index_by_decl,
39795 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
39796 Fix comment typos. Reformatting and minor code rearrangement.
39797
39798 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39799
39800 * config/rs6000/rs6000.md (probe_stack): Delete.
39801 (probe_stack_address): New.
39802
39803 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39804
39805 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
39806 to test for 32-bit ABIs, not !TARGET_POWERPC64.
39807
39808 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39809
39810 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
39811 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
39812 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
39813 snafu.
39814 (rs6000_libcall_value): Use the new function.
39815
39816 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
39817
39818 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
39819
39820 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
39821
39822 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
39823 implement a more precise life analysis for it during backward scan.
39824
39825 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
39826
39827 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
39828
39829 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
39830
39831 PR rtl-optimization/52773
39832 * calls.c (emit_library_call_value): When pushing arguments use
39833 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
39834 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
39835 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
39836
39837 2015-01-17 Jeff Law <law@redhat.com>
39838
39839 PR rtl-optimization/32790
39840 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
39841 not ZERO_EXTEND in SET_DESTs.
39842
39843 2015-01-17 Alan Modra <amodra@gmail.com>
39844
39845 * cprop.c (do_local_cprop): Revert last change.
39846
39847 2015-01-16 DJ Delorie <dj@redhat.com>
39848 Nick Clifton <nickc@redhat.com>
39849
39850 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
39851 (addhi3_real): Likewise. Fix [HL+0] syntax.
39852 (subqi3_real): Likewise.
39853 (subhi3_real): Likewise.
39854 (cbranchqi4_real): Likewise. Allow saddr,#imm.
39855 (cbranchhi4_real): Likewise.
39856 (cbranchhi4_real_inverted): Likewise.
39857 (cbranchsi4_real_lt): Likewise.
39858 (cbranchsi4_real_ge): Likewise.
39859 (cbranchsi4_real_ge): Likewise.
39860 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
39861 (sub<mode>3_virt): Likewise.
39862 (cbranchqi4_virt): Likewise.
39863 (cbranchhi4_virt): Likewise.
39864 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
39865 always use '[reg+imm]' even when imm is zero.
39866 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
39867 (rl78_general_operand): New.
39868 (rl78_nonimmediate_operand): New.
39869 (rl78_nonfar_operand): Use them.
39870 (rl78_nonfar_nonimm_operand): Likewise.
39871 (rl78_stack_based_mem): Fix.
39872 * config/rl78/constraints.md (Ibqi): New.
39873 (IBqi): New.
39874 (Wsa): New.
39875 (Wsf): New.
39876 (Cs1): Fix.
39877 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
39878 (iorqi3): Likewise.
39879 (xorqi3): Likewise.
39880 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
39881
39882 * config/rl78/constrains (Qs8): New constraint.
39883 * config/rl78/rl78.c (rl78_flags_already_set): New function.
39884 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
39885 * config/rl78/rl78-real.md (update_Z): New attribute.
39886 Update patterns to set it.
39887 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
39888 shorter compare and branch sequence can be used.
39889 (cbranchhi4_real): Likewise.
39890 (cbranchhi4_real_inverted): Likewise.
39891
39892 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
39893 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
39894 address space.
39895 * config/rl78/rl78.c (rl78_get_name_encoding): New.
39896 (rl78_option_override): Allow -mes0 only if C.
39897 (characterize_address): Support subregs of symbol_refs.
39898 (rl78_addr_space_address_mode): Move. Add __near.
39899 (rl78_far_p): Likewise.
39900 (rl78_addr_space_pointer_mode): Likewise.
39901 (rl78_as_legitimate_address): Likewise.
39902 (rl78_addr_space_subset_p): Likewise.
39903 (rl78_addr_space_convert): Likewise.
39904 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
39905 symbols with -mes0.
39906 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
39907 addressing.
39908 (rl78_alloc_physical_registers_op1): Change logic to prefer
39909 symbol[BC] addressing.
39910 (frodata_section): New.
39911 (rl78_asm_init_sections): Initialize it.
39912 (rl78_select_section): Put __far readonly symbols in .frodata.
39913 (rl78_make_type_far): New.
39914 (rl78_insert_attributes): Force all readonly symbols to be
39915 __far when -mes0.
39916 (rl78_asm_out_integer): New.
39917 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
39918 * config/rl78/rl78.opt (-mes0): New.
39919
39920 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
39921 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
39922 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
39923 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
39924 (rl78_saddr_p): New.
39925 (rl78_output_aligned_common): New.
39926 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
39927 (rl78_handle_saddr_attribute): New.
39928 (rl78_handle_naked_attribute): New.
39929 (rl78_attribute_table): Add saddr.
39930 (rl78_print_operand_1): Don't print '!' on saddr operands.
39931 (rl78_print_operand_1): Strip encodings.
39932 (rl78_sfr_p): New.
39933 (rl78_strip_name_encoding): New.
39934 (rl78_attrlist_to_encoding): New.
39935 (rl78_encode_section_info): New.
39936 (rl78_asm_init_sections): New.
39937 (rl78_select_section): New.
39938 (rl78_output_labelref): New.
39939 (rl78_output_aligned_common): New.
39940 (rl78_asm_out_integer): New.
39941 (rl78_asm_ctor_dtor): New.
39942 (rl78_asm_constructor): New.
39943 (rl78_asm_destructor): New.
39944
39945 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
39946 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
39947 (transcode_memory_rtx): Update.
39948 (rl78_expand_epilogue): Use A_REG instead of 0.
39949
39950 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39951
39952 * config/arm/arm-protos.h (struct tune_params): New field
39953 sched_autopref_queue_depth.
39954 * config/arm/arm.c (sched-int.h): Include header.
39955 (arm_first_cycle_multipass_dfa_lookahead_guard,)
39956 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
39957 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
39958 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
39959 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
39960 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
39961 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
39962 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
39963 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
39964 * config/arm/t-arm (arm.o): Update.
39965 * haifa-sched.c (update_insn_after_change): Update.
39966 (rank_for_schedule): Use auto-prefetcher model, if requested.
39967 (autopref_multipass_init): New static function.
39968 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
39969 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
39970 variable for debug dumps.
39971 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
39972 (autopref_multipass_dfa_lookahead_guard): New global function that
39973 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
39974 (init_h_i_d): Update.
39975 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
39976 * sched-int.h (enum autopref_multipass_data_status): New const enum.
39977 (autopref_multipass_data_): Structure for auto-prefetcher data.
39978 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
39979 (struct _haifa_insn_data:autopref_multipass_data): New field.
39980 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
39981 (autopref_multipass_dfa_lookahead_guard): Declare.
39982
39983 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39984
39985 * rtlanal.c (get_base_term): Handle SCRATCH.
39986
39987 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39988
39989 * config/aarch64/aarch64.c
39990 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
39991 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39992 * config/arm/arm.c
39993 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
39994 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
39995
39996 2015-01-17 Alan Modra <amodra@gmail.com>
39997
39998 * cprop.c (do_local_cprop): Disallow replacement of fixed
39999 hard registers.
40000
40001 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40002
40003 PR target/62066
40004 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40005 early return 0.
40006
40007 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
40008
40009 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40010 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40011
40012 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40013
40014 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40015 * config/arm/thumb1.md: ... Here.
40016
40017 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40018
40019 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40020 TImode for TARGET_32BIT.
40021
40022 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40023
40024 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40025 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40026 as ...
40027 (rs6000_abi_word_mode): New function.
40028
40029 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40030
40031 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40032 instead of UNITS_PER_WORD to describe the size of stack slots.
40033
40034 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40035
40036 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40037 as rs6000_promote_function_mode. Move comment to there.
40038 (rs6000_promote_function_mode): New function.
40039
40040 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40041
40042 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40043 -mpowerpc64 is active.
40044
40045 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40046
40047 PR middle-end/64353
40048 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40049 virtuals on start.
40050
40051 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40052
40053 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40054 introduced in revision 219724.
40055
40056 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40057 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40058
40059 PR target/64263
40060 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40061 destination is not a GP reg.
40062 (*movdi_aarch64): Likewise.
40063
40064 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
40065
40066 PR target/64623
40067 * config/rs6000/default64.h: Revert ISA change.
40068
40069 2015-01-16 Richard Biener <rguenther@suse.de>
40070
40071 PR middle-end/64614
40072 * tree-ssa-uninit.c: Include tree-cfg.h.
40073 (MAX_SWITCH_CASES): New define.
40074 (convert_control_dep_chain_into_preds): Handle switch statements.
40075 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40076 (normalize_one_pred_1): Do not split bit-manipulations.
40077 Record (x & CST).
40078
40079 2015-01-16 Richard Biener <rguenther@suse.de>
40080
40081 PR tree-optimization/64568
40082 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40083 complex load rewriting for TARGET_MEM_REFs.
40084
40085 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
40086
40087 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40088
40089 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
40090
40091 PR target/64149
40092 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40093 variable.
40094 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40095 (aarch64_lra_p): Remove.
40096
40097 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40098
40099 PR target/64363
40100 * ipa-chkp.h (chkp_instrumentable_p): New.
40101 * ipa-chkp.c: Include tree-inline.h.
40102 (chkp_instrumentable_p): New.
40103 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40104 Fix processing of not instrumentable functions.
40105 (chkp_versioning): Use chkp_instrumentable_p. Warn about
40106 not instrumentable functions.
40107 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40108 chkp_instrumentable_p.
40109 * tree-inline.h (copy_forbidden): New.
40110 * tree-inline.c (copy_forbidden): Not static anymore.
40111
40112 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40113
40114 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40115 ptr1, ptr2 unused.
40116
40117 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40118
40119 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40120 type OP_OUT to OP_INOUT.
40121
40122 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40123
40124 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40125 (high x) y) to y if x and y have the same base.
40126
40127 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40128
40129 * config/arm/cortex-a57.md: New.
40130 * config/aarch64/aarch64.md: Include it.
40131 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40132 * config/aarch64/aarch64-tune.md: Regenerate.
40133
40134 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
40135
40136 PR target/64015
40137 * ccmp.c (expand_ccmp_next): New function.
40138 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40139 and compare insn sequence.
40140 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40141 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40142 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40143 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40144 (*ccmp_ior): Changed to ccmp_ior<mode>.
40145 (cmp<mode>): New pattern.
40146 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40147 parameters.
40148 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40149
40150 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
40151
40152 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40153 _mm256_bsrli_epi128): New.
40154 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40155
40156 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40157
40158 * expmed.c (store_bit_field_using_insv): Improve warning message.
40159 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40160
40161 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40162
40163 PR rtl-optimization/64011
40164 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40165 there is partial overflow.
40166
40167 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40168
40169 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40170 prototype.
40171 (nds32_expand_epilogue_v3pop): Likewise.
40172 * config/nds32/nds32.md (sibcall): Define this for sibling call
40173 optimization.
40174 (sibcall_register): Likewise.
40175 (sibcall_immediate): Likewise.
40176 (sibcall_value): Likewise.
40177 (sibcall_value_register): Likewise.
40178 (sibcall_value_immediate): Likewise.
40179 (sibcall_epilogue): Likewise.
40180 (epilogue): Pass false to indicate this is not a sibcall epilogue.
40181 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40182 (nds32_expand_epilogue_v3pop): Likewise.
40183
40184 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40185
40186 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40187 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40188 (return_internal): New.
40189 (return): Define this named pattern.
40190 (simple_return): Define this named pattern.
40191 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40192 pattern instead of unspec_volatile_func_return.
40193 (nds32_expand_epilogue_v3pop): Likewise.
40194 (nds32_can_use_return_insn): New function.
40195
40196 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40197
40198 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40199 * config/nds32/nds32.md (pop25return): New.
40200 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40201 pop25return pattern.
40202
40203 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40204
40205 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40206 -mforbid-fp-as-gp, and -mex9 options.
40207
40208 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40209
40210 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40211 remove -mgp-direct option.
40212
40213 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40214
40215 * doc/invoke.texi (--param early-inlining-insns): Update default value.
40216 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40217
40218 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40219
40220 * ipa-inline.c (inline_small_functions): Work around hints
40221 cache issue.
40222
40223 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
40224
40225 PR target/59710
40226 * doc/invoke.texi (Option Summary): Document new Nios II
40227 -mgpopt= syntax.
40228 (Nios II Options): Likewise.
40229 * config/nios2/nios2.opt: Add -mgpopt= option support.
40230 Modify existing -mgpopt and -mno-gpopt options to be aliases.
40231 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40232 * config/nios2/nios2.c (nios2_option_override): Adjust
40233 -mgpopt defaulting.
40234 (nios2_in_small_data_p): Return true for explicit small data
40235 sections even with -G0.
40236 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40237 option choices.
40238
40239 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40240
40241 PR ipa/64612
40242 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40243 of comdat locals.
40244 (inline_call): Fix removal of aliases.
40245
40246 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40247
40248 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40249 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40250 * opts.c (common_handle_option): Add -fsanitize=vptr.
40251 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40252 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40253 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40254 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40255 (ubsan_expand_vptr_ifn): New prototype.
40256 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40257 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40258 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40259 expand_LOOP_VECTORIZED): Make argument nameless, remove
40260 ATTRIBUTE_UNUSED.
40261 (expand_UBSAN_VPTR): New function.
40262 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40263 in fn spec.
40264 (UBSAN_VPTR): New internal function.
40265 * sanopt.c (tree_map_traits): Renamed to ...
40266 (sanopt_tree_map_traits): ... this.
40267 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40268 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40269 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
40270 (maybe_optimize_ubsan_vptr_ifn): New function.
40271 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40272 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
40273 -fsanitize=vptr.
40274 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40275 internal calls like pure functions for aliasing, even when they
40276 have other side-effects that prevent making them ECF_PURE.
40277 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40278 (ubsan_expand_vptr_ifn): New function.
40279
40280 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
40281
40282 PR rtl-optimization/64110
40283 * stmt.c (parse_output_constraint): Process '^' and '$'.
40284 (parse_input_constraint): Ditto.
40285 * lra-constraints.c (process_alt_operands): Process the new
40286 constraints.
40287 * ira-costs.c (record_reg_classes): Process the new constraint
40288 '^'.
40289 * genoutput.c (indep_constraints): Add '^' and '$'.
40290 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40291 * doc/md.texi: Add description of the new constraints.
40292
40293 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
40294 Bernd Schmidt <bernds@codesourcery.com>
40295 Cesar Philippidis <cesar@codesourcery.com>
40296 James Norris <jnorris@codesourcery.com>
40297 Tom de Vries <tom@codesourcery.com>
40298 Ilmir Usmanov <i.usmanov@samsung.com>
40299 Dmitry Bocharnikov <dmitry.b@samsung.com>
40300 Evgeny Gavrin <e.gavrin@samsung.com>
40301 Jakub Jelinek <jakub@redhat.com>
40302
40303 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40304 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40305 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40306 New function types.
40307 * builtins.c: Include "gomp-constants.h".
40308 (expand_builtin_acc_on_device): New function.
40309 (expand_builtin, is_inexpensive_builtin): Handle
40310 BUILT_IN_ACC_ON_DEVICE.
40311 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40312 New macros.
40313 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40314 flag_openmp.
40315 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40316 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40317 i386/intelmic-offload.h.
40318 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40319 to libgomp and its dependencies.
40320 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40321 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40322 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40323 * config/ia64/hpux.h (LIB_SPEC): Likewise.
40324 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40325 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40326 * doc/generic.texi: Update for OpenACC changes.
40327 * doc/gimple.texi: Likewise.
40328 * doc/invoke.texi: Likewise.
40329 * doc/sourcebuild.texi: Likewise.
40330 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40331 GF_OMP_FOR_KIND_OACC_LOOP.
40332 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40333 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40334 GF_OMP_TARGET_KIND_OACC_UPDATE,
40335 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40336 Dump more data.
40337 * gimple.c: Update comments for OpenACC changes.
40338 * gimple.def: Likewise.
40339 * gimple.h: Likewise.
40340 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40341 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40342 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40343 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40344 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40345 appropriate place.
40346 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40347 * gimplify.c: Include "gomp-constants.h".
40348 Update comments for OpenACC changes.
40349 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40350 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40351 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40352 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40353 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40354 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40355 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40356 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40357 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40358 OMP_CLAUSE_SEQ.
40359 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40360 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40361 OMP_CLAUSE_SET_MAP_KIND.
40362 (gimplify_oacc_cache): New function.
40363 (gimplify_omp_for): Handle OACC_LOOP.
40364 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40365 OACC_DATA.
40366 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40367 OACC_EXIT_DATA, OACC_UPDATE.
40368 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40369 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40370 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40371 (gimplify_body): Consider flag_openacc next to flag_openmp.
40372 * lto-streamer-out.c: Include "gomp-constants.h".
40373 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40374 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40375 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40376 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40377 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40378 (BUILT_IN_ACC_ON_DEVICE): New builtins.
40379 * omp-low.c: Include "gomp-constants.h".
40380 Update comments for OpenACC changes.
40381 (struct omp_context): Add reduction_map, gwv_below, gwv_this
40382 members.
40383 (extract_omp_for_data, use_pointer_for_field, install_var_field)
40384 (new_omp_context, delete_omp_context, scan_sharing_clauses)
40385 (create_omp_child_function, scan_omp_for, scan_omp_target)
40386 (check_omp_nesting_restrictions, lower_reduction_clauses)
40387 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40388 Update for OpenACC changes.
40389 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40390 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40391 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40392 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40393 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40394 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
40395 OMP_CLAUSE_MAP_*.
40396 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40397 Handle GF_OMP_FOR_KIND_OACC_LOOP.
40398 (expand_omp_target, lower_omp_target): Handle
40399 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40400 GF_OMP_TARGET_KIND_OACC_UPDATE,
40401 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40402 GF_OMP_TARGET_KIND_OACC_DATA.
40403 (pass_expand_omp::execute, execute_lower_omp)
40404 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40405 flag_openmp.
40406 (offload_symbol_decl): New variable.
40407 (oacc_get_reduction_array_id, oacc_max_threads)
40408 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40409 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40410 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40411 (oacc_gimple_assign, oacc_initialize_reduction_data)
40412 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40413 functions.
40414 (is_targetreg_ctx): Remove function.
40415 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40416 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40417 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40418 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40419 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40420 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40421 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40422 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40423 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40424 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40425 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40426 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40427 * tree-core.h: Update comments for OpenACC changes.
40428 (enum omp_clause_map_kind): Remove.
40429 (struct tree_omp_clause): Change type of map_kind member from enum
40430 omp_clause_map_kind to unsigned char.
40431 * tree-inline.c: Update comments for OpenACC changes.
40432 * tree-nested.c: Likewise. Include "gomp-constants.h".
40433 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
40434 (convert_tramp_reference_stmt, convert_gimple_call): Update for
40435 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40436 OMP_CLAUSE_SET_MAP_KIND.
40437 * tree-pretty-print.c: Include "gomp-constants.h".
40438 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
40439 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
40440 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
40441 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
40442 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40443 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
40444 instead of OMP_CLAUSE_MAP_*.
40445 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
40446 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
40447 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40448 * tree-streamer-in.c: Include "gomp-constants.h".
40449 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
40450 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
40451 * tree-streamer-out.c: Include "gomp-constants.h".
40452 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
40453 OMP_CLAUSE_MAP_*.
40454 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
40455 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
40456 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
40457 * tree.c (omp_clause_num_ops): Update accordingly.
40458 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
40459 Likewise.
40460 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
40461 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
40462 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
40463 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
40464 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
40465 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
40466 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
40467 (OMP_CLAUSE_SET_MAP_KIND): New macro.
40468 * varpool.c (varpool_node::get_create): Consider flag_openacc next
40469 to flag_openmp.
40470 * config/i386/intelmic-offload.h: New file.
40471 * config/nvptx/offload.h: Likewise.
40472
40473 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40474
40475 * explow.h: Remove duplicate contents.
40476 * dojump.h: Likewise.
40477
40478 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
40479
40480 * arm.c (arm_xgene_tune): Add default initializer for instruction
40481 fusion.
40482
40483 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40484
40485 PR ipa/64068
40486 PR ipa/64559
40487 * ipa.c (symbol_table::remove_unreachable_nodes):
40488 Do not put abstract origins into boundary.
40489
40490 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
40491
40492 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
40493 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
40494
40495 2015-01-15 Steve Ellcey <sellcey@mips.com>
40496
40497 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
40498 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
40499 builtins.def, and chkp-builtins.def.
40500
40501 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
40502
40503 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
40504 ISA 2.7 (POWER8).
40505
40506 2015-01-15 Richard Biener <rguenther@suse.de>
40507
40508 PR tree-optimization/61743
40509 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
40510 information on PHIs for some simple cases.
40511
40512 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40513
40514 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
40515 Include xgene1.md.
40516 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
40517 * config/arm/arm-cores.def (xgene1): New entry.
40518 * config/arm/arm-tables.opt: Regenerate.
40519 * config/arm/arm-tune.md: Regenerate.
40520 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
40521
40522 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40523
40524 * tree-if-conv.c: Include hash-map.h.
40525 (aggressive_if_conv): New variable.
40526 (fold_build_cond_expr): Add simplification of non-zero condition.
40527 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
40528 destination block is not always executed.
40529 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
40530 than two predecessors if AGGRESSIVE_IF_CONV is true.
40531 (if_convertible_stmt_p): Fix commentary.
40532 (all_preds_critical_p): New function.
40533 (has_pred_critical_p): New function.
40534 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
40535 BB can have more than two predecessors and all incoming edges can be
40536 critical.
40537 (predicate_bbs): Skip predication for loop exit block, use build2_loc
40538 to compute predicate for true edge.
40539 (find_phi_replacement_condition): Delete this function.
40540 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
40541 Allow interchange PHI arguments if EXTENDED is false.
40542 Change check that block containing reduction statement candidate
40543 is predecessor of phi-block since phi may have more than two arguments.
40544 (phi_args_hash_traits): New helper structure.
40545 (struct phi_args_hash_traits): New type.
40546 (phi_args_hash_traits::hash): New function.
40547 (phi_args_hash_traits::equal_keys): New function.
40548 (gen_phi_arg_condition): New function.
40549 (predicate_scalar_phi): Add handling of phi nodes with more than two
40550 arguments, delete COND and TRUE_BB arguments, insert body of
40551 find_phi_replacement_condition to predicate ordinary phi nodes.
40552 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
40553 delete call of find_phi_replacement_condition and invoke
40554 predicate_scalar_phi with two arguments.
40555 (insert_gimplified_predicates): Add assert that non-predicated block
40556 don't have statements to insert.
40557 (ifcvt_split_critical_edges): New function.
40558 (ifcvt_split_def_stmt): Likewise.
40559 (ifcvt_walk_pattern_tree): Likewise.
40560 (stmt_is_root_of_bool_pattern): Likewise.
40561 (ifcvt_repair_bool_pattern): Likewise.
40562 (ifcvt_local_dce): Likewise.
40563 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
40564 is copy of inner or outer loop force_vectorize field, invoke
40565 ifcvt_split_critical_edges, ifcvt_local_dce and
40566 ifcvt_repair_bool_pattern for aggressive if-conversion.
40567
40568 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
40569
40570 * config/aarch64/aarch64.md: Include xgene1.md.
40571 * config/aarch64/xgene1.md: New file.
40572
40573 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40574
40575 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
40576 xgene1 (APM XGene-1) core definition.
40577 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
40578 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
40579 * doc/invoke.texi: Document -mcpu=xgene1.
40580
40581 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40582
40583 * dojump.h: New header file.
40584 * explow.h: Likewise.
40585 * expr.h: Remove includes.
40586 Move expmed.c prototypes to expmed.h.
40587 Move dojump.c prototypes to dojump.h.
40588 Move alias.c prototypes to alias.h.
40589 Move explow.c prototypes to explow.h.
40590 Move calls.c prototypes to calls.h.
40591 Move emit-rtl.c prototypes to emit-rtl.h.
40592 Move varasm.c prototypes to varasm.h.
40593 Move stmt.c prototypes to stmt.h.
40594 (saved_pending_stack_adjust): Move to dojump.h.
40595 (adjust_address): Move to explow.h.
40596 (adjust_address_nv): Move to emit-rtl.h.
40597 (adjust_bitfield_address): Likewise.
40598 (adjust_bitfield_address_size): Likewise.
40599 (adjust_bitfield_address_nv): Likewise.
40600 (adjust_automodify_address_nv): Likewise.
40601 * explow.c (expr_size): Move to expr.c.
40602 (int_expr_size): Likewise.
40603 (tree_expr_size): Likewise.
40604 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40605 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40606 * genemit.c (main): Generate includes statistics.h, real.h,
40607 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
40608 stmt.h.
40609 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
40610 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
40611 explow.h, emit-rtl.h, stmt.h.
40612 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
40613 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
40614 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
40615 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
40616 emit-rtl.h, varasm.h, stmt.h.
40617 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
40618 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
40619 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
40620 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
40621 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40622 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
40623 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
40624 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
40625 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
40626 tm.h tree.h varasm.h vec.h wide-int.h.
40627 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40628 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40629 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
40630 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
40631 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
40632 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
40633 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
40634 * loop-iv.c: Likewise.
40635 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
40636 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
40637 statistics.h stmt.h tree.h varasm.h wide-int.h.
40638 * lra-constraints.c: Likewise.
40639 * lra-eliminations.c: Likewise.
40640 * lra-lives.c: Likewise.
40641 * lra-remat.c: Likewise.
40642 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40643 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
40644 statistics.h stmt.h tree.h varasm.h wide-int.h.
40645 * hw-doloop.c: Likewise.
40646 * ira-color.c: Likewise.
40647 * ira-emit.c: Likewise.
40648 * loop-doloop.c: Likewise.
40649 * loop-invariant.c: Likewise.
40650 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40651 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
40652 statistics.h stmt.h tree.h varasm.h wide-int.h.
40653 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
40654 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
40655 statistics.h stmt.h tree.h varasm.h wide-int.h.
40656 * combine-stack-adj.c: Likewise.
40657 * cse.c: Likewise.
40658 * ddg.c: Likewise.
40659 * ifcvt.c: Likewise.
40660 * ira-costs.c: Likewise.
40661 * jump.c: Likewise.
40662 * lra-coalesce.c: Likewise.
40663 * lra-spills.c: Likewise.
40664 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40665 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
40666 stmt.h varasm.h wide-int.h.
40667 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40668 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40669 varasm.h.
40670 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
40671 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
40672 statistics.h stmt.h varasm.h wide-int.h.
40673 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
40674 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
40675 varasm.h wide-int.h.
40676 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
40677 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40678 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
40679 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
40680 statistics.h stmt.h.
40681 * config/tilepro/tilepro.c: Likewise.
40682 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
40683 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
40684 * config/pdp11/pdp11.c: Likewise.
40685 * config/xtensa/xtensa.c: Likewise.
40686 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
40687 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40688 varasm.h.
40689 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40690 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40691 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
40692 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40693 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40694 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
40695 * rtl-chkp.c: Likewise.
40696 * tree-chkp-opt.c: Likewise.
40697 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
40698 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40699 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
40700 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40701 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40702 statistics.h stmt.h.
40703 * tree-vect-data-refs.c: Likewise.
40704 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
40705 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40706 rtl.h statistics.h stmt.h varasm.h.
40707 * internal-fn.c: Likewise.
40708 * ipa-icf-gimple.c: Likewise.
40709 * lto-section-out.c: Likewise.
40710 * tree-data-ref.c: Likewise.
40711 * tree-nested.c: Likewise.
40712 * tree-outof-ssa.c: Likewise.
40713 * tree-predcom.c: Likewise.
40714 * tree-pretty-print.c: Likewise.
40715 * tree-scalar-evolution.c: Likewise.
40716 * tree-ssa-strlen.c: Likewise.
40717 * tree-vect-loop.c: Likewise.
40718 * tree-vect-patterns.c: Likewise.
40719 * tree-vect-slp.c: Likewise.
40720 * tree-vect-stmts.c: Likewise.
40721 * tsan.c: Likewise.
40722 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40723 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
40724 stmt.h.
40725 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
40726 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40727 statistics.h stmt.h varasm.h.
40728 * loop-unroll.c: Likewise.
40729 * ubsan.c: Likewise.
40730 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
40731 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
40732 stmt.h varasm.h.
40733 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40734 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
40735 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
40736 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40737 statistics.h stmt.h.
40738 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
40739 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40740 statistics.h stmt.h varasm.h.
40741 * gimple-match-head.c: Likewise.
40742 * lto-cgraph.c: Likewise.
40743 * lto-section-in.c: Likewise.
40744 * lto-streamer-in.c: Likewise.
40745 * lto-streamer-out.c: Likewise.
40746 * tree-affine.c: Likewise.
40747 * tree-cfg.c: Likewise.
40748 * tree-cfgcleanup.c: Likewise.
40749 * tree-if-conv.c: Likewise.
40750 * tree-into-ssa.c: Likewise.
40751 * tree-ssa-alias.c: Likewise.
40752 * tree-ssa-copyrename.c: Likewise.
40753 * tree-ssa-dse.c: Likewise.
40754 * tree-ssa-forwprop.c: Likewise.
40755 * tree-ssa-live.c: Likewise.
40756 * tree-ssa-math-opts.c: Likewise.
40757 * tree-ssa-pre.c: Likewise.
40758 * tree-ssa-sccvn.c: Likewise.
40759 * tree-tailcall.c: Likewise.
40760 * tree-vect-generic.c: Likewise.
40761 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40762 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
40763 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40764 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
40765 * varasm.c: Likewise.
40766 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40767 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
40768 varasm.h.
40769 * init-regs.c: Likewise.
40770 * ira.c: Likewise.
40771 * omp-low.c: Likewise.
40772 * stack-ptr-mod.c: Likewise.
40773 * tree-ssa-reassoc.c: Likewise.
40774 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40775 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
40776 varasm.h.
40777 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40778 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
40779 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40780 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
40781 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40782 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
40783 * tree-ssa-phiopt.c: Likewise.
40784 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40785 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40786 * config/fr30/fr30.c: Likewise.
40787 * config/frv/frv.c: Likewise.
40788 * expr.c: Likewise.
40789 * final.c: Likewise.
40790 * optabs.c: Likewise.
40791 * passes.c: Likewise.
40792 * simplify-rtx.c: Likewise.
40793 * stmt.c: Likewise.
40794 * toplev.c: Likewise.
40795 * var-tracking.c: Likewise.
40796 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40797 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40798 * lower-subreg.c: Likewise.
40799 * postreload-gcse.c: Likewise.
40800 * ree.c: Likewise.
40801 * reginfo.c: Likewise.
40802 * store-motion.c: Likewise.
40803 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40804 fixed-value.h hashtab.h real.h stmt.h varasm.h.
40805 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40806 fixed-value.h hashtab.h statistics.h stmt.h.
40807 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40808 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40809 * except.c: Likewise.
40810 * explow.c: Likewise.
40811 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40812 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
40813 varasm.h.
40814 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40815 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
40816 * tree-ssa-structalias.c: Likewise.
40817 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40818 fixed-value.h insn-config.h real.h statistics.h.
40819 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40820 fixed-value.h insn-config.h real.h statistics.h stmt.h.
40821 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40822 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40823 * cfgbuild.c: Likewise.
40824 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40825 fixed-value.h real.h rtl.h statistics.h stmt.h.
40826 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40827 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40828 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40829 fixed-value.h real.h statistics.h stmt.h.
40830 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40831 fixed-value.h real.h statistics.h stmt.h varasm.h.
40832 * cprop.c: Likewise.
40833 * modulo-sched.c: Likewise.
40834 * postreload.c: Likewise.
40835 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40836 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
40837 statistics.h stmt.h varasm.h.
40838 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
40839 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40840 rtl.h statistics.h stmt.h varasm.h.
40841 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
40842 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
40843 varasm.h.
40844 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
40845 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
40846 varasm.h.
40847 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
40848 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
40849 varasm.h.
40850 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
40851 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40852 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40853 function.h real.h statistics.h stmt.h varasm.h.
40854 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40855 insn-config.h real.h statistics.h stmt.h.
40856 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
40857 statistics.h stmt.h.
40858 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
40859 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
40860 statistics.h stmt.h varasm.h.
40861 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
40862 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
40863 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40864 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
40865 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
40866 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40867 statistics.h stmt.h varasm.h.
40868 * ipa-polymorphic-call.c: Likewise.
40869 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
40870 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40871 statistics.h stmt.h.
40872 * config/c6x/c6x.c: Likewise.
40873 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
40874 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40875 statistics.h stmt.h varasm.h.
40876 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
40877 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
40878 stmt.h varasm.h.
40879 * ipa-split.c: Likewise.
40880 * tree-eh.c: Likewise.
40881 * tree-ssa-dce.c: Likewise.
40882 * tree-ssa-loop-niter.c: Likewise.
40883 * tree-vrp.c: Likewise.
40884 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
40885 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
40886 stmt.h.
40887 * config/nds32/nds32-fp-as-gp.c: Likewise.
40888 * config/nds32/nds32-intrinsic.c: Likewise.
40889 * config/nds32/nds32-isr.c: Likewise.
40890 * config/nds32/nds32-md-auxiliary.c: Likewise.
40891 * config/nds32/nds32-memory-manipulation.c: Likewise.
40892 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
40893 * config/nds32/nds32-predicates.c: Likewise.
40894 * config/nds32/nds32.c: Likewise.
40895 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
40896 fixed-value.h hashtab.h real.h statistics.h.
40897 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
40898 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40899 * config/arm/arm.c: Likewise.
40900 * config/avr/avr.c: Likewise.
40901 * config/bfin/bfin.c: Likewise.
40902 * config/h8300/h8300.c: Likewise.
40903 * config/i386/i386.c: Likewise.
40904 * config/ia64/ia64.c: Likewise.
40905 * config/iq2000/iq2000.c: Likewise.
40906 * config/m32c/m32c.c: Likewise.
40907 * config/m32r/m32r.c: Likewise.
40908 * config/m68k/m68k.c: Likewise.
40909 * config/mcore/mcore.c: Likewise.
40910 * config/mep/mep.c: Likewise.
40911 * config/mips/mips.c: Likewise.
40912 * config/mn10300/mn10300.c: Likewise.
40913 * config/moxie/moxie.c: Likewise.
40914 * config/pa/pa.c: Likewise.
40915 * config/rl78/rl78.c: Likewise.
40916 * config/rx/rx.c: Likewise.
40917 * config/s390/s390.c: Likewise.
40918 * config/sh/sh.c: Likewise.
40919 * config/sparc/sparc.c: Likewise.
40920 * config/spu/spu.c: Likewise.
40921 * config/stormy16/stormy16.c: Likewise.
40922 * config/v850/v850.c: Likewise.
40923 * config/vax/vax.c: Likewise.
40924 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
40925 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40926 * config/msp430/msp430.c: Likewise.
40927 * predict.c: Likewise.
40928 * value-prof.c: Likewise.
40929 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
40930 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
40931 * config/microblaze/microblaze.c: Likewise.
40932 * config/nios2/nios2.c: Likewise.
40933 * config/rs6000/rs6000.c: Likewise.
40934 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40935 insn-config.h real.h rtl.h statistics.h stmt.h.
40936 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
40937 insn-config.h real.h statistics.h stmt.h.
40938 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
40939 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
40940 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
40941 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40942 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
40943 fixed-value.h real.h statistics.h stmt.h.
40944 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
40945 fixed-value.h statistics.h stmt.h.
40946 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
40947 stmt.h.
40948
40949 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40950
40951 * gengtype.c (create_user_defined_type): Workaround
40952 -Wmaybe-uninitialized false positives.
40953 * cse.c (fold_rtx): Likewise.
40954 * loop-invariant.c (gain_for_invariant): Likewise.
40955
40956 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
40957
40958 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
40959 set the memory attributes in all cases but clear MEM_EXPR if need be.
40960
40961 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40962
40963 PR tree-optimization/64434
40964 * cfgexpand.c (reorder_operands): New function.
40965 (expand_gimple_basic_block): Insert call of reorder_operands if
40966 optimized is true.
40967
40968 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
40969
40970 * config/mips/micromips.md (*swp): Remove explicit parallel.
40971 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
40972 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
40973 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
40974 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
40975 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
40976 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
40977 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
40978 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
40979 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
40980 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
40981 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
40982 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
40983 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
40984 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
40985 (mips_wrdsp): Likewise.
40986 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
40987 parallel.
40988 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
40989 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
40990 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
40991 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
40992 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
40993 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
40994 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
40995 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
40996 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
40997
40998 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
40999
41000 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41001 (mips_print_operand): Support 'y' to print exact log2 in decimal
41002 of a const_int.
41003 * config/mips/mips.h (ISA_HAS_LSA): New define.
41004 (ISA_HAS_DLSA): Likewise.
41005 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41006 * config/mips/predicates.md (const_immlsa_operand): New predicate.
41007
41008 2015-01-15 Martin Liska <mliska@suse.cz>
41009
41010 PR target/64377
41011 * optc-save-gen.awk: Add support for array types.
41012
41013 2015-01-15 Richard Biener <rguenther@suse.de>
41014
41015 PR middle-end/64365
41016 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41017 for MEM_REF access functions with the same base can never partially
41018 overlap.
41019
41020 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
41021
41022 * common.opt: New option -fstack-protector-explicit.
41023 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41024 (stack_protect_decl_phase): Handle stack_protect attribute for
41025 explicit stack protection requests.
41026 (expand_used_vars): Similarly.
41027 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41028 * doc/extend.texi: Add documentation for "stack_protect" attribute.
41029 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41030
41031 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
41032
41033 PR target/53988
41034 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41035 reg-reg copies.
41036 (sh_extending_set_of_reg): New struct.
41037 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41038 sh_remove_reg_dead_or_unused_notes): New Declarations.
41039 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41040 sh_find_extending_set_of_reg, sh_split_tst_subregs,
41041 sh_extending_set_of_reg::use_as_extended_reg): New functions.
41042 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41043 convert to insn_and_split and use new function sh_split_tst_subregs.
41044
41045 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
41046
41047 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41048 option.
41049 (Optimization Options): Move -fuse-ld documentation to...
41050 (Link Options): ...here.
41051
41052 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41053
41054 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41055 offsets.
41056 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41057 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41058 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41059 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41060 instead of ZR for the memory operand of LL/SC.
41061 (compare_and_swap_12, sync_add<mode>): Likewise.
41062 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41063 (sync_new_<optab>_12, sync_nand_12): Likewise.
41064 (sync_old_nand_12, sync_new_nand_12): Likewise.
41065 (sync_sub<mode>, sync_old_add<mode>): Likewise.
41066 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41067 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41068 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41069 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41070 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41071 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41072 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41073 * doc/md.texi (ZC): Update description.
41074
41075 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41076
41077 * builtins.c (expand_builtin_atomic_exchange): Remove error when
41078 memory model is CONSUME.
41079 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41080 expand_builtin_atomic_store): Change invalid memory model errors to
41081 warnings.
41082 (expand_builtin_atomic_clear): Change invalid model errors to warnings
41083 and issue warning for CONSUME.
41084
41085 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
41086
41087 * lto-cgraph: Update function comments for
41088 lto_symtab_encoder_encode_*.
41089
41090 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41091
41092 * Makefile.in (site.exp): Do not set ENABLE_LTO.
41093
41094 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41095
41096 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41097 * lto-cgraph.c (select_what_to_stream): Remove argument, use
41098 lto_stream_offload_p instead.
41099 * lto-streamer.h (select_what_to_stream): Remove argument.
41100 * passes.c (ipa_write_summaries): Likewise.
41101 * tree-pass.h (ipa_write_summaries): Likewise.
41102
41103 2015-01-14 Richard Biener <rguenther@suse.de>
41104
41105 PR tree-optimization/59354
41106 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41107 groups larger than the slp group size as having gaps.
41108
41109 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41110
41111 PR middle-end/59448
41112 * builtins.c (get_memmodel): Promote consume to acquire always.
41113
41114 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41115
41116 PR target/64386
41117 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41118 V32HImode.
41119
41120 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41121
41122 PR target/64393
41123 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41124 Enable AVX512BW.
41125 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41126 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41127 AVX512VBMI, as it implies AVX512BW.
41128
41129 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41130
41131 PR target/64387
41132 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41133 (vec_unpacks_hi_v16sf): Ditto.
41134
41135 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41136
41137 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41138 is not available.
41139
41140 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41141
41142 * doc/invoke.texi (mapcs): Mention deprecation.
41143 (mapcs-frame): Likewise.
41144
41145 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
41146
41147 PR target/64453
41148 * config/arm/arm.c (callee_saved_reg_p): Define.
41149 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41150 register is callee saved instead of !call_used_regs[reg].
41151 (thumb1_compute_save_reg_mask): Likewise.
41152
41153 2015-01-14 Hale Wang <hale.wang@arm.com>
41154
41155 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41156 Cortex-M7.
41157
41158 2015-01-14 Richard Biener <rguenther@suse.de>
41159
41160 PR lto/64415
41161 * tree-inline.c (insert_debug_decl_map): Check destination
41162 function MAY_HAVE_DEBUG_STMTS.
41163 (insert_init_debug_bind): Likewise.
41164 (insert_init_stmt): Remove redundant check.
41165 (remap_gimple_stmt): Drop debug stmts if the destination
41166 function has var-tracking assignments disabled.
41167
41168 2015-01-14 Martin Liska <mliska@suse.cz>
41169
41170 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41171 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41172
41173 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41174
41175 PR target/64460
41176 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41177 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41178
41179 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41180
41181 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41182 level from an ARCH; do not inject the default.
41183 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41184 MIPS_ISA_LEVEL_SPEC.
41185 (MIPS_ISA_NAN2008_SPEC): Update comment.
41186 (BASE_DRIVER_SELF_SPECS): Likewise.
41187 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41188 MIPS_DEFAULT_ISA_LEVEL_SPEC.
41189 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41190 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41191 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41192
41193 2015-01-14 Richard Biener <rguenther@suse.de>
41194
41195 PR tree-optimization/64493
41196 PR tree-optimization/64495
41197 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41198 assign the proper vectorized PHI to the inner loop exit PHIs.
41199
41200 2015-01-14 Joey Ye <joey.ye@arm.com>
41201
41202 * config/arm/arm.c (arm_compute_save_reg_mask):
41203 Do not save lr in case of tail call.
41204 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41205
41206 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
41207
41208 * tree-vrp.c (check_array_ref): Emit more warnings
41209 for warn_array_bounds >= 2.
41210 * common.opt: New option -Warray-bounds=.
41211 * doc/invoke.texi: Document -Warray-bounds=.
41212
41213 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
41214
41215 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41216 (mforbid-fp-as-gp): Remove.
41217 (mex9): Remove.
41218 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41219 (nds32_symbol_load_store_p): Remove.
41220 (nds32_fp_as_gp_check_available): Clean up implementation.
41221 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41222 cases.
41223 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41224 fp-as-gp and ex9 cases.
41225
41226 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41227
41228 * tree-profile.c (init_ic_make_global_vars): Drop workaround
41229 for bintuils bug 14342.
41230 (init_ic_make_global_vars): Likewise.
41231 (gimple_init_edge_profiler): Likewise.
41232 (gimple_gen_ic_func_profiler): Likewise.
41233
41234 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
41235
41236 * ipa-inline.c (inline_small_functions): Swap the operands in
41237 enum.
41238
41239 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41240
41241 PR ipa/64481
41242 * ipa-inline-analysis.c (node_growth_cache): Remove.
41243 (initialize_growth_caches): Do not initialize it.
41244 (free_growth_caches): Do not free it.
41245 (do_estimate_growth): Rename to ...
41246 (estimate_growth): ... this one; drop growth cache code.
41247 (growth_likely_positive): Always go the heuristics way.
41248 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41249 (reset_edge_caches): Do not reset node growth.
41250 (heap_edge_removal_hook): Do not maintain cache.
41251 (inline_small_functions): Likewise; strenghten sanity check.
41252 (ipa_inline): Do not maintain caches.
41253 * ipa-inline.h (node_growth_cache): Remove.
41254 (do_estimate_growth): Remove to ...
41255 (estimate_growth): this one; remove inline version.
41256 (reset_node_growth_cache): Remove.
41257
41258 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41259
41260 PR ipa/64565
41261 * ipa-inline.c (inline_small_functions): Update callee keys after
41262 resolving speculation
41263 (inline_small_functions): Always check monotonicity of the queue.
41264
41265 2015-01-13 Marek Polacek <polacek@redhat.com>
41266
41267 PR middle-end/64391
41268 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41269
41270 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41271
41272 PR rtl-optimization/64286
41273 * ree.c (combine_reaching_defs): Move part of comment earlier,
41274 remove !SCALAR_INT_MODE_P check.
41275 (add_removable_extension): Don't add vector mode
41276 extensions if all uses of the source register aren't the same
41277 vector extensions.
41278
41279 2015-01-13 Renlin Li <renlin.li@arm.com>
41280
41281 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41282 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41283
41284 2015-01-13 Martin Liska <mliska@suse.cz>
41285
41286 * ipa-icf.c (sem_function::equals_private): Call new functions
41287 cl_target_option_print_diff and cl_optimization_print_diff.
41288 * optc-save-gen.awk (cl_target_option_print_diff): New function.
41289 (cl_optimization_print_diff): Likewise.
41290 * opth-gen.awk: Likewise.
41291
41292 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
41293
41294 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41295 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41296 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41297 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41298 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41299 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41300
41301 2015-01-13 Andrew Pinski <apinski@cavium.com>
41302
41303 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41304 instead of src mode.
41305
41306 2015-01-13 Richard Biener <rguenther@suse.de>
41307
41308 PR lto/64373
41309 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41310 DECL_CONTEXT.
41311
41312 2015-01-13 Andrew Pinski <apinski@cavium.com>
41313
41314 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41315 volatile mems.
41316 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41317
41318 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41319
41320 PR middle-end/63974
41321 * cfgexpand.c (expand_computed_goto): Don't call
41322 convert_memory_address here.
41323
41324 2015-01-13 Richard Biener <rguenther@suse.de>
41325
41326 PR tree-optimization/64406
41327 * tree-loop-distibution.c (pass_loop_distribution::execute):
41328 Reset the SCEV hashtable if we distributed anything.
41329
41330 2015-01-13 Richard Biener <rguenther@suse.de>
41331
41332 PR tree-optimization/64404
41333 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41334 SLP types for CSEd loads.
41335
41336 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
41337
41338 PR tree-optimization/64436
41339 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41340 merge of two symbolic numbers for a bitwise OR to ...
41341 (perform_symbolic_merge): This. Also fix computation of the range and
41342 end of the symbolic number corresponding to the result of a bitwise OR.
41343
41344 2015-01-13 Richard Biener <rguenther@suse.de>
41345
41346 PR tree-optimization/64568
41347 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41348 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41349
41350 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41351
41352 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41353 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41354
41355 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41356
41357 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41358 target-specific symbol_ref flag.
41359 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41360 resides in rodata section.
41361 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41362 (nds32_encode_section_info): New function.
41363
41364 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41365
41366 * config/nds32/nds32.md (call): Use pseudo instruction bal which
41367 clobbers TA_REGNUM if large code model is specified.
41368 (call_register): Likewise.
41369 (call_immediate): Likewise.
41370 (call_value): Likewise.
41371 (call_value_register): Likewise.
41372 (call_value_immediate): Likewise.
41373
41374 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41375
41376 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41377 (TARGET_CMODEL_MEDIUM): New macro.
41378 (TARGET_CMODEL_LARGE): New macro.
41379 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41380 code model setting in assembly code.
41381
41382 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41383
41384 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41385 Remove MASK_GP_DIRECT flag.
41386 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41387 one of the multilib default options.
41388 * config/nds32/nds32.opt (mgp-direct): Remove.
41389 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41390 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
41391
41392 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41393
41394 * config/nds32/nds32.opt (mcmodel): Add new option.
41395 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41396 to describe code model.
41397
41398 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
41399
41400 PR target/64479
41401 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41402
41403 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
41404
41405 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41406 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41407 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41408 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41409 __builtin_sh_set_fpscr.
41410
41411 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41412
41413 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41414 after a funtion name just to indicate it is a function.
41415 ([-fsanitize-undefined-trap-on-error]): Likewise.
41416 ([-fdbg-cnt=]): Likewise.
41417 ([-mmemcpy]): Likewise.
41418 ([-mflush-func]): Likewise.
41419 ([-msynci]): Likewise.
41420
41421 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41422
41423 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41424 example.
41425
41426 2015-01-12 Jakub Jelinek <jakub@redhat.com>
41427
41428 PR tree-optimization/64563
41429 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
41430 instead of != VR_VARYING.
41431
41432 PR target/64513
41433 * config/i386/i386.c (ix86_expand_prologue): Add
41434 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
41435
41436 PR tree-optimization/64454
41437 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
41438 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
41439 for signed or [0, op1 - 1] for unsigned modulo.
41440 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
41441 even if op1 does not satisfy integer_pow2p.
41442
41443 PR other/64370
41444 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
41445
41446 2015-01-12 Jeff Law <law@redhat.com>
41447
41448 PR target/64461
41449 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
41450 (trunchiqi2, truncsihi2): Similarly.
41451
41452 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
41453 rather than calling F.
41454
41455 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
41456
41457 * tsan.c (instrument_expr): Use force_gimple_operand.
41458 Use may_be_nonaddressable_p instead of is_gimple_addressable.
41459
41460 2015-01-12 Richard Biener <rguenther@suse.de>
41461
41462 PR tree-optimization/64530
41463 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
41464 back dr1.
41465
41466 2015-01-12 Richard Biener <rguenther@suse.de>
41467
41468 PR middle-end/64357
41469 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
41470 latches properly.
41471
41472 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41473
41474 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
41475 Cortex-A17 tuning parameters.
41476 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
41477
41478 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41479
41480 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
41481 * config/arm/arm.c (arm_macro_fusion_p): New function.
41482 (arm_macro_fusion_pair_p): Likewise.
41483 (TARGET_SCHED_MACRO_FUSION_P): Define.
41484 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
41485 (ARM_FUSE_NOTHING): Likewise.
41486 (ARM_FUSE_MOVW_MOVT): Likewise.
41487 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
41488 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
41489 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
41490 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
41491 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
41492 arm_cortex_a5_tune): Specify fuseable_ops value.
41493
41494 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
41495
41496 PR bootstrap/64561
41497 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
41498 test for PIE with copy reloc.
41499 * configure: Regenerated.
41500
41501 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41502
41503 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
41504 in gen_rtx_REG.
41505 (arm_tls_descseq_addr): Likewise.
41506 (arm_gen_movmemqi): Likewise.
41507 (arm_expand_epilogue_apcs_frame): Likewise.
41508 (arm_expand_epilogue): Likewise.
41509 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
41510 in gen_rtx_REG.
41511
41512 2015-01-12 Martin Liska <mliska@suse.cz>
41513
41514 PR ipa/64550
41515 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
41516 volatility for correct operands.
41517
41518 2015-01-12 Martin Liska <mliska@suse.cz>
41519
41520 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
41521 indication that a function is not leaf.
41522 (sem_function::compare_polymorphic_p): Likewise.
41523
41524 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41525
41526 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
41527 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
41528 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
41529 fold-const.h, tree-check.h.
41530
41531 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41532
41533 PR ipa/63967
41534 PR ipa/64425
41535 * ipa-inline.c (compute_uninlined_call_time,
41536 compute_inlined_call_time): Use counts for extra precision when
41537 needed possible.
41538 (big_speedup_p): Fix formating.
41539 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
41540 (relative_time_benefit): Remove.
41541 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
41542 merge guessed and read profile paths.
41543 (inline_small_functions): Count only !optimize_size functions into
41544 initial size; be more lax about sanity check when profile is used;
41545 be sure to update inlined function profile when profile is read.
41546
41547 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41548
41549 PR ipa/63470
41550 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
41551 cost when edge becomes direct.
41552 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
41553 is resolved or when introducing new speculation.
41554
41555 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
41556
41557 PR ipa/64551
41558 PR ipa/64552
41559 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
41560 '||' to fix typo issue.
41561
41562 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
41563 accept and return NULL.
41564
41565 2015-01-12 Martin Liska <mliska@suse.cz>
41566
41567 * cgraph.c (cgraph_edge::remove_callee): Move function to header
41568 file for being inlined.
41569 (cgraph_set_edge_callee): Delete.
41570 (cgraph_edge::redirect_callee): Move function to header file
41571 for being inlined.
41572 (cgraph_edge::make_direct): Use new function.
41573 (cgraph_edge::dump_edge_flags): New function created from
41574 static dump_edge_flags function.
41575 (cgraph_node::dump): Use new function.
41576 (cgraph_edge::verify_count_and_frequency): New function created
41577 from verify_edge_count_and_frequency.
41578 (cgraph_edge::verify_corresponds_to_fndecl): New function created
41579 from verify_edge_corresponds_to_fndecl.
41580 (verify_edge_corresponds_to_fndecl): Delete.
41581 (cgraph_node::verify_node): Use new function.
41582 * cgraph.h (cgraph_edge::set_callee): New function.
41583 (cgraph_edge::dump_edge_flags): Likewise.
41584 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
41585
41586 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
41587
41588 * ipa-utils.c (estimate_function_body_sizes): Do not
41589 free node params when called late with early=true.
41590
41591 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
41592
41593 * doc/md.texi (Instruction Patterns): Rewrite text for
41594 clarity.
41595 (Example): Likewise.
41596
41597 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
41598
41599 * doc/invoke.texi (Option Summary): Break long lines.
41600 [(-fdiagnostics-color)]: Put long literal in @smallexample
41601 instead of inline.
41602 [(-fsanitize-recover)]: Likewise.
41603 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
41604 [(-ffast-math)]: Likewise.
41605 [(--param max-inline-insns-recursive)]: Likewise.
41606 [(--param max-inline-recursive-depth)]: Likewise.
41607 [(-mno-text-section-literals)]: Likewise.
41608
41609 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
41610
41611 * doc/install.texi: Update for libgomp being renamed from "GNU
41612 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
41613 Runtime Library".
41614 * doc/sourcebuild.texi: Likewise.
41615
41616 2015-01-10 Anthony Green <green@moxielogic.com>
41617
41618 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
41619 mul.x availability for moxiebox configuration.
41620
41621 2015-01-09 Anthony Green <green@moxielogic.com>
41622
41623 * config/moxie/moxie.md: Tabify assembly output.
41624
41625 2015-01-09 Anthony Green <green@moxielogic.com>
41626
41627 * config/moxie/moxie.md (CC_REG): Correct register definition.
41628
41629 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
41630
41631 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
41632 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
41633 of log files.
41634
41635 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41636
41637 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
41638
41639 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
41640 Jakub Jelinek <jakub@redhat.com>
41641
41642 PR middle-end/64412
41643 * lto-streamer.h (lto_stream_offload_p): New declaration.
41644 * lto-streamer.c (lto_stream_offload_p): New variable.
41645 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
41646 at the same time as section_name_prefix.
41647 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
41648 if lto_stream_offload_p.
41649 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
41650 stream TREE_TARGET_OPTION if lto_stream_offload_p.
41651 (write_ts_function_decl_tree_pointers): Don't
41652 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
41653 * tree-streamer-in.c (unpack_value_fields): Don't stream
41654 TREE_TARGET_OPTION in if ACCEL_COMPILER.
41655 (lto_input_ts_function_decl_tree_pointers): Don't stream
41656 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
41657 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
41658 instead of section_name_prefix string comparisons.
41659
41660 2015-01-09 Jakub Jelinek <jakub@redhat.com>
41661
41662 PR rtl-optimization/64536
41663 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
41664 tablejumps.
41665
41666 2015-01-09 Michael Collison <michael.collison@linaro.org>
41667
41668 PR tree-optimization/64322
41669 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
41670 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
41671
41672 2015-01-09 Tom de Vries <tom@codesourcery.com>
41673
41674 PR rtl-optimization/64539
41675 * regcprop.c (kill_clobbered_values): Factor out of ...
41676 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
41677 instead of note_stores with kill_clobbered_value.
41678
41679 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41680
41681 * ginclude/unwind-arm-common.h: Revert previous commit.
41682
41683 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41684
41685 * config.gcc (arm*-*-freebsd*): New configuration.
41686 * config/arm/freebsd.h: New file.
41687 * config.host: Add extra components for arm*-*-freebsd*.
41688 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
41689 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
41690
41691 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41692
41693 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
41694 for -mcpu=e6500.
41695 * config/rs6000/t-rtems: Add e6500 multilibs.
41696
41697 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41698
41699 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
41700 MPC8540.
41701
41702 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41703
41704 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
41705 MULTILIB_EXCEPTIONS.
41706
41707 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41708
41709 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
41710 MULTILIB_EXCEPTIONS.
41711
41712 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41713
41714 * config/arm/t-rtems-eabi: Rename to...
41715 * config/arm/t-rtems: ...this.
41716 * config/arm/rtems-eabi.h: Rename to...
41717 * config/arm/rtems.h: ...this.
41718 * config.gcc (arm*-*-rtems*): Reflect changes above.
41719
41720 2015-01-09 Richard Biener <rguenther@suse.de>
41721
41722 PR tree-optimization/64410
41723 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
41724 on the LHS.
41725 (execute_update_addresses_taken): Deal with that.
41726 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
41727 loads/stores for complex variables.
41728
41729 2015-01-09 Martin Liska <mliska@suse.cz>
41730
41731 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
41732 name comparison.
41733 (func_checker::compare_memory_operand): New function.
41734 (func_checker::compare_operand): Split case to newly
41735 added functions.
41736 (func_checker::compare_cst_or_decl): New function.
41737 (func_checker::compare_gimple_call): Identify
41738 memory operands.
41739 (func_checker::compare_gimple_assign): Likewise.
41740 * ipa-icf-gimple.h: New function.
41741
41742 2015-01-09 Martin Liska <mliska@suse.cz>
41743
41744 PR ipa/64503
41745 * sreal.c (sreal::dump): Change unsigned format to signed for
41746 m_exp value.
41747 (sreal::to_double): Replace exp2 with scalbln.
41748
41749 2015-01-09 Martin Liska <mliska@suse.cz>
41750
41751 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
41752 * ipa-icf.c (sem_function::equals_private): Add support for target and
41753 (sem_item_optimizer::merge_classes): Remove redundant function
41754 optimization flags comparison.
41755 * tree.h (target_opts_for_fn): New function.
41756
41757 2015-01-09 Tom de Vries <tom@codesourcery.com>
41758
41759 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
41760
41761 2015-01-09 Kito Cheng <kito@0xlab.org>
41762
41763 PR rtl-optimization/64348
41764 * lra-constraints.c (split_reg): Fix caller-save store/restore
41765 instruction generation.
41766
41767 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
41768
41769 PR gcov-profile/61790
41770 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
41771 long long. Fallback to int64_t if host doesn't have long long and
41772 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
41773
41774 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41775
41776 PR tree-optimization/63989
41777 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
41778 from 1000 to 10000.
41779 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
41780 (get_stridx): If we don't have a record for certain SSA_NAME,
41781 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
41782 constant offset, call get_stridx_plus_constant.
41783 (get_stridx_plus_constant): New function.
41784 (zero_length_string): Don't use get_stridx here.
41785
41786 PR target/55023
41787 PR middle-end/64388
41788 * dse.c (struct insn_info): Mention frame_read set also
41789 before reload for tail calls on some targets.
41790 (scan_insn): Revert 2014-12-22 change. Set frame_read
41791 also before reload for tail calls if
41792 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
41793 instead of add_non_frame_wild_read for non-const/memset
41794 tail calls after reload.
41795
41796 2015-01-08 Jason Merrill <jason@redhat.com>
41797
41798 * ubsan.c (do_ubsan_in_current_function): New.
41799 (pass_ubsan::gate): Use it.
41800 * ubsan.h: Declare it.
41801 * convert.c (convert_to_integer): Use it.
41802
41803 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41804
41805 PR target/64338
41806 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
41807 compare_code when it is unconditionally overwritten afterwards.
41808 Use ix86_reverse_condition instead of reverse_condition. Don't
41809 change code if *reverse_condition* returned UNKNOWN and don't
41810 swap ct/cf and negate diff in that case.
41811
41812 2015-01-08 Mike Stump <mikestump@comcast.net>
41813
41814 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
41815 (pass_tsan_O0::gate): Likewise.
41816 * extend.texi (Function Attributes): Add no_sanitize_thread
41817 documentation.
41818
41819 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
41820
41821 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
41822 for registering builtins.
41823 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
41824 add -fopenmp to the argv_obstack used when invoking
41825 compile_for_target.
41826
41827 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
41828 add "-m32" or "-m64" to argv_obstack.
41829 (generate_host_descr_file): Likewise, when invoking host_compiler.
41830 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
41831 ld.
41832
41833 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41834
41835 * config/sh/sh-mem.cc: Use constant as second operand when emitting
41836 tstsi_t insns.
41837
41838 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
41839
41840 PR target/55212
41841 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
41842 constant load if constant operand fits into I08.
41843
41844 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41845
41846 PR sanitizer/64336
41847 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
41848 and TREE_THIS_VOLATILE for MEM_REFs.
41849 (build5_stat): Fix up initialization of TREE_READONLY and
41850 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
41851
41852 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
41853
41854 PR target/64533
41855 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
41856 of r for the second alternative of the destination operand.
41857
41858 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
41859
41860 PR target/36557
41861 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
41862
41863 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41864
41865 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
41866 keywords.
41867 ([-fivar-visibility], [-fvisibility]): Likewise.
41868
41869 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
41870
41871 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
41872 the file where @code, @command, etc is more appropriate.
41873
41874 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
41875
41876 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
41877 of -mrecip= documentation.
41878
41879 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
41880
41881 PR target/64505
41882 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
41883 correct reload handler if -m32 -mpowerpc64 is used.
41884
41885 2015-01-06 Tom de Vries <tom@codesourcery.com>
41886
41887 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
41888
41889 2015-01-08 Christian Bruel <christian.bruel@st.com>
41890
41891 PR target/64507
41892 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
41893
41894 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
41895
41896 PR tree-optimization/63259
41897 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
41898 if optab exists for 16bit byteswap.
41899
41900 2015-01-06 Jakub Jelinek <jakub@redhat.com>
41901
41902 * opts.c (common_handle_option): Add support for
41903 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
41904 * doc/invoke.texi: Document -fno-sanitize=all,
41905 -f{,no-}sanitize-recover=all. Document that
41906 -fsanitize=float-cast-overflow is not enabled
41907 by -fsanitize=undefined. Fix up documentation
41908 of -f{,no-}sanitize-recover.
41909
41910 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
41911
41912 * config.gcc: Add Visium support.
41913 * configure.ac: Likewise.
41914 * configure: Regenerate.
41915 * doc/extend.texi (interrupt attribute): Add Visium.
41916 * doc/invoke.texi: Document Visium options.
41917 * doc/install.texi: Document Visium target.
41918 * doc/md.texi: Document Visium constraints.
41919 * common/config/visium: New directory.
41920 * config/visium: Likewise.
41921
41922 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41923
41924 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
41925 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
41926
41927 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
41928
41929 * combine.c (combine_validate_cost): Do not count the cost of a
41930 split I2 twice. Do not display it twice in the dump, either.
41931
41932 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
41933
41934 Revert parts of r219199.
41935 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
41936 <inttypes.h>.
41937 ([-Wtraditional]): Restore markup on <limits.h>.
41938
41939 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
41940
41941 PR c++/31397
41942 * doc/invoke.texi: Document -Wsuggest-override.
41943
41944 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
41945
41946 PR rtl-optimization/64287
41947 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
41948 (process_options): Disable flag_ipa_ra if profiling.
41949
41950 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
41951
41952 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
41953
41954 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
41955
41956 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
41957 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
41958 put under #if TARGET_LOOPS guard.
41959
41960 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
41961
41962 * config/i386/i386.c (output_387_binary_op): Use std::swap.
41963
41964 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
41965
41966 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
41967 * rtl.h (refers_to_regno_p): Add overload.
41968 * cse.c: Use it.
41969 * bt-load.c: Likewise.
41970 * combine.c: Likewise.
41971 * df-scan.c: Likewise.
41972 * sched-deps.c: Likewise.
41973 * config/s390/s390.c: Likewise.
41974 * config/m32r/m32r.c: Likewise.
41975 * config/rs6000/spe.md: Likewise.
41976 * config/rs6000/rs6000.c: Likewise.
41977 * config/pa/pa.c: Likewise.
41978 * config/stormy16/stormy16.c: Likewise.
41979 * config/cris/cris.c: Likewise.
41980 * config/arc/arc.md: Likewise.
41981 * config/arc/arc.c: Likewise.
41982 * config/sh/sh.md: Likewise.
41983 * config/sh/sh.c: Likewise.
41984 * config/frv/frv.c: Likewise.
41985
41986 2015-01-05 Jakub Jelinek <jakub@redhat.com>
41987
41988 PR sanitizer/64265
41989 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
41990 call as cleanup of the whole body.
41991 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
41992 * tsan.c (replace_func_exit): New function.
41993 (instrument_func_exit): Moved earlier.
41994 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
41995 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
41996 been found.
41997 (tsan_pass): Don't call instrument_func_exit.
41998 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
41999 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42000 inlining.
42001
42002 PR sanitizer/64344
42003 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42004 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42005 it to libubsan handler instead of EXPR. Fold comparisons earlier,
42006 if the result is integer_zerop, return NULL_TREE.
42007 * convert.c (convert_to_integer): Pass expr as ARG.
42008
42009 PR tree-optimization/64465
42010 * tree-inline.c (redirect_all_calls): During inlining
42011 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42012 changed the stmt to a non-throwing call.
42013
42014 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42015
42016 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42017 etc markup throughout the file.
42018
42019 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
42020
42021 Enable experimental TSAN support for Ada.
42022 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42023
42024 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42025
42026 PR tree-optimization/64494
42027 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42028 clear SSA_NAME_ANTI_RANGE_P flag.
42029
42030 2015-01-05 Marek Polacek <polacek@redhat.com>
42031
42032 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42033
42034 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42035
42036 Update copyright years.
42037
42038 * gcc.c (process_command): Update copyright notice dates.
42039 * gcov-dump.c: Ditto.
42040 * gcov.c: Ditto.
42041 * doc/cpp.texi: Bump @copying's copyright year.
42042 * doc/cppinternals.texi: Ditto.
42043 * doc/gcc.texi: Ditto.
42044 * doc/gccint.texi: Ditto.
42045 * doc/gcov.texi: Ditto.
42046 * doc/install.texi: Ditto.
42047 * doc/invoke.texi: Ditto.
42048
42049 * auto-profile.c, auto-profile.h: Fix up Copyright line.
42050
42051 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
42052
42053 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42054 verb tense, etc.
42055 ([-fvtable-verify], [-fvtv-debug]): Likewise.
42056 ([-Wabi]): Likewise.
42057 ([-fmessage-length]): Likewise.
42058 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42059 ([-Wno-discarded-qualifiers]): Likewise.
42060 ([-Wnodiscarded-array-qualifiers]): Likewise.
42061 ([-Wno-virtual-move-assign]): Likewise.
42062 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42063 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42064 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42065 ([-fsanitize-undefined-trap-on-error]): Likewise.
42066 ([-floop-interchange]): Likewise.
42067 ([-ftree-coalesce-inlined-vars]): Likewise.
42068 ([-fvect-cost-model]): Likewise.
42069 ([-flto]): Likewise.
42070 ([--param]): Likewise.
42071 (Spec Files): Likewise.
42072 ([-mstrict-align]): Likewise.
42073 ([-mfix-cortex-a53-835769]): Likewise.
42074 ([-march], [-mtune]): Likewise.
42075 ([-mpic-register]): Likewise.
42076 ([-munaligned-access]): Likewise.
42077 ([-msp8]): Likewise.
42078 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42079 (AVR Built-in Macros): Likewise.
42080 ([-mpreferred-stack-boundary]): Likewise.
42081 ([-mtune-crtl]): Likewise.
42082 ([-mashf]): Likewise.
42083 ([-mmcu=]): Likewise.
42084 ([-minrt]): Likewise.
42085 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42086 ([-mupper-regs]): Likewise.
42087 ([-matomic-model]): Likewise.
42088 ([-mdiv]): Likewise.
42089 ([-mzdcbranch]): Likewise.
42090 ([-mdisable-callt]): Likewise.
42091 ([-msoft-float]): Likewise.
42092 ([-m8byte-align]): Likewise.
42093 ([-fstack-reuse]): Likewise.
42094
42095 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42096
42097 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42098 Fix markup, light copy-editing.
42099 ([-fauto-profile]): Rewrite to fix formatting and content
42100 problems.
42101
42102 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42103
42104 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42105 Copy-edit description.
42106 ([-fisolate-erroneous-paths-attribute]): Likewise.
42107 * common.opt (fisolate-erroneous-paths-dereference):
42108 Copy-edit description.
42109 (fisolate-erroneous-paths-attribute): Likewise.
42110
42111 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42112
42113 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42114 tidy grammar.
42115
42116 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42117
42118 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42119 ([-fvtv-debug]): Likewise.
42120 ([-Wc++-compat]): Likewise.
42121 ([-Wc++11-compat]): Likewise.
42122 ([-Wc++14-compat]): Likewise.
42123 ([-Wno-sized-deallocation]): Likewise.
42124 ([-femit-class-debug-always]): Likewise.
42125 ([-femit-struct-debug-detailed]): Likewise.
42126 ([-fno-keep-inline-dllexport]): Likewise.
42127 ([-fira-algorithm]): Likewise.
42128 ([-fira-region]): Likewise.
42129 ([-flra-remat]): Likewise.
42130 ([-fipa-ra]): Likewise.
42131 ([-fhoist-adjacent-loads]): Likewise.
42132 ([-fisolate-erroneous-paths-dereference]): Likewise.
42133 ([-fisolate-erroneous-paths-attribute]): Likewise.
42134 ([-ftree-switch-conversion]): Likewise.
42135 ([-ftree-tail-merge]): Likewise.
42136 ([-ftree-loop-if-convert]): Likewise.
42137 ([-ftree-loop-if-convert-stores]): Likewise.
42138 ([-ftree-loop-distribution]): Likewise.
42139 ([-ftree-loop-distribute-patterns]): Likewise.
42140 ([-flto-compression-level]): Likewise.
42141 ([-flto-report]): Likewise.
42142 ([-flto-report-wpa]): Likewise.
42143 ([-fuse-linker-plugin]): Likewise.
42144 ([-mfix-cortex-a53-835769]): Likewise.
42145 ([-mno-fix-cortex-a53-835769]): Likewise.
42146 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42147 explicit listing; add a note to the discussion indicating they
42148 exist. Reorder table to group similar options. Add missing
42149 @opindex entries. Add @need commands throughout the table to
42150 allow it to be split across multiple pages.
42151 ([-m8bit-idiv]): Fix @opindex.
42152 ([-mavx256-split-unaligned-load]): Likewise.
42153 ([-mavx256-split-unaligned-store]): Likewise.
42154 ([-mstack-protector-guard]): Likewise.
42155 ([-mcpu=]): Likewise.
42156 ([-mcpu]): Likewise.
42157 ([-mpointer-size=]): Likewise.
42158
42159 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
42160
42161 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42162 instead of `m' constraint. Likewise for unnamed movb comparison
42163 patterns using reg_before_reload_operand predicate.
42164 * config/pa/predicates.md (reg_before_reload_operand): Tighten
42165 predicate to reject register index and LO_SUM DLT memory forms
42166 after reload.
42167
42168 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42169
42170 * doc/invoke.texi (Option Summary): Fix spelling of
42171 -fdevirtualize-at-ltrans.
42172 ([-fdevirtualize]): Fix markup.
42173 ([-fdevirtualize-speculatively]): Fix typo.
42174 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
42175 implementor-speaky.
42176 * common.opt (fdevirtualize-at-ltrans): Likewise.
42177 * ipa-devirt.c: Fix typos in comments throughout the file.
42178 (ipa_devirt): Fix typos in format strings for dump output.
42179
42180 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42181
42182 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42183 discussion of defaults, light copy-editing.
42184
42185 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42186
42187 * tsan.c (instrument_expr): corrected previous checkin.
42188
42189 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42190
42191 Instrument bit field and unaligned accesses for TSAN.
42192 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42193 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42194 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42195 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42196 unaligned memory regions.
42197
42198 2015-01-01 Anthony Green <green@moxielogic.com>
42199
42200 * config/moxie/predicates.md (moxie_general_movsrc_operand):
42201 Restrict move source register offsets to 16 bits.
42202 \f
42203 Copyright (C) 2015 Free Software Foundation, Inc.
42204
42205 Copying and distribution of this file, with or without modification,
42206 are permitted in any medium without royalty provided the copyright
42207 notice and this notice are preserved.
This page took 1.797075 seconds and 4 git commands to generate.